Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29dccfa5 authored by Yan, Zheng's avatar Yan, Zheng Committed by Ilya Dryomov
Browse files

ceph: don't request vxattrs from MDS



It's uselese because MDS reply does not carry any vxattr.

Signed-off-by: default avatarYan, Zheng <zyan@redhat.com>
parent 132ca7e1
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -727,7 +727,9 @@ ssize_t __ceph_getxattr(struct inode *inode, const char *name, void *value,


	/* let's see if a virtual xattr was requested */
	/* let's see if a virtual xattr was requested */
	vxattr = ceph_match_vxattr(inode, name);
	vxattr = ceph_match_vxattr(inode, name);
	if (vxattr && !(vxattr->exists_cb && !vxattr->exists_cb(ci))) {
	if (vxattr) {
		err = -ENODATA;
		if (!(vxattr->exists_cb && !vxattr->exists_cb(ci)))
			err = vxattr->getxattr_cb(ci, value, size);
			err = vxattr->getxattr_cb(ci, value, size);
		return err;
		return err;
	}
	}