diff options
Diffstat (limited to 'fs/xfs/xfs_dir2_priv.h')
-rw-r--r-- | fs/xfs/xfs_dir2_priv.h | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/fs/xfs/xfs_dir2_priv.h b/fs/xfs/xfs_dir2_priv.h index 910e64413316..932565d6ef2a 100644 --- a/fs/xfs/xfs_dir2_priv.h +++ b/fs/xfs/xfs_dir2_priv.h | |||
@@ -77,24 +77,25 @@ extern void xfs_dir2_data_use_free(struct xfs_trans *tp, struct xfs_buf *bp, | |||
77 | xfs_dir2_data_aoff_t len, int *needlogp, int *needscanp); | 77 | xfs_dir2_data_aoff_t len, int *needlogp, int *needscanp); |
78 | 78 | ||
79 | /* xfs_dir2_leaf.c */ | 79 | /* xfs_dir2_leaf.c */ |
80 | extern const struct xfs_buf_ops xfs_dir2_leafn_buf_ops; | 80 | extern const struct xfs_buf_ops xfs_dir3_leafn_buf_ops; |
81 | 81 | ||
82 | extern int xfs_dir2_leafn_read(struct xfs_trans *tp, struct xfs_inode *dp, | 82 | extern int xfs_dir3_leafn_read(struct xfs_trans *tp, struct xfs_inode *dp, |
83 | xfs_dablk_t fbno, xfs_daddr_t mappedbno, struct xfs_buf **bpp); | 83 | xfs_dablk_t fbno, xfs_daddr_t mappedbno, struct xfs_buf **bpp); |
84 | extern int xfs_dir2_block_to_leaf(struct xfs_da_args *args, | 84 | extern int xfs_dir2_block_to_leaf(struct xfs_da_args *args, |
85 | struct xfs_buf *dbp); | 85 | struct xfs_buf *dbp); |
86 | extern int xfs_dir2_leaf_addname(struct xfs_da_args *args); | 86 | extern int xfs_dir2_leaf_addname(struct xfs_da_args *args); |
87 | extern void xfs_dir2_leaf_compact(struct xfs_da_args *args, | 87 | extern void xfs_dir3_leaf_compact(struct xfs_da_args *args, |
88 | struct xfs_buf *bp); | 88 | struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_buf *bp); |
89 | extern void xfs_dir2_leaf_compact_x1(struct xfs_buf *bp, int *indexp, | 89 | extern void xfs_dir3_leaf_compact_x1(struct xfs_dir3_icleaf_hdr *leafhdr, |
90 | struct xfs_dir2_leaf_entry *ents, int *indexp, | ||
90 | int *lowstalep, int *highstalep, int *lowlogp, int *highlogp); | 91 | int *lowstalep, int *highstalep, int *lowlogp, int *highlogp); |
91 | extern int xfs_dir2_leaf_getdents(struct xfs_inode *dp, void *dirent, | 92 | extern int xfs_dir2_leaf_getdents(struct xfs_inode *dp, void *dirent, |
92 | size_t bufsize, xfs_off_t *offset, filldir_t filldir); | 93 | size_t bufsize, xfs_off_t *offset, filldir_t filldir); |
93 | extern int xfs_dir2_leaf_init(struct xfs_da_args *args, xfs_dir2_db_t bno, | 94 | extern int xfs_dir3_leaf_get_buf(struct xfs_da_args *args, xfs_dir2_db_t bno, |
94 | struct xfs_buf **bpp, int magic); | 95 | struct xfs_buf **bpp, __uint16_t magic); |
95 | extern void xfs_dir2_leaf_log_ents(struct xfs_trans *tp, struct xfs_buf *bp, | 96 | extern void xfs_dir3_leaf_log_ents(struct xfs_trans *tp, struct xfs_buf *bp, |
96 | int first, int last); | 97 | int first, int last); |
97 | extern void xfs_dir2_leaf_log_header(struct xfs_trans *tp, | 98 | extern void xfs_dir3_leaf_log_header(struct xfs_trans *tp, |
98 | struct xfs_buf *bp); | 99 | struct xfs_buf *bp); |
99 | extern int xfs_dir2_leaf_lookup(struct xfs_da_args *args); | 100 | extern int xfs_dir2_leaf_lookup(struct xfs_da_args *args); |
100 | extern int xfs_dir2_leaf_removename(struct xfs_da_args *args); | 101 | extern int xfs_dir2_leaf_removename(struct xfs_da_args *args); |
@@ -104,11 +105,18 @@ extern int xfs_dir2_leaf_search_hash(struct xfs_da_args *args, | |||
104 | extern int xfs_dir2_leaf_trim_data(struct xfs_da_args *args, | 105 | extern int xfs_dir2_leaf_trim_data(struct xfs_da_args *args, |
105 | struct xfs_buf *lbp, xfs_dir2_db_t db); | 106 | struct xfs_buf *lbp, xfs_dir2_db_t db); |
106 | extern struct xfs_dir2_leaf_entry * | 107 | extern struct xfs_dir2_leaf_entry * |
107 | xfs_dir2_leaf_find_entry(struct xfs_dir2_leaf *leaf, int index, int compact, | 108 | xfs_dir3_leaf_find_entry(struct xfs_dir3_icleaf_hdr *leafhdr, |
108 | int lowstale, int highstale, | 109 | struct xfs_dir2_leaf_entry *ents, int index, int compact, |
109 | int *lfloglow, int *lfloghigh); | 110 | int lowstale, int highstale, int *lfloglow, int *lfloghigh); |
110 | extern int xfs_dir2_node_to_leaf(struct xfs_da_state *state); | 111 | extern int xfs_dir2_node_to_leaf(struct xfs_da_state *state); |
111 | 112 | ||
113 | extern void xfs_dir3_leaf_hdr_from_disk(struct xfs_dir3_icleaf_hdr *to, | ||
114 | struct xfs_dir2_leaf *from); | ||
115 | extern void xfs_dir3_leaf_hdr_to_disk(struct xfs_dir2_leaf *to, | ||
116 | struct xfs_dir3_icleaf_hdr *from); | ||
117 | extern bool xfs_dir3_leaf_check_int(struct xfs_mount *mp, | ||
118 | struct xfs_dir3_icleaf_hdr *hdr, struct xfs_dir2_leaf *leaf); | ||
119 | |||
112 | /* xfs_dir2_node.c */ | 120 | /* xfs_dir2_node.c */ |
113 | extern int xfs_dir2_leaf_to_node(struct xfs_da_args *args, | 121 | extern int xfs_dir2_leaf_to_node(struct xfs_da_args *args, |
114 | struct xfs_buf *lbp); | 122 | struct xfs_buf *lbp); |