net: netlink: Remove the dump_cb_mutex field from struct netlink_sock
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 22 Aug 2024 07:03:20 +0000 (09:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Aug 2024 09:35:16 +0000 (10:35 +0100)
Commit 5fbf57a937f4 ("net: netlink: remove the cb_mutex "injection" from
netlink core") has removed the usage of the 'dump_cb_mutex' field from the
struct netlink_sock.

Remove the field itself now. It saves a few bytes in the structure.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.h

index 9751e29d4bbb9ad9cb7900e2cfaedbe7ab138cf4..5b0e4e62ab8b9b9c88f3cd81a9075467bbab3760 100644 (file)
@@ -41,7 +41,6 @@ struct netlink_sock {
        struct netlink_callback cb;
        struct mutex            nl_cb_mutex;
 
-       struct mutex            *dump_cb_mutex;
        void                    (*netlink_rcv)(struct sk_buff *skb);
        int                     (*netlink_bind)(struct net *net, int group);
        void                    (*netlink_unbind)(struct net *net, int group);