linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: David Sterba <dsterba@suse.com>
Subject: [PATCH 20/25] btrfs: drop unused parameter fs_info from folio_range_has_eb()
Date: Wed,  9 Oct 2024 16:32:05 +0200	[thread overview]
Message-ID: <6cd727c0954d96bb8d3b51c11c0af5a0bfa7a569.1728484021.git.dsterba@suse.com> (raw)
In-Reply-To: <cover.1728484021.git.dsterba@suse.com>

The parameter was added in 8ff8466d29efc2 ("btrfs: support subpage for
extent buffer page release") for page but hasn't been used since, so we
can drop it.

Signed-off-by: David Sterba <dsterba@suse.com>
---
 fs/btrfs/extent_io.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 59c47cb8e538..7b68c9da691b 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2506,7 +2506,7 @@ static int extent_buffer_under_io(const struct extent_buffer *eb)
 		test_bit(EXTENT_BUFFER_DIRTY, &eb->bflags));
 }
 
-static bool folio_range_has_eb(struct btrfs_fs_info *fs_info, struct folio *folio)
+static bool folio_range_has_eb(struct folio *folio)
 {
 	struct btrfs_subpage *subpage;
 
@@ -2580,7 +2580,7 @@ static void detach_extent_buffer_folio(const struct extent_buffer *eb, struct fo
 	 * We can only detach the folio private if there are no other ebs in the
 	 * page range and no unfinished IO.
 	 */
-	if (!folio_range_has_eb(fs_info, folio))
+	if (!folio_range_has_eb(folio))
 		btrfs_detach_subpage(fs_info, folio);
 
 	spin_unlock(&folio->mapping->i_private_lock);
-- 
2.45.0


  parent reply	other threads:[~2024-10-09 14:32 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 ` [PATCH 09/25] btrfs: drop unused parameter map from scrub_simple_mirror() David Sterba
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 ` David Sterba [this message]
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=6cd727c0954d96bb8d3b51c11c0af5a0bfa7a569.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).