aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 8a74f9027d65..de0552532d23 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -214,6 +214,10 @@ static int btree_writepages(struct address_space *mapping,
214 u64 num_dirty; 214 u64 num_dirty;
215 u64 start = 0; 215 u64 start = 0;
216 unsigned long thresh = 96 * 1024 * 1024; 216 unsigned long thresh = 96 * 1024 * 1024;
217
218 if (wbc->for_kupdate)
219 return 0;
220
217 num_dirty = count_range_bits(tree, &start, thresh, EXTENT_DIRTY); 221 num_dirty = count_range_bits(tree, &start, thresh, EXTENT_DIRTY);
218 if (num_dirty < thresh) { 222 if (num_dirty < thresh) {
219 return 0; 223 return 0;