Skip to content

Commit accaec2

Browse files
adam900710kdave
authored andcommitted
btrfs: prepare btrfs_launcher_folio() for large folios support
That function is only calling btrfs_qgroup_free_data(), which doesn't care about the size of the folio. Just replace the fixed PAGE_SIZE with folio_size(). Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent a416637 commit accaec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7297,7 +7297,7 @@ static void wait_subpage_spinlock(struct folio *folio)
72977297
static int btrfs_launder_folio(struct folio *folio)
72987298
{
72997299
return btrfs_qgroup_free_data(folio_to_inode(folio), NULL, folio_pos(folio),
7300-
PAGE_SIZE, NULL);
7300+
folio_size(folio), NULL);
73017301
}
73027302

73037303
static bool __btrfs_release_folio(struct folio *folio, gfp_t gfp_flags)

0 commit comments

Comments
 (0)