Message ID | 799e9c2e9ae466a1a52a83b6afd12cb4449086a3.1740043233.git.wqu@suse.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | btrfs: prepare for larger folios support | expand |
On 20.02.25 10:26, Qu Wenruo wrote: > That function is only calling btrfs_qgroup_free_data(), which doesn't > care the size of the folio. about~^ > Just replace the fixed PAGE_SIZE with folio_size(). Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index d9ca92d1b927..c88aa961af51 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -7270,7 +7270,7 @@ static void wait_subpage_spinlock(struct folio *folio) static int btrfs_launder_folio(struct folio *folio) { return btrfs_qgroup_free_data(folio_to_inode(folio), NULL, folio_pos(folio), - PAGE_SIZE, NULL); + folio_size(folio), NULL); } static bool __btrfs_release_folio(struct folio *folio, gfp_t gfp_flags)
That function is only calling btrfs_qgroup_free_data(), which doesn't care the size of the folio. Just replace the fixed PAGE_SIZE with folio_size(). Signed-off-by: Qu Wenruo <wqu@suse.com> --- fs/btrfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)