diff options
author | Yan, Zheng <zyan@redhat.com> | 2016-03-12 00:32:16 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-03-25 13:51:55 -0400 |
commit | 29dccfa5af388916e48a3edc5ac9dc8cc996d9b4 (patch) | |
tree | 3a3dee305bf58df79a59898da0f0f9c4a85b26ab /fs | |
parent | 132ca7e1de1e3217af06bce2beb3aa13c3edc7f6 (diff) |
ceph: don't request vxattrs from MDS
It's uselese because MDS reply does not carry any vxattr.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ceph/xattr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index 1e1c00a6d907..139cdef8eb41 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c | |||
@@ -727,8 +727,10 @@ ssize_t __ceph_getxattr(struct inode *inode, const char *name, void *value, | |||
727 | 727 | ||
728 | /* let's see if a virtual xattr was requested */ | 728 | /* let's see if a virtual xattr was requested */ |
729 | vxattr = ceph_match_vxattr(inode, name); | 729 | vxattr = ceph_match_vxattr(inode, name); |
730 | if (vxattr && !(vxattr->exists_cb && !vxattr->exists_cb(ci))) { | 730 | if (vxattr) { |
731 | err = vxattr->getxattr_cb(ci, value, size); | 731 | err = -ENODATA; |
732 | if (!(vxattr->exists_cb && !vxattr->exists_cb(ci))) | ||
733 | err = vxattr->getxattr_cb(ci, value, size); | ||
732 | return err; | 734 | return err; |
733 | } | 735 | } |
734 | 736 | ||