summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2014-02-11 06:23:09 +0100
committerSage Weil <sage@inktank.com>2014-02-17 21:37:10 +0100
commit524186ace6c4dcc83975b858622a66888b018fd0 (patch)
treebb9e42117541424ea3fe0634797422c9f9063668 /fs/ceph
parentceph: remove xattr when null value is given to setxattr() (diff)
downloadlinux-524186ace6c4dcc83975b858622a66888b018fd0.tar.xz
linux-524186ace6c4dcc83975b858622a66888b018fd0.zip
ceph: fix ceph_removexattr()
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c
index 231c02b16c0c..a55ec37378c6 100644
--- a/fs/ceph/xattr.c
+++ b/fs/ceph/xattr.c
@@ -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);