OSDN Git Service

btrfs: Refactor shrink_delalloc
authorNikolay Borisov <nborisov@suse.com>
Thu, 3 Jan 2019 08:50:05 +0000 (10:50 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:20 +0000 (14:13 +0100)
commit420829d8ea13976e084be8cc2531b52f81e6dd02
treefb1727588149aaece64b5e17b5bca32e6aba11d0
parent4546d178745d5d5f78352a275cf50caa47528436
btrfs: Refactor shrink_delalloc

Add a couple of comments regarding the logic flow in shrink_delalloc.
Then, cease using max_reclaim as a temporary variable when calculating
nr_pages. Finally give max_reclaim a more becoming name, which
uneqivocally shows at what this variable really holds. No functional
changes.

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