ceph: use ceph_seq_cmp() to compare migrate_seq
authorYan, Zheng <zheng.z.yan@intel.com>
Wed, 13 Nov 2013 06:47:19 +0000 (14:47 +0800)
committerYan, 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

index 1012099..2c39d9f 100644 (file)
@@ -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;