]>
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 | ||
7 | struct bbmap; | |
56b2de80 | 8 | struct xfs_bmbt_rec; |
2bd0ea18 NS |
9 | |
10 | typedef struct bmap_ext { | |
5a35bf2c DC |
11 | xfs_fileoff_t startoff; |
12 | xfs_fsblock_t startblock; | |
13 | xfs_filblks_t blockcount; | |
2bd0ea18 NS |
14 | int flag; |
15 | } bmap_ext_t; | |
16 | ||
5a35bf2c | 17 | extern void bmap(xfs_fileoff_t offset, xfs_filblks_t len, int whichfork, |
2bd0ea18 NS |
18 | int *nexp, bmap_ext_t *bep); |
19 | extern void bmap_init(void); | |
5a35bf2c DC |
20 | extern void convert_extent(struct xfs_bmbt_rec *rp, xfs_fileoff_t *op, |
21 | xfs_fsblock_t *sp, xfs_filblks_t *cp, int *fp); | |
2bd0ea18 | 22 | extern void make_bbmap(struct bbmap *bbmap, int nex, bmap_ext_t *bmp); |