]>
Commit | Line | Data |
---|---|---|
959ef981 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2bd0ea18 | 2 | /* |
da23017d NS |
3 | * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc. |
4 | * All Rights Reserved. | |
2bd0ea18 NS |
5 | */ |
6 | ||
a364668b DC |
7 | /* |
8 | * common types across directory formats | |
9 | */ | |
2bd0ea18 NS |
10 | extern const field_t dir2_block_tail_flds[]; |
11 | extern const field_t dir2_data_free_flds[]; | |
2bd0ea18 | 12 | extern const field_t dir2_data_union_flds[]; |
a364668b | 13 | extern const field_t dir2_leaf_tail_flds[]; |
2bd0ea18 | 14 | extern const field_t dir2_leaf_entry_flds[]; |
a364668b DC |
15 | |
16 | extern const field_t da_node_entry_flds[]; | |
17 | ||
18 | /* | |
19 | * dirv2 specific types | |
20 | */ | |
21 | extern const field_t dir2_flds[]; | |
22 | extern const field_t dir2_hfld[]; | |
23 | extern const field_t dir2_data_hdr_flds[]; | |
24 | extern const field_t dir2_free_hdr_flds[]; | |
2bd0ea18 | 25 | extern const field_t dir2_leaf_hdr_flds[]; |
2bd0ea18 | 26 | |
9a048535 | 27 | extern const field_t da_blkinfo_flds[]; |
9a048535 DC |
28 | extern const field_t da_node_hdr_flds[]; |
29 | ||
a364668b DC |
30 | /* |
31 | * dirv3 specific types | |
32 | */ | |
33 | extern const field_t dir3_flds[]; | |
34 | extern const field_t dir3_hfld[]; | |
35 | extern const field_t dir3_blkhdr_flds[]; | |
36 | extern const field_t dir3_data_hdr_flds[]; | |
37 | extern const field_t dir3_free_hdr_flds[]; | |
38 | extern const field_t dir3_leaf_hdr_flds[]; | |
3beed08e | 39 | extern const field_t dir3_data_union_flds[]; |
a364668b DC |
40 | |
41 | extern const field_t da3_blkinfo_flds[]; | |
42 | extern const field_t da3_node_hdr_flds[]; | |
43 | ||
d8bf9c63 | 44 | static inline uint8_t *xfs_dir2_sf_inumberp(xfs_dir2_sf_entry_t *sfep) |
a2ceac1f | 45 | { |
d8bf9c63 | 46 | return &(sfep)->name[(sfep)->namelen]; |
a2ceac1f DC |
47 | } |
48 | ||
2bd0ea18 NS |
49 | extern int dir2_data_union_size(void *obj, int startoff, int idx); |
50 | extern int dir2_size(void *obj, int startoff, int idx); | |
89baf918 | 51 | extern void xfs_dir3_set_crc(struct xfs_buf *bp); |
fc068a19 DC |
52 | |
53 | extern const struct xfs_buf_ops xfs_dir3_db_buf_ops; |