summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorTiger Yang <tiger.yang@oracle.com>2008-11-14 04:17:29 +0100
committerMark Fasheh <mfasheh@suse.com>2009-01-05 17:34:20 +0100
commit060bc66dd5017460076d9e808e2198cd532c943d (patch)
tree11b4919c11c6529b783ae553a27a722e22b522b6 /fs/ocfs2/file.c
parentocfs2: add ocfs2_check_acl (diff)
downloadlinux-060bc66dd5017460076d9e808e2198cd532c943d.tar.xz
linux-060bc66dd5017460076d9e808e2198cd532c943d.zip
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:
bail:
brelse(bh);
+ if (!status && attr->ia_valid & ATTR_MODE) {
+ status = ocfs2_acl_chmod(inode);
+ if (status < 0)
+ mlog_errno(status);
+ }
+
mlog_exit(status);
return status;
}