Btrfs: Add some simple throttling to wait for data=ordered and snapshot deletion
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
@@ -800,6 +800,7 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf,
|
||||
balance_dirty_pages_ratelimited_nr(inode->i_mapping, num_pages);
|
||||
if (num_pages < (root->leafsize >> PAGE_CACHE_SHIFT) + 1)
|
||||
btrfs_btree_balance_dirty(root, 1);
|
||||
btrfs_throttle(root);
|
||||
cond_resched();
|
||||
}
|
||||
out:
|
||||
|
مرجع در شماره جدید
Block a user