aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/vfs_inode.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2010-09-27 14:57:40 -0400
committerEric Van Hensbergen <ericvh@gmail.com>2010-10-28 10:08:46 -0400
commit6e8dc55550273084b7fb5846df2f44439f5d03d9 (patch)
tree87d2e765f05f6775a71784870a2d0054713821a1 /fs/9p/vfs_inode.c
parent22d8dcdf8f8a3882d98757e78169014bb0bc6b23 (diff)
fs/9p: Update ACL on chmod
We need update the acl value on chmod Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r--fs/9p/vfs_inode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index 4b67bf1fb1d5..bdc64d1c22fb 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -1284,6 +1284,12 @@ int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr)
1284 1284
1285 setattr_copy(dentry->d_inode, iattr); 1285 setattr_copy(dentry->d_inode, iattr);
1286 mark_inode_dirty(dentry->d_inode); 1286 mark_inode_dirty(dentry->d_inode);
1287 if (iattr->ia_valid & ATTR_MODE) {
1288 /* We also want to update ACL when we update mode bits */
1289 retval = v9fs_acl_chmod(dentry);
1290 if (retval < 0)
1291 return retval;
1292 }
1287 return 0; 1293 return 0;
1288} 1294}
1289 1295