aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 708ac06b953b..52d84522c2c2 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -397,7 +397,6 @@ int btrfs_sync_fs(struct super_block *sb, int wait)
397 if (sb->s_flags & MS_RDONLY) 397 if (sb->s_flags & MS_RDONLY)
398 return 0; 398 return 0;
399 399
400 sb->s_dirt = 0;
401 if (!wait) { 400 if (!wait) {
402 filemap_flush(root->fs_info->btree_inode->i_mapping); 401 filemap_flush(root->fs_info->btree_inode->i_mapping);
403 return 0; 402 return 0;
@@ -408,7 +407,6 @@ int btrfs_sync_fs(struct super_block *sb, int wait)
408 407
409 trans = btrfs_start_transaction(root, 1); 408 trans = btrfs_start_transaction(root, 1);
410 ret = btrfs_commit_transaction(trans, root); 409 ret = btrfs_commit_transaction(trans, root);
411 sb->s_dirt = 0;
412 return ret; 410 return ret;
413} 411}
414 412
@@ -454,11 +452,6 @@ static int btrfs_show_options(struct seq_file *seq, struct vfsmount *vfs)
454 return 0; 452 return 0;
455} 453}
456 454
457static void btrfs_write_super(struct super_block *sb)
458{
459 sb->s_dirt = 0;
460}
461
462static int btrfs_test_super(struct super_block *s, void *data) 455static int btrfs_test_super(struct super_block *s, void *data)
463{ 456{
464 struct btrfs_fs_devices *test_fs_devices = data; 457 struct btrfs_fs_devices *test_fs_devices = data;
@@ -689,7 +682,6 @@ static int btrfs_unfreeze(struct super_block *sb)
689static struct super_operations btrfs_super_ops = { 682static struct super_operations btrfs_super_ops = {
690 .delete_inode = btrfs_delete_inode, 683 .delete_inode = btrfs_delete_inode,
691 .put_super = btrfs_put_super, 684 .put_super = btrfs_put_super,
692 .write_super = btrfs_write_super,
693 .sync_fs = btrfs_sync_fs, 685 .sync_fs = btrfs_sync_fs,
694 .show_options = btrfs_show_options, 686 .show_options = btrfs_show_options,
695 .write_inode = btrfs_write_inode, 687 .write_inode = btrfs_write_inode,