diff options
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 196d0e280b19..b61ded7a20c9 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -366,12 +366,10 @@ int btrfs_sync_fs(struct super_block *sb, int wait) | |||
366 | return 0; | 366 | return 0; |
367 | } | 367 | } |
368 | btrfs_clean_old_snapshots(root); | 368 | btrfs_clean_old_snapshots(root); |
369 | mutex_lock(&root->fs_info->fs_mutex); | ||
370 | btrfs_defrag_dirty_roots(root->fs_info); | 369 | btrfs_defrag_dirty_roots(root->fs_info); |
371 | trans = btrfs_start_transaction(root, 1); | 370 | trans = btrfs_start_transaction(root, 1); |
372 | ret = btrfs_commit_transaction(trans, root); | 371 | ret = btrfs_commit_transaction(trans, root); |
373 | sb->s_dirt = 0; | 372 | sb->s_dirt = 0; |
374 | mutex_unlock(&root->fs_info->fs_mutex); | ||
375 | return ret; | 373 | return ret; |
376 | } | 374 | } |
377 | 375 | ||