]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: remove no longer needed strict argument from can_nocow_extent()
authorFilipe Manana <fdmanana@suse.com>
Mon, 9 Dec 2024 14:54:51 +0000 (14:54 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Jan 2025 13:53:16 +0000 (14:53 +0100)
commit6c440755244e0044b3de37c3e5b334e46b4d93a6
tree6e9f31ef31cac66d8c514c45d8a4166a50833216
parent4016358e852861d3a84a41fb3adea540443f7c96
btrfs: remove no longer needed strict argument from can_nocow_extent()

All callers of can_nocow_extent() now pass a value of false for its
'strict' argument, making it redundant. So remove the argument from
can_nocow_extent() as well as can_nocow_file_extent(),
btrfs_cross_ref_exist() and check_committed_ref(), because this
argument was used just to influence the behavior of check_committed_ref().
Also remove the 'strict' field from struct can_nocow_file_extent_args,
which is now always false as well, as its value is taken from the
argument to can_nocow_extent().

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/direct-io.c
fs/btrfs/extent-tree.c
fs/btrfs/extent-tree.h
fs/btrfs/file.c
fs/btrfs/inode.c