summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2013-11-13 14:47:19 +0800
committerYan, Zheng <zheng.z.yan@intel.com>2014-01-21 13:29:32 +0800
commitd1b87809fba3e07a261080837d1ae58d790b51a6 (patch)
tree5913bfd398bac36f58af7f0202d2fbdfb7d51eff
parent4fe59789adc93b2573b0417ac93136805521902e (diff)
downloadlinux-rt-d1b87809fba3e07a261080837d1ae58d790b51a6.tar.gz
ceph: use ceph_seq_cmp() to compare migrate_seq
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
-rw-r--r--fs/ceph/caps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index 101209930d5c..2c39d9fe18d7 100644
--- 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;