]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fscrypt: move fscrypt_set_bio_crypt_ctx_bh to buffer.c
authorChristoph Hellwig <hch@lst.de>
Mon, 2 Mar 2026 14:18:10 +0000 (06:18 -0800)
committerEric Biggers <ebiggers@kernel.org>
Mon, 9 Mar 2026 20:31:50 +0000 (13:31 -0700)
commita18b1ab81654b06e7ff402e5d0b85249e9504bcb
tree6be2dc1391be0592e88f2de8c6273522d6c907db
parent588e7c048d7d2bfcbe7776ee0888ee248adf01d1
fscrypt: move fscrypt_set_bio_crypt_ctx_bh to buffer.c

fscrypt_set_bio_crypt_ctx_bh is only used by submit_bh_wbc now.  Move it
there and merge bh_get_inode_and_lblk_num into it.

Note that this does not add ifdefs for fscrypt as the compiler will
optimize away the dead code if it is not built in.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20260302141922.370070-6-hch@lst.de
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
fs/buffer.c
fs/crypto/inline_crypt.c
include/linux/fscrypt.h