kernel - Minor cleanups
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 1 Dec 2011 01:34:39 +0000 (17:34 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 1 Dec 2011 01:34:39 +0000 (17:34 -0800)
* lwkt_wait_free() no longer exists, remove the prototype.

* Reformat a kprintf() in vm/swap_pager.c to not overflow 80 columns.

sys/sys/thread.h
sys/vm/swap_pager.c

index f380a98..b4cc199 100644 (file)
@@ -428,7 +428,6 @@ extern void lwkt_init_thread(struct thread *, void *, int, int,
                             struct globaldata *);
 extern void lwkt_set_interrupt_support_thread(void);
 extern void lwkt_set_comm(thread_t, const char *, ...) __printflike(2, 3);
-extern void lwkt_wait_free(struct thread *);
 extern void lwkt_free_thread(struct thread *);
 extern void lwkt_gdinit(struct globaldata *);
 extern void lwkt_switch(void);
index a8b9209..e99b006 100644 (file)
@@ -484,7 +484,8 @@ swp_pager_getswapspace(vm_object_t object, int npages)
        lwkt_gettoken(&vm_token);
        if ((blk = blist_alloc(swapblist, npages)) == SWAPBLK_NONE) {
                if (swap_pager_full != 2) {
-                       kprintf("swap_pager_getswapspace: failed\n");
+                       kprintf("swap_pager_getswapspace: failed alloc=%d\n",
+                               npages);
                        swap_pager_full = 2;
                        swap_pager_almost_full = 1;
                }