Skip to content

Commit

Permalink
btrfs: drop unused parameter fs_info from folio_range_has_eb()
Browse files Browse the repository at this point in the history
The parameter was added in 8ff8466 ("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>
  • Loading branch information
David Sterba committed Nov 11, 2024
1 parent 2decc28 commit ec315b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ec315b4

Please sign in to comment.