Re: [PATCH v3] hfs: remove BUG() from hfs_release_folio()/hfs_test_inode()/hfs_write_inode()

From: Tetsuo Handa
Date: Fri Jul 25 2025 - 18:26:25 EST


On 2025/07/26 2:45, Viacheslav Dubeyko wrote:
> If we manage the inode IDs properly in hfs_read_inode(), then hfs_write_inode()
> never will receive the invalid inode ID. I don't see the point to remove the
> BUG() in hfs_write_inode().

As long as we don't check that rec.dir.DirID is HFS_ROOT_CNID at hfs_fill_super(),
hfs_write_inode() shall receive the invalid inode ID upon unmount operation.