]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fscrypt: pass a byte offset to fscrypt_generate_dun
authorChristoph Hellwig <hch@lst.de>
Mon, 2 Mar 2026 14:18:11 +0000 (06:18 -0800)
committerEric Biggers <ebiggers@kernel.org>
Mon, 9 Mar 2026 20:31:50 +0000 (13:31 -0700)
commit60b4fcb49efe7f07aaa92c8d7933ac37b3be85b2
tree90a1b59993b31f372e1e6996338424057e432252
parenta18b1ab81654b06e7ff402e5d0b85249e9504bcb
fscrypt: pass a byte offset to fscrypt_generate_dun

Logical offsets into an inode are usually expressed as bytes in the VFS.
Switch fscrypt_generate_dun to that convention and remove the
ci_data_units_per_block_bits member in struct fscrypt_inode_info that
was only used to cache the DUN shift based on the logical block size
granularity.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20260302141922.370070-7-hch@lst.de
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
fs/crypto/fscrypt_private.h
fs/crypto/inline_crypt.c
fs/crypto/keysetup.c