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 231c02b..a55ec37 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);