]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4/jbd2: convert jbd2_journal_blocks_per_page() to support large folio
authorZhang Yi <yi.zhang@huawei.com>
Mon, 12 May 2025 06:33:15 +0000 (14:33 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 20 May 2025 14:31:12 +0000 (10:31 -0400)
commitd6bf294773a472fe4694b92714af482f5c6aa4c6
treee84c063bcc14757b3682ea513128217aa0433389
parent2e9466fc5d7c74a0aeeb388c3c2a4c02b7069d58
ext4/jbd2: convert jbd2_journal_blocks_per_page() to support large folio

jbd2_journal_blocks_per_page() returns the number of blocks in a single
page. Rename it to jbd2_journal_blocks_per_folio() and make it returns
the number of blocks in the largest folio, preparing for the calculation
of journal credits blocks when allocating blocks within a large folio in
the writeback path.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20250512063319.3539411-5-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4_jbd2.h
fs/ext4/inode.c
fs/jbd2/journal.c
include/linux/jbd2.h