]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fs: remove inode::i_crypt_info
authorEric Biggers <ebiggers@kernel.org>
Sun, 10 Aug 2025 07:57:00 +0000 (00:57 -0700)
committerChristian Brauner <brauner@kernel.org>
Thu, 21 Aug 2025 11:58:07 +0000 (13:58 +0200)
commitab90c2d2476c4dd6deddd089c7e83b858d135783
tree4b3544f864c3885a46a12c5c86f1f81d165b8f87
parentbbe395ded3ef2a2aecfc90372bda2b3e3ed8f2ee
fs: remove inode::i_crypt_info

Now that all fscrypt-capable filesystems store the pointer to
fscrypt_inode_info in the filesystem-specific part of the inode
structure, inode::i_crypt_info is no longer needed.  Update
fscrypt_inode_info_addr() to no longer support the fallback to
inode::i_crypt_info.  Finally, remove inode::i_crypt_info itself along
with the now-unnecessary forward declaration of fscrypt_inode_info.

The end result of the migration to the filesystem-specific pointer is
memory savings on CONFIG_FS_ENCRYPTION=y kernels for all filesystems
that don't support fscrypt.  Specifically, their in-memory inodes are
now smaller by the size of a pointer: either 4 or 8 bytes.

Co-developed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Link: https://lore.kernel.org/20250810075706.172910-8-ebiggers@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/fs.h
include/linux/fscrypt.h