[PATCH 0/3] jfs: remove leftover struct page usage

From: Tal Zussman

Date: Tue Nov 17 2026 - 01:57:02 EST


A few small cleanups to get rid of struct page usage in jfs.

Patch 1 drops the kmap() of metapage folios. The metadata mappings never
allocate from highmem, so it is a no-op. Patch 2 allocates the log
buffers with kmalloc() instead of splitting up pages. Patch 3 fixes an
error message that refers to read_mapping_page() instead of
read_mapping_folio().

Tested with fsx, fsstress, and the xfstests cases that exercise jfs
metadata, the log, and the data path, on jfs over a loop device under
KASAN. Results are identical before and after the series.

---
Tal Zussman (3):
jfs: stop kmapping metapage folios
jfs: allocate the log buffers with kmalloc()
jfs: fix the read_mapping_folio() error message

fs/jfs/jfs_imap.c | 1 +
fs/jfs/jfs_logmgr.c | 45 ++++++++++++++++-----------------------------
fs/jfs/jfs_logmgr.h | 2 --
fs/jfs/jfs_metapage.c | 13 ++++---------
fs/jfs/jfs_metapage.h | 2 +-
fs/jfs/super.c | 1 +
6 files changed, 23 insertions(+), 41 deletions(-)
---
base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
change-id: 20261016-jfs-page-leftovers-14ca23de2a6b

Best regards,
--
Tal Zussman <tz2294@xxxxxxxxxxxx>