]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
ceph: close holes in struct ceph_mds_session
authorJeff Layton <jlayton@kernel.org>
Fri, 15 Nov 2019 14:13:59 +0000 (09:13 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 10 Jan 2020 10:11:07 +0000 (11:11 +0100)
Move s_ref up to plug a 4 byte hole, which plugs another.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
fs/ceph/mds_client.h

index c950f8f88f587624d06647fca20fae18b4ef0006..df18a29f95875bf54af66acc38e1b7957fc5db5e 100644 (file)
@@ -184,6 +184,7 @@ struct ceph_mds_session {
 
        /* protected by s_cap_lock */
        spinlock_t        s_cap_lock;
+       refcount_t        s_ref;
        struct list_head  s_caps;     /* all caps issued by this session */
        struct ceph_cap  *s_cap_iterator;
        int               s_nr_caps;
@@ -198,7 +199,6 @@ struct ceph_mds_session {
        unsigned long     s_renew_requested; /* last time we sent a renew req */
        u64               s_renew_seq;
 
-       refcount_t        s_ref;
        struct list_head  s_waiting;  /* waiting requests */
        struct list_head  s_unsafe;   /* unsafe requests */
 };