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

Xixin Liu posted 3 patches 1 week, 4 days ago
[PATCH v1 0/3] affs: fix OFS i_size, sb_getblk NULLs, and rename rollback
Posted by Xixin Liu 1 week, 4 days ago
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