Commit 735fe54f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] jfs_setattr() fix

jfs is dropping inode_setattr()'s return value.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1368c6ed
...@@ -281,9 +281,9 @@ int jfs_setattr(struct dentry *dentry, struct iattr *iattr) ...@@ -281,9 +281,9 @@ int jfs_setattr(struct dentry *dentry, struct iattr *iattr)
if (rc) if (rc)
return rc; return rc;
inode_setattr(inode, iattr); rc = inode_setattr(inode, iattr);
if (iattr->ia_valid & ATTR_MODE) if (!rc && (iattr->ia_valid & ATTR_MODE))
rc = jfs_acl_chmod(inode); rc = jfs_acl_chmod(inode);
return rc; return rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment