Store the offset of the fscrypt data pointer from struct inode in struct fscrypt_operations. Both are embedded in the filesystem's private inode.
This will allow us to drop the fscrypt data pointer from struct inode itself and move it into the filesystem's inode. Signed-off-by: Christian Brauner <brau...@kernel.org> --- include/linux/fscrypt.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/fscrypt.h b/include/linux/fscrypt.h index 56fad33043d5..0ece9d443c82 100644 --- a/include/linux/fscrypt.h +++ b/include/linux/fscrypt.h @@ -61,6 +61,11 @@ struct fscrypt_name { /* Crypto operations for filesystems */ struct fscrypt_operations { + /** + * The offset of struct fscrypt_inode_info from struct inode embedded + * in the filesystem's inode. + */ + ptrdiff_t inode_info_offs; /* * If set, then fs/crypto/ will allocate a global bounce page pool the -- 2.47.2