]> www.infradead.org Git - users/willy/xarray.git/commit
fs: pack struct file
authorChristian Brauner <brauner@kernel.org>
Fri, 23 Aug 2024 19:06:58 +0000 (21:06 +0200)
committerChristian Brauner <brauner@kernel.org>
Thu, 29 Aug 2024 13:20:25 +0000 (15:20 +0200)
commitc0390d541128e8820af8177a572d9d87ff68a3bb
tree432326e76850ccb9d807a86ecdd9951bc537a113
parenta55d1cbd1720679cfe9837bce250e397ec513989
fs: pack struct file

Now that we shrunk struct file to 192 bytes aka 3 cachelines reorder
struct file to not leave any holes or have members cross cachelines.

Add a short comment to each of the fields and mark the cachelines.
It's possible that we may have to tweak this based on profiling in the
future. So far I had Jens test this comparing io_uring with non-fixed
and fixed files and it improved performance. The layout is a combination
of Jens' and my changes.

Link: https: //lore.kernel.org/r/20240824-peinigen-hocken-7384b977c643@brauner
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/fs.h