ceph: fix ceph_removexattr()

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
This commit is contained in:
Yan, Zheng 2014-02-11 13:23:09 +08:00 committed by Sage Weil
parent bcdfeb2eb4
commit 524186ace6

View file

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