diff options
Diffstat (limited to 'fs/aufs/posix_acl.c')
-rw-r--r-- | fs/aufs/posix_acl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/aufs/posix_acl.c b/fs/aufs/posix_acl.c index 0ddd46997..1ee17eeef 100644 --- a/fs/aufs/posix_acl.c +++ b/fs/aufs/posix_acl.c @@ -58,7 +58,8 @@ int aufs_set_acl(struct inode *inode, struct posix_acl *acl, int type) }, }; - inode_lock(inode); + IMustLock(inode); + if (inode->i_ino == AUFS_ROOT_INO) dentry = dget(inode->i_sb->s_root); else { @@ -73,13 +74,12 @@ int aufs_set_acl(struct inode *inode, struct posix_acl *acl, int type) } } - ssz = au_srxattr(dentry, &arg); + ssz = au_srxattr(dentry, inode, &arg); dput(dentry); err = ssz; if (ssz >= 0) err = 0; out: - inode_unlock(inode); return err; } |