[PATCH v1 0/3] affs: fix OFS i_size, sb_getblk NULLs, and rename rollback

From: Xixin Liu

Date: Tue Jul 14 2026 - 05:29:35 EST


Hi,

This series fixes three correctness bugs in AFFS error paths.

Patch 1: OFS hole extend failure left i_size at the full newsize;
set i_size/mmu_private to the bytes actually extended and
brelse prev_bh on the error path.

Patch 2: NULL-check sb_getblk() in getzeroblk/getemptyblk before
lock_buffer/wait_on_buffer.

Patch 3: rename/xrename: after remove_hash succeeds, roll back on
failed insert_hash so the object is not lost from both directories.

Please review.

Thanks,
Xixin Liu