#include <linux/time.h>
#include <linux/semaphore.h>
#include <linux/vmalloc.h>
#include "reiserfs.h"
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/fcntl.h>
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/buffer_head.h>
#include <linux/workqueue.h>
#include <linux/writeback.h>
#include <linux/blkdev.h>
#include <linux/backing-dev.h>
#include <linux/uaccess.h>
#include <linux/slab.h>
Go to the source code of this file.
|
int | reiserfs_allocate_list_bitmaps (struct super_block *sb, struct reiserfs_list_bitmap *jb_array, unsigned int bmap_nr) |
|
int | reiserfs_in_journal (struct super_block *sb, unsigned int bmap_nr, int bit_nr, int search_all, b_blocknr_t *next_zero_bit) |
|
void | reiserfs_free_jh (struct buffer_head *bh) |
|
int | reiserfs_add_tail_list (struct inode *inode, struct buffer_head *bh) |
|
int | reiserfs_add_ordered_list (struct inode *inode, struct buffer_head *bh) |
|
int | journal_release (struct reiserfs_transaction_handle *th, struct super_block *sb) |
|
int | journal_release_error (struct reiserfs_transaction_handle *th, struct super_block *sb) |
|
int | journal_init (struct super_block *sb, const char *j_dev_name, int old_format, unsigned int commit_max_age) |
|
int | journal_transaction_should_end (struct reiserfs_transaction_handle *th, int new_alloc) |
|
void | reiserfs_block_writes (struct reiserfs_transaction_handle *th) |
|
void | reiserfs_allow_writes (struct super_block *s) |
|
void | reiserfs_wait_on_write_block (struct super_block *s) |
|
struct
reiserfs_transaction_handle * | reiserfs_persistent_transaction (struct super_block *s, int nblocks) |
|
int | reiserfs_end_persistent_transaction (struct reiserfs_transaction_handle *th) |
|
int | journal_join_abort (struct reiserfs_transaction_handle *th, struct super_block *sb, unsigned long nblocks) |
|
int | journal_begin (struct reiserfs_transaction_handle *th, struct super_block *sb, unsigned long nblocks) |
|
int | journal_mark_dirty (struct reiserfs_transaction_handle *th, struct super_block *sb, struct buffer_head *bh) |
|
int | journal_end (struct reiserfs_transaction_handle *th, struct super_block *sb, unsigned long nblocks) |
|
int | journal_end_sync (struct reiserfs_transaction_handle *th, struct super_block *sb, unsigned long nblocks) |
|
void | reiserfs_flush_old_commits (struct super_block *sb) |
|
int | journal_mark_freed (struct reiserfs_transaction_handle *th, struct super_block *sb, b_blocknr_t blocknr) |
|
void | reiserfs_update_inode_transaction (struct inode *inode) |
|
int | reiserfs_commit_for_inode (struct inode *inode) |
|
void | reiserfs_restore_prepared_buffer (struct super_block *sb, struct buffer_head *bh) |
|
int | reiserfs_prepare_for_journal (struct super_block *sb, struct buffer_head *bh, int wait) |
|
void | reiserfs_abort_journal (struct super_block *sb, int errno) |
|
#define BLOCK_FREED 2 /* this block was freed, and can't be written. */ |
#define BLOCK_FREED_HOLDER 3 /* this block was freed during this transaction, and can't be written */ |
#define BLOCK_NEEDS_FLUSH 4 /* used in flush_journal_list */ |
#define BUFNR 64 /*read ahead */ |
#define FLUSH_ALL 1 /* flush commit and real blocks */ |
#define JOURNAL_LIST_ENTRY |
( |
|
h | ) |
|
#define JOURNAL_TRANS_HALF |
#define JOURNAL_WORK_ENTRY |
( |
|
h | ) |
|
#define LIST_COMMIT_PENDING 4 /* someone will commit this list */ |
#define REISERFS_STANDARD_BLKSIZE (4096) |
When creating/tuning a file system user can assign some journal params within boundaries which depend on the ratio blocksize/standard_blocksize.
For blocks >= standard_blocksize transaction size should be not less then JOURNAL_TRANS_MIN_DEFAULT, and not more then JOURNAL_TRANS_MAX_DEFAULT.
For blocks < standard_blocksize these boundaries should be decreased proportionally.
Definition at line 2621 of file journal.c.
- Enumerator:
JBEGIN_REG |
|
JBEGIN_JOIN |
|
JBEGIN_ABORT |
|
Definition at line 107 of file journal.c.