]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
btrfs: drop unused parameter fs_info from wait_reserve_ticket()
authorDavid Sterba <dsterba@suse.com>
Wed, 9 Oct 2024 14:31:02 +0000 (16:31 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:15 +0000 (14:34 +0100)
The parameter is not used, we can also reach it from the space info if
needed in the future.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/space-info.c

index ee23fae73f47364858e25d5fc2d213ec547f5562..3c7ccb3935cf074b90097be03d0a725205ee6ae9 100644 (file)
@@ -1488,8 +1488,7 @@ static void priority_reclaim_data_space(struct btrfs_fs_info *fs_info,
        spin_unlock(&space_info->lock);
 }
 
-static void wait_reserve_ticket(struct btrfs_fs_info *fs_info,
-                               struct btrfs_space_info *space_info,
+static void wait_reserve_ticket(struct btrfs_space_info *space_info,
                                struct reserve_ticket *ticket)
 
 {
@@ -1547,7 +1546,7 @@ static int handle_reserve_ticket(struct btrfs_fs_info *fs_info,
        case BTRFS_RESERVE_FLUSH_DATA:
        case BTRFS_RESERVE_FLUSH_ALL:
        case BTRFS_RESERVE_FLUSH_ALL_STEAL:
-               wait_reserve_ticket(fs_info, space_info, ticket);
+               wait_reserve_ticket(space_info, ticket);
                break;
        case BTRFS_RESERVE_FLUSH_LIMIT:
                priority_reclaim_metadata_space(fs_info, space_info, ticket,