version 1.84.2.2, 2021/04/03 22:29:00 |
version 1.85, 2020/11/19 10:47:47 |
Line 94 __KERNEL_RCSID(0, "$NetBSD$"); |
|
Line 94 __KERNEL_RCSID(0, "$NetBSD$"); |
|
#include <miscfs/genfs/genfs.h> |
#include <miscfs/genfs/genfs.h> |
#include <miscfs/specfs/specdev.h> |
#include <miscfs/specfs/specdev.h> |
|
|
#include <uvm/uvm_swap.h> |
|
|
|
enum mountlist_type { |
enum mountlist_type { |
ME_MOUNT, |
ME_MOUNT, |
ME_MARKER |
ME_MARKER |
|
|
vfs_unmountall1(struct lwp *l, bool force, bool verbose) |
vfs_unmountall1(struct lwp *l, bool force, bool verbose) |
{ |
{ |
struct mount *mp; |
struct mount *mp; |
mount_iterator_t *iter; |
|
bool any_error = false, progress = false; |
bool any_error = false, progress = false; |
uint64_t gen; |
uint64_t gen; |
int error; |
int error; |
Line 1059 vfs_unmountall1(struct lwp *l, bool forc |
|
Line 1056 vfs_unmountall1(struct lwp *l, bool forc |
|
if (any_error && verbose) { |
if (any_error && verbose) { |
printf("WARNING: some file systems would not unmount\n"); |
printf("WARNING: some file systems would not unmount\n"); |
} |
} |
/* If the mountlist is empty it is time to remove swap. */ |
|
mountlist_iterator_init(&iter); |
|
if (mountlist_iterator_next(iter) == NULL) { |
|
uvm_swap_shutdown(l); |
|
} |
|
mountlist_iterator_destroy(iter); |
|
|
|
return progress; |
return progress; |
} |
} |
|
|