HomeFreeBSD

UFS: stop reusing the vnode for reallocated inode.

Description

UFS: stop reusing the vnode for reallocated inode.

In ffs_valloc(), force reclaim existing vnode on inode reuse, instead
of trying to re-initialize the same vnode for new purposes. This is
done in preparation of changes to the vp->v_object lifecycle handling.

A new FFSV_REPLACE flag to ffs_vgetf() directs the function to
vgone(9) the vnode if found in vfs hash, instead of returning it.

Reviewed by: markj, mckusick
Tested by: pho
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D21412

Details

Provenance
kibAuthored on
Reviewer
markj
Differential Revision
D21412: Rework v_object lifecycle for vnodes.
Parents
rS351596: Fix qmath(3) build problems with GCC 8.
Branches
Unknown
Tags
Unknown