diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2013-11-13 14:47:19 +0800 |
---|---|---|
committer | Yan, Zheng <zheng.z.yan@intel.com> | 2014-01-21 13:29:32 +0800 |
commit | d1b87809fba3e07a261080837d1ae58d790b51a6 (patch) | |
tree | 5913bfd398bac36f58af7f0202d2fbdfb7d51eff /fs/ceph/caps.c | |
parent | 4fe59789adc93b2573b0417ac93136805521902e (diff) | |
download | linux-d1b87809fba3e07a261080837d1ae58d790b51a6.tar.bz2 |
ceph: use ceph_seq_cmp() to compare migrate_seq
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Diffstat (limited to 'fs/ceph/caps.c')
-rw-r--r-- | fs/ceph/caps.c | 2 |
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; |