ReactOS  0.4.14-dev-337-gf981a68
reiserfs_fs_sb.h File Reference

Go to the source code of this file.

Classes

struct  reiserfs_journal_cnode
 
struct  reiserfs_bitmap_node
 
struct  reiserfs_list_bitmap
 
struct  reiserfs_journal_list
 
struct  reiserfs_journal
 
struct  reiserfs_bitmap_info
 
struct  reiserfs_proc_info_data
 
struct  reiserfs_sb_info
 

Macros

#define sb_block_count(sbp)   (le32_to_cpu((sbp)->s_v1.s_block_count))
 
#define set_sb_block_count(sbp, v)   ((sbp)->s_v1.s_block_count = cpu_to_le32(v))
 
#define sb_free_blocks(sbp)   (le32_to_cpu((sbp)->s_v1.s_free_blocks))
 
#define set_sb_free_blocks(sbp, v)   ((sbp)->s_v1.s_free_blocks = cpu_to_le32(v))
 
#define sb_root_block(sbp)   (le32_to_cpu((sbp)->s_v1.s_root_block))
 
#define set_sb_root_block(sbp, v)   ((sbp)->s_v1.s_root_block = cpu_to_le32(v))
 
#define sb_jp_journal_1st_block(sbp)   (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_1st_block))
 
#define set_sb_jp_journal_1st_block(sbp, v)   ((sbp)->s_v1.s_journal.jp_journal_1st_block = cpu_to_le32(v))
 
#define sb_jp_journal_dev(sbp)   (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_dev))
 
#define set_sb_jp_journal_dev(sbp, v)   ((sbp)->s_v1.s_journal.jp_journal_dev = cpu_to_le32(v))
 
#define sb_jp_journal_size(sbp)   (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_size))
 
#define set_sb_jp_journal_size(sbp, v)   ((sbp)->s_v1.s_journal.jp_journal_size = cpu_to_le32(v))
 
#define sb_jp_journal_trans_max(sbp)   (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_trans_max))
 
#define set_sb_jp_journal_trans_max(sbp, v)   ((sbp)->s_v1.s_journal.jp_journal_trans_max = cpu_to_le32(v))
 
#define sb_jp_journal_magic(sbp)   (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_magic))
 
#define set_sb_jp_journal_magic(sbp, v)   ((sbp)->s_v1.s_journal.jp_journal_magic = cpu_to_le32(v))
 
#define sb_jp_journal_max_batch(sbp)   (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_max_batch))
 
#define set_sb_jp_journal_max_batch(sbp, v)   ((sbp)->s_v1.s_journal.jp_journal_max_batch = cpu_to_le32(v))
 
#define sb_jp_jourmal_max_commit_age(sbp)   (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_max_commit_age))
 
#define set_sb_jp_journal_max_commit_age(sbp, v)   ((sbp)->s_v1.s_journal.jp_journal_max_commit_age = cpu_to_le32(v))
 
#define sb_blocksize(sbp)   (le16_to_cpu((sbp)->s_v1.s_blocksize))
 
#define set_sb_blocksize(sbp, v)   ((sbp)->s_v1.s_blocksize = cpu_to_le16(v))
 
#define sb_oid_maxsize(sbp)   (le16_to_cpu((sbp)->s_v1.s_oid_maxsize))
 
#define set_sb_oid_maxsize(sbp, v)   ((sbp)->s_v1.s_oid_maxsize = cpu_to_le16(v))
 
#define sb_oid_cursize(sbp)   (le16_to_cpu((sbp)->s_v1.s_oid_cursize))
 
#define set_sb_oid_cursize(sbp, v)   ((sbp)->s_v1.s_oid_cursize = cpu_to_le16(v))
 
#define sb_umount_state(sbp)   (le16_to_cpu((sbp)->s_v1.s_umount_state))
 
#define set_sb_umount_state(sbp, v)   ((sbp)->s_v1.s_umount_state = cpu_to_le16(v))
 
#define sb_fs_state(sbp)   (le16_to_cpu((sbp)->s_v1.s_fs_state))
 
#define set_sb_fs_state(sbp, v)   ((sbp)->s_v1.s_fs_state = cpu_to_le16(v))
 
#define sb_hash_function_code(sbp)   (le32_to_cpu((sbp)->s_v1.s_hash_function_code))
 
#define set_sb_hash_function_code(sbp, v)   ((sbp)->s_v1.s_hash_function_code = cpu_to_le32(v))
 
#define sb_tree_height(sbp)   (le16_to_cpu((sbp)->s_v1.s_tree_height))
 
#define set_sb_tree_height(sbp, v)   ((sbp)->s_v1.s_tree_height = cpu_to_le16(v))
 
#define sb_bmap_nr(sbp)   (le16_to_cpu((sbp)->s_v1.s_bmap_nr))
 
#define set_sb_bmap_nr(sbp, v)   ((sbp)->s_v1.s_bmap_nr = cpu_to_le16(v))
 
#define sb_version(sbp)   (le16_to_cpu((sbp)->s_v1.s_version))
 
#define set_sb_version(sbp, v)   ((sbp)->s_v1.s_version = cpu_to_le16(v))
 
#define sb_reserved_for_journal(sbp)   (le16_to_cpu((sbp)->s_v1.s_reserved_for_journal))
 
#define set_sb_reserved_for_journal(sbp, v)   ((sbp)->s_v1.s_reserved_for_journal = cpu_to_le16(v))
 
#define JOURNAL_BLOCK_SIZE   4096 /* BUG gotta get rid of this */
 
#define JOURNAL_MAX_CNODE   1500 /* max cnodes to allocate. */
 
#define JOURNAL_HASH_SIZE   8192
 
#define JOURNAL_NUM_BITMAPS   5 /* number of copies of the bitmaps to have floating. Must be >= 2 */
 
#define JOURNAL_DESC_MAGIC   "ReIsErLB" /* ick. magic string to find desc blocks in the journal */
 
#define REISERFS_3_5   0
 
#define REISERFS_3_6   1
 
#define reiserfs_r5_hash(s)   (REISERFS_SB(s)->s_mount_opt & (1 << FORCE_R5_HASH))
 
#define reiserfs_rupasov_hash(s)   (REISERFS_SB(s)->s_mount_opt & (1 << FORCE_RUPASOV_HASH))
 
#define reiserfs_tea_hash(s)   (REISERFS_SB(s)->s_mount_opt & (1 << FORCE_TEA_HASH))
 
#define reiserfs_hash_detect(s)   (REISERFS_SB(s)->s_mount_opt & (1 << FORCE_HASH_DETECT))
 
#define reiserfs_no_border(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_NO_BORDER))
 
#define reiserfs_no_unhashed_relocation(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_NO_UNHASHED_RELOCATION))
 
#define reiserfs_hashed_relocation(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_HASHED_RELOCATION))
 
#define reiserfs_test4(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_TEST4))
 
#define have_large_tails(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_LARGETAIL))
 
#define have_small_tails(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_SMALLTAIL))
 
#define replay_only(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REPLAYONLY))
 
#define reiserfs_attrs(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_ATTRS))
 
#define old_format_only(s)   (REISERFS_SB(s)->s_properties & (1 << REISERFS_3_5))
 
#define convert_reiserfs(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_CONVERT))
 
#define reiserfs_data_log(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_DATA_LOG))
 
#define reiserfs_data_ordered(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_DATA_ORDERED))
 
#define reiserfs_data_writeback(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_DATA_WRITEBACK))
 
#define reiserfs_xattrs(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_XATTRS))
 
#define reiserfs_xattrs_user(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_XATTRS_USER))
 
#define reiserfs_posixacl(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_POSIXACL))
 
#define reiserfs_xattrs_optional(s)   (reiserfs_xattrs_user(s) || reiserfs_posixacl(s))
 
#define reiserfs_barrier_none(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_BARRIER_NONE))
 
#define reiserfs_barrier_flush(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_BARRIER_FLUSH))
 
#define reiserfs_error_panic(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_ERROR_PANIC))
 
#define reiserfs_error_ro(s)   (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_ERROR_RO))
 
#define CARRY_ON   0
 
#define SCHEDULE_OCCURRED   1
 
#define SB_BUFFER_WITH_SB(s)   (REISERFS_SB(s)->s_sbh)
 
#define SB_JOURNAL(s)   (REISERFS_SB(s)->s_journal)
 
#define SB_JOURNAL_1st_RESERVED_BLOCK(s)   (SB_JOURNAL(s)->j_1st_reserved_block)
 
#define SB_JOURNAL_LEN_FREE(s)   (SB_JOURNAL(s)->j_journal_len_free)
 
#define SB_AP_BITMAP(s)   (REISERFS_SB(s)->s_ap_bitmap)
 
#define SB_DISK_JOURNAL_HEAD(s)   (SB_JOURNAL(s)->j_header_bh->)
 
#define reiserfs_is_journal_aborted(journal)   (unlikely (__reiserfs_is_journal_aborted (journal)))
 

Typedefs

typedef __u32(* hashf_t) (const signed char *, int)
 
typedef struct reiserfs_proc_info_data reiserfs_proc_info_data_t
 

Enumerations

enum  reiserfs_super_block_flags { reiserfs_attrs_cleared = 0x00000001 }
 
enum  journal_state_bits { J_WRITERS_BLOCKED = 1, J_WRITERS_QUEUED, J_ABORTED }
 
enum  reiserfs_mount_options {
  REISERFS_LARGETAIL, REISERFS_SMALLTAIL, REPLAYONLY, REISERFS_CONVERT,
  FORCE_TEA_HASH, FORCE_RUPASOV_HASH, FORCE_R5_HASH, FORCE_HASH_DETECT,
  REISERFS_DATA_LOG, REISERFS_DATA_ORDERED, REISERFS_DATA_WRITEBACK, REISERFS_NO_BORDER,
  REISERFS_NO_UNHASHED_RELOCATION, REISERFS_HASHED_RELOCATION, REISERFS_ATTRS, REISERFS_XATTRS,
  REISERFS_XATTRS_USER, REISERFS_POSIXACL, REISERFS_BARRIER_NONE, REISERFS_BARRIER_FLUSH,
  REISERFS_ERROR_PANIC, REISERFS_ERROR_RO, REISERFS_ERROR_CONTINUE, REISERFS_TEST1,
  REISERFS_TEST2, REISERFS_TEST3, REISERFS_TEST4, REISERFS_UNSUPPORTED_OPT
}
 

Functions

void reiserfs_file_buffer (struct buffer_head *bh, int list)
 
int reiserfs_resize (struct super_block *, unsigned long)
 
static charreiserfs_bdevname (struct super_block *s)
 
static int __reiserfs_is_journal_aborted (struct reiserfs_journal *journal)
 

Variables

struct file_system_type reiserfs_fs_type
 

Macro Definition Documentation

◆ CARRY_ON

#define CARRY_ON   0

Definition at line 509 of file reiserfs_fs_sb.h.

◆ convert_reiserfs

#define convert_reiserfs (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_CONVERT))

Definition at line 491 of file reiserfs_fs_sb.h.

◆ have_large_tails

#define have_large_tails (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_LARGETAIL))

Definition at line 486 of file reiserfs_fs_sb.h.

◆ have_small_tails

#define have_small_tails (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_SMALLTAIL))

Definition at line 487 of file reiserfs_fs_sb.h.

◆ JOURNAL_BLOCK_SIZE

#define JOURNAL_BLOCK_SIZE   4096 /* BUG gotta get rid of this */

Definition at line 106 of file reiserfs_fs_sb.h.

◆ JOURNAL_DESC_MAGIC

#define JOURNAL_DESC_MAGIC   "ReIsErLB" /* ick. magic string to find desc blocks in the journal */

Definition at line 263 of file reiserfs_fs_sb.h.

◆ JOURNAL_HASH_SIZE

#define JOURNAL_HASH_SIZE   8192

Definition at line 108 of file reiserfs_fs_sb.h.

◆ JOURNAL_MAX_CNODE

#define JOURNAL_MAX_CNODE   1500 /* max cnodes to allocate. */

Definition at line 107 of file reiserfs_fs_sb.h.

◆ JOURNAL_NUM_BITMAPS

#define JOURNAL_NUM_BITMAPS   5 /* number of copies of the bitmaps to have floating. Must be >= 2 */

Definition at line 109 of file reiserfs_fs_sb.h.

◆ old_format_only

#define old_format_only (   s)    (REISERFS_SB(s)->s_properties & (1 << REISERFS_3_5))

Definition at line 490 of file reiserfs_fs_sb.h.

◆ REISERFS_3_5

#define REISERFS_3_5   0

Definition at line 420 of file reiserfs_fs_sb.h.

◆ REISERFS_3_6

#define REISERFS_3_6   1

Definition at line 421 of file reiserfs_fs_sb.h.

◆ reiserfs_attrs

#define reiserfs_attrs (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_ATTRS))

Definition at line 489 of file reiserfs_fs_sb.h.

◆ reiserfs_barrier_flush

#define reiserfs_barrier_flush (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_BARRIER_FLUSH))

Definition at line 500 of file reiserfs_fs_sb.h.

◆ reiserfs_barrier_none

#define reiserfs_barrier_none (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_BARRIER_NONE))

Definition at line 499 of file reiserfs_fs_sb.h.

◆ reiserfs_data_log

#define reiserfs_data_log (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_DATA_LOG))

Definition at line 492 of file reiserfs_fs_sb.h.

◆ reiserfs_data_ordered

#define reiserfs_data_ordered (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_DATA_ORDERED))

Definition at line 493 of file reiserfs_fs_sb.h.

◆ reiserfs_data_writeback

#define reiserfs_data_writeback (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_DATA_WRITEBACK))

Definition at line 494 of file reiserfs_fs_sb.h.

◆ reiserfs_error_panic

#define reiserfs_error_panic (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_ERROR_PANIC))

Definition at line 502 of file reiserfs_fs_sb.h.

◆ reiserfs_error_ro

#define reiserfs_error_ro (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_ERROR_RO))

Definition at line 503 of file reiserfs_fs_sb.h.

◆ reiserfs_hash_detect

#define reiserfs_hash_detect (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << FORCE_HASH_DETECT))

Definition at line 480 of file reiserfs_fs_sb.h.

◆ reiserfs_hashed_relocation

#define reiserfs_hashed_relocation (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_HASHED_RELOCATION))

Definition at line 483 of file reiserfs_fs_sb.h.

◆ reiserfs_is_journal_aborted

#define reiserfs_is_journal_aborted (   journal)    (unlikely (__reiserfs_is_journal_aborted (journal)))

Definition at line 529 of file reiserfs_fs_sb.h.

◆ reiserfs_no_border

#define reiserfs_no_border (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_NO_BORDER))

Definition at line 481 of file reiserfs_fs_sb.h.

◆ reiserfs_no_unhashed_relocation

#define reiserfs_no_unhashed_relocation (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_NO_UNHASHED_RELOCATION))

Definition at line 482 of file reiserfs_fs_sb.h.

◆ reiserfs_posixacl

#define reiserfs_posixacl (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_POSIXACL))

Definition at line 497 of file reiserfs_fs_sb.h.

◆ reiserfs_r5_hash

#define reiserfs_r5_hash (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << FORCE_R5_HASH))

Definition at line 477 of file reiserfs_fs_sb.h.

◆ reiserfs_rupasov_hash

#define reiserfs_rupasov_hash (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << FORCE_RUPASOV_HASH))

Definition at line 478 of file reiserfs_fs_sb.h.

◆ reiserfs_tea_hash

#define reiserfs_tea_hash (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << FORCE_TEA_HASH))

Definition at line 479 of file reiserfs_fs_sb.h.

◆ reiserfs_test4

#define reiserfs_test4 (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_TEST4))

Definition at line 484 of file reiserfs_fs_sb.h.

◆ reiserfs_xattrs

#define reiserfs_xattrs (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_XATTRS))

Definition at line 495 of file reiserfs_fs_sb.h.

◆ reiserfs_xattrs_optional

#define reiserfs_xattrs_optional (   s)    (reiserfs_xattrs_user(s) || reiserfs_posixacl(s))

Definition at line 498 of file reiserfs_fs_sb.h.

◆ reiserfs_xattrs_user

#define reiserfs_xattrs_user (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REISERFS_XATTRS_USER))

Definition at line 496 of file reiserfs_fs_sb.h.

◆ replay_only

#define replay_only (   s)    (REISERFS_SB(s)->s_mount_opt & (1 << REPLAYONLY))

Definition at line 488 of file reiserfs_fs_sb.h.

◆ SB_AP_BITMAP

#define SB_AP_BITMAP (   s)    (REISERFS_SB(s)->s_ap_bitmap)

Definition at line 517 of file reiserfs_fs_sb.h.

◆ sb_block_count

#define sb_block_count (   sbp)    (le32_to_cpu((sbp)->s_v1.s_block_count))

Definition at line 19 of file reiserfs_fs_sb.h.

◆ sb_blocksize

#define sb_blocksize (   sbp)    (le16_to_cpu((sbp)->s_v1.s_blocksize))

Definition at line 55 of file reiserfs_fs_sb.h.

◆ sb_bmap_nr

#define sb_bmap_nr (   sbp)    (le16_to_cpu((sbp)->s_v1.s_bmap_nr))

Definition at line 71 of file reiserfs_fs_sb.h.

◆ SB_BUFFER_WITH_SB

#define SB_BUFFER_WITH_SB (   s)    (REISERFS_SB(s)->s_sbh)

Definition at line 513 of file reiserfs_fs_sb.h.

◆ SB_DISK_JOURNAL_HEAD

#define SB_DISK_JOURNAL_HEAD (   s)    (SB_JOURNAL(s)->j_header_bh->)

Definition at line 519 of file reiserfs_fs_sb.h.

◆ sb_free_blocks

#define sb_free_blocks (   sbp)    (le32_to_cpu((sbp)->s_v1.s_free_blocks))

Definition at line 21 of file reiserfs_fs_sb.h.

◆ sb_fs_state

#define sb_fs_state (   sbp)    (le16_to_cpu((sbp)->s_v1.s_fs_state))

Definition at line 63 of file reiserfs_fs_sb.h.

◆ sb_hash_function_code

#define sb_hash_function_code (   sbp)    (le32_to_cpu((sbp)->s_v1.s_hash_function_code))

Definition at line 65 of file reiserfs_fs_sb.h.

◆ SB_JOURNAL

#define SB_JOURNAL (   s)    (REISERFS_SB(s)->s_journal)

Definition at line 514 of file reiserfs_fs_sb.h.

◆ SB_JOURNAL_1st_RESERVED_BLOCK

#define SB_JOURNAL_1st_RESERVED_BLOCK (   s)    (SB_JOURNAL(s)->j_1st_reserved_block)

Definition at line 515 of file reiserfs_fs_sb.h.

◆ SB_JOURNAL_LEN_FREE

#define SB_JOURNAL_LEN_FREE (   s)    (SB_JOURNAL(s)->j_journal_len_free)

Definition at line 516 of file reiserfs_fs_sb.h.

◆ sb_jp_jourmal_max_commit_age

#define sb_jp_jourmal_max_commit_age (   sbp)    (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_max_commit_age))

Definition at line 50 of file reiserfs_fs_sb.h.

◆ sb_jp_journal_1st_block

#define sb_jp_journal_1st_block (   sbp)    (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_1st_block))

Definition at line 26 of file reiserfs_fs_sb.h.

◆ sb_jp_journal_dev

#define sb_jp_journal_dev (   sbp)    (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_dev))

Definition at line 30 of file reiserfs_fs_sb.h.

◆ sb_jp_journal_magic

#define sb_jp_journal_magic (   sbp)    (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_magic))

Definition at line 42 of file reiserfs_fs_sb.h.

◆ sb_jp_journal_max_batch

#define sb_jp_journal_max_batch (   sbp)    (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_max_batch))

Definition at line 46 of file reiserfs_fs_sb.h.

◆ sb_jp_journal_size

#define sb_jp_journal_size (   sbp)    (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_size))

Definition at line 34 of file reiserfs_fs_sb.h.

◆ sb_jp_journal_trans_max

#define sb_jp_journal_trans_max (   sbp)    (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_trans_max))

Definition at line 38 of file reiserfs_fs_sb.h.

◆ sb_oid_cursize

#define sb_oid_cursize (   sbp)    (le16_to_cpu((sbp)->s_v1.s_oid_cursize))

Definition at line 59 of file reiserfs_fs_sb.h.

◆ sb_oid_maxsize

#define sb_oid_maxsize (   sbp)    (le16_to_cpu((sbp)->s_v1.s_oid_maxsize))

Definition at line 57 of file reiserfs_fs_sb.h.

◆ sb_reserved_for_journal

#define sb_reserved_for_journal (   sbp)    (le16_to_cpu((sbp)->s_v1.s_reserved_for_journal))

Definition at line 76 of file reiserfs_fs_sb.h.

◆ sb_root_block

#define sb_root_block (   sbp)    (le32_to_cpu((sbp)->s_v1.s_root_block))

Definition at line 23 of file reiserfs_fs_sb.h.

◆ sb_tree_height

#define sb_tree_height (   sbp)    (le16_to_cpu((sbp)->s_v1.s_tree_height))

Definition at line 69 of file reiserfs_fs_sb.h.

◆ sb_umount_state

#define sb_umount_state (   sbp)    (le16_to_cpu((sbp)->s_v1.s_umount_state))

Definition at line 61 of file reiserfs_fs_sb.h.

◆ sb_version

#define sb_version (   sbp)    (le16_to_cpu((sbp)->s_v1.s_version))

Definition at line 73 of file reiserfs_fs_sb.h.

◆ SCHEDULE_OCCURRED

#define SCHEDULE_OCCURRED   1

Definition at line 510 of file reiserfs_fs_sb.h.

◆ set_sb_block_count

#define set_sb_block_count (   sbp,
  v 
)    ((sbp)->s_v1.s_block_count = cpu_to_le32(v))

Definition at line 20 of file reiserfs_fs_sb.h.

◆ set_sb_blocksize

#define set_sb_blocksize (   sbp,
  v 
)    ((sbp)->s_v1.s_blocksize = cpu_to_le16(v))

Definition at line 56 of file reiserfs_fs_sb.h.

◆ set_sb_bmap_nr

#define set_sb_bmap_nr (   sbp,
  v 
)    ((sbp)->s_v1.s_bmap_nr = cpu_to_le16(v))

Definition at line 72 of file reiserfs_fs_sb.h.

◆ set_sb_free_blocks

#define set_sb_free_blocks (   sbp,
  v 
)    ((sbp)->s_v1.s_free_blocks = cpu_to_le32(v))

Definition at line 22 of file reiserfs_fs_sb.h.

◆ set_sb_fs_state

#define set_sb_fs_state (   sbp,
  v 
)    ((sbp)->s_v1.s_fs_state = cpu_to_le16(v))

Definition at line 64 of file reiserfs_fs_sb.h.

◆ set_sb_hash_function_code

#define set_sb_hash_function_code (   sbp,
  v 
)    ((sbp)->s_v1.s_hash_function_code = cpu_to_le32(v))

Definition at line 67 of file reiserfs_fs_sb.h.

◆ set_sb_jp_journal_1st_block

#define set_sb_jp_journal_1st_block (   sbp,
  v 
)    ((sbp)->s_v1.s_journal.jp_journal_1st_block = cpu_to_le32(v))

Definition at line 28 of file reiserfs_fs_sb.h.

◆ set_sb_jp_journal_dev

#define set_sb_jp_journal_dev (   sbp,
  v 
)    ((sbp)->s_v1.s_journal.jp_journal_dev = cpu_to_le32(v))

Definition at line 32 of file reiserfs_fs_sb.h.

◆ set_sb_jp_journal_magic

#define set_sb_jp_journal_magic (   sbp,
  v 
)    ((sbp)->s_v1.s_journal.jp_journal_magic = cpu_to_le32(v))

Definition at line 44 of file reiserfs_fs_sb.h.

◆ set_sb_jp_journal_max_batch

#define set_sb_jp_journal_max_batch (   sbp,
  v 
)    ((sbp)->s_v1.s_journal.jp_journal_max_batch = cpu_to_le32(v))

Definition at line 48 of file reiserfs_fs_sb.h.

◆ set_sb_jp_journal_max_commit_age

#define set_sb_jp_journal_max_commit_age (   sbp,
  v 
)    ((sbp)->s_v1.s_journal.jp_journal_max_commit_age = cpu_to_le32(v))

Definition at line 52 of file reiserfs_fs_sb.h.

◆ set_sb_jp_journal_size

#define set_sb_jp_journal_size (   sbp,
  v 
)    ((sbp)->s_v1.s_journal.jp_journal_size = cpu_to_le32(v))

Definition at line 36 of file reiserfs_fs_sb.h.

◆ set_sb_jp_journal_trans_max

#define set_sb_jp_journal_trans_max (   sbp,
  v 
)    ((sbp)->s_v1.s_journal.jp_journal_trans_max = cpu_to_le32(v))

Definition at line 40 of file reiserfs_fs_sb.h.

◆ set_sb_oid_cursize

#define set_sb_oid_cursize (   sbp,
  v 
)    ((sbp)->s_v1.s_oid_cursize = cpu_to_le16(v))

Definition at line 60 of file reiserfs_fs_sb.h.

◆ set_sb_oid_maxsize

#define set_sb_oid_maxsize (   sbp,
  v 
)    ((sbp)->s_v1.s_oid_maxsize = cpu_to_le16(v))

Definition at line 58 of file reiserfs_fs_sb.h.

◆ set_sb_reserved_for_journal

#define set_sb_reserved_for_journal (   sbp,
  v 
)    ((sbp)->s_v1.s_reserved_for_journal = cpu_to_le16(v))

Definition at line 78 of file reiserfs_fs_sb.h.

◆ set_sb_root_block

#define set_sb_root_block (   sbp,
  v 
)    ((sbp)->s_v1.s_root_block = cpu_to_le32(v))

Definition at line 24 of file reiserfs_fs_sb.h.

◆ set_sb_tree_height

#define set_sb_tree_height (   sbp,
  v 
)    ((sbp)->s_v1.s_tree_height = cpu_to_le16(v))

Definition at line 70 of file reiserfs_fs_sb.h.

◆ set_sb_umount_state

#define set_sb_umount_state (   sbp,
  v 
)    ((sbp)->s_v1.s_umount_state = cpu_to_le16(v))

Definition at line 62 of file reiserfs_fs_sb.h.

◆ set_sb_version

#define set_sb_version (   sbp,
  v 
)    ((sbp)->s_v1.s_version = cpu_to_le16(v))

Definition at line 74 of file reiserfs_fs_sb.h.

Typedef Documentation

◆ hashf_t

typedef __u32(* hashf_t) (const signed char *, int)

Definition at line 265 of file reiserfs_fs_sb.h.

◆ reiserfs_proc_info_data_t

Enumeration Type Documentation

◆ journal_state_bits

Enumerator
J_WRITERS_BLOCKED 
J_WRITERS_QUEUED 
J_ABORTED 

Definition at line 256 of file reiserfs_fs_sb.h.

256  {
257  J_WRITERS_BLOCKED = 1, /* set when new writers not allowed */
258  J_WRITERS_QUEUED, /* set when log is full due to too many writers */
259  J_ABORTED, /* set when log is aborted */
260 };

◆ reiserfs_mount_options

Enumerator
REISERFS_LARGETAIL 
REISERFS_SMALLTAIL 
REPLAYONLY 
REISERFS_CONVERT 
FORCE_TEA_HASH 
FORCE_RUPASOV_HASH 
FORCE_R5_HASH 
FORCE_HASH_DETECT 
REISERFS_DATA_LOG 
REISERFS_DATA_ORDERED 
REISERFS_DATA_WRITEBACK 
REISERFS_NO_BORDER 
REISERFS_NO_UNHASHED_RELOCATION 
REISERFS_HASHED_RELOCATION 
REISERFS_ATTRS 
REISERFS_XATTRS 
REISERFS_XATTRS_USER 
REISERFS_POSIXACL 
REISERFS_BARRIER_NONE 
REISERFS_BARRIER_FLUSH 
REISERFS_ERROR_PANIC 
REISERFS_ERROR_RO 
REISERFS_ERROR_CONTINUE 
REISERFS_TEST1 
REISERFS_TEST2 
REISERFS_TEST3 
REISERFS_TEST4 
REISERFS_UNSUPPORTED_OPT 

Definition at line 423 of file reiserfs_fs_sb.h.

423  {
424 /* Mount options */
425  REISERFS_LARGETAIL, /* large tails will be created in a session */
426  REISERFS_SMALLTAIL, /* small (for files less than block size) tails will be created in a session */
427  REPLAYONLY, /* replay journal and return 0. Use by fsck */
428  REISERFS_CONVERT, /* -o conv: causes conversion of old
429  format super block to the new
430  format. If not specified - old
431  partition will be dealt with in a
432  manner of 3.5.x */
433 
434 /* -o hash={tea, rupasov, r5, detect} is meant for properly mounting
435 ** reiserfs disks from 3.5.19 or earlier. 99% of the time, this option
436 ** is not required. If the normal autodection code can't determine which
437 ** hash to use (because both hases had the same value for a file)
438 ** use this option to force a specific hash. It won't allow you to override
439 ** the existing hash on the FS, so if you have a tea hash disk, and mount
440 ** with -o hash=rupasov, the mount will fail.
441 */
442  FORCE_TEA_HASH, /* try to force tea hash on mount */
443  FORCE_RUPASOV_HASH, /* try to force rupasov hash on mount */
444  FORCE_R5_HASH, /* try to force rupasov hash on mount */
445  FORCE_HASH_DETECT, /* try to detect hash function on mount */
446 
450 
451 /* used for testing experimental features, makes benchmarking new
452  features with and without more convenient, should never be used by
453  users in any code shipped to users (ideally) */
454 
464 
465  /* Actions on error */
469 
475 };

◆ reiserfs_super_block_flags

Enumerator
reiserfs_attrs_cleared 

Definition at line 12 of file reiserfs_fs_sb.h.

Function Documentation

◆ __reiserfs_is_journal_aborted()

static int __reiserfs_is_journal_aborted ( struct reiserfs_journal journal)
inlinestatic

Definition at line 530 of file reiserfs_fs_sb.h.

531 {
532  return test_bit (J_ABORTED, &journal->j_state);
533 }
static int test_bit(int nr, volatile const unsigned long *addr)
Definition: module.h:381

◆ reiserfs_bdevname()

static char* reiserfs_bdevname ( struct super_block s)
inlinestatic

Definition at line 524 of file reiserfs_fs_sb.h.

525 {
526  return (s == NULL) ? "Null superblock" : s -> s_id;
527 }
smooth NULL
Definition: ftsmooth.c:416
GLdouble s
Definition: gl.h:2039

◆ reiserfs_file_buffer()

void reiserfs_file_buffer ( struct buffer_head bh,
int  list 
)

◆ reiserfs_resize()

int reiserfs_resize ( struct super_block ,
unsigned long   
)

Variable Documentation

◆ reiserfs_fs_type

struct file_system_type reiserfs_fs_type