projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fe5978
)
ceph: use ceph_seq_cmp() to compare migrate_seq
author
Yan, Zheng
<zheng.z.yan@intel.com>
Wed, 13 Nov 2013 06:47:19 +0000
(14:47 +0800)
committer
Yan, Zheng
<zheng.z.yan@intel.com>
Tue, 21 Jan 2014 05:29:32 +0000
(13:29 +0800)
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
fs/ceph/caps.c
patch
|
blob
|
history
diff --git
a/fs/ceph/caps.c
b/fs/ceph/caps.c
index 101209930d5ccbaf3de21747f1e495a79c64b461..2c39d9fe18d7dd19cabcbfaeda4e8e632c7b6d52 100644
(file)
--- a/
fs/ceph/caps.c
+++ b/
fs/ceph/caps.c
@@
-628,7
+628,7
@@
retry:
cap->cap_id = cap_id;
cap->issued = issued;
cap->implemented |= issued;
- if (
mseq > cap->mseq
)
+ if (
ceph_seq_cmp(mseq, cap->mseq) > 0
)
cap->mds_wanted = wanted;
else
cap->mds_wanted |= wanted;