]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: pass true to btrfs_delalloc_release_space() at btrfs_page_mkwrite()
authorFilipe Manana <fdmanana@suse.com>
Mon, 12 May 2025 07:55:42 +0000 (08:55 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 16:24:15 +0000 (18:24 +0200)
commitbf1c74ccba9893adee482fbf6ce84b781e5008a3
treeaedcb7e1bb87f72833dc9820ee6262b902d4865c
parent17a85f520469a1838379de8ad24f63e778f7c277
btrfs: pass true to btrfs_delalloc_release_space() at btrfs_page_mkwrite()

In the last call to btrfs_delalloc_release_space() where the value of the
variable 'ret' is never zero, we pass the expression 'ret != 0' as the
value for the argument 'qgroup_free', which always evaluates to true.
Make this less confusing and more clear by explicitly passing true
instead.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c