kernel-hacking-2024-linux-s.../fs/f2fs
Jaegeuk Kim 26bf3dc7e2 f2fs crypto: use per-inode tfm structure
This patch applies the following ext4 patch:

  ext4 crypto: use per-inode tfm structure

As suggested by Herbert Xu, we shouldn't allocate a new tfm each time
we read or write a page.  Instead we can use a single tfm hanging off
the inode's crypt_info structure for all of our encryption needs for
that inode, since the tfm can be used by multiple crypto requests in
parallel.

Also use cmpxchg() to avoid races that could result in crypt_info
structure getting doubly allocated or doubly freed.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2015-06-01 16:21:04 -07:00
..
acl.c f2fs: make posix_acl_create() safer and cleaner 2015-05-07 11:38:31 -07:00
acl.h
checkpoint.c f2fs: introduce update_meta_page 2015-06-01 16:21:00 -07:00
crypto.c f2fs crypto: use per-inode tfm structure 2015-06-01 16:21:04 -07:00
crypto_fname.c f2fs crypto: use per-inode tfm structure 2015-06-01 16:21:04 -07:00
crypto_key.c f2fs crypto: use per-inode tfm structure 2015-06-01 16:21:04 -07:00
crypto_policy.c f2fs crypto: add encryption policy and password salt support 2015-05-28 15:41:48 -07:00
data.c f2fs crypto: add encryption support in read/write paths 2015-05-28 15:41:52 -07:00
debug.c f2fs: fix building on 32-bit architectures 2015-06-01 16:20:53 -07:00
dir.c f2fs crypto: use per-inode tfm structure 2015-06-01 16:21:04 -07:00
f2fs.h f2fs crypto: use per-inode tfm structure 2015-06-01 16:21:04 -07:00
f2fs_crypto.h f2fs crypto: use per-inode tfm structure 2015-06-01 16:21:04 -07:00
file.c f2fs crypto: add filename encryption for roll-forward recovery 2015-05-28 15:41:55 -07:00
gc.c f2fs crypto: add encryption support in read/write paths 2015-05-28 15:41:52 -07:00
gc.h
hash.c f2fs: introduce dot and dotdot name check 2015-05-28 15:41:34 -07:00
inline.c f2fs crypto: add filename encryption for f2fs_lookup 2015-05-28 15:41:54 -07:00
inode.c f2fs crypto: use per-inode tfm structure 2015-06-01 16:21:04 -07:00
Kconfig f2fs crypto: add f2fs encryption Kconfig 2015-05-28 15:41:46 -07:00
Makefile f2fs crypto: filename encryption facilities 2015-05-28 15:41:50 -07:00
namei.c f2fs crypto: use per-inode tfm structure 2015-06-01 16:21:04 -07:00
node.c f2fs crypto: add encryption support in read/write paths 2015-05-28 15:41:52 -07:00
node.h f2fs: move existing definitions into f2fs.h 2015-05-28 15:41:27 -07:00
recovery.c f2fs crypto: add filename encryption for roll-forward recovery 2015-05-28 15:41:55 -07:00
segment.c f2fs: introduce update_meta_page 2015-06-01 16:21:00 -07:00
segment.h f2fs: introduce discard_map for f2fs_trim_fs 2015-05-28 15:41:39 -07:00
super.c f2fs crypto: use per-inode tfm structure 2015-06-01 16:21:04 -07:00
trace.c f2fs: add sbi and page pointer in f2fs_io_info 2015-05-28 15:41:32 -07:00
trace.h f2fs: add sbi and page pointer in f2fs_io_info 2015-05-28 15:41:32 -07:00
xattr.c f2fs crypto: add encryption policy and password salt support 2015-05-28 15:41:48 -07:00
xattr.h f2fs crypto: add encryption xattr support 2015-05-28 15:41:47 -07:00