]> git.neil.brown.name Git - history.git/commitdiff
JFS: remove some cruft left over from the pre-mempool metapage code
authorChristoph Hellwig <hch@sb.bsdonline.org>
Mon, 2 Sep 2002 03:19:41 +0000 (05:19 +0200)
committerDave Kleikamp <shaggy@kleikamp.austin.ibm.com>
Mon, 2 Sep 2002 03:19:41 +0000 (05:19 +0200)
fs/jfs/jfs_metapage.c

index f07105cd3e92fa2a83ac4b603953d517c8c8fb54..55e7db17f3e05db92cf4206d2c1a84d6ebd496f0 100644 (file)
 #include "jfs_txnmgr.h"
 #include "jfs_debug.h"
 
-extern struct task_struct *jfsCommitTask;
 static spinlock_t meta_lock = SPIN_LOCK_UNLOCKED;
-static wait_queue_head_t meta_wait;
 
 #ifdef CONFIG_JFS_STATISTICS
 struct {
        uint    pagealloc;      /* # of page allocations */
        uint    pagefree;       /* # of page frees */
        uint    lockwait;       /* # of sleeping lock_metapage() calls */
-       uint    allocwait;      /* # of sleeping alloc_metapage() calls */
 } mpStat;
 #endif
 
@@ -134,11 +131,6 @@ static void mp_mempool_free(void *element, void *pool_data)
 
 int __init metapage_init(void)
 {
-       /*
-        * Initialize wait queue
-        */
-       init_waitqueue_head(&meta_wait);
-
        /*
         * Allocate the metapage structures
         */
@@ -624,12 +616,10 @@ int jfs_mpstat_read(char *buffer, char **start, off_t offset, int length,
                       "=======================\n"
                       "page allocations = %d\n"
                       "page frees = %d\n"
-                      "lock waits = %d\n"
-                      "allocation waits = %d\n",
+                      "lock waits = %d\n",
                       mpStat.pagealloc,
                       mpStat.pagefree,
-                      mpStat.lockwait,
-                      mpStat.allocwait);
+                      mpStat.lockwait);
 
        begin = offset;
        *start = buffer + begin;