All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikolay Borisov <nborisov@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: Nikolay Borisov <nborisov@suse.com>
Subject: [PATCH 02/34] btrfs: Remove fs_info from insert_extent_data_ref
Date: Wed, 20 Jun 2018 15:48:44 +0300	[thread overview]
Message-ID: <1529498956-4241-3-git-send-email-nborisov@suse.com> (raw)
In-Reply-To: <1529498956-4241-1-git-send-email-nborisov@suse.com>

This function is always called with a valid transaction handle from
where fs_info can be referenced. So remove the redundant argument.
No functional changes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
---
 fs/btrfs/extent-tree.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index f0e40884a908..5fc44c2e3e18 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -1304,13 +1304,12 @@ static noinline int lookup_extent_data_ref(struct btrfs_trans_handle *trans,
 }
 
 static noinline int insert_extent_data_ref(struct btrfs_trans_handle *trans,
-					   struct btrfs_fs_info *fs_info,
 					   struct btrfs_path *path,
 					   u64 bytenr, u64 parent,
 					   u64 root_objectid, u64 owner,
 					   u64 offset, int refs_to_add)
 {
-	struct btrfs_root *root = fs_info->extent_root;
+	struct btrfs_root *root = trans->fs_info->extent_root;
 	struct btrfs_key key;
 	struct extent_buffer *leaf;
 	u32 size;
@@ -2002,9 +2001,9 @@ static int insert_extent_backref(struct btrfs_trans_handle *trans,
 		ret = insert_tree_block_ref(trans, path, bytenr, parent,
 					    root_objectid);
 	} else {
-		ret = insert_extent_data_ref(trans, fs_info, path, bytenr,
-					     parent, root_objectid,
-					     owner, offset, refs_to_add);
+		ret = insert_extent_data_ref(trans, path, bytenr, parent,
+					     root_objectid, owner, offset,
+					     refs_to_add);
 	}
 	return ret;
 }
-- 
2.7.4


  parent reply	other threads:[~2018-06-20 12:49 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-20 12:48 [PATCH 00/34] fs_info cleanup of extent-tree.c Nikolay Borisov
2018-06-20 12:48 ` [PATCH 01/34] btrfs: Remove fs_info from insert_tree_block_ref Nikolay Borisov
2018-06-20 12:48 ` Nikolay Borisov [this message]
2018-06-20 12:48 ` [PATCH 03/34] btrfs: Remove fs_info argument from insert_extent_backref Nikolay Borisov
2018-06-20 12:48 ` [PATCH 04/34] btrfs: Remove fs_info from remove_extent_data_ref Nikolay Borisov
2018-06-20 12:48 ` [PATCH 05/34] btrfs: Remove fs_info from fixup_low_keys Nikolay Borisov
2018-06-20 12:48 ` [PATCH 06/34] btrfs: Remove fs_info from lookup_inline_extent_backref Nikolay Borisov
2018-06-20 12:48 ` [PATCH 07/34] btrfs: Remove fs_info argument from update_inline_extent_backref Nikolay Borisov
2018-06-20 12:48 ` [PATCH 08/34] btrfs: Remove fs_info argument from lookup_tree_block_ref Nikolay Borisov
2018-06-20 12:48 ` [PATCH 09/34] btrfs: Remove fs_info argument from lookup_extent_data_ref Nikolay Borisov
2018-06-20 12:48 ` [PATCH 10/34] btrfs: Remove fs_info from lookup_extent_backref Nikolay Borisov
2018-06-20 12:48 ` [PATCH 11/34] btrfs: Remove fs_info from btrfs_add_delayed_tree_ref Nikolay Borisov
2018-06-20 12:48 ` [PATCH 12/34] btrfs: Remove fs_info from btrfs_add_delayed_data_ref Nikolay Borisov
2018-06-20 12:48 ` [PATCH 13/34] btrfs: Remove fs_info from btrfs_make_block_group Nikolay Borisov
2018-06-20 12:48 ` [PATCH 14/34] btrfs: Remove fs_info from btrfs_remove_block_group Nikolay Borisov
2018-06-20 12:48 ` [PATCH 15/34] btrfs: Remove fs_info from __btrfs_free_extent Nikolay Borisov
2018-06-20 12:48 ` [PATCH 16/34] btrfs: Remove fs_info from alloc_reserved_file_extent Nikolay Borisov
2018-06-20 12:48 ` [PATCH 17/34] btrfs: Remove fs_info argument from __btrfs_inc_extent_ref Nikolay Borisov
2018-06-20 12:49 ` [PATCH 18/34] btrfs: Remove fs_info from run_delayed_data_ref Nikolay Borisov
2018-06-20 12:49 ` [PATCH 19/34] btrfs: Remove fs_info from run_delayed_extent_op Nikolay Borisov
2018-06-20 12:49 ` [PATCH 20/34] btrfs: Remove unused fs_info from cleanup_extent_op Nikolay Borisov
2018-06-20 12:49 ` [PATCH 21/34] btrfs: Remove fs_info from cleanup_ref_head Nikolay Borisov
2018-06-20 12:49 ` [PATCH 22/34] btrfs: Remove fs_info from run_delayed_tree_ref Nikolay Borisov
2018-06-20 12:49 ` [PATCH 23/34] btrfs: Remove fs_info from do_chunk_alloc Nikolay Borisov
2018-06-20 12:49 ` [PATCH 24/34] btrfs: Remove fs_info from btrfs_alloc_chunk Nikolay Borisov
2018-06-20 12:49 ` [PATCH 25/34] btrfs: Remove fs_info from check_system_chunk Nikolay Borisov
2018-06-20 12:49 ` [PATCH 26/34] btrfs: Remove fs_info from free_excluded_extents Nikolay Borisov
2018-06-20 12:49 ` [PATCH 27/34] btrfs: Remove fs_info from exclude_super_stripes Nikolay Borisov
2018-06-20 12:49 ` [PATCH 28/34] btrfs: Remove fs_info from insert_inline_extent_backref Nikolay Borisov
2018-06-20 12:49 ` [PATCH 29/34] btrfs: Remove fs_info from run_one_delayed_ref Nikolay Borisov
2018-06-20 12:49 ` [PATCH 30/34] btrfs: Remove fs_info from remove_extent_backref Nikolay Borisov
2018-06-20 12:49 ` [PATCH 31/34] btrfs: Remove fs_info from btrfs_alloc_logged_file_extent Nikolay Borisov
2018-06-20 12:49 ` [PATCH 32/34] btrfs: Remove fs_info from btrfs_inc_block_group_ro Nikolay Borisov
2018-06-20 12:49 ` [PATCH 33/34] btrfs: Remove fs_info from btrfs_force_chunk_alloc Nikolay Borisov
2018-06-20 12:49 ` [PATCH 34/34] btrfs: Remove fs_info from convert_extent_item_v0 Nikolay Borisov
2018-06-21  2:05   ` Qu Wenruo
2018-06-21  5:23     ` Nikolay Borisov
2018-06-21  2:08 ` [PATCH 00/34] fs_info cleanup of extent-tree.c Qu Wenruo
2018-06-21 13:31 ` David Sterba
2018-06-21 15:03 ` (about compiler optimization) " Qu Wenruo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1529498956-4241-3-git-send-email-nborisov@suse.com \
    --to=nborisov@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.