Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/pgoyette-compat]: src/sys Resolve conflicts from sync-with-HEAD



details:   https://anonhg.NetBSD.org/src/rev/91bce2d94fb5
branches:  pgoyette-compat
changeset: 360143:91bce2d94fb5
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Mar 15 11:17:54 2018 +0000

description:
Resolve conflicts from sync-with-HEAD

diffstat:

 sys/compat/common/compat_mod.c |  17 ++-------
 sys/compat/common/files.common |   6 +-
 sys/uvm/uvm_swap.c             |  69 +++++++++++++++++++----------------------
 sys/uvm/uvm_swap.h             |  31 +------------------
 4 files changed, 40 insertions(+), 83 deletions(-)

diffs (235 lines):

diff -r 720f30dcd54b -r 91bce2d94fb5 sys/compat/common/compat_mod.c
--- a/sys/compat/common/compat_mod.c    Thu Mar 15 10:03:04 2018 +0000
+++ b/sys/compat/common/compat_mod.c    Thu Mar 15 11:17:54 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_mod.c,v 1.24.14.7 2018/03/15 09:12:05 pgoyette Exp $    */
+/*     $NetBSD: compat_mod.c,v 1.24.14.8 2018/03/15 11:17:54 pgoyette Exp $    */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_mod.c,v 1.24.14.7 2018/03/15 09:12:05 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_mod.c,v 1.24.14.8 2018/03/15 11:17:54 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -254,10 +254,6 @@
 #ifdef COMPAT_40
                if_40_init();
 #endif
-#ifdef COMPAT_50
-               if_50_init();
-               swapstats_50_init();
-#endif
 #ifdef COMPAT_13
                uvm_13_init();
 #endif
@@ -279,6 +275,7 @@
                compat_sysctl_init();
 #ifdef COMPAT_50
                uvm_50_init();
+               if_50_init();
 #endif
                return 0;
 
@@ -342,20 +339,14 @@
                rw_exit(&exec_lock);
 #endif
 #endif /* COMPAT_16 */
-#ifdef COMPAT_13
-               swapstats_13_fini();
-#endif
 #ifdef COMPAT_40
                if_40_fini();
 #endif
 #ifdef COMPAT_50
                if_50_fini();
-               swapstats_50_fini();
+               uvm_50_fini();
 #endif
                compat_sysctl_fini();
-#ifdef COMPAT_50
-               uvm_50_fini();
-#endif
                return 0;
 
        default:
diff -r 720f30dcd54b -r 91bce2d94fb5 sys/compat/common/files.common
--- a/sys/compat/common/files.common    Thu Mar 15 10:03:04 2018 +0000
+++ b/sys/compat/common/files.common    Thu Mar 15 11:17:54 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.common,v 1.1.2.9 2018/03/14 22:04:27 pgoyette Exp $
+#      $NetBSD: files.common,v 1.1.2.10 2018/03/15 11:17:54 pgoyette Exp $
 
 #
 # Generic files, used by all compat options.
@@ -35,7 +35,7 @@
 
 # Compatibility code for NetBSD 1.3
 file   compat/common/kern_sig_13.c             compat_13
-file   compat/common/uvm_stats_13.c            compat_13
+file   compat/common/uvm_13.c                  compat_13
 
 # Compatibility code for NetBSD 1.4
 file   compat/common/rtsock_14.c               compat_14
@@ -63,7 +63,7 @@
 file   compat/common/rtsock_50.c               compat_50
 file   compat/common/vfs_syscalls_50.c         compat_50
 file   compat/common/uipc_syscalls_50.c        compat_50
-file   compat/common/uvm_stats_50.c            compat_50
+file   compat/common/uvm_50.c                  compat_50
 
 # Compatibility code for NetBSD 6.0
 file   compat/common/kern_sa_60.c              compat_60
diff -r 720f30dcd54b -r 91bce2d94fb5 sys/uvm/uvm_swap.c
--- a/sys/uvm/uvm_swap.c        Thu Mar 15 10:03:04 2018 +0000
+++ b/sys/uvm/uvm_swap.c        Thu Mar 15 11:17:54 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_swap.c,v 1.175.2.3 2018/03/15 09:12:07 pgoyette Exp $      */
+/*     $NetBSD: uvm_swap.c,v 1.175.2.4 2018/03/15 11:17:55 pgoyette Exp $      */
 
 /*
  * Copyright (c) 1995, 1996, 1997, 2009 Matthew R. Green
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_swap.c,v 1.175.2.3 2018/03/15 09:12:07 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_swap.c,v 1.175.2.4 2018/03/15 11:17:55 pgoyette Exp $");
 
 #include "opt_uvmhist.h"
 #include "opt_compat_netbsd.h"
@@ -116,6 +116,35 @@
  */
 
 /*
+ * swapdev: describes a single swap partition/file
+ *
+ * note the following should be true:
+ * swd_inuse <= swd_nblks  [number of blocks in use is <= total blocks]
+ * swd_nblks <= swd_mapsize [because mapsize includes miniroot+disklabel]
+ */
+struct swapdev {
+       dev_t                   swd_dev;        /* device id */
+       int                     swd_flags;      /* flags:inuse/enable/fake */
+       int                     swd_priority;   /* our priority */
+       int                     swd_nblks;      /* blocks in this device */
+       char                    *swd_path;      /* saved pathname of device */
+       int                     swd_pathlen;    /* length of pathname */
+       int                     swd_npages;     /* #pages we can use */
+       int                     swd_npginuse;   /* #pages in use */
+       int                     swd_npgbad;     /* #pages bad */
+       int                     swd_drumoffset; /* page0 offset in drum */
+       int                     swd_drumsize;   /* #pages in drum */
+       blist_t                 swd_blist;      /* blist for this swapdev */
+       struct vnode            *swd_vp;        /* backing vnode */
+       TAILQ_ENTRY(swapdev)    swd_next;       /* priority tailq */
+
+       int                     swd_bsize;      /* blocksize (bytes) */
+       int                     swd_maxactive;  /* max active i/o reqs */
+       struct bufq_state       *swd_tab;       /* buffer list */
+       int                     swd_active;     /* number of active buffers */
+};
+
+/*
  * swap device priority entry; the list is kept sorted on `spi_priority'.
  */
 struct swappri {
@@ -191,40 +220,6 @@
 static int uvm_swap_io(struct vm_page **, int, int, int);
 
 /*
- * vectored routines for COMPAT_13 and COMPAT_50
- */
-
-size_t swapstats_len_13 = 0;
-
-static void stub_swapstats13_copy(int, int, struct swapdev *,
-    struct swapent13 *);
-void (*vec_swapstats_copy_13)(int, int, struct swapdev *, struct swapent13 *) =
-    stub_swapstats13_copy;
-
-size_t swapstats_len_50 = 0;
-
-static void stub_swapstats50_copy(int, int, struct swapdev *,
-    struct swapent50 *);
-void (*vec_swapstats_copy_50)(int, int, struct swapdev *, struct swapent50 *) =
-    stub_swapstats50_copy;
-
-static void
-stub_swapstats13_copy(int cmd, int inuse, struct swapdev *sdp,
-    struct swapent13 *sep13)
-{
-
-       /* nothing */
-}
-
-static void
-stub_swapstats50_copy(int cmd, int inuse, struct swapdev *sdp,
-    struct swapent50 *sep50)
-{
-
-       /* nothing */
-}
-
-/*
  * uvm_swap_init: init the swap system data structures and locks
  *
  * => called at boot time from init_main.c after the filesystems
@@ -432,7 +427,7 @@
        strcpy(se->se_path, sdp->swd_path);
 }
 
-int (*uvm_swap_stats13)(const struct sys_swapctl_args *, register_t *) =
+int (*uvm_swap_stats13)(const struct sys_swapctl_args *, register_t *) =  
     (void *)enosys;
 int (*uvm_swap_stats50)(const struct sys_swapctl_args *, register_t *) =
     (void *)enosys;
diff -r 720f30dcd54b -r 91bce2d94fb5 sys/uvm/uvm_swap.h
--- a/sys/uvm/uvm_swap.h        Thu Mar 15 10:03:04 2018 +0000
+++ b/sys/uvm/uvm_swap.h        Thu Mar 15 11:17:54 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_swap.h,v 1.22.16.2 2018/03/15 09:12:07 pgoyette Exp $      */
+/*     $NetBSD: uvm_swap.h,v 1.22.16.3 2018/03/15 11:17:55 pgoyette Exp $      */
 
 /*
  * Copyright (c) 1997 Matthew R. Green
@@ -40,35 +40,6 @@
 
 struct lwp;
 
-/*
- * swapdev: describes a single swap partition/file
- *
- * note the following should be true:
- * swd_inuse <= swd_nblks  [number of blocks in use is <= total blocks]
- * swd_nblks <= swd_mapsize [because mapsize includes miniroot+disklabel]
- */   
-struct swapdev {
-       dev_t                   swd_dev;        /* device id */
-       int                     swd_flags;      /* flags:inuse/enable/fake */
-       int                     swd_priority;   /* our priority */ 
-       int                     swd_nblks;      /* blocks in this device */
-       char                    *swd_path;      /* saved pathname of device */
-       int                     swd_pathlen;    /* length of pathname */
-       int                     swd_npages;     /* #pages we can use */
-       int                     swd_npginuse;   /* #pages in use */
-       int                     swd_npgbad;     /* #pages bad */
-       int                     swd_drumoffset; /* page0 offset in drum */
-       int                     swd_drumsize;   /* #pages in drum */
-       blist_t                 swd_blist;      /* blist for this swapdev */
-       struct vnode            *swd_vp;        /* backing vnode */
-       TAILQ_ENTRY(swapdev)    swd_next;       /* priority tailq */
- 
-       int                     swd_bsize;      /* blocksize (bytes) */ 
-       int                     swd_maxactive;  /* max active i/o reqs */
-       struct bufq_state       *swd_tab;       /* buffer list */
-       int                     swd_active;     /* number of active buffers */
-};      
-
 #if defined(VMSWAP)
 
 struct swapent;



Home | Main Index | Thread Index | Old Index