Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
jbd.h File Reference
#include "jfs_compat.h"

Go to the source code of this file.

Data Structures

struct  journal_header_s
 
struct  journal_block_tag_s
 
struct  journal_revoke_header_s
 
struct  journal_superblock_s
 

Macros

#define JFS_DEBUG
 
#define jfs_debug   jbd_debug
 
#define JFS_MAGIC_NUMBER   0xc03b3998U /* The first 4 bytes of /dev/random! */
 
#define JFS_DESCRIPTOR_BLOCK   1
 
#define JFS_COMMIT_BLOCK   2
 
#define JFS_SUPERBLOCK_V1   3
 
#define JFS_SUPERBLOCK_V2   4
 
#define JFS_REVOKE_BLOCK   5
 
#define JFS_FLAG_ESCAPE   1 /* on-disk block is escaped */
 
#define JFS_FLAG_SAME_UUID   2 /* block has same uuid as previous */
 
#define JFS_FLAG_DELETED   4 /* block deleted by this transaction */
 
#define JFS_FLAG_LAST_TAG   8 /* last tag in this descriptor block */
 
#define JFS_HAS_COMPAT_FEATURE(j, mask)
 
#define JFS_HAS_RO_COMPAT_FEATURE(j, mask)
 
#define JFS_HAS_INCOMPAT_FEATURE(j, mask)
 
#define JFS_FEATURE_INCOMPAT_REVOKE   0x00000001
 
#define JFS_KNOWN_COMPAT_FEATURES   0
 
#define JFS_KNOWN_ROCOMPAT_FEATURES   0
 
#define JFS_KNOWN_INCOMPAT_FEATURES   JFS_FEATURE_INCOMPAT_REVOKE
 
#define BJ_None   0 /* Not journaled */
 
#define BJ_SyncData   1 /* Normal data: flush before commit */
 
#define BJ_Metadata   2 /* Normal journaled metadata */
 
#define BJ_Forget   3 /* Buffer superseded by this transaction */
 
#define BJ_IO   4 /* Buffer is for temporary IO use */
 
#define BJ_Shadow   5 /* Buffer contents being shadowed to the log */
 
#define BJ_LogCtl   6 /* Buffer contains log descriptors */
 
#define BJ_Reserved   7 /* Buffer is reserved for access by journal */
 
#define BJ_Locked   8 /* Locked for I/O during commit */
 
#define BJ_Types   9
 

Typedefs

typedef struct journal_header_s journal_header_t
 
typedef struct journal_block_tag_s journal_block_tag_t
 
typedef struct
journal_revoke_header_s 
journal_revoke_header_t
 
typedef struct journal_superblock_s journal_superblock_t
 

Functions

int journal_blocks_per_page (struct inode *inode)
 
int jbd_blocks_per_page (struct inode *inode)
 

Macro Definition Documentation

#define BJ_Forget   3 /* Buffer superseded by this transaction */

Definition at line 1014 of file jbd.h.

#define BJ_IO   4 /* Buffer is for temporary IO use */

Definition at line 1015 of file jbd.h.

#define BJ_Locked   8 /* Locked for I/O during commit */

Definition at line 1019 of file jbd.h.

#define BJ_LogCtl   6 /* Buffer contains log descriptors */

Definition at line 1017 of file jbd.h.

#define BJ_Metadata   2 /* Normal journaled metadata */

Definition at line 1013 of file jbd.h.

#define BJ_None   0 /* Not journaled */

Definition at line 1011 of file jbd.h.

#define BJ_Reserved   7 /* Buffer is reserved for access by journal */

Definition at line 1018 of file jbd.h.

#define BJ_Shadow   5 /* Buffer contents being shadowed to the log */

Definition at line 1016 of file jbd.h.

#define BJ_SyncData   1 /* Normal data: flush before commit */

Definition at line 1012 of file jbd.h.

#define BJ_Types   9

Definition at line 1020 of file jbd.h.

#define JFS_COMMIT_BLOCK   2

Definition at line 135 of file jbd.h.

#define JFS_DEBUG

Definition at line 22 of file jbd.h.

#define jfs_debug   jbd_debug

Definition at line 23 of file jbd.h.

#define JFS_DESCRIPTOR_BLOCK   1

Definition at line 134 of file jbd.h.

#define JFS_FEATURE_INCOMPAT_REVOKE   0x00000001

Definition at line 236 of file jbd.h.

#define JFS_FLAG_DELETED   4 /* block deleted by this transaction */

Definition at line 174 of file jbd.h.

#define JFS_FLAG_ESCAPE   1 /* on-disk block is escaped */

Definition at line 172 of file jbd.h.

#define JFS_FLAG_LAST_TAG   8 /* last tag in this descriptor block */

Definition at line 175 of file jbd.h.

#define JFS_FLAG_SAME_UUID   2 /* block has same uuid as previous */

Definition at line 173 of file jbd.h.

#define JFS_HAS_COMPAT_FEATURE (   j,
  mask 
)
Value:
((j)->j_format_version >= 2 && \
((j)->j_superblock->s_feature_compat & cpu_to_be32((mask))))

Definition at line 226 of file jbd.h.

#define JFS_HAS_INCOMPAT_FEATURE (   j,
  mask 
)
Value:
((j)->j_format_version >= 2 && \
((j)->j_superblock->s_feature_incompat & cpu_to_be32((mask))))

Definition at line 232 of file jbd.h.

#define JFS_HAS_RO_COMPAT_FEATURE (   j,
  mask 
)
Value:
((j)->j_format_version >= 2 && \
((j)->j_superblock->s_feature_ro_compat & cpu_to_be32((mask))))

Definition at line 229 of file jbd.h.

#define JFS_KNOWN_COMPAT_FEATURES   0

Definition at line 239 of file jbd.h.

#define JFS_KNOWN_INCOMPAT_FEATURES   JFS_FEATURE_INCOMPAT_REVOKE

Definition at line 241 of file jbd.h.

#define JFS_KNOWN_ROCOMPAT_FEATURES   0

Definition at line 240 of file jbd.h.

#define JFS_MAGIC_NUMBER   0xc03b3998U /* The first 4 bytes of /dev/random! */

Definition at line 124 of file jbd.h.

#define JFS_REVOKE_BLOCK   5

Definition at line 138 of file jbd.h.

#define JFS_SUPERBLOCK_V1   3

Definition at line 136 of file jbd.h.

#define JFS_SUPERBLOCK_V2   4

Definition at line 137 of file jbd.h.

Typedef Documentation

Function Documentation

int jbd_blocks_per_page ( struct inode inode)
int journal_blocks_per_page ( struct inode inode)

Definition at line 1798 of file journal.c.