Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
xfs_log_priv.h File Reference

Go to the source code of this file.

Data Structures

struct  xlog_op_header
 
struct  xlog_rec_header
 
struct  xlog_rec_ext_header
 

Macros

#define XLOG_MIN_ICLOGS   2
 
#define XLOG_MAX_ICLOGS   8
 
#define XLOG_HEADER_MAGIC_NUM   0xFEEDbabe /* Invalid cycle number */
 
#define XLOG_VERSION_1   1
 
#define XLOG_VERSION_2   2 /* Large IClogs, Log sunit */
 
#define XLOG_VERSION_OKBITS   (XLOG_VERSION_1 | XLOG_VERSION_2)
 
#define XLOG_MIN_RECORD_BSIZE   (16*1024) /* eventually 32k */
 
#define XLOG_BIG_RECORD_BSIZE   (32*1024) /* 32k buffers */
 
#define XLOG_MAX_RECORD_BSIZE   (256*1024)
 
#define XLOG_HEADER_CYCLE_SIZE   (32*1024) /* cycle data in header */
 
#define XLOG_MIN_RECORD_BSHIFT   14 /* 16384 == 1 << 14 */
 
#define XLOG_BIG_RECORD_BSHIFT   15 /* 32k == 1 << 15 */
 
#define XLOG_MAX_RECORD_BSHIFT   18 /* 256k == 1 << 18 */
 
#define XLOG_BTOLSUNIT(log, b)
 
#define XLOG_LSUNITTOB(log, su)   ((su) * (log)->l_mp->m_sb.sb_logsunit)
 
#define XLOG_HEADER_SIZE   512
 
#define XLOG_REC_SHIFT(log)
 
#define XLOG_TOTAL_REC_SHIFT(log)
 
#define BLK_AVG(blk1, blk2)   ((blk1+blk2) >> 1)
 
#define XLOG_START_TRANS   0x01 /* Start a new transaction */
 
#define XLOG_COMMIT_TRANS   0x02 /* Commit this transaction */
 
#define XLOG_CONTINUE_TRANS   0x04 /* Cont this trans into new region */
 
#define XLOG_WAS_CONT_TRANS   0x08 /* Cont this trans into new region */
 
#define XLOG_END_TRANS   0x10 /* End a continued transaction */
 
#define XLOG_UNMOUNT_TRANS   0x20 /* Unmount a filesystem transaction */
 
#define XLOG_UNMOUNT_TYPE   0x556e /* Un for Unmount */
 
#define XLOG_CHKSUM_MISMATCH   0x1 /* used only during recovery */
 
#define XLOG_ACTIVE_RECOVERY   0x2 /* in the middle of recovery */
 
#define XLOG_RECOVERY_NEEDED   0x4 /* log was recovered */
 
#define XLOG_IO_ERROR
 
#define XLOG_TAIL_WARN   0x10 /* log tail verify warning issued */
 
#define XLOG_FMT_UNKNOWN   0
 
#define XLOG_FMT_LINUX_LE   1
 
#define XLOG_FMT_LINUX_BE   2
 
#define XLOG_FMT_IRIX_BE   3
 
#define XLOG_FMT   XLOG_FMT_LINUX_LE
 

Typedefs

typedef __uint32_t xlog_tid_t
 
typedef struct xlog_op_header xlog_op_header_t
 
typedef struct xlog_rec_header xlog_rec_header_t
 
typedef struct xlog_rec_ext_header xlog_rec_ext_header_t
 

Macro Definition Documentation

#define BLK_AVG (   blk1,
  blk2 
)    ((blk1+blk2) >> 1)

Definition at line 69 of file xfs_log_priv.h.

#define XLOG_ACTIVE_RECOVERY   0x2 /* in the middle of recovery */

Definition at line 143 of file xfs_log_priv.h.

#define XLOG_BIG_RECORD_BSHIFT   15 /* 32k == 1 << 15 */

Definition at line 41 of file xfs_log_priv.h.

#define XLOG_BIG_RECORD_BSIZE   (32*1024) /* 32k buffers */

Definition at line 37 of file xfs_log_priv.h.

#define XLOG_BTOLSUNIT (   log,
  b 
)
Value:
(((b)+(log)->l_mp->m_sb.sb_logsunit-1) / \
(log)->l_mp->m_sb.sb_logsunit)

Definition at line 43 of file xfs_log_priv.h.

#define XLOG_CHKSUM_MISMATCH   0x1 /* used only during recovery */

Definition at line 142 of file xfs_log_priv.h.

#define XLOG_COMMIT_TRANS   0x02 /* Commit this transaction */

Definition at line 118 of file xfs_log_priv.h.

#define XLOG_CONTINUE_TRANS   0x04 /* Cont this trans into new region */

Definition at line 119 of file xfs_log_priv.h.

#define XLOG_END_TRANS   0x10 /* End a continued transaction */

Definition at line 121 of file xfs_log_priv.h.

#define XLOG_FMT   XLOG_FMT_LINUX_LE

Definition at line 283 of file xfs_log_priv.h.

#define XLOG_FMT_IRIX_BE   3

Definition at line 277 of file xfs_log_priv.h.

#define XLOG_FMT_LINUX_BE   2

Definition at line 276 of file xfs_log_priv.h.

#define XLOG_FMT_LINUX_LE   1

Definition at line 275 of file xfs_log_priv.h.

#define XLOG_FMT_UNKNOWN   0

Definition at line 274 of file xfs_log_priv.h.

#define XLOG_HEADER_CYCLE_SIZE   (32*1024) /* cycle data in header */

Definition at line 39 of file xfs_log_priv.h.

#define XLOG_HEADER_MAGIC_NUM   0xFEEDbabe /* Invalid cycle number */

Definition at line 32 of file xfs_log_priv.h.

#define XLOG_HEADER_SIZE   512

Definition at line 47 of file xfs_log_priv.h.

#define XLOG_IO_ERROR
Value:
0x8 /* log hit an I/O error, and being
shutdown */

Definition at line 145 of file xfs_log_priv.h.

#define XLOG_LSUNITTOB (   log,
  su 
)    ((su) * (log)->l_mp->m_sb.sb_logsunit)

Definition at line 45 of file xfs_log_priv.h.

#define XLOG_MAX_ICLOGS   8

Definition at line 31 of file xfs_log_priv.h.

#define XLOG_MAX_RECORD_BSHIFT   18 /* 256k == 1 << 18 */

Definition at line 42 of file xfs_log_priv.h.

#define XLOG_MAX_RECORD_BSIZE   (256*1024)

Definition at line 38 of file xfs_log_priv.h.

#define XLOG_MIN_ICLOGS   2

Definition at line 30 of file xfs_log_priv.h.

#define XLOG_MIN_RECORD_BSHIFT   14 /* 16384 == 1 << 14 */

Definition at line 40 of file xfs_log_priv.h.

#define XLOG_MIN_RECORD_BSIZE   (16*1024) /* eventually 32k */

Definition at line 36 of file xfs_log_priv.h.

#define XLOG_REC_SHIFT (   log)
Value:
BTOBB(1 << (xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? \

Definition at line 49 of file xfs_log_priv.h.

#define XLOG_RECOVERY_NEEDED   0x4 /* log was recovered */

Definition at line 144 of file xfs_log_priv.h.

#define XLOG_START_TRANS   0x01 /* Start a new transaction */

Definition at line 117 of file xfs_log_priv.h.

#define XLOG_TAIL_WARN   0x10 /* log tail verify warning issued */

Definition at line 146 of file xfs_log_priv.h.

#define XLOG_TOTAL_REC_SHIFT (   log)
Value:
BTOBB(XLOG_MAX_ICLOGS << (xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? \

Definition at line 52 of file xfs_log_priv.h.

#define XLOG_UNMOUNT_TRANS   0x20 /* Unmount a filesystem transaction */

Definition at line 122 of file xfs_log_priv.h.

#define XLOG_UNMOUNT_TYPE   0x556e /* Un for Unmount */

Definition at line 137 of file xfs_log_priv.h.

#define XLOG_VERSION_1   1

Definition at line 33 of file xfs_log_priv.h.

#define XLOG_VERSION_2   2 /* Large IClogs, Log sunit */

Definition at line 34 of file xfs_log_priv.h.

#define XLOG_VERSION_OKBITS   (XLOG_VERSION_1 | XLOG_VERSION_2)

Definition at line 35 of file xfs_log_priv.h.

#define XLOG_WAS_CONT_TRANS   0x08 /* Cont this trans into new region */

Definition at line 120 of file xfs_log_priv.h.

Typedef Documentation

typedef __uint32_t xlog_tid_t

Definition at line 148 of file xfs_log_priv.h.