aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorTiger Yang <tiger.yang@oracle.com>2008-11-13 22:17:29 -0500
committerMark Fasheh <mfasheh@suse.com>2009-01-05 11:34:20 -0500
commit060bc66dd5017460076d9e808e2198cd532c943d (patch)
tree11b4919c11c6529b783ae553a27a722e22b522b6 /fs/ocfs2/file.c
parent23fc2702bea686569281708ad519b41a11d0a2f4 (diff)
ocfs2: add ocfs2_acl_chmod
This function is used to update acl xattrs during file mode changes. Signed-off-by: Tiger Yang <tiger.yang@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r--fs/ocfs2/file.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 7bad7d9b9a2c..4636aa6b0117 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -990,6 +990,12 @@ bail_unlock_rw:
990bail: 990bail:
991 brelse(bh); 991 brelse(bh);
992 992
993 if (!status && attr->ia_valid & ATTR_MODE) {
994 status = ocfs2_acl_chmod(inode);
995 if (status < 0)
996 mlog_errno(status);
997 }
998
993 mlog_exit(status); 999 mlog_exit(status);
994 return status; 1000 return status;
995} 1001}