Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348966
b: refs/heads/master
c: c1b75ea
h: refs/heads/master
v: v3
  • Loading branch information
Jaegeuk Kim committed Jan 4, 2013
1 parent ed2452b commit 7382f27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: d66d1f76878fcb1e78592fe8aecd13f438d6c0d7
refs/heads/master: c1b75eabec4eddce55ebb078f84481f58272878f
13 changes: 6 additions & 7 deletions trunk/fs/f2fs/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,14 @@ struct posix_acl *f2fs_get_acl(struct inode *inode, int type)
retval = f2fs_getxattr(inode, name_index, "", value, retval);
}

if (retval < 0) {
if (retval == -ENODATA)
acl = NULL;
else
acl = ERR_PTR(retval);
} else {
if (retval > 0)
acl = f2fs_acl_from_disk(value, retval);
}
else if (retval == -ENODATA)
acl = NULL;
else
acl = ERR_PTR(retval);
kfree(value);

if (!IS_ERR(acl))
set_cached_acl(inode, type, acl);

Expand Down

0 comments on commit 7382f27

Please sign in to comment.