#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
int __init metapage_init(void)
{
- /*
- * Initialize wait queue
- */
- init_waitqueue_head(&meta_wait);
-
/*
* Allocate the metapage structures
*/
"=======================\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;