summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-10 13:04:32 -0500
committerDavid Sterba <dsterba@suse.com>2017-02-17 06:03:51 -0500
commiteece6a9cf69140fe1886f14d9a96add4f9929d78 (patch)
tree35bcad5e8108678f88751d44bf2ab298c4cce4be /fs/btrfs/tree-log.c
parentb75f50624394fff4f0e6521fda673317d5b79309 (diff)
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/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index cea93ba1f099..62dd138018b5 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -2961,7 +2961,7 @@ int btrfs_sync_log(struct btrfs_trans_handle *trans,
2961 * the running transaction open, so a full commit can't hop 2961 * the running transaction open, so a full commit can't hop
2962 * in and cause problems either. 2962 * in and cause problems either.
2963 */ 2963 */
2964 ret = write_ctree_super(trans, fs_info, 1); 2964 ret = write_all_supers(fs_info, 1);
2965 if (ret) { 2965 if (ret) {
2966 btrfs_set_log_full_commit(fs_info, trans); 2966 btrfs_set_log_full_commit(fs_info, trans);
2967 btrfs_abort_transaction(trans, ret); 2967 btrfs_abort_transaction(trans, ret);