diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/reiserfs_fs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/reiserfs_fs.h b/include/linux/reiserfs_fs.h index bc5114d35e99..a4db55fd1f65 100644 --- a/include/linux/reiserfs_fs.h +++ b/include/linux/reiserfs_fs.h | |||
@@ -698,7 +698,9 @@ static inline void cpu_key_k_offset_dec(struct cpu_key *key) | |||
698 | /* object identifier for root dir */ | 698 | /* object identifier for root dir */ |
699 | #define REISERFS_ROOT_OBJECTID 2 | 699 | #define REISERFS_ROOT_OBJECTID 2 |
700 | #define REISERFS_ROOT_PARENT_OBJECTID 1 | 700 | #define REISERFS_ROOT_PARENT_OBJECTID 1 |
701 | #ifdef __KERNEL__ | ||
701 | extern struct reiserfs_key root_key; | 702 | extern struct reiserfs_key root_key; |
703 | #endif /* __KERNEL__ */ | ||
702 | 704 | ||
703 | /* | 705 | /* |
704 | * Picture represents a leaf of the S+tree | 706 | * Picture represents a leaf of the S+tree |
@@ -1006,10 +1008,12 @@ struct reiserfs_de_head { | |||
1006 | #define de_visible(deh) test_bit_unaligned (DEH_Visible, &((deh)->deh_state)) | 1008 | #define de_visible(deh) test_bit_unaligned (DEH_Visible, &((deh)->deh_state)) |
1007 | #define de_hidden(deh) !test_bit_unaligned (DEH_Visible, &((deh)->deh_state)) | 1009 | #define de_hidden(deh) !test_bit_unaligned (DEH_Visible, &((deh)->deh_state)) |
1008 | 1010 | ||
1011 | #ifdef __KERNEL__ | ||
1009 | extern void make_empty_dir_item_v1(char *body, __le32 dirid, __le32 objid, | 1012 | extern void make_empty_dir_item_v1(char *body, __le32 dirid, __le32 objid, |
1010 | __le32 par_dirid, __le32 par_objid); | 1013 | __le32 par_dirid, __le32 par_objid); |
1011 | extern void make_empty_dir_item(char *body, __le32 dirid, __le32 objid, | 1014 | extern void make_empty_dir_item(char *body, __le32 dirid, __le32 objid, |
1012 | __le32 par_dirid, __le32 par_objid); | 1015 | __le32 par_dirid, __le32 par_objid); |
1016 | #endif /* __KERNEL__ */ | ||
1013 | 1017 | ||
1014 | /* array of the entry headers */ | 1018 | /* array of the entry headers */ |
1015 | /* get item body */ | 1019 | /* get item body */ |
@@ -1478,7 +1482,9 @@ struct item_operations { | |||
1478 | void (*print_vi) (struct virtual_item * vi); | 1482 | void (*print_vi) (struct virtual_item * vi); |
1479 | }; | 1483 | }; |
1480 | 1484 | ||
1485 | #ifdef __KERNEL__ | ||
1481 | extern struct item_operations *item_ops[TYPE_ANY + 1]; | 1486 | extern struct item_operations *item_ops[TYPE_ANY + 1]; |
1487 | #endif /* __KERNEL__ */ | ||
1482 | 1488 | ||
1483 | #define op_bytes_number(ih,bsize) item_ops[le_ih_k_type (ih)]->bytes_number (ih, bsize) | 1489 | #define op_bytes_number(ih,bsize) item_ops[le_ih_k_type (ih)]->bytes_number (ih, bsize) |
1484 | #define op_is_left_mergeable(key,bsize) item_ops[le_key_k_type (le_key_version (key), key)]->is_left_mergeable (key, bsize) | 1490 | #define op_is_left_mergeable(key,bsize) item_ops[le_key_k_type (le_key_version (key), key)]->is_left_mergeable (key, bsize) |
@@ -1679,6 +1685,7 @@ struct reiserfs_transaction_handle { | |||
1679 | struct list_head t_list; | 1685 | struct list_head t_list; |
1680 | }; | 1686 | }; |
1681 | 1687 | ||
1688 | #ifdef __KERNEL__ | ||
1682 | /* used to keep track of ordered and tail writes, attached to the buffer | 1689 | /* used to keep track of ordered and tail writes, attached to the buffer |
1683 | * head through b_journal_head. | 1690 | * head through b_journal_head. |
1684 | */ | 1691 | */ |
@@ -2203,4 +2210,5 @@ int reiserfs_unpack(struct inode *inode, struct file *filp); | |||
2203 | /* xattr stuff */ | 2210 | /* xattr stuff */ |
2204 | #define REISERFS_XATTR_DIR_SEM(s) (REISERFS_SB(s)->xattr_dir_sem) | 2211 | #define REISERFS_XATTR_DIR_SEM(s) (REISERFS_SB(s)->xattr_dir_sem) |
2205 | 2212 | ||
2213 | #endif /* __KERNEL__ */ | ||
2206 | #endif /* _LINUX_REISER_FS_H */ | 2214 | #endif /* _LINUX_REISER_FS_H */ |