[BACK]Return to vfs_mount.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/vfs_mount.c between version 1.84.2.2 and 1.85

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
Line 1024  bool
Line 1022  bool
 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;
 }  }
   

Legend:
Removed from v.1.84.2.2  
changed lines
  Added in v.1.85

CVSweb <webmaster@jp.NetBSD.org>