freebsd-skq/sys
Andriy Gapon afe674f089 do not destroy 'snapdir' when it becomes inactive
That was just wrong.  In fact, we can safely keep this static entry when
it's inactive.
Now the destructive action is moved to the reclaim method and the
function is renamed from zfsctl_snapdir_inactive(0 to
zfsctl_snapdir_reclaim().

Also, we can use gfs_vop_reclaim() instead of gfs_dir_inactive() +
kmem_free().

Lastly, we can just assert that the node does not any children when it
is reclaimed, even on the force unmount.  That's because zfs_umount()
does an extra vflush() pass which should destroy all snapshot-mountpoint
vnodes that are the snapdir's children.

MFC after:	5 weeks
2016-05-16 15:48:56 +00:00
..
amd64 atomic: Add testandclear on i386/amd64 2016-05-16 07:19:33 +00:00
arm Introduce MSI and MSI-X support to intrng. This adds a new msi device 2016-05-16 09:11:40 +00:00
arm64 Add intrng support to the GICv3 driver. It lacks ITS support so won't handle 2016-05-16 14:07:43 +00:00
boot Add Allwinner A83T thermal sensor controller support. 2016-05-15 22:36:55 +00:00
bsm
cam opt_kdtrace.h is not needed for SDT probes as of r258541. 2016-05-15 20:04:43 +00:00
cddl do not destroy 'snapdir' when it becomes inactive 2016-05-16 15:48:56 +00:00
compat Implement more Linux device related functions in the LinuxKPI. While 2016-05-16 09:56:48 +00:00
conf Add intrng support to the GICv3 driver. It lacks ITS support so won't handle 2016-05-16 14:07:43 +00:00
contrib Make subsequent code reachable. 2016-05-15 22:35:11 +00:00
crypto
ddb
dev Call ofw_bus_msimap to find the parent MSI controller, it may not use the 2016-05-16 12:18:30 +00:00
fs Fix fuse for "cp" of a mode 0444 file to the file system. 2016-05-15 23:15:10 +00:00
gdb
geom Add an EARLY_AP_STARTUP option to start APs earlier during boot. 2016-05-14 18:22:52 +00:00
gnu
i386 atomic: Add testandclear on i386/amd64 2016-05-16 07:19:33 +00:00
isa
kern Introduce MSI and MSI-X support to intrng. This adds a new msi device 2016-05-16 09:11:40 +00:00
kgssapi
libkern
mips Introduce MSI and MSI-X support to intrng. This adds a new msi device 2016-05-16 09:11:40 +00:00
modules opt_kdtrace.h is not needed for SDT probes as of r258541. 2016-05-15 20:04:43 +00:00
net When handling SIOCSIFNAME ensure that the new interface name is NUL 2016-05-15 21:37:36 +00:00
net80211 Revert parts of r299575 in order to make more MIPS kernels build 2016-05-14 08:54:34 +00:00
netgraph
netinet opt_kdtrace.h is not needed for SDT probes as of r258541. 2016-05-15 20:04:43 +00:00
netinet6 Use Node Information flag names instead of hard-coding their values. 2016-05-15 03:22:13 +00:00
netipsec netipsec: Fix minor style nit 2016-05-10 20:14:11 +00:00
netnatm
netpfil Fix memory leak possible in error case. 2016-05-11 10:04:32 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
pc98
powerpc Use OF_prop_free instead of direct call to free(9) 2016-05-14 20:06:38 +00:00
riscv Eliminate an unused #include. For a brief period of time, _unrhdr.h was 2016-05-13 20:14:41 +00:00
rpc
security
sparc64
sys Implement more Linux device related functions in the LinuxKPI. While 2016-05-16 09:56:48 +00:00
teken
tests
tools
ufs
vm Move vm_domain_rr_selectdomain() under #ifdef VM_NUMA_ALLOC. 2016-05-10 22:25:55 +00:00
x86 Add an EARLY_AP_STARTUP option to start APs earlier during boot. 2016-05-14 18:22:52 +00:00
xdr
xen
Makefile