From: David Sterba <dsterba@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: David Sterba <dsterba@suse.com>
Subject: [PATCH 09/25] btrfs: drop unused parameter map from scrub_simple_mirror()
Date: Wed, 9 Oct 2024 16:31:18 +0200 [thread overview]
Message-ID: <23a41b79f9113dc3fa136da5a65a903ced95fcf4.1728484021.git.dsterba@suse.com> (raw)
In-Reply-To: <cover.1728484021.git.dsterba@suse.com>
The parameter map used to be passed to scrub_extent() until
e02ee89baa66c4 ("btrfs: scrub: switch scrub_simple_mirror() to
scrub_stripe infrastructure"), where the scrub implementation was
completely reworked.
Signed-off-by: David Sterba <dsterba@suse.com>
---
fs/btrfs/scrub.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c
index f21fc6cf07c0..204c928beaf9 100644
--- a/fs/btrfs/scrub.c
+++ b/fs/btrfs/scrub.c
@@ -2112,7 +2112,6 @@ static int scrub_raid56_parity_stripe(struct scrub_ctx *sctx,
*/
static int scrub_simple_mirror(struct scrub_ctx *sctx,
struct btrfs_block_group *bg,
- struct btrfs_chunk_map *map,
u64 logical_start, u64 logical_length,
struct btrfs_device *device,
u64 physical, int mirror_num)
@@ -2231,7 +2230,7 @@ static int scrub_simple_stripe(struct scrub_ctx *sctx,
* just RAID1, so we can reuse scrub_simple_mirror() to scrub
* this stripe.
*/
- ret = scrub_simple_mirror(sctx, bg, map, cur_logical,
+ ret = scrub_simple_mirror(sctx, bg, cur_logical,
BTRFS_STRIPE_LEN, device, cur_physical,
mirror_num);
if (ret)
@@ -2315,7 +2314,7 @@ static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx,
* Only @physical and @mirror_num needs to calculated using
* @stripe_index.
*/
- ret = scrub_simple_mirror(sctx, bg, map, bg->start, bg->length,
+ ret = scrub_simple_mirror(sctx, bg, bg->start, bg->length,
scrub_dev, map->stripes[stripe_index].physical,
stripe_index + 1);
offset = 0;
@@ -2370,7 +2369,7 @@ static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx,
* We can reuse scrub_simple_mirror() here, as the repair part
* is still based on @mirror_num.
*/
- ret = scrub_simple_mirror(sctx, bg, map, logical, BTRFS_STRIPE_LEN,
+ ret = scrub_simple_mirror(sctx, bg, logical, BTRFS_STRIPE_LEN,
scrub_dev, physical, 1);
if (ret < 0)
goto out;
--
2.45.0
next prev parent reply other threads:[~2024-10-09 14:31 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-09 14:30 [PATCH 00/25] Unused parameter cleanups David Sterba
2024-10-09 14:30 ` [PATCH 01/25] btrfs: zstd: assert the timer pointer in callback David Sterba
2024-10-09 14:30 ` [PATCH 02/25] btrfs: drop unused parameter path from btrfs_tree_mod_log_rewind() David Sterba
2024-10-09 14:30 ` [PATCH 03/25] btrfs: drop unused parameter ctx from batch_delete_dir_index_items() David Sterba
2024-10-09 14:31 ` [PATCH 04/25] btrfs: drop unused parameter fs_info from wait_reserve_ticket() David Sterba
2024-10-09 14:31 ` [PATCH 05/25] btrfs: drop unused parameter fs_info from do_reclaim_sweep() David Sterba
2024-10-09 14:31 ` [PATCH 06/25] btrfs: send: drop unused parameter num from iterate_inode_ref_t callbacks David Sterba
2024-10-09 14:31 ` [PATCH 07/25] btrfs: send: drop unused parameter index " David Sterba
2024-10-09 14:31 ` [PATCH 08/25] btrfs: scrub: drop unused parameter sctx from scrub_submit_extent_sector_read() David Sterba
2024-10-09 14:31 ` David Sterba [this message]
2024-10-09 14:31 ` [PATCH 10/25] btrfs: qgroup: drop unused parameter fs_info from __del_qgroup_rb() David Sterba
2024-10-09 14:31 ` [PATCH 11/25] btrfs: drop unused transaction parameter from btrfs_qgroup_add_swapped_blocks() David Sterba
2024-10-09 14:31 ` [PATCH 12/25] btrfs: lzo: drop unused paramter level from lzo_alloc_workspace() David Sterba
2024-10-09 14:31 ` [PATCH 13/25] btrfs: drop unused parameter argp from btrfs_ioctl_quota_rescan_wait() David Sterba
2024-10-09 14:31 ` [PATCH 14/25] btrfs: drop unused parameter inode from read_inline_extent() David Sterba
2024-10-09 14:31 ` [PATCH 15/25] btrfs: drop unused parameter offset from __cow_file_range_inline() David Sterba
2024-10-09 14:31 ` [PATCH 16/25] btrfs: drop unused parameter file_offset from btrfs_encoded_read_regular_fill_pages() David Sterba
2024-10-09 14:31 ` [PATCH 17/25] btrfs: drop unused parameter iov_iter from btrfs_write_check() David Sterba
2024-10-09 14:31 ` [PATCH 18/25] btrfs: drop unused parameter refs from visit_node_for_delete() David Sterba
2024-10-09 14:31 ` [PATCH 19/25] btrfs: drop unused parameter mask from try_release_extent_state() David Sterba
2024-10-09 14:32 ` [PATCH 20/25] btrfs: drop unused parameter fs_info from folio_range_has_eb() David Sterba
2024-10-09 14:32 ` [PATCH 21/25] btrfs: drop unused parameter options from open_ctree() David Sterba
2024-10-09 14:32 ` [PATCH 22/25] btrfs: drop unused parameter data from btrfs_fill_super() David Sterba
2024-10-09 14:32 ` [PATCH 23/25] btrfs: drop unused parameter transaction from alloc_log_tree() David Sterba
2024-10-09 14:32 ` [PATCH 24/25] btrfs: drop unused parameter fs_info from btrfs_match_dir_item_name() David Sterba
2024-10-09 14:32 ` [PATCH 25/25] btrfs: drop unused parameter level from alloc_heuristic_ws() David Sterba
2024-10-11 11:45 ` [PATCH 00/25] Unused parameter cleanups Anand Jain
2024-10-11 15:54 ` David Sterba
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=23a41b79f9113dc3fa136da5a65a903ced95fcf4.1728484021.git.dsterba@suse.com \
--to=dsterba@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).