Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1b87809 authored by Yan, Zheng's avatar Yan, Zheng
Browse files

ceph: use ceph_seq_cmp() to compare migrate_seq

parent 4fe59789
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -628,7 +628,7 @@ int ceph_add_cap(struct inode *inode,
	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;