Skip to content

Commit bf1c74c

Browse files
fdmananakdave
authored andcommitted
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 <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 17a85f5 commit bf1c74c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1971,7 +1971,7 @@ static vm_fault_t btrfs_page_mkwrite(struct vm_fault *vmf)
19711971
out:
19721972
btrfs_delalloc_release_extents(BTRFS_I(inode), fsize);
19731973
btrfs_delalloc_release_space(BTRFS_I(inode), data_reserved, page_start,
1974-
reserved_space, (ret != 0));
1974+
reserved_space, true);
19751975
out_noreserve:
19761976
sb_end_pagefault(inode->i_sb);
19771977
extent_changeset_free(data_reserved);

0 commit comments

Comments
 (0)