Linux Kernel
3.7.1
|
#include <linux/fs.h>
#include <linux/blkdev.h>
#include <linux/interrupt.h>
#include <linux/completion.h>
#include <linux/kthread.h>
#include <linux/buffer_head.h>
#include <linux/bio.h>
#include <linux/freezer.h>
#include <linux/export.h>
#include <linux/delay.h>
#include <linux/mutex.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
#include "jfs_incore.h"
#include "jfs_filsys.h"
#include "jfs_metapage.h"
#include "jfs_superblock.h"
#include "jfs_txnmgr.h"
#include "jfs_debug.h"
Go to the source code of this file.
Macros | |
#define | LOG_LOCK_INIT(log) mutex_init(&(log)->loglock) |
#define | LOG_LOCK(log) mutex_lock(&((log)->loglock)) |
#define | LOG_UNLOCK(log) mutex_unlock(&((log)->loglock)) |
#define | LOGGC_LOCK_INIT(log) spin_lock_init(&(log)->gclock) |
#define | LOGGC_LOCK(log) spin_lock_irq(&(log)->gclock) |
#define | LOGGC_UNLOCK(log) spin_unlock_irq(&(log)->gclock) |
#define | LOGGC_WAKEUP(tblk) wake_up_all(&(tblk)->gcwait) |
#define | LOGSYNC_DELTA(logsize) min((logsize)/8, 128*LOGPSIZE) |
#define | LOGSYNC_BARRIER(logsize) ((logsize)/4) |
#define | LCACHE_LOCK(flags) spin_lock_irqsave(&jfsLCacheLock, flags) |
#define | LCACHE_UNLOCK(flags) spin_unlock_irqrestore(&jfsLCacheLock, flags) |
#define | LCACHE_SLEEP_COND(wq, cond, flags) |
#define | LCACHE_WAKEUP(event) wake_up(event) |
#define | lbmREAD 0x0001 |
#define | lbmWRITE |
#define | lbmRELEASE |
#define | lbmSYNC |
#define | lbmFREE |
#define | lbmDONE 0x0020 |
#define | lbmERROR 0x0040 |
#define | lbmGC |
#define | lbmDIRECT 0x0100 |
Functions | |
int | lmLog (struct jfs_log *log, struct tblock *tblk, struct lrd *lrd, struct tlock *tlck) |
int | lmGroupCommit (struct jfs_log *log, struct tblock *tblk) |
void | jfs_syncpt (struct jfs_log *log, int hard_sync) |
int | lmLogOpen (struct super_block *sb) |
int | lmLogInit (struct jfs_log *log) |
int | lmLogClose (struct super_block *sb) |
void | jfs_flush_journal (struct jfs_log *log, int wait) |
int | lmLogShutdown (struct jfs_log *log) |
int | jfsIOWait (void *arg) |
int | lmLogFormat (struct jfs_log *log, s64 logAddress, int logSize) |
#define lbmDIRECT 0x0100 |
Definition at line 151 of file jfs_logmgr.c.
#define lbmDONE 0x0020 |
Definition at line 148 of file jfs_logmgr.c.
#define lbmERROR 0x0040 |
Definition at line 149 of file jfs_logmgr.c.
#define lbmFREE |
Definition at line 147 of file jfs_logmgr.c.
#define lbmGC |
Definition at line 150 of file jfs_logmgr.c.
#define lbmREAD 0x0001 |
Definition at line 143 of file jfs_logmgr.c.
#define lbmRELEASE |
Definition at line 145 of file jfs_logmgr.c.
#define lbmSYNC |
Definition at line 146 of file jfs_logmgr.c.
#define lbmWRITE |
Definition at line 144 of file jfs_logmgr.c.
#define LCACHE_LOCK | ( | flags | ) | spin_lock_irqsave(&jfsLCacheLock, flags) |
Definition at line 123 of file jfs_logmgr.c.
Definition at line 129 of file jfs_logmgr.c.
Definition at line 124 of file jfs_logmgr.c.
Definition at line 136 of file jfs_logmgr.c.
#define LOG_LOCK | ( | log | ) | mutex_lock(&((log)->loglock)) |
Definition at line 94 of file jfs_logmgr.c.
#define LOG_LOCK_INIT | ( | log | ) | mutex_init(&(log)->loglock) |
Definition at line 93 of file jfs_logmgr.c.
#define LOG_UNLOCK | ( | log | ) | mutex_unlock(&((log)->loglock)) |
Definition at line 95 of file jfs_logmgr.c.
Definition at line 103 of file jfs_logmgr.c.
#define LOGGC_LOCK_INIT | ( | log | ) | spin_lock_init(&(log)->gclock) |
Definition at line 102 of file jfs_logmgr.c.
Definition at line 104 of file jfs_logmgr.c.
#define LOGGC_WAKEUP | ( | tblk | ) | wake_up_all(&(tblk)->gcwait) |
Definition at line 105 of file jfs_logmgr.c.
#define LOGSYNC_BARRIER | ( | logsize | ) | ((logsize)/4) |
Definition at line 111 of file jfs_logmgr.c.
Definition at line 110 of file jfs_logmgr.c.
Definition at line 1518 of file jfs_logmgr.c.
Definition at line 1046 of file jfs_logmgr.c.
Definition at line 2323 of file jfs_logmgr.c.
Definition at line 666 of file jfs_logmgr.c.
Definition at line 225 of file jfs_logmgr.c.
int lmLogClose | ( | struct super_block * | sb | ) |
Definition at line 1444 of file jfs_logmgr.c.
Definition at line 2368 of file jfs_logmgr.c.
Definition at line 1248 of file jfs_logmgr.c.
int lmLogOpen | ( | struct super_block * | sb | ) |
Definition at line 1065 of file jfs_logmgr.c.
Definition at line 1641 of file jfs_logmgr.c.