]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ceph: correct ceph_mds_cap_item field name
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 26 Jun 2024 13:49:10 +0000 (09:49 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 19 Nov 2024 10:08:17 +0000 (11:08 +0100)
The issue_seq is sent with bulk cap releases, not the current sequence
number. See also ceph.git commit 655cddb7c9f3 ("include/ceph_fs: correct
ceph_mds_cap_item field name").

Link: https://tracker.ceph.com/issues/66704
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c
include/linux/ceph/ceph_fs.h

index aaa864c2e26dbf22228a67a56b6911fb66f852f6..df0587e61e791cfe8e313cf339c362821766877b 100644 (file)
@@ -2354,7 +2354,7 @@ again:
                item->ino = cpu_to_le64(cap->cap_ino);
                item->cap_id = cpu_to_le64(cap->cap_id);
                item->migrate_seq = cpu_to_le32(cap->mseq);
-               item->seq = cpu_to_le32(cap->issue_seq);
+               item->issue_seq = cpu_to_le32(cap->issue_seq);
                msg->front.iov_len += sizeof(*item);
 
                ceph_put_cap(mdsc, cap);
index ee1d0e5f9789f2bd1672721c304cd6cae56245b7..4ff3ad5e9210500b28c2ba9b8800e8bd15341b21 100644 (file)
@@ -822,7 +822,7 @@ struct ceph_mds_cap_release {
 struct ceph_mds_cap_item {
        __le64 ino;
        __le64 cap_id;
-       __le32 migrate_seq, seq;
+       __le32 migrate_seq, issue_seq;
 } __attribute__ ((packed));
 
 #define CEPH_MDS_LEASE_REVOKE           1  /*    mds  -> client */