aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-08-10 14:06:19 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-08-10 14:06:19 -0400
commite9d0b13b5bbb58c9b840e407a8d181442f799966 (patch)
treed51a7e111a824e883c347c83745109400231de1c /fs/btrfs/super.c
parent409eb95d7f6632d5af32b795244ce68a29e49319 (diff)
Btrfs: Btree defrag on the extent-mapping tree as well
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 2e797d5fb281..74f3de47423c 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -121,7 +121,9 @@ static int btrfs_sync_fs(struct super_block *sb, int wait)
121 filemap_flush(root->fs_info->btree_inode->i_mapping); 121 filemap_flush(root->fs_info->btree_inode->i_mapping);
122 return 0; 122 return 0;
123 } 123 }
124 btrfs_clean_old_snapshots(root);
124 mutex_lock(&root->fs_info->fs_mutex); 125 mutex_lock(&root->fs_info->fs_mutex);
126 btrfs_defrag_dirty_roots(root->fs_info);
125 trans = btrfs_start_transaction(root, 1); 127 trans = btrfs_start_transaction(root, 1);
126 ret = btrfs_commit_transaction(trans, root); 128 ret = btrfs_commit_transaction(trans, root);
127 sb->s_dirt = 0; 129 sb->s_dirt = 0;