]> xenbits.xensource.com Git - freebsd.git/commit
fusefs: fix some minor issues with fuse_vnode_setparent
authorasomers <asomers@FreeBSD.org>
Mon, 16 Sep 2019 14:51:49 +0000 (14:51 +0000)
committerasomers <asomers@FreeBSD.org>
Mon, 16 Sep 2019 14:51:49 +0000 (14:51 +0000)
commit395339ca27bc3084e7c08b4a5588f88f0d70a5a5
treef110f7ed9ca047b14feacbb7461520bb9f4711be
parent607db409c87d98798296e766c955750b499915af
fusefs: fix some minor issues with fuse_vnode_setparent

* When unparenting a vnode, actually clear the flag. AFAIK this is basically
  a no-op because we only unparent a vnode when reclaiming it or when
  unlinking.

* There's no need to call fuse_vnode_setparent during reclaim, because we're
  about to free the vnode data anyway.

Reviewed by: emaste
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21630
sys/fs/fuse/fuse_node.h
sys/fs/fuse/fuse_vnops.c