summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2016-09-09 21:39:03 -0400
committerDavid Sterba <dsterba@suse.com>2016-12-06 10:07:00 -0500
commit3a45bb207ee2c5548ebf6f5fcc7d249e141f15e8 (patch)
treea1739986199aebac91eca65c5eed7cbe7ad4fded /fs/btrfs/tree-log.c
parentbf89d38febaadd5b1da60fed54929cbde65fedf9 (diff)
btrfs: remove root parameter from transaction commit/end routines
Now we only use the root parameter to print the root objectid in a tracepoint. We can use the root parameter from the transaction handle for that. It's also used to join the transaction with async commits, so we remove the comment that it's just for checking. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index 61c7f6f3034e..f7324189413c 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -5695,7 +5695,7 @@ again:
5695 btrfs_free_path(path); 5695 btrfs_free_path(path);
5696 5696
5697 /* step 4: commit the transaction, which also unpins the blocks */ 5697 /* step 4: commit the transaction, which also unpins the blocks */
5698 ret = btrfs_commit_transaction(trans, fs_info->tree_root); 5698 ret = btrfs_commit_transaction(trans);
5699 if (ret) 5699 if (ret)
5700 return ret; 5700 return ret;
5701 5701
@@ -5707,7 +5707,7 @@ again:
5707 return 0; 5707 return 0;
5708error: 5708error:
5709 if (wc.trans) 5709 if (wc.trans)
5710 btrfs_end_transaction(wc.trans, fs_info->tree_root); 5710 btrfs_end_transaction(wc.trans);
5711 btrfs_free_path(path); 5711 btrfs_free_path(path);
5712 return ret; 5712 return ret;
5713} 5713}