summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2024-10-09 16:32:05 +0200
committerDavid Sterba <dsterba@suse.com>2024-11-11 14:34:17 +0100
commitec315b4b9f66794a63961cb06df9212abe0819a9 (patch)
treee0b5701dd85a6be2711976d194e5a06ecca710e8
parent2decc288eba4b43f8b38096ac3c65b8c9c67d15f (diff)
downloadlwn-ec315b4b9f66794a63961cb06df9212abe0819a9.tar.gz
lwn-ec315b4b9f66794a63961cb06df9212abe0819a9.zip
btrfs: drop unused parameter fs_info from folio_range_has_eb()
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. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/extent_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 2b3e5ef60b29..999d5cdad3c0 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2507,7 +2507,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;
@@ -2581,7 +2581,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);