| .. | .. | 
|---|
| 1 |  | -// SPDX-License-Identifier: GPL-2.0 | 
|---|
|  | 1 | +/* SPDX-License-Identifier: GPL-2.0 */ | 
|---|
| 2 | 2 | /* | 
|---|
| 3 | 3 | * Copyright (c) 2000,2005 Silicon Graphics, Inc. | 
|---|
| 4 | 4 | * All Rights Reserved. | 
|---|
| .. | .. | 
|---|
| 13 | 13 | struct xfs_buf; | 
|---|
| 14 | 14 | struct xfs_btree_cur; | 
|---|
| 15 | 15 | struct xfs_mount; | 
|---|
|  | 16 | +struct xbtree_afakeroot; | 
|---|
| 16 | 17 |  | 
|---|
| 17 | 18 | /* | 
|---|
| 18 | 19 | * Btree block header size depends on a superblock flag. | 
|---|
| .. | .. | 
|---|
| 48 | 49 | extern struct xfs_btree_cur *xfs_allocbt_init_cursor(struct xfs_mount *, | 
|---|
| 49 | 50 | struct xfs_trans *, struct xfs_buf *, | 
|---|
| 50 | 51 | xfs_agnumber_t, xfs_btnum_t); | 
|---|
|  | 52 | +struct xfs_btree_cur *xfs_allocbt_stage_cursor(struct xfs_mount *mp, | 
|---|
|  | 53 | +		struct xbtree_afakeroot *afake, xfs_agnumber_t agno, | 
|---|
|  | 54 | +		xfs_btnum_t btnum); | 
|---|
| 51 | 55 | extern int xfs_allocbt_maxrecs(struct xfs_mount *, int, int); | 
|---|
| 52 | 56 | extern xfs_extlen_t xfs_allocbt_calc_size(struct xfs_mount *mp, | 
|---|
| 53 | 57 | unsigned long long len); | 
|---|
| 54 | 58 |  | 
|---|
|  | 59 | +void xfs_allocbt_commit_staged_btree(struct xfs_btree_cur *cur, | 
|---|
|  | 60 | +		struct xfs_trans *tp, struct xfs_buf *agbp); | 
|---|
|  | 61 | + | 
|---|
| 55 | 62 | #endif	/* __XFS_ALLOC_BTREE_H__ */ | 
|---|