diff options
author | Henry C Chang <henry_c_chang@tcloudcomputing.com> | 2010-04-29 12:32:28 -0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-05-17 18:25:26 -0400 |
commit | bddfa3cc18fcd9c9313a1030b19d3b0ea2639310 (patch) | |
tree | bd4560a74ffd5ebd40e3c35e10e465cfe810f2eb /fs/ceph | |
parent | a6424e48c8d54a5795430b07c4487f1ed280df4e (diff) |
ceph: listxattr should compare version by >=
If the version hasn't changed, don't rebuild the index.
Signed-off-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index 3b4c2620030a..7185d0794df3 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c | |||
@@ -568,7 +568,7 @@ ssize_t ceph_listxattr(struct dentry *dentry, char *names, size_t size) | |||
568 | ci->i_xattrs.version, ci->i_xattrs.index_version); | 568 | ci->i_xattrs.version, ci->i_xattrs.index_version); |
569 | 569 | ||
570 | if (__ceph_caps_issued_mask(ci, CEPH_CAP_XATTR_SHARED, 1) && | 570 | if (__ceph_caps_issued_mask(ci, CEPH_CAP_XATTR_SHARED, 1) && |
571 | (ci->i_xattrs.index_version > ci->i_xattrs.version)) { | 571 | (ci->i_xattrs.index_version >= ci->i_xattrs.version)) { |
572 | goto list_xattr; | 572 | goto list_xattr; |
573 | } else { | 573 | } else { |
574 | spin_unlock(&inode->i_lock); | 574 | spin_unlock(&inode->i_lock); |