This series implements a few cleanups that have been suggested in the thread "[RFC PATCH 00/11] fs-verity support for XFS" (https://lore.kernel.org/linux-fsdevel/20221213172935.680971-1-aalbersh@xxxxxxxxxx/T/#u). This applies to mainline (commit 93761c93e9da). Eric Biggers (4): fsverity: optimize fsverity_file_open() on non-verity files fsverity: optimize fsverity_prepare_setattr() on non-verity files fsverity: optimize fsverity_cleanup_inode() on non-verity files fsverity: pass pos and size to ->write_merkle_tree_block fs/btrfs/verity.c | 19 ++++------- fs/ext4/verity.c | 6 ++-- fs/f2fs/verity.c | 6 ++-- fs/verity/enable.c | 4 +-- fs/verity/open.c | 46 ++++--------------------- include/linux/fsverity.h | 74 +++++++++++++++++++++++++++++++++------- 6 files changed, 84 insertions(+), 71 deletions(-) base-commit: 93761c93e9da28d8a020777cee2a84133082b477 -- 2.38.1