commit | d1b87809fba3e07a261080837d1ae58d790b51a6 | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zheng.z.yan@intel.com> | Wed Nov 13 14:47:19 2013 +0800 |
committer | Yan, Zheng <zheng.z.yan@intel.com> | Tue Jan 21 13:29:32 2014 +0800 |
tree | 5913bfd398bac36f58af7f0202d2fbdfb7d51eff | |
parent | 4fe59789adc93b2573b0417ac93136805521902e [diff] [blame] |
ceph: use ceph_seq_cmp() to compare migrate_seq Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 1012099..2c39d9f 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c
@@ -628,7 +628,7 @@ 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;