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.