Btrfs: Fine tune the btree writeback exclusion some more
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
@@ -214,6 +214,10 @@ static int btree_writepages(struct address_space *mapping,
|
||||
u64 num_dirty;
|
||||
u64 start = 0;
|
||||
unsigned long thresh = 96 * 1024 * 1024;
|
||||
|
||||
if (wbc->for_kupdate)
|
||||
return 0;
|
||||
|
||||
num_dirty = count_range_bits(tree, &start, thresh, EXTENT_DIRTY);
|
||||
if (num_dirty < thresh) {
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user