aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2010-06-04 05:30:00 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2010-08-09 16:47:35 -0400
commit6a1a90ad1b0edb556a7550a6ef8a8756f0304dd5 (patch)
tree234488533d89e3f8b938823c2071be19e66e1b4b /mm/shmem.c
parentd39aae9ec447dda84d9a2850743a78a535a71c90 (diff)
rename generic_setattr
Despite its name it's now a generic implementation of ->setattr, but rather a helper to copy attributes from a struct iattr to the inode. Rename it to setattr_copy to reflect this fact. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index f65f84062db5..3b58ad65d26c 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -811,7 +811,7 @@ static int shmem_notify_change(struct dentry *dentry, struct iattr *attr)
811 811
812 error = inode_change_ok(inode, attr); 812 error = inode_change_ok(inode, attr);
813 if (!error) 813 if (!error)
814 generic_setattr(inode, attr); 814 setattr_copy(inode, attr);
815#ifdef CONFIG_TMPFS_POSIX_ACL 815#ifdef CONFIG_TMPFS_POSIX_ACL
816 if (!error && (attr->ia_valid & ATTR_MODE)) 816 if (!error && (attr->ia_valid & ATTR_MODE))
817 error = generic_acl_chmod(inode); 817 error = generic_acl_chmod(inode);