]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: make ext4_mpage_readpages() support large folios
authorZhang Yi <yi.zhang@huawei.com>
Mon, 12 May 2025 06:33:12 +0000 (14:33 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 20 May 2025 14:31:11 +0000 (10:31 -0400)
commitfdbd0df9d4a36c9091d4f7e8cdfbe76c94aab0ab
tree4f040f51472e08dc3f03ca6f07fd9ee724bf828b
parent1a77a028a392fab66dd637cdfac3f888450d00af
ext4: make ext4_mpage_readpages() support large folios

ext4_mpage_readpages() currently assumes that each folio is the size of
PAGE_SIZE. Modify it to atomically calculate the number of blocks per
folio and iterate through the blocks in each folio, which would allow
for support of larger folios.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20250512063319.3539411-2-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/readpage.c