]> Pileus Git - ~andy/linux/commitdiff
ceph: fix ceph_removexattr()
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 11 Feb 2014 05:23:09 +0000 (13:23 +0800)
committerSage Weil <sage@inktank.com>
Mon, 17 Feb 2014 20:37:10 +0000 (12:37 -0800)
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
fs/ceph/xattr.c

index 231c02b16c0c7ac3d3c24e225a408875b1cf98d2..a55ec37378c6730efa476d3d6a923e37ba10ec72 100644 (file)
@@ -463,7 +463,7 @@ static int __remove_xattr(struct ceph_inode_info *ci,
                          struct ceph_inode_xattr *xattr)
 {
        if (!xattr)
-               return -EOPNOTSUPP;
+               return -ENODATA;
 
        rb_erase(&xattr->node, &ci->i_xattrs.index);