summaryrefslogtreecommitdiff
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-07-09 16:26:13 +0100
committerDavid Sterba <dsterba@suse.com>2025-07-22 00:09:22 +0200
commit68e0fcc3617b7a61ab93eeb6d8b935046d152685 (patch)
tree42cf7164e976b2dcb03804e1e220e788e6178119 /rust/helpers/platform.c
parentc6482cff95c77a3c1fc0120c6e8ef7b15f85439b (diff)
btrfs: assert we can NOCOW the range in btrfs_truncate_block()
We call btrfs_check_nocow_lock() to see if we can NOCOW a block sized range but we don't check later if we can NOCOW the whole range. It's unexpected to be able to NOCOW a range smaller than blocksize, so add an assertion to check the NOCOW range matches the blocksize. Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions