2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00
linux-next/fs/crypto
Eric Biggers 59dc6a8e1f fscrypt: add ->ci_inode to fscrypt_info
Add an inode back-pointer to 'struct fscrypt_info', such that
inode->i_crypt_info->ci_inode == inode.

This will be useful for:

1. Evicting the inodes when a fscrypt key is removed, since we'll track
   the inodes using a given key by linking their fscrypt_infos together,
   rather than the inodes directly.  This avoids bloating 'struct inode'
   with a new list_head.

2. Simplifying the per-file key setup, since the inode pointer won't
   have to be passed around everywhere just in case something goes wrong
   and it's needed for fscrypt_warn().

Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Eric Biggers <ebiggers@google.com>
2019-08-12 19:05:22 -07:00
..
bio.c fscrypt: decrypt only the needed blocks in __fscrypt_decrypt_bio() 2019-05-28 10:27:53 -07:00
crypto.c fscrypt: use FSCRYPT_* definitions, not FS_* 2019-08-12 19:05:19 -07:00
fname.c fscrypt: use FSCRYPT_* definitions, not FS_* 2019-08-12 19:05:19 -07:00
fscrypt_private.h fscrypt: add ->ci_inode to fscrypt_info 2019-08-12 19:05:22 -07:00
hooks.c fscrypt: make fscrypt_msg() take inode instead of super_block 2019-08-12 19:04:44 -07:00
Kconfig fscrypt: remove selection of CONFIG_CRYPTO_SHA256 2019-06-27 10:29:33 -07:00
keyinfo.c fscrypt: add ->ci_inode to fscrypt_info 2019-08-12 19:05:22 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
policy.c fscrypt: use FSCRYPT_* definitions, not FS_* 2019-08-12 19:05:19 -07:00