X-Git-Url: http://git.cascardo.info/?p=cascardo%2Flinux.git;a=blobdiff_plain;f=fs%2Foverlayfs%2Fcopy_up.c;h=3f803b3a1f8295b9d9d3f903cc9f1198c6910f4a;hp=db37a0e02d32b6e351a396e55f3ce9cb75e8b3a5;hb=97d2116708ca0fd6ad8b00811ee4349b7e19e96f;hpb=b9044ac8292fc94bee33f6f08acaed3ac55f0c75 diff --git a/fs/overlayfs/copy_up.c b/fs/overlayfs/copy_up.c index db37a0e02d32..3f803b3a1f82 100644 --- a/fs/overlayfs/copy_up.c +++ b/fs/overlayfs/copy_up.c @@ -58,8 +58,8 @@ int ovl_copy_xattr(struct dentry *old, struct dentry *new) char *buf, *name, *value = NULL; int uninitialized_var(error); - if (!old->d_inode->i_op->getxattr || - !new->d_inode->i_op->getxattr) + if (!(old->d_inode->i_opflags & IOP_XATTR) || + !(new->d_inode->i_opflags & IOP_XATTR)) return 0; list_size = vfs_listxattr(old, NULL, 0);