fs: __file_remove_privs(): restore call to inode_has_no_xattr()
authorStefan Roesch <shr@fb.com>
Tue, 16 Aug 2022 15:31:58 +0000 (08:31 -0700)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Thu, 18 Aug 2022 07:39:33 +0000 (09:39 +0200)
commit41191cf6bf565f4139046d7be68ec30c290af92d
tree4e8a50300911f3c79e946884508db52e42a2ff23
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
fs: __file_remove_privs(): restore call to inode_has_no_xattr()

This restores the call to inode_has_no_xattr() in the function
__file_remove_privs(). In case the dentry_meeds_remove_privs() returned
0, the function inode_has_no_xattr() was not called.

Signed-off-by: Stefan Roesch <shr@fb.com>
Fixes: faf99b563558 ("fs: add __remove_file_privs() with flags parameter")
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Link: https://lore.kernel.org/r/20220816153158.1925040-1-shr@fb.com
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
fs/inode.c