HomeFreeBSD

In vm_map_entry_set_vnode_text(), tolerate tmpfs mappings for which

Description

In vm_map_entry_set_vnode_text(), tolerate tmpfs mappings for which
vnode is no longer resident.

Mapping of tmpfs file does not bump use count on the vnode, because
backing object has swap type. As result, even during normal
operations, and of course on forced unmount, we might end up with text
mapping from tmpfs node which has no vnode in memory. In this case,
there is no v_writecount to clear (this was done during reclaim), and
no reason to assert that the vnode is present.

Restructure the code to silently ignore OBJ_SWAP objects with
OBJ_TMPFS_NODE flag set, but OBJ_TMPFS flag clear.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Committed
kibJun 5 2019, 8:21 PM
Parents
rS348700: fusefs: simplify fuse_write_biobackend. No functional change.
Branches
Unknown
Tags
Unknown