HomeFreeBSD

ffs: call ufsdirhash_dirtrunc() right after setting directory size

Description

ffs: call ufsdirhash_dirtrunc() right after setting directory size

Later processing of ffs_truncate() might temporary unlock the directory
vnode, causing unsychronized dirhash and inode sizes if update is
postponed to UFS_TRUNCATE() callers.

Reviewed by: chs, mkcusick
Tested by: pho
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

Details

Provenance
kibAuthored on Jan 28 2021, 6:33 PM
Parents
rGbf0db19339e7: buf SU hooks: track buf_start() calls with B_IOSTARTED flag
Branches
Unknown
Tags
Unknown