]> Gentwo Git Trees - linux/.git/commit
btrfs: disable various operations on encrypted inodes
authorOmar Sandoval <osandov@osandov.com>
Tue, 18 Nov 2025 16:08:38 +0000 (17:08 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 25 Nov 2025 00:50:56 +0000 (01:50 +0100)
commitf96834005386a1e44571e4077eaa7a43d9ca2318
treed26abc61671ffc7dd1142af450b8a68a1271a06a
parent4357dd76f558f03fe22f28c360f7798ee3a0d238
btrfs: disable various operations on encrypted inodes

Initially, only normal data extents will be encrypted. This change
forbids various other bits:

- allows reflinking only if both inodes have the same encryption status
- disable inline data on encrypted inodes

Note: The patch was taken from v5 of fscrypt patchset
(https://lore.kernel.org/linux-btrfs/cover.1706116485.git.josef@toxicpanda.com/)
which was handled over time by various people: Omar Sandoval, Sweet Tea
Dorminy, Josef Bacik.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
Signed-off-by: Daniel Vacek <neelx@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ add note ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c
fs/btrfs/reflink.c