]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit70c831c01f7677141f589474f9e6193eb7f500d9
treefb1727588149aaece64b5e17b5bca32e6aba11d0
parent341eae24b3aa67cdbfec3dfec51b8bb3d52df870
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