aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-06-25 16:01:30 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:03 -0400
commit333db94cdde9e6dfdedab9290d04d812f83e0922 (patch)
treef4925bc36a8f4177d5a4f3a303ae47f3ea592b60 /fs/btrfs/disk-io.c
parent5cd57b2cbbb06a350df2698314e4e6a80805fc2f (diff)
Btrfs: Fix snapshot deletion to release the alloc_mutex much more often.
This lowers the impact of snapshot deletion on the rest of the FS. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index ffc363d2fb24..3cc480b83819 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -1674,6 +1674,7 @@ void btrfs_mark_buffer_dirty(struct extent_buffer *buf)
1674 1674
1675void btrfs_throttle(struct btrfs_root *root) 1675void btrfs_throttle(struct btrfs_root *root)
1676{ 1676{
1677#if 0
1677 struct backing_dev_info *bdi; 1678 struct backing_dev_info *bdi;
1678 1679
1679 bdi = &root->fs_info->bdi; 1680 bdi = &root->fs_info->bdi;
@@ -1686,6 +1687,7 @@ void btrfs_throttle(struct btrfs_root *root)
1686#endif 1687#endif
1687 1688
1688 } 1689 }
1690#endif
1689} 1691}
1690 1692
1691void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr) 1693void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr)