Skip to content

Commit a1fbb60

Browse files
committed
ovl: check for ->listxattr() support
We have decoupled vfs_listxattr() from IOP_XATTR. Instead we just need to check whether inode->i_op->listxattr is implemented. Cc: linux-unionfs@vger.kernel.org Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
1 parent d9f892b commit a1fbb60

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fs/overlayfs/copy_up.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ int ovl_copy_xattr(struct super_block *sb, const struct path *oldpath, struct de
8181
int error = 0;
8282
size_t slen;
8383

84-
if (!(old->d_inode->i_opflags & IOP_XATTR) ||
85-
!(new->d_inode->i_opflags & IOP_XATTR))
84+
if (!old->d_inode->i_op->listxattr || !new->d_inode->i_op->listxattr)
8685
return 0;
8786

8887
list_size = vfs_listxattr(old, NULL, 0);

0 commit comments

Comments
 (0)