Browse Source

ceph: fix ceph_removexattr()

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Yan, Zheng 11 years ago
parent
commit
524186ace6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/ceph/xattr.c

+ 1 - 1
fs/ceph/xattr.c

@@ -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);