]> Gentwo Git Trees - linux/.git/commit
fs/netfs: reorder struct fields to eliminate holes
authorMax Kellermann <max.kellermann@ionos.com>
Mon, 19 May 2025 13:48:02 +0000 (14:48 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 21 May 2025 12:34:37 +0000 (14:34 +0200)
commit314ee7035febc86f4f9452fb90a6c2165a183fe5
tree877beeed5b90947853d41bbf3931c734d3949813
parentd46a7b217d6abbaea78ce5abf4b295e3c1d819d9
fs/netfs: reorder struct fields to eliminate holes

This shrinks `struct netfs_io_stream` from 104 to 96 bytes and `struct
netfs_io_request` from 600 to 576 bytes.

[DH: Modified as the patch to turn netfs_io_request::error into a short
was removed from the set]

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/20250519134813.2975312-7-dhowells@redhat.com
cc: Paulo Alcantara <pc@manguebit.com>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/netfs.h