OSDN Git Service

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)
commite38ae7a0868b02e7b183f18a4b75c8b2b68ce258
treee76b5fb829ef07acfaeeb7f22869a61efe79d7c5
parent3558d4f88ec8db65ccea5cfe5a421ee1e8cbb12b
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 ce129655c9d9 ("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