]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Make flush_space return void
authorNikolay Borisov <nborisov@suse.com>
Tue, 25 Jul 2017 14:48:28 +0000 (17:48 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 14:12:04 +0000 (16:12 +0200)
commitdcc0ea32730497f4664007b88692b14a8c1a9365
treee76b5fb829ef07acfaeeb7f22869a61efe79d7c5
parenteceff437d604e2db4fdcf270f936435998f761a1
btrfs: Make flush_space return void

The return value of flush_space was used to have significance in the
early days when the code was first introduced and before the ticketed
enospc rework. Since the latter got introduced the return value lost any
significance whatsoever to its callers. So let's remove it. While at it
also remove the unused ticket variable in
btrfs_async_reclaim_metadata_space. It was used in the initial version
of the ticketed ENOSPC work, however Wang Xiaoguang detected a problem
with this and fixed it in 3aee2e008331 ("btrfs: introduce tickets_id to
determine whether asynchronous metadata reclaim work makes progress").

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ add comment ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c