]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - fs/overlayfs/copy_up.c
ovl: check for ->listxattr() support
[thirdparty/linux.git] / fs / overlayfs / copy_up.c
index c14e90764e356565cf25561ea92793526e760c47..f658cc8ea4920487810216c0e0d94086730debff 100644 (file)
@@ -81,8 +81,7 @@ int ovl_copy_xattr(struct super_block *sb, const struct path *oldpath, struct de
        int error = 0;
        size_t slen;
 
-       if (!(old->d_inode->i_opflags & IOP_XATTR) ||
-           !(new->d_inode->i_opflags & IOP_XATTR))
+       if (!old->d_inode->i_op->listxattr || !new->d_inode->i_op->listxattr)
                return 0;
 
        list_size = vfs_listxattr(old, NULL, 0);