]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove useless check for copy_items() return value
authorFilipe Manana <fdmanana@suse.com>
Tue, 21 Apr 2020 10:25:31 +0000 (11:25 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:27 +0000 (11:25 +0200)
commitc4155bc4b0cc919fad27e731d29003c22b54f59c
treeeb68e46eb78d3bbf61f5cd778ca61607e6d17a0e
parentf87e0a7ad61cb9febf3deda6c01531ee38daeb46
btrfs: remove useless check for copy_items() return value

At btrfs_log_prealloc_extents() we are checking if copy_items() returns a
value greater than 0. That used to happen in the past to signal the caller
that the path given to it was released and reused for other searches, but
as of commit 3f9b0a7b5f74f5 ("Btrfs: fix missing hole after hole punching
and fsync when using NO_HOLES"), the copy_items() function does not have
that behaviour anymore and always returns 0 or a negative value. So just
remove that check at btrfs_log_prealloc_extents(), which the previously
mentioned commit forgot to remove.

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/tree-log.c