]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/btrfs/super.c
Btrfs: Optimize compressed writeback and reads
[linux-2.6-omap-h63xx.git] / fs / btrfs / super.c
index 431fdf144b585709afe6f6f50f81df2f8b0021e6..ab9d5e89ed13aab7fbf0a20173bad725404ade73 100644 (file)
@@ -375,6 +375,10 @@ int btrfs_sync_fs(struct super_block *sb, int wait)
                filemap_flush(root->fs_info->btree_inode->i_mapping);
                return 0;
        }
+
+       btrfs_start_delalloc_inodes(root);
+       btrfs_wait_ordered_extents(root, 0);
+
        btrfs_clean_old_snapshots(root);
        trans = btrfs_start_transaction(root, 1);
        ret = btrfs_commit_transaction(trans, root);