]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fscrypt: pass a real sector_t to fscrypt_zeroout_range_inline_crypt
authorChristoph Hellwig <hch@lst.de>
Fri, 9 Jan 2026 06:07:41 +0000 (07:07 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 11 Jan 2026 19:55:41 +0000 (12:55 -0700)
commitc22756a9978e8f5917ff41cf17fc8db00d09e776
treec24302511da30f770ef6654e825d156315e4da1a
parentf7ba87dfa8e42642d43faf29a71cee338086218b
fscrypt: pass a real sector_t to fscrypt_zeroout_range_inline_crypt

While the pblk argument to fscrypt_zeroout_range_inline_crypt is
declared as a sector_t it actually is interpreted as a logical block
size unit, which is highly unusual.  Switch to passing the 512 byte
units that sector_t is defined for.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/crypto/bio.c