]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: shrink struct sock by 8 bytes
authorEric Dumazet <edumazet@google.com>
Mon, 15 Nov 2021 19:02:37 +0000 (11:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Nov 2021 13:10:34 +0000 (13:10 +0000)
Move sk_bind_phc next to sk_peer_lock to fill a hole.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h

index 985ddcd335048068b78a0525500734ef96be44a0..2333ab08178903533cbc2dc1415a0de9545aa6db 100644 (file)
@@ -489,6 +489,7 @@ struct sock {
        u16                     sk_busy_poll_budget;
 #endif
        spinlock_t              sk_peer_lock;
+       int                     sk_bind_phc;
        struct pid              *sk_peer_pid;
        const struct cred       *sk_peer_cred;
 
@@ -498,7 +499,6 @@ struct sock {
        seqlock_t               sk_stamp_seq;
 #endif
        u16                     sk_tsflags;
-       int                     sk_bind_phc;
        u8                      sk_shutdown;
        u32                     sk_tskey;
        atomic_t                sk_zckey;