diff options
author | 2025-07-09 16:26:13 +0100 | |
---|---|---|
committer | 2025-07-22 00:09:22 +0200 | |
commit | 68e0fcc3617b7a61ab93eeb6d8b935046d152685 (patch) | |
tree | 42cf7164e976b2dcb03804e1e220e788e6178119 /tools/perf/scripts/python | |
parent | btrfs: update function comment for btrfs_check_nocow_lock() (diff) | |
download | wireguard-linux-68e0fcc3617b7a61ab93eeb6d8b935046d152685.tar.xz wireguard-linux-68e0fcc3617b7a61ab93eeb6d8b935046d152685.zip |
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions