[PATCH v8 0/6] btrfs: add fscrypt support, PART 1

Daniel Vacek
2025-11-18T16:08:53Z

This is a revive of former work [1] of Omar, Sweet Tea and Josef to bring
native encryption support to btrfs.

It will come in more parts. The first part this time is splitting the simple
and isolated stuff out first to reduce the size of the final patchset.

Changes:
* v8 - Clean my mistakenly added Signed-off-by:
* v7 - Drop the checksum patch for now. It will make more sense later.
- Drop the btrfs/330 fix. It seems no longer needed after the years.
* v6 vs v5 [1] is mostly rebase to the latest for-next and cleaning up the
conflicts.

The remaining part needs further cleanup and a bit of redesign and it will
follow later.

[1] https://lore.kernel.org/linux-btrfs/cover.1706116485.git.josef@toxicpanda.com/

Josef Bacik (4):
btrfs: add orig_logical to btrfs_bio
btrfs: don't rewrite ret from inode_permission
btrfs: move inode_to_path higher in backref.c
btrfs: don't search back for dir inode item in INO_LOOKUP_USER

Omar Sandoval (1):
btrfs: disable various operations on encrypted inodes

Sweet Tea Dorminy (1):
btrfs: disable verity on encrypted inodes

fs/btrfs/backref.c | 68 +++++++++++++++++++++-----------------------
fs/btrfs/bio.c | 10 +++++++
fs/btrfs/bio.h | 2 ++
fs/btrfs/file-item.c | 2 +-
fs/btrfs/inode.c | 4 +++
fs/btrfs/ioctl.c | 27 +++---------------
fs/btrfs/reflink.c | 7 +++++
fs/btrfs/verity.c | 3 ++
8 files changed, 63 insertions(+), 60 deletions(-)

--
2.51.0