OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b31deb
)
net: shrink struct sock by 8 bytes
author
Eric Dumazet
<edumazet@google.com>
Mon, 15 Nov 2021 19:02:37 +0000
(11:02 -0800)
committer
David 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
patch
|
blob
|
history
diff --git
a/include/net/sock.h
b/include/net/sock.h
index
985ddcd
..
2333ab0
100644
(file)
--- a/
include/net/sock.h
+++ b/
include/net/sock.h
@@
-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;