Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
journal.h File Reference
#include <linux/fs.h>
#include <linux/jbd2.h>

Go to the source code of this file.

Data Structures

struct  ocfs2_recovery_map
 
struct  ocfs2_journal
 

Macros

#define OCFS2_JOURNAL_ACCESS_CREATE   0
 
#define OCFS2_JOURNAL_ACCESS_WRITE   1
 
#define OCFS2_JOURNAL_ACCESS_UNDO   2
 
#define OCFS2_INODE_UPDATE_CREDITS   1
 
#define OCFS2_XATTR_BLOCK_UPDATE_CREDITS   1
 
#define OCFS2_QUOTA_BLOCK_UPDATE_CREDITS   1
 
#define OCFS2_QINFO_WRITE_CREDITS
 
#define OCFS2_LOCAL_QINFO_WRITE_CREDITS   OCFS2_QUOTA_BLOCK_UPDATE_CREDITS
 
#define OCFS2_QWRITE_CREDITS
 
#define OCFS2_QSYNC_CREDITS
 
#define OCFS2_GROUP_EXTEND_CREDITS   (OCFS2_INODE_UPDATE_CREDITS + 1)
 
#define OCFS2_GROUP_ADD_CREDITS   (OCFS2_INODE_UPDATE_CREDITS + 1)
 
#define OCFS2_SUBALLOC_ALLOC   (3)
 
#define OCFS2_SUBALLOC_FREE   (2)
 
#define OCFS2_TRUNCATE_LOG_UPDATE   OCFS2_INODE_UPDATE_CREDITS
 
#define OCFS2_TRUNCATE_LOG_FLUSH_ONE_REC
 
#define OCFS2_DIR_LINK_ADDITIONAL_CREDITS   (1 + OCFS2_SUBALLOC_ALLOC + 1)
 
#define OCFS2_WINDOW_MOVE_CREDITS
 
#define OCFS2_SIMPLE_DIR_EXTEND_CREDITS   (2)
 
#define OCFS2_DELETE_INODE_CREDITS   (3 * OCFS2_INODE_UPDATE_CREDITS + 4)
 
#define OCFS2_XATTR_BLOCK_CREATE_CREDITS
 
#define OCFS2_DX_ROOT_REMOVE_CREDITS
 
#define OCFS2_REFCOUNT_TREE_CREATE_CREDITS
 
#define OCFS2_REFCOUNT_TREE_SET_CREDITS   (OCFS2_INODE_UPDATE_CREDITS + 1)
 
#define OCFS2_REFCOUNT_TREE_REMOVE_CREDITS   (OCFS2_INODE_UPDATE_CREDITS + 1)
 
#define OCFS2_EXPAND_REFCOUNT_TREE_CREDITS   (OCFS2_SUBALLOC_ALLOC * 2 + 3)
 

Enumerations

enum  ocfs2_journal_state { OCFS2_JOURNAL_FREE = 0, OCFS2_JOURNAL_LOADED, OCFS2_JOURNAL_IN_SHUTDOWN }
 

Functions

void ocfs2_orphan_scan_init (struct ocfs2_super *osb)
 
void ocfs2_orphan_scan_start (struct ocfs2_super *osb)
 
void ocfs2_orphan_scan_stop (struct ocfs2_super *osb)
 
void ocfs2_orphan_scan_exit (struct ocfs2_super *osb)
 
void ocfs2_complete_recovery (struct work_struct *work)
 
void ocfs2_wait_for_recovery (struct ocfs2_super *osb)
 
int ocfs2_recovery_init (struct ocfs2_super *osb)
 
void ocfs2_recovery_exit (struct ocfs2_super *osb)
 
int ocfs2_compute_replay_slots (struct ocfs2_super *osb)
 
void ocfs2_set_journal_params (struct ocfs2_super *osb)
 
int ocfs2_journal_init (struct ocfs2_journal *journal, int *dirty)
 
void ocfs2_journal_shutdown (struct ocfs2_super *osb)
 
int ocfs2_journal_wipe (struct ocfs2_journal *journal, int full)
 
int ocfs2_journal_load (struct ocfs2_journal *journal, int local, int replayed)
 
int ocfs2_check_journals_nolocks (struct ocfs2_super *osb)
 
void ocfs2_recovery_thread (struct ocfs2_super *osb, int node_num)
 
int ocfs2_mark_dead_nodes (struct ocfs2_super *osb)
 
void ocfs2_complete_mount_recovery (struct ocfs2_super *osb)
 
void ocfs2_complete_quota_recovery (struct ocfs2_super *osb)
 
handle_t * ocfs2_start_trans (struct ocfs2_super *osb, int max_buffs)
 
int ocfs2_commit_trans (struct ocfs2_super *osb, handle_t *handle)
 
int ocfs2_extend_trans (handle_t *handle, int nblocks)
 
int ocfs2_journal_access_di (handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *bh, int type)
 
int ocfs2_journal_access_eb (handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *bh, int type)
 
int ocfs2_journal_access_rb (handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *bh, int type)
 
int ocfs2_journal_access_gd (handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *bh, int type)
 
int ocfs2_journal_access_xb (handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *bh, int type)
 
int ocfs2_journal_access_dq (handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *bh, int type)
 
int ocfs2_journal_access_db (handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *bh, int type)
 
int ocfs2_journal_access_dr (handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *bh, int type)
 
int ocfs2_journal_access_dl (handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *bh, int type)
 
int ocfs2_journal_access (handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *bh, int type)
 
void ocfs2_journal_dirty (handle_t *handle, struct buffer_head *bh)
 

Variables

spinlock_t trans_inc_lock
 

Macro Definition Documentation

#define OCFS2_DELETE_INODE_CREDITS   (3 * OCFS2_INODE_UPDATE_CREDITS + 4)

Definition at line 463 of file journal.h.

#define OCFS2_DIR_LINK_ADDITIONAL_CREDITS   (1 + OCFS2_SUBALLOC_ALLOC + 1)

Definition at line 410 of file journal.h.

#define OCFS2_DX_ROOT_REMOVE_CREDITS
Value:
OCFS2_SUBALLOC_FREE)

Definition at line 481 of file journal.h.

#define OCFS2_EXPAND_REFCOUNT_TREE_CREDITS   (OCFS2_SUBALLOC_ALLOC * 2 + 3)

Definition at line 509 of file journal.h.

#define OCFS2_GROUP_ADD_CREDITS   (OCFS2_INODE_UPDATE_CREDITS + 1)

Definition at line 383 of file journal.h.

#define OCFS2_GROUP_EXTEND_CREDITS   (OCFS2_INODE_UPDATE_CREDITS + 1)

Definition at line 380 of file journal.h.

#define OCFS2_INODE_UPDATE_CREDITS   1

Definition at line 341 of file journal.h.

#define OCFS2_JOURNAL_ACCESS_CREATE   0

Definition at line 274 of file journal.h.

#define OCFS2_JOURNAL_ACCESS_UNDO   2

Definition at line 276 of file journal.h.

#define OCFS2_JOURNAL_ACCESS_WRITE   1

Definition at line 275 of file journal.h.

#define OCFS2_LOCAL_QINFO_WRITE_CREDITS   OCFS2_QUOTA_BLOCK_UPDATE_CREDITS

Definition at line 353 of file journal.h.

#define OCFS2_QINFO_WRITE_CREDITS
Value:
OCFS2_QUOTA_BLOCK_UPDATE_CREDITS)

Definition at line 350 of file journal.h.

#define OCFS2_QSYNC_CREDITS
Value:

Definition at line 365 of file journal.h.

#define OCFS2_QUOTA_BLOCK_UPDATE_CREDITS   1

Definition at line 347 of file journal.h.

#define OCFS2_QWRITE_CREDITS
Value:
OCFS2_QUOTA_BLOCK_UPDATE_CREDITS)

Definition at line 360 of file journal.h.

#define OCFS2_REFCOUNT_TREE_CREATE_CREDITS
Value:

Definition at line 495 of file journal.h.

#define OCFS2_REFCOUNT_TREE_REMOVE_CREDITS   (OCFS2_INODE_UPDATE_CREDITS + 1)

Definition at line 506 of file journal.h.

#define OCFS2_REFCOUNT_TREE_SET_CREDITS   (OCFS2_INODE_UPDATE_CREDITS + 1)

Definition at line 499 of file journal.h.

#define OCFS2_SIMPLE_DIR_EXTEND_CREDITS   (2)

Definition at line 441 of file journal.h.

#define OCFS2_SUBALLOC_ALLOC   (3)

Definition at line 387 of file journal.h.

#define OCFS2_SUBALLOC_FREE   (2)

Definition at line 396 of file journal.h.

#define OCFS2_TRUNCATE_LOG_FLUSH_ONE_REC
Value:

Definition at line 399 of file journal.h.

#define OCFS2_TRUNCATE_LOG_UPDATE   OCFS2_INODE_UPDATE_CREDITS

Definition at line 398 of file journal.h.

#define OCFS2_WINDOW_MOVE_CREDITS
#define OCFS2_XATTR_BLOCK_CREATE_CREDITS
#define OCFS2_XATTR_BLOCK_UPDATE_CREDITS   1

Definition at line 344 of file journal.h.

Enumeration Type Documentation

Enumerator:
OCFS2_JOURNAL_FREE 
OCFS2_JOURNAL_LOADED 
OCFS2_JOURNAL_IN_SHUTDOWN 

Definition at line 32 of file journal.h.

Function Documentation

int ocfs2_check_journals_nolocks ( struct ocfs2_super osb)

Definition at line 2182 of file journal.c.

int ocfs2_commit_trans ( struct ocfs2_super osb,
handle_t *  handle 
)

Definition at line 381 of file journal.c.

void ocfs2_complete_mount_recovery ( struct ocfs2_super osb)

Definition at line 1264 of file journal.c.

void ocfs2_complete_quota_recovery ( struct ocfs2_super osb)

Definition at line 1286 of file journal.c.

void ocfs2_complete_recovery ( struct work_struct work)

Definition at line 1153 of file journal.c.

int ocfs2_compute_replay_slots ( struct ocfs2_super osb)

Definition at line 118 of file journal.c.

int ocfs2_extend_trans ( handle_t *  handle,
int  nblocks 
)

Definition at line 419 of file journal.c.

int ocfs2_journal_access ( handle_t *  handle,
struct ocfs2_caching_info ci,
struct buffer_head *  bh,
int  type 
)

Definition at line 723 of file journal.c.

int ocfs2_journal_access_db ( handle_t *  handle,
struct ocfs2_caching_info ci,
struct buffer_head *  bh,
int  type 
)

Definition at line 693 of file journal.c.

int ocfs2_journal_access_di ( handle_t *  handle,
struct ocfs2_caching_info ci,
struct buffer_head *  bh,
int  type 
)

Definition at line 668 of file journal.c.

int ocfs2_journal_access_dl ( handle_t *  handle,
struct ocfs2_caching_info ci,
struct buffer_head *  bh,
int  type 
)

Definition at line 717 of file journal.c.

int ocfs2_journal_access_dq ( handle_t *  handle,
struct ocfs2_caching_info ci,
struct buffer_head *  bh,
int  type 
)

Definition at line 705 of file journal.c.

int ocfs2_journal_access_dr ( handle_t *  handle,
struct ocfs2_caching_info ci,
struct buffer_head *  bh,
int  type 
)

Definition at line 711 of file journal.c.

int ocfs2_journal_access_eb ( handle_t *  handle,
struct ocfs2_caching_info ci,
struct buffer_head *  bh,
int  type 
)

Definition at line 674 of file journal.c.

int ocfs2_journal_access_gd ( handle_t *  handle,
struct ocfs2_caching_info ci,
struct buffer_head *  bh,
int  type 
)

Definition at line 687 of file journal.c.

int ocfs2_journal_access_rb ( handle_t *  handle,
struct ocfs2_caching_info ci,
struct buffer_head *  bh,
int  type 
)

Definition at line 680 of file journal.c.

int ocfs2_journal_access_xb ( handle_t *  handle,
struct ocfs2_caching_info ci,
struct buffer_head *  bh,
int  type 
)

Definition at line 699 of file journal.c.

void ocfs2_journal_dirty ( handle_t *  handle,
struct buffer_head *  bh 
)

Definition at line 729 of file journal.c.

int ocfs2_journal_init ( struct ocfs2_journal journal,
int dirty 
)

Definition at line 758 of file journal.c.

int ocfs2_journal_load ( struct ocfs2_journal journal,
int  local,
int  replayed 
)

Definition at line 998 of file journal.c.

void ocfs2_journal_shutdown ( struct ocfs2_super osb)

Definition at line 899 of file journal.c.

int ocfs2_journal_wipe ( struct ocfs2_journal journal,
int  full 
)

Definition at line 1042 of file journal.c.

int ocfs2_mark_dead_nodes ( struct ocfs2_super osb)

Definition at line 1734 of file journal.c.

void ocfs2_orphan_scan_exit ( struct ocfs2_super osb)
void ocfs2_orphan_scan_init ( struct ocfs2_super osb)

Definition at line 1920 of file journal.c.

void ocfs2_orphan_scan_start ( struct ocfs2_super osb)

Definition at line 1932 of file journal.c.

void ocfs2_orphan_scan_stop ( struct ocfs2_super osb)

Definition at line 1907 of file journal.c.

void ocfs2_recovery_exit ( struct ocfs2_super osb)

Definition at line 213 of file journal.c.

int ocfs2_recovery_init ( struct ocfs2_super osb)

Definition at line 180 of file journal.c.

void ocfs2_recovery_thread ( struct ocfs2_super osb,
int  node_num 
)

Definition at line 1421 of file journal.c.

void ocfs2_set_journal_params ( struct ocfs2_super osb)

Definition at line 741 of file journal.c.

handle_t* ocfs2_start_trans ( struct ocfs2_super osb,
int  max_buffs 
)

Definition at line 341 of file journal.c.

void ocfs2_wait_for_recovery ( struct ocfs2_super osb)

Definition at line 1074 of file journal.c.

Variable Documentation

spinlock_t trans_inc_lock