fscrypt: work on block_devices instead of request_queues
authorChristoph Hellwig <hch@lst.de>
Thu, 1 Sep 2022 19:32:08 +0000 (12:32 -0700)
committerEric Biggers <ebiggers@google.com>
Thu, 22 Sep 2022 03:33:06 +0000 (20:33 -0700)
commit0e91fc1e0f5c70ce575451103ec66c2ec21f1a6e
tree57a0c025b9440266d9cd8c77c2f78785afe301fd
parent22e9947a4b2ba255888541bd0111cf00b9b16586
fscrypt: work on block_devices instead of request_queues

request_queues are a block layer implementation detail that should not
leak into file systems.  Change the fscrypt inline crypto code to
retrieve block devices instead of request_queues from the file system.
As part of that, clean up the interaction with multi-device file systems
by returning both the number of devices and the actual device array in a
single method call.

Signed-off-by: Christoph Hellwig <hch@lst.de>
[ebiggers: bug fixes and minor tweaks]
Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20220901193208.138056-4-ebiggers@kernel.org
fs/crypto/inline_crypt.c
fs/f2fs/super.c
include/linux/fscrypt.h