mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
fs/ntfs3: Use the same order for acl pointer check in ntfs_init_acl
For the readability and unity of the code, adjust the order Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com> Reviewed-by: Kari Argillander <kari.argillander@gmail.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
parent
ae5a4e4691
commit
19e890ff3b
@ -706,13 +706,13 @@ int ntfs_init_acl(struct user_namespace *mnt_userns, struct inode *inode,
|
|||||||
inode->i_default_acl = NULL;
|
inode->i_default_acl = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!acl)
|
if (acl) {
|
||||||
inode->i_acl = NULL;
|
|
||||||
else {
|
|
||||||
if (!err)
|
if (!err)
|
||||||
err = ntfs_set_acl_ex(mnt_userns, inode, acl,
|
err = ntfs_set_acl_ex(mnt_userns, inode, acl,
|
||||||
ACL_TYPE_ACCESS, true);
|
ACL_TYPE_ACCESS, true);
|
||||||
posix_acl_release(acl);
|
posix_acl_release(acl);
|
||||||
|
} else {
|
||||||
|
inode->i_acl = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
|
Loading…
Reference in New Issue
Block a user