summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-10 19:04:32 +0100
committerDavid Sterba <dsterba@suse.com>2017-02-17 12:03:51 +0100
commiteece6a9cf69140fe1886f14d9a96add4f9929d78 (patch)
tree35bcad5e8108678f88751d44bf2ab298c4cce4be /fs/btrfs/transaction.c
parentb75f50624394fff4f0e6521fda673317d5b79309 (diff)
downloadlinux-eece6a9cf69140fe1886f14d9a96add4f9929d78.tar.gz
linux-eece6a9cf69140fe1886f14d9a96add4f9929d78.tar.bz2
linux-eece6a9cf69140fe1886f14d9a96add4f9929d78.zip
btrfs: merge two superblock writing helpers
write_all_supers and write_ctree_super are almost equal, the parameter 'trans' is unused so we can drop it and have just one helper. Reviewed-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r--fs/btrfs/transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index 5eefd77bafc7..c27f22232093 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -2257,7 +2257,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans)
goto scrub_continue;
}
- ret = write_ctree_super(trans, fs_info, 0);
+ ret = write_all_supers(fs_info, 0);
if (ret) {
mutex_unlock(&fs_info->tree_log_mutex);
goto scrub_continue;