projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6424e4
)
ceph: listxattr should compare version by >=
author
Henry C Chang
<henry_c_chang@tcloudcomputing.com>
Thu, 29 Apr 2010 16:32:28 +0000
(09:32 -0700)
committer
Sage Weil
<sage@newdream.net>
Mon, 17 May 2010 22:25:26 +0000
(15:25 -0700)
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>
fs/ceph/xattr.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ceph/xattr.c
b/fs/ceph/xattr.c
index 3b4c2620030ad6c9d28514fc55bda4a47484516d..7185d0794df3305cf95bd53676def28616599cbc 100644
(file)
--- 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)
ci->i_xattrs.version, ci->i_xattrs.index_version);
if (__ceph_caps_issued_mask(ci, CEPH_CAP_XATTR_SHARED, 1) &&
- (ci->i_xattrs.index_version > ci->i_xattrs.version)) {
+ (ci->i_xattrs.index_version >
=
ci->i_xattrs.version)) {
goto list_xattr;
} else {
spin_unlock(&inode->i_lock);