Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302702
b: refs/heads/master
c: f9425ad
h: refs/heads/master
v: v3
  • Loading branch information
Steven Whitehouse committed May 4, 2012
1 parent df8794f commit 7c70ed0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c0752aa7e4d48cc19e167ccb0092bea8e5b6ca3a
refs/heads/master: f9425ad4e5c8f8f9f6297d0358dc44ca058ffe47
12 changes: 3 additions & 9 deletions trunk/fs/gfs2/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,8 @@ static int gfs2_set_mode(struct inode *inode, umode_t mode)
int error = 0;

if (mode != inode->i_mode) {
struct iattr iattr;

iattr.ia_valid = ATTR_MODE;
iattr.ia_mode = mode;

error = gfs2_setattr_simple(inode, &iattr);
inode->i_mode = mode;
mark_inode_dirty(inode);
}

return error;
Expand Down Expand Up @@ -126,9 +122,7 @@ int gfs2_acl_create(struct gfs2_inode *dip, struct inode *inode)
return PTR_ERR(acl);
if (!acl) {
mode &= ~current_umask();
if (mode != inode->i_mode)
error = gfs2_set_mode(inode, mode);
return error;
return gfs2_set_mode(inode, mode);
}

if (S_ISDIR(inode->i_mode)) {
Expand Down

0 comments on commit 7c70ed0

Please sign in to comment.