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 101209930d5ccbaf3de21747f1e495a79c64b461..2c39d9fe18d7dd19cabcbfaeda4e8e632c7b6d52 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;