提交 dcfac415 编写于 作者: L Liu Bo 提交者: Josef Bacik

Btrfs: kill unused argument of btrfs_pin_extent_for_log_replay

Argument 'trans' is not used any more.
Signed-off-by: NLiu Bo <bo.li.liu@oracle.com>
Signed-off-by: NJosef Bacik <jbacik@fusionio.com>
上级 c53d613e
...@@ -2939,8 +2939,7 @@ int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans, ...@@ -2939,8 +2939,7 @@ int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans,
u64 num_bytes, u64 *refs, u64 *flags); u64 num_bytes, u64 *refs, u64 *flags);
int btrfs_pin_extent(struct btrfs_root *root, int btrfs_pin_extent(struct btrfs_root *root,
u64 bytenr, u64 num, int reserved); u64 bytenr, u64 num, int reserved);
int btrfs_pin_extent_for_log_replay(struct btrfs_trans_handle *trans, int btrfs_pin_extent_for_log_replay(struct btrfs_root *root,
struct btrfs_root *root,
u64 bytenr, u64 num_bytes); u64 bytenr, u64 num_bytes);
int btrfs_cross_ref_exist(struct btrfs_trans_handle *trans, int btrfs_cross_ref_exist(struct btrfs_trans_handle *trans,
struct btrfs_root *root, struct btrfs_root *root,
......
...@@ -4898,8 +4898,7 @@ int btrfs_pin_extent(struct btrfs_root *root, ...@@ -4898,8 +4898,7 @@ int btrfs_pin_extent(struct btrfs_root *root,
/* /*
* this function must be called within transaction * this function must be called within transaction
*/ */
int btrfs_pin_extent_for_log_replay(struct btrfs_trans_handle *trans, int btrfs_pin_extent_for_log_replay(struct btrfs_root *root,
struct btrfs_root *root,
u64 bytenr, u64 num_bytes) u64 bytenr, u64 num_bytes)
{ {
struct btrfs_block_group_cache *cache; struct btrfs_block_group_cache *cache;
......
...@@ -278,8 +278,7 @@ static int process_one_buffer(struct btrfs_root *log, ...@@ -278,8 +278,7 @@ static int process_one_buffer(struct btrfs_root *log,
struct walk_control *wc, u64 gen) struct walk_control *wc, u64 gen)
{ {
if (wc->pin) if (wc->pin)
btrfs_pin_extent_for_log_replay(wc->trans, btrfs_pin_extent_for_log_replay(log->fs_info->extent_root,
log->fs_info->extent_root,
eb->start, eb->len); eb->start, eb->len);
if (btrfs_buffer_uptodate(eb, gen, 0)) { if (btrfs_buffer_uptodate(eb, gen, 0)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册