2 * Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of version 2 of the GNU General Public License as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it would be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 * Further, this software is distributed without any warranty that it is
13 * free of the rightful claim of any third person regarding infringement
14 * or the like. Any license provided herein, whether implied or
15 * otherwise, applies only to this software file. Patent licenses, if
16 * any, provided herein do not apply to combinations of this program with
17 * other software, or any other product whatsoever.
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write the Free Software Foundation, Inc., 59
21 * Temple Place - Suite 330, Boston MA 02111-1307, USA.
23 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
24 * Mountain View, CA 94043, or:
28 * For further information regarding this notice, see:
30 * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
36 #include "xfs_macros.h"
37 #include "xfs_types.h"
40 #include "xfs_trans.h"
45 #include "xfs_dmapi.h"
46 #include "xfs_mount.h"
47 #include "xfs_alloc_btree.h"
48 #include "xfs_ialloc_btree.h"
49 #include "xfs_bmap_btree.h"
50 #include "xfs_btree.h"
51 #include "xfs_attr_sf.h"
52 #include "xfs_dir_sf.h"
53 #include "xfs_dir2_sf.h"
54 #include "xfs_dinode.h"
55 #include "xfs_ialloc.h"
56 #include "xfs_inode_item.h"
57 #include "xfs_inode.h"
60 #include "xfs_log_priv.h"
61 #include "xfs_da_btree.h"
62 #include "xfs_attr_leaf.h"
63 #include "xfs_dir_leaf.h"
64 #include "xfs_dir2_data.h"
65 #include "xfs_dir2_leaf.h"
66 #include "xfs_dir2_block.h"
67 #include "xfs_dir2_node.h"
70 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_ISNULLDSTARTBLOCK)
72 isnulldstartblock(xfs_dfsbno_t x
)
74 return ISNULLDSTARTBLOCK(x
);
78 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_ISNULLSTARTBLOCK)
80 isnullstartblock(xfs_fsblock_t x
)
82 return ISNULLSTARTBLOCK(x
);
86 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_NULLSTARTBLOCK)
90 return NULLSTARTBLOCK(k
);
94 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_STARTBLOCKVAL)
96 startblockval(xfs_fsblock_t x
)
98 return STARTBLOCKVAL(x
);
102 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AG_CHECK_DADDR)
104 xfs_ag_check_daddr(xfs_mount_t
*mp
, xfs_daddr_t d
, xfs_extlen_t len
)
106 XFS_AG_CHECK_DADDR(mp
, d
, len
);
110 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AG_DADDR)
112 xfs_ag_daddr(xfs_mount_t
*mp
, xfs_agnumber_t agno
, xfs_daddr_t d
)
114 return XFS_AG_DADDR(mp
, agno
, d
);
118 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AG_MAXLEVELS)
120 xfs_ag_maxlevels(xfs_mount_t
*mp
)
122 return XFS_AG_MAXLEVELS(mp
);
126 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGB_TO_DADDR)
128 xfs_agb_to_daddr(xfs_mount_t
*mp
, xfs_agnumber_t agno
, xfs_agblock_t agbno
)
130 return XFS_AGB_TO_DADDR(mp
, agno
, agbno
);
134 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGB_TO_FSB)
136 xfs_agb_to_fsb(xfs_mount_t
*mp
, xfs_agnumber_t agno
, xfs_agblock_t agbno
)
138 return XFS_AGB_TO_FSB(mp
, agno
, agbno
);
142 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGBLOCK_MAX)
144 xfs_agblock_max(xfs_agblock_t a
, xfs_agblock_t b
)
146 return XFS_AGBLOCK_MAX(a
, b
);
150 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGBLOCK_MIN)
152 xfs_agblock_min(xfs_agblock_t a
, xfs_agblock_t b
)
154 return XFS_AGBLOCK_MIN(a
, b
);
158 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGF_BLOCK)
160 xfs_agf_block(xfs_mount_t
*mp
)
162 return XFS_AGF_BLOCK(mp
);
166 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGF_GOOD_VERSION)
168 xfs_agf_good_version(unsigned v
)
170 return XFS_AGF_GOOD_VERSION(v
);
174 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGFL_BLOCK)
176 xfs_agfl_block(xfs_mount_t
*mp
)
178 return XFS_AGFL_BLOCK(mp
);
182 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGI_BLOCK)
184 xfs_agi_block(xfs_mount_t
*mp
)
186 return XFS_AGI_BLOCK(mp
);
190 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGI_GOOD_VERSION)
192 xfs_agi_good_version(unsigned v
)
194 return XFS_AGI_GOOD_VERSION(v
);
198 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGINO_TO_AGBNO)
200 xfs_agino_to_agbno(xfs_mount_t
*mp
, xfs_agino_t i
)
202 return XFS_AGINO_TO_AGBNO(mp
, i
);
206 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGINO_TO_INO)
208 xfs_agino_to_ino(xfs_mount_t
*mp
, xfs_agnumber_t a
, xfs_agino_t i
)
210 return XFS_AGINO_TO_INO(mp
, a
, i
);
214 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGINO_TO_OFFSET)
216 xfs_agino_to_offset(xfs_mount_t
*mp
, xfs_agino_t i
)
218 return XFS_AGINO_TO_OFFSET(mp
, i
);
222 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ALLOC_BLOCK_MAXRECS)
224 xfs_alloc_block_maxrecs(int lev
, xfs_btree_cur_t
*cur
)
226 return XFS_ALLOC_BLOCK_MAXRECS(lev
, cur
);
230 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ALLOC_BLOCK_MINRECS)
232 xfs_alloc_block_minrecs(int lev
, xfs_btree_cur_t
*cur
)
234 return XFS_ALLOC_BLOCK_MINRECS(lev
, cur
);
238 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ALLOC_BLOCK_SIZE)
241 xfs_alloc_block_size(int lev
, xfs_btree_cur_t
*cur
)
243 return XFS_ALLOC_BLOCK_SIZE(lev
, cur
);
247 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ALLOC_KEY_ADDR)
250 xfs_alloc_key_addr(xfs_alloc_block_t
*bb
, int i
, xfs_btree_cur_t
*cur
)
252 return XFS_ALLOC_KEY_ADDR(bb
, i
, cur
);
256 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ALLOC_PTR_ADDR)
258 xfs_alloc_ptr_addr(xfs_alloc_block_t
*bb
, int i
, xfs_btree_cur_t
*cur
)
260 return XFS_ALLOC_PTR_ADDR(bb
, i
, cur
);
264 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ALLOC_REC_ADDR)
267 xfs_alloc_rec_addr(xfs_alloc_block_t
*bb
, int i
, xfs_btree_cur_t
*cur
)
269 return XFS_ALLOC_REC_ADDR(bb
, i
, cur
);
273 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_LEAF_ENTSIZE_LOCAL)
275 xfs_attr_leaf_entsize_local(int nlen
, int vlen
)
277 return XFS_ATTR_LEAF_ENTSIZE_LOCAL(nlen
, vlen
);
281 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_LEAF_ENTSIZE_LOCAL_MAX)
283 xfs_attr_leaf_entsize_local_max(int bsize
)
285 return XFS_ATTR_LEAF_ENTSIZE_LOCAL_MAX(bsize
);
289 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_LEAF_ENTSIZE_REMOTE)
291 xfs_attr_leaf_entsize_remote(int nlen
)
293 return XFS_ATTR_LEAF_ENTSIZE_REMOTE(nlen
);
297 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_LEAF_NAME)
299 xfs_attr_leaf_name(xfs_attr_leafblock_t
*leafp
, int idx
)
301 return XFS_ATTR_LEAF_NAME(leafp
, idx
);
305 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_LEAF_NAME_LOCAL)
306 xfs_attr_leaf_name_local_t
*
307 xfs_attr_leaf_name_local(xfs_attr_leafblock_t
*leafp
, int idx
)
309 return XFS_ATTR_LEAF_NAME_LOCAL(leafp
, idx
);
313 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_LEAF_NAME_REMOTE)
314 xfs_attr_leaf_name_remote_t
*
315 xfs_attr_leaf_name_remote(xfs_attr_leafblock_t
*leafp
, int idx
)
317 return XFS_ATTR_LEAF_NAME_REMOTE(leafp
, idx
);
321 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_SF_ENTSIZE)
323 xfs_attr_sf_entsize(xfs_attr_sf_entry_t
*sfep
)
325 return XFS_ATTR_SF_ENTSIZE(sfep
);
329 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_SF_ENTSIZE_BYNAME)
331 xfs_attr_sf_entsize_byname(int nlen
, int vlen
)
333 return XFS_ATTR_SF_ENTSIZE_BYNAME(nlen
, vlen
);
337 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_SF_NEXTENTRY)
338 xfs_attr_sf_entry_t
*
339 xfs_attr_sf_nextentry(xfs_attr_sf_entry_t
*sfep
)
341 return XFS_ATTR_SF_NEXTENTRY(sfep
);
345 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_SF_TOTSIZE)
347 xfs_attr_sf_totsize(xfs_inode_t
*dp
)
349 return XFS_ATTR_SF_TOTSIZE(dp
);
353 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BHVTOI)
355 xfs_bhvtoi(bhv_desc_t
*bhvp
)
357 return XFS_BHVTOI(bhvp
);
361 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BHVTOM)
363 xfs_bhvtom(bhv_desc_t
*bdp
)
365 return XFS_BHVTOM(bdp
);
369 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_VFSTOM)
371 xfs_vfstom(vfs_t
*vfs
)
373 return XFS_VFSTOM(vfs
);
377 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BM_MAXLEVELS)
379 xfs_bm_maxlevels(xfs_mount_t
*mp
, int w
)
381 return XFS_BM_MAXLEVELS(mp
, w
);
385 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BLOCK_DMAXRECS)
387 xfs_bmap_block_dmaxrecs(int lev
, xfs_btree_cur_t
*cur
)
389 return XFS_BMAP_BLOCK_DMAXRECS(lev
, cur
);
393 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BLOCK_DMINRECS)
395 xfs_bmap_block_dminrecs(int lev
, xfs_btree_cur_t
*cur
)
397 return XFS_BMAP_BLOCK_DMINRECS(lev
, cur
);
401 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BLOCK_DSIZE)
403 xfs_bmap_block_dsize(int lev
, xfs_btree_cur_t
*cur
)
405 return XFS_BMAP_BLOCK_DSIZE(lev
, cur
);
409 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BLOCK_IMAXRECS)
411 xfs_bmap_block_imaxrecs(int lev
, xfs_btree_cur_t
*cur
)
413 return XFS_BMAP_BLOCK_IMAXRECS(lev
, cur
);
417 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BLOCK_IMINRECS)
419 xfs_bmap_block_iminrecs(int lev
, xfs_btree_cur_t
*cur
)
421 return XFS_BMAP_BLOCK_IMINRECS(lev
, cur
);
425 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BLOCK_ISIZE)
427 xfs_bmap_block_isize(int lev
, xfs_btree_cur_t
*cur
)
429 return XFS_BMAP_BLOCK_ISIZE(lev
, cur
);
433 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BROOT_KEY_ADDR)
436 xfs_bmap_broot_key_addr(xfs_bmbt_block_t
*bb
, int i
, int sz
)
438 return XFS_BMAP_BROOT_KEY_ADDR(bb
, i
, sz
);
442 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BROOT_MAXRECS)
444 xfs_bmap_broot_maxrecs(int sz
)
446 return XFS_BMAP_BROOT_MAXRECS(sz
);
450 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BROOT_NUMRECS)
452 xfs_bmap_broot_numrecs(xfs_bmdr_block_t
*bb
)
454 return XFS_BMAP_BROOT_NUMRECS(bb
);
458 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BROOT_PTR_ADDR)
460 xfs_bmap_broot_ptr_addr(xfs_bmbt_block_t
*bb
, int i
, int sz
)
462 return XFS_BMAP_BROOT_PTR_ADDR(bb
, i
, sz
);
466 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BROOT_REC_ADDR)
469 xfs_bmap_broot_rec_addr(xfs_bmbt_block_t
*bb
, int i
, int sz
)
471 return XFS_BMAP_BROOT_REC_ADDR(bb
, i
, sz
);
475 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BROOT_SPACE)
477 xfs_bmap_broot_space(xfs_bmdr_block_t
*bb
)
479 return XFS_BMAP_BROOT_SPACE(bb
);
483 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BROOT_SPACE_CALC)
485 xfs_bmap_broot_space_calc(int nrecs
)
487 return XFS_BMAP_BROOT_SPACE_CALC(nrecs
);
491 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_IBLOCK_SIZE)
494 xfs_bmap_iblock_size(int lev
, xfs_btree_cur_t
*cur
)
496 return XFS_BMAP_IBLOCK_SIZE(lev
, cur
);
500 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_INIT)
502 xfs_bmap_init(xfs_bmap_free_t
*flp
, xfs_fsblock_t
*fbp
)
504 XFS_BMAP_INIT(flp
, fbp
);
508 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_KEY_DADDR)
511 xfs_bmap_key_daddr(xfs_bmbt_block_t
*bb
, int i
, xfs_btree_cur_t
*cur
)
513 return XFS_BMAP_KEY_DADDR(bb
, i
, cur
);
517 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_KEY_IADDR)
520 xfs_bmap_key_iaddr(xfs_bmbt_block_t
*bb
, int i
, xfs_btree_cur_t
*cur
)
522 return XFS_BMAP_KEY_IADDR(bb
, i
, cur
);
526 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_PTR_DADDR)
528 xfs_bmap_ptr_daddr(xfs_bmbt_block_t
*bb
, int i
, xfs_btree_cur_t
*cur
)
530 return XFS_BMAP_PTR_DADDR(bb
, i
, cur
);
534 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_PTR_IADDR)
536 xfs_bmap_ptr_iaddr(xfs_bmbt_block_t
*bb
, int i
, xfs_btree_cur_t
*cur
)
538 return XFS_BMAP_PTR_IADDR(bb
, i
, cur
);
542 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_RBLOCK_DSIZE)
545 xfs_bmap_rblock_dsize(int lev
, xfs_btree_cur_t
*cur
)
547 return XFS_BMAP_RBLOCK_DSIZE(lev
, cur
);
551 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_RBLOCK_ISIZE)
554 xfs_bmap_rblock_isize(int lev
, xfs_btree_cur_t
*cur
)
556 return XFS_BMAP_RBLOCK_ISIZE(lev
, cur
);
560 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_REC_DADDR)
563 xfs_bmap_rec_daddr(xfs_bmbt_block_t
*bb
, int i
, xfs_btree_cur_t
*cur
)
565 return XFS_BMAP_REC_DADDR(bb
, i
, cur
);
569 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_REC_IADDR)
572 xfs_bmap_rec_iaddr(xfs_bmbt_block_t
*bb
, int i
, xfs_btree_cur_t
*cur
)
574 return XFS_BMAP_REC_IADDR(bb
, i
, cur
);
578 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_SANITY_CHECK)
580 xfs_bmap_sanity_check(xfs_mount_t
*mp
, xfs_bmbt_block_t
*bb
, int level
)
582 return XFS_BMAP_SANITY_CHECK(mp
, bb
, level
);
586 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAPI_AFLAG)
588 xfs_bmapi_aflag(int w
)
590 return XFS_BMAPI_AFLAG(w
);
594 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMDR_SPACE_CALC)
596 xfs_bmdr_space_calc(int nrecs
)
598 return XFS_BMDR_SPACE_CALC(nrecs
);
602 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BNO_BLOCK)
604 xfs_bno_block(xfs_mount_t
*mp
)
606 return XFS_BNO_BLOCK(mp
);
610 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BTREE_LONG_PTRS)
612 xfs_btree_long_ptrs(xfs_btnum_t btnum
)
614 return XFS_BTREE_LONG_PTRS(btnum
);
618 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_AGF)
620 xfs_buf_to_agf(xfs_buf_t
*bp
)
622 return XFS_BUF_TO_AGF(bp
);
626 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_AGFL)
628 xfs_buf_to_agfl(xfs_buf_t
*bp
)
630 return XFS_BUF_TO_AGFL(bp
);
634 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_AGI)
636 xfs_buf_to_agi(xfs_buf_t
*bp
)
638 return XFS_BUF_TO_AGI(bp
);
642 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_ALLOC_BLOCK)
644 xfs_buf_to_alloc_block(xfs_buf_t
*bp
)
646 return XFS_BUF_TO_ALLOC_BLOCK(bp
);
650 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_BLOCK)
652 xfs_buf_to_block(xfs_buf_t
*bp
)
654 return XFS_BUF_TO_BLOCK(bp
);
658 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_BMBT_BLOCK)
660 xfs_buf_to_bmbt_block(xfs_buf_t
*bp
)
662 return XFS_BUF_TO_BMBT_BLOCK(bp
);
666 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_DINODE)
668 xfs_buf_to_dinode(xfs_buf_t
*bp
)
670 return XFS_BUF_TO_DINODE(bp
);
674 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_INOBT_BLOCK)
676 xfs_buf_to_inobt_block(xfs_buf_t
*bp
)
678 return XFS_BUF_TO_INOBT_BLOCK(bp
);
682 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_LBLOCK)
684 xfs_buf_to_lblock(xfs_buf_t
*bp
)
686 return XFS_BUF_TO_LBLOCK(bp
);
690 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_SBLOCK)
692 xfs_buf_to_sblock(xfs_buf_t
*bp
)
694 return XFS_BUF_TO_SBLOCK(bp
);
698 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_SBP)
700 xfs_buf_to_sbp(xfs_buf_t
*bp
)
702 return XFS_BUF_TO_SBP(bp
);
706 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_ASIZE)
708 xfs_cfork_asize_arch(xfs_dinode_core_t
*dcp
, xfs_mount_t
*mp
, xfs_arch_t arch
)
710 return XFS_CFORK_ASIZE_ARCH(dcp
, mp
, arch
);
713 xfs_cfork_asize(xfs_dinode_core_t
*dcp
, xfs_mount_t
*mp
)
715 return XFS_CFORK_ASIZE(dcp
, mp
);
719 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_BOFF)
721 xfs_cfork_boff_arch(xfs_dinode_core_t
*dcp
, xfs_arch_t arch
)
723 return XFS_CFORK_BOFF_ARCH(dcp
, arch
);
726 xfs_cfork_boff(xfs_dinode_core_t
*dcp
)
728 return XFS_CFORK_BOFF(dcp
);
732 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_DSIZE)
734 xfs_cfork_dsize_arch(xfs_dinode_core_t
*dcp
, xfs_mount_t
*mp
, xfs_arch_t arch
)
736 return XFS_CFORK_DSIZE_ARCH(dcp
, mp
, arch
);
739 xfs_cfork_dsize(xfs_dinode_core_t
*dcp
, xfs_mount_t
*mp
)
741 return XFS_CFORK_DSIZE(dcp
, mp
);
745 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_FMT_SET)
747 xfs_cfork_fmt_set_arch(xfs_dinode_core_t
*dcp
, int w
, int n
, xfs_arch_t arch
)
749 XFS_CFORK_FMT_SET_ARCH(dcp
, w
, n
, arch
);
752 xfs_cfork_fmt_set(xfs_dinode_core_t
*dcp
, int w
, int n
)
754 XFS_CFORK_FMT_SET(dcp
, w
, n
);
758 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_FORMAT)
760 xfs_cfork_format_arch(xfs_dinode_core_t
*dcp
, int w
, xfs_arch_t arch
)
762 return XFS_CFORK_FORMAT_ARCH(dcp
, w
, arch
);
765 xfs_cfork_format(xfs_dinode_core_t
*dcp
, int w
)
767 return XFS_CFORK_FORMAT(dcp
, w
);
771 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_NEXT_SET)
773 xfs_cfork_next_set_arch(xfs_dinode_core_t
*dcp
, int w
, int n
, xfs_arch_t arch
)
775 XFS_CFORK_NEXT_SET_ARCH(dcp
, w
, n
, arch
);
778 xfs_cfork_next_set(xfs_dinode_core_t
*dcp
, int w
, int n
)
780 XFS_CFORK_NEXT_SET(dcp
, w
, n
);
784 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_NEXTENTS)
786 xfs_cfork_nextents_arch(xfs_dinode_core_t
*dcp
, int w
, xfs_arch_t arch
)
788 return XFS_CFORK_NEXTENTS_ARCH(dcp
, w
, arch
);
791 xfs_cfork_nextents(xfs_dinode_core_t
*dcp
, int w
)
793 return XFS_CFORK_NEXTENTS(dcp
, w
);
797 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_Q)
799 xfs_cfork_q_arch(xfs_dinode_core_t
*dcp
, xfs_arch_t arch
)
801 return XFS_CFORK_Q_ARCH(dcp
, arch
);
804 xfs_cfork_q(xfs_dinode_core_t
*dcp
)
806 return XFS_CFORK_Q(dcp
);
810 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_SIZE)
812 xfs_cfork_size_arch(xfs_dinode_core_t
*dcp
, xfs_mount_t
*mp
, int w
, xfs_arch_t arch
)
814 return XFS_CFORK_SIZE_ARCH(dcp
, mp
, w
, arch
);
817 xfs_cfork_size(xfs_dinode_core_t
*dcp
, xfs_mount_t
*mp
, int w
)
819 return XFS_CFORK_SIZE(dcp
, mp
, w
);
823 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CNT_BLOCK)
825 xfs_cnt_block(xfs_mount_t
*mp
)
827 return XFS_CNT_BLOCK(mp
);
831 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DA_COOKIE_BNO)
833 xfs_da_cookie_bno(xfs_mount_t
*mp
, xfs_off_t cookie
)
835 return XFS_DA_COOKIE_BNO(mp
, cookie
);
839 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DA_COOKIE_ENTRY)
841 xfs_da_cookie_entry(xfs_mount_t
*mp
, xfs_off_t cookie
)
843 return XFS_DA_COOKIE_ENTRY(mp
, cookie
);
847 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DA_COOKIE_HASH)
850 xfs_da_cookie_hash(xfs_mount_t
*mp
, xfs_off_t cookie
)
852 return XFS_DA_COOKIE_HASH(mp
, cookie
);
856 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DA_MAKE_BNOENTRY)
858 xfs_da_make_bnoentry(xfs_mount_t
*mp
, xfs_dablk_t bno
, int entry
)
860 return XFS_DA_MAKE_BNOENTRY(mp
, bno
, entry
);
864 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DA_MAKE_COOKIE)
866 xfs_da_make_cookie(xfs_mount_t
*mp
, xfs_dablk_t bno
, int entry
,
869 return XFS_DA_MAKE_COOKIE(mp
, bno
, entry
, hash
);
873 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DADDR_TO_AGBNO)
875 xfs_daddr_to_agbno(xfs_mount_t
*mp
, xfs_daddr_t d
)
877 return XFS_DADDR_TO_AGBNO(mp
, d
);
881 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DADDR_TO_AGNO)
883 xfs_daddr_to_agno(xfs_mount_t
*mp
, xfs_daddr_t d
)
885 return XFS_DADDR_TO_AGNO(mp
, d
);
889 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DADDR_TO_FSB)
891 xfs_daddr_to_fsb(xfs_mount_t
*mp
, xfs_daddr_t d
)
893 return XFS_DADDR_TO_FSB(mp
, d
);
897 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_APTR)
899 xfs_dfork_aptr_arch(xfs_dinode_t
*dip
, xfs_arch_t arch
)
901 return XFS_DFORK_APTR_ARCH(dip
, arch
);
904 xfs_dfork_aptr(xfs_dinode_t
*dip
)
906 return XFS_DFORK_APTR(dip
);
910 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_ASIZE)
912 xfs_dfork_asize_arch(xfs_dinode_t
*dip
, xfs_mount_t
*mp
, xfs_arch_t arch
)
914 return XFS_DFORK_ASIZE_ARCH(dip
, mp
, arch
);
917 xfs_dfork_asize(xfs_dinode_t
*dip
, xfs_mount_t
*mp
)
919 return XFS_DFORK_ASIZE(dip
, mp
);
923 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_BOFF)
925 xfs_dfork_boff_arch(xfs_dinode_t
*dip
, xfs_arch_t arch
)
927 return XFS_DFORK_BOFF_ARCH(dip
, arch
);
930 xfs_dfork_boff(xfs_dinode_t
*dip
)
932 return XFS_DFORK_BOFF(dip
);
936 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_DPTR)
938 xfs_dfork_dptr_arch(xfs_dinode_t
*dip
, xfs_arch_t arch
)
940 return XFS_DFORK_DPTR_ARCH(dip
, arch
);
943 xfs_dfork_dptr(xfs_dinode_t
*dip
)
945 return XFS_DFORK_DPTR(dip
);
949 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_DSIZE)
951 xfs_dfork_dsize_arch(xfs_dinode_t
*dip
, xfs_mount_t
*mp
, xfs_arch_t arch
)
953 return XFS_DFORK_DSIZE_ARCH(dip
, mp
, arch
);
956 xfs_dfork_dsize(xfs_dinode_t
*dip
, xfs_mount_t
*mp
)
958 return XFS_DFORK_DSIZE(dip
, mp
);
962 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_FMT_SET)
964 xfs_dfork_fmt_set_arch(xfs_dinode_t
*dip
, int w
, int n
, xfs_arch_t arch
)
966 XFS_DFORK_FMT_SET_ARCH(dip
, w
, n
, arch
);
969 xfs_dfork_fmt_set(xfs_dinode_t
*dip
, int w
, int n
)
971 XFS_DFORK_FMT_SET(dip
, w
, n
);
975 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_FORMAT)
977 xfs_dfork_format_arch(xfs_dinode_t
*dip
, int w
, xfs_arch_t arch
)
979 return XFS_DFORK_FORMAT_ARCH(dip
, w
, arch
);
982 xfs_dfork_format(xfs_dinode_t
*dip
, int w
)
984 return XFS_DFORK_FORMAT(dip
, w
);
988 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_NEXT_SET)
990 xfs_dfork_next_set_arch(xfs_dinode_t
*dip
, int w
, int n
, xfs_arch_t arch
)
992 XFS_DFORK_NEXT_SET_ARCH(dip
, w
, n
, arch
);
995 xfs_dfork_next_set(xfs_dinode_t
*dip
, int w
, int n
)
997 XFS_DFORK_NEXT_SET(dip
, w
, n
);
1001 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_NEXTENTS)
1003 xfs_dfork_nextents_arch(xfs_dinode_t
*dip
, int w
, xfs_arch_t arch
)
1005 return XFS_DFORK_NEXTENTS_ARCH(dip
, w
, arch
);
1008 xfs_dfork_nextents(xfs_dinode_t
*dip
, int w
)
1010 return XFS_DFORK_NEXTENTS(dip
, w
);
1014 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_PTR)
1016 xfs_dfork_ptr_arch(xfs_dinode_t
*dip
, int w
, xfs_arch_t arch
)
1018 return XFS_DFORK_PTR_ARCH(dip
, w
, arch
);
1021 xfs_dfork_ptr(xfs_dinode_t
*dip
, int w
)
1023 return XFS_DFORK_PTR(dip
, w
);
1027 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_Q)
1029 xfs_dfork_q_arch(xfs_dinode_t
*dip
, xfs_arch_t arch
)
1031 return XFS_DFORK_Q_ARCH(dip
, arch
);
1034 xfs_dfork_q(xfs_dinode_t
*dip
)
1036 return XFS_DFORK_Q(dip
);
1040 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_SIZE)
1042 xfs_dfork_size_arch(xfs_dinode_t
*dip
, xfs_mount_t
*mp
, int w
, xfs_arch_t arch
)
1044 return XFS_DFORK_SIZE_ARCH(dip
, mp
, w
, arch
);
1047 xfs_dfork_size(xfs_dinode_t
*dip
, xfs_mount_t
*mp
, int w
)
1049 return XFS_DFORK_SIZE(dip
, mp
, w
);
1053 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DINODE_GOOD_VERSION)
1055 xfs_dinode_good_version(int v
)
1057 return XFS_DINODE_GOOD_VERSION(v
);
1061 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_LEAF_ENTSIZE_BYENTRY)
1063 xfs_dir_leaf_entsize_byentry(xfs_dir_leaf_entry_t
*entry
)
1065 return XFS_DIR_LEAF_ENTSIZE_BYENTRY(entry
);
1069 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_LEAF_ENTSIZE_BYNAME)
1071 xfs_dir_leaf_entsize_byname(int len
)
1073 return XFS_DIR_LEAF_ENTSIZE_BYNAME(len
);
1077 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_LEAF_NAMESTRUCT)
1078 xfs_dir_leaf_name_t
*
1079 xfs_dir_leaf_namestruct(xfs_dir_leafblock_t
*leafp
, int offset
)
1081 return XFS_DIR_LEAF_NAMESTRUCT(leafp
, offset
);
1085 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_SF_ALLFIT)
1087 xfs_dir_sf_allfit(int count
, int totallen
)
1089 return XFS_DIR_SF_ALLFIT(count
, totallen
);
1093 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_SF_ENTSIZE_BYENTRY)
1095 xfs_dir_sf_entsize_byentry(xfs_dir_sf_entry_t
*sfep
)
1097 return XFS_DIR_SF_ENTSIZE_BYENTRY(sfep
);
1101 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_SF_ENTSIZE_BYNAME)
1103 xfs_dir_sf_entsize_byname(int len
)
1105 return XFS_DIR_SF_ENTSIZE_BYNAME(len
);
1109 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_SF_GET_DIRINO)
1111 xfs_dir_sf_get_dirino_arch(xfs_dir_ino_t
*from
, xfs_ino_t
*to
, xfs_arch_t arch
)
1113 XFS_DIR_SF_GET_DIRINO_ARCH(from
, to
, arch
);
1116 xfs_dir_sf_get_dirino(xfs_dir_ino_t
*from
, xfs_ino_t
*to
)
1118 XFS_DIR_SF_GET_DIRINO(from
, to
);
1122 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_SF_NEXTENTRY)
1123 xfs_dir_sf_entry_t
*
1124 xfs_dir_sf_nextentry(xfs_dir_sf_entry_t
*sfep
)
1126 return XFS_DIR_SF_NEXTENTRY(sfep
);
1130 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_SF_PUT_DIRINO)
1132 xfs_dir_sf_put_dirino_arch(xfs_ino_t
*from
, xfs_dir_ino_t
*to
, xfs_arch_t arch
)
1134 XFS_DIR_SF_PUT_DIRINO_ARCH(from
, to
, arch
);
1137 xfs_dir_sf_put_dirino(xfs_ino_t
*from
, xfs_dir_ino_t
*to
)
1139 XFS_DIR_SF_PUT_DIRINO(from
, to
);
1143 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_BLOCK_LEAF_P)
1144 xfs_dir2_leaf_entry_t
*
1145 xfs_dir2_block_leaf_p_arch(xfs_dir2_block_tail_t
*btp
, xfs_arch_t arch
)
1147 return XFS_DIR2_BLOCK_LEAF_P_ARCH(btp
,arch
);
1151 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_BLOCK_TAIL_P)
1152 xfs_dir2_block_tail_t
*
1153 xfs_dir2_block_tail_p(xfs_mount_t
*mp
, xfs_dir2_block_t
*block
)
1155 return XFS_DIR2_BLOCK_TAIL_P(mp
, block
);
1159 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_BYTE_TO_DA)
1161 xfs_dir2_byte_to_da(xfs_mount_t
*mp
, xfs_dir2_off_t by
)
1163 return XFS_DIR2_BYTE_TO_DA(mp
, by
);
1167 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_BYTE_TO_DATAPTR)
1170 xfs_dir2_byte_to_dataptr(xfs_mount_t
*mp
, xfs_dir2_off_t by
)
1172 return XFS_DIR2_BYTE_TO_DATAPTR(mp
, by
);
1176 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_BYTE_TO_DB)
1178 xfs_dir2_byte_to_db(xfs_mount_t
*mp
, xfs_dir2_off_t by
)
1180 return XFS_DIR2_BYTE_TO_DB(mp
, by
);
1184 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_BYTE_TO_OFF)
1185 xfs_dir2_data_aoff_t
1186 xfs_dir2_byte_to_off(xfs_mount_t
*mp
, xfs_dir2_off_t by
)
1188 return XFS_DIR2_BYTE_TO_OFF(mp
, by
);
1192 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DA_TO_BYTE)
1194 xfs_dir2_da_to_byte(xfs_mount_t
*mp
, xfs_dablk_t da
)
1196 return XFS_DIR2_DA_TO_BYTE(mp
, da
);
1200 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DA_TO_DB)
1202 xfs_dir2_da_to_db(xfs_mount_t
*mp
, xfs_dablk_t da
)
1204 return XFS_DIR2_DA_TO_DB(mp
, da
);
1208 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DATA_ENTRY_TAG_P)
1209 xfs_dir2_data_off_t
*
1210 xfs_dir2_data_entry_tag_p(xfs_dir2_data_entry_t
*dep
)
1212 return XFS_DIR2_DATA_ENTRY_TAG_P(dep
);
1216 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DATA_ENTSIZE)
1218 xfs_dir2_data_entsize(int n
)
1220 return XFS_DIR2_DATA_ENTSIZE(n
);
1224 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DATA_UNUSED_TAG_P)
1225 xfs_dir2_data_off_t
*
1226 xfs_dir2_data_unused_tag_p_arch(xfs_dir2_data_unused_t
*dup
, xfs_arch_t arch
)
1228 return XFS_DIR2_DATA_UNUSED_TAG_P_ARCH(dup
,arch
);
1232 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DATAPTR_TO_BYTE)
1235 xfs_dir2_dataptr_to_byte(xfs_mount_t
*mp
, xfs_dir2_dataptr_t dp
)
1237 return XFS_DIR2_DATAPTR_TO_BYTE(mp
, dp
);
1241 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DATAPTR_TO_DB)
1243 xfs_dir2_dataptr_to_db(xfs_mount_t
*mp
, xfs_dir2_dataptr_t dp
)
1245 return XFS_DIR2_DATAPTR_TO_DB(mp
, dp
);
1249 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DATAPTR_TO_OFF)
1250 xfs_dir2_data_aoff_t
1251 xfs_dir2_dataptr_to_off(xfs_mount_t
*mp
, xfs_dir2_dataptr_t dp
)
1253 return XFS_DIR2_DATAPTR_TO_OFF(mp
, dp
);
1257 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DB_OFF_TO_BYTE)
1259 xfs_dir2_db_off_to_byte(xfs_mount_t
*mp
, xfs_dir2_db_t db
,
1260 xfs_dir2_data_aoff_t o
)
1262 return XFS_DIR2_DB_OFF_TO_BYTE(mp
, db
, o
);
1266 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DB_OFF_TO_DATAPTR)
1268 xfs_dir2_db_off_to_dataptr(xfs_mount_t
*mp
, xfs_dir2_db_t db
,
1269 xfs_dir2_data_aoff_t o
)
1271 return XFS_DIR2_DB_OFF_TO_DATAPTR(mp
, db
, o
);
1275 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DB_TO_DA)
1277 xfs_dir2_db_to_da(xfs_mount_t
*mp
, xfs_dir2_db_t db
)
1279 return XFS_DIR2_DB_TO_DA(mp
, db
);
1283 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DB_TO_FDB)
1285 xfs_dir2_db_to_fdb(xfs_mount_t
*mp
, xfs_dir2_db_t db
)
1287 return XFS_DIR2_DB_TO_FDB(mp
, db
);
1291 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DB_TO_FDINDEX)
1293 xfs_dir2_db_to_fdindex(xfs_mount_t
*mp
, xfs_dir2_db_t db
)
1295 return XFS_DIR2_DB_TO_FDINDEX(mp
, db
);
1299 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_LEAF_BESTS_P)
1300 xfs_dir2_data_off_t
*
1301 xfs_dir2_leaf_bests_p_arch(xfs_dir2_leaf_tail_t
*ltp
, xfs_arch_t arch
)
1303 return XFS_DIR2_LEAF_BESTS_P_ARCH(ltp
, arch
);
1307 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_LEAF_TAIL_P)
1308 xfs_dir2_leaf_tail_t
*
1309 xfs_dir2_leaf_tail_p(xfs_mount_t
*mp
, xfs_dir2_leaf_t
*lp
)
1311 return XFS_DIR2_LEAF_TAIL_P(mp
, lp
);
1315 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_MAX_LEAF_ENTS)
1317 xfs_dir2_max_leaf_ents(xfs_mount_t
*mp
)
1319 return XFS_DIR2_MAX_LEAF_ENTS(mp
);
1323 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_ENTSIZE_BYENTRY)
1325 xfs_dir2_sf_entsize_byentry(xfs_dir2_sf_t
*sfp
, xfs_dir2_sf_entry_t
*sfep
)
1327 return XFS_DIR2_SF_ENTSIZE_BYENTRY(sfp
, sfep
);
1331 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_FIRSTENTRY)
1332 xfs_dir2_sf_entry_t
*
1333 xfs_dir2_sf_firstentry(xfs_dir2_sf_t
*sfp
)
1335 return XFS_DIR2_SF_FIRSTENTRY(sfp
);
1339 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_ENTSIZE_BYNAME)
1341 xfs_dir2_sf_entsize_byname(xfs_dir2_sf_t
*sfp
, int len
)
1343 return XFS_DIR2_SF_ENTSIZE_BYNAME(sfp
, len
);
1347 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_GET_INUMBER)
1349 xfs_dir2_sf_get_inumber_arch(xfs_dir2_sf_t
*sfp
, xfs_dir2_inou_t
*from
, xfs_arch_t arch
)
1351 return XFS_DIR2_SF_GET_INUMBER_ARCH(sfp
, from
, arch
);
1355 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_GET_OFFSET)
1356 xfs_dir2_data_aoff_t
1357 xfs_dir2_sf_get_offset_arch(xfs_dir2_sf_entry_t
*sfep
, xfs_arch_t arch
)
1359 return XFS_DIR2_SF_GET_OFFSET_ARCH(sfep
, arch
);
1363 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_HDR_SIZE)
1365 xfs_dir2_sf_hdr_size(int i8count
)
1367 return XFS_DIR2_SF_HDR_SIZE(i8count
);
1371 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_INUMBERP)
1373 xfs_dir2_sf_inumberp(xfs_dir2_sf_entry_t
*sfep
)
1375 return XFS_DIR2_SF_INUMBERP(sfep
);
1379 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_NEXTENTRY)
1380 xfs_dir2_sf_entry_t
*
1381 xfs_dir2_sf_nextentry(xfs_dir2_sf_t
*sfp
, xfs_dir2_sf_entry_t
*sfep
)
1383 return XFS_DIR2_SF_NEXTENTRY(sfp
, sfep
);
1387 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_PUT_INUMBER)
1389 xfs_dir2_sf_put_inumber_arch(xfs_dir2_sf_t
*sfp
, xfs_ino_t
*from
, xfs_dir2_inou_t
*to
, xfs_arch_t arch
)
1391 XFS_DIR2_SF_PUT_INUMBER_ARCH(sfp
, from
, to
, arch
);
1395 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_PUT_OFFSET)
1397 xfs_dir2_sf_put_offset_arch(xfs_dir2_sf_entry_t
*sfep
, xfs_dir2_data_aoff_t off
, xfs_arch_t arch
)
1399 XFS_DIR2_SF_PUT_OFFSET_ARCH(sfep
, off
, arch
);
1403 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_EXTFMT_INODE )
1405 xfs_extfmt_inode(struct xfs_inode
*ip
)
1407 return XFS_EXTFMT_INODE(ip
);
1411 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_EXTLEN_MAX)
1413 xfs_extlen_max(xfs_extlen_t a
, xfs_extlen_t b
)
1415 return XFS_EXTLEN_MAX(a
, b
);
1419 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_EXTLEN_MIN)
1421 xfs_extlen_min(xfs_extlen_t a
, xfs_extlen_t b
)
1423 return XFS_EXTLEN_MIN(a
, b
);
1427 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FILBLKS_MAX)
1429 xfs_filblks_max(xfs_filblks_t a
, xfs_filblks_t b
)
1431 return XFS_FILBLKS_MAX(a
, b
);
1435 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FILBLKS_MIN)
1437 xfs_filblks_min(xfs_filblks_t a
, xfs_filblks_t b
)
1439 return XFS_FILBLKS_MIN(a
, b
);
1443 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FILEOFF_MAX)
1445 xfs_fileoff_max(xfs_fileoff_t a
, xfs_fileoff_t b
)
1447 return XFS_FILEOFF_MAX(a
, b
);
1451 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FILEOFF_MIN)
1453 xfs_fileoff_min(xfs_fileoff_t a
, xfs_fileoff_t b
)
1455 return XFS_FILEOFF_MIN(a
, b
);
1459 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FSB_SANITY_CHECK)
1461 xfs_fsb_sanity_check(xfs_mount_t
*mp
, xfs_fsblock_t fsbno
)
1463 return XFS_FSB_SANITY_CHECK(mp
, fsbno
);
1467 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FSB_TO_AGBNO)
1469 xfs_fsb_to_agbno(xfs_mount_t
*mp
, xfs_fsblock_t fsbno
)
1471 return XFS_FSB_TO_AGBNO(mp
, fsbno
);
1475 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FSB_TO_AGNO)
1477 xfs_fsb_to_agno(xfs_mount_t
*mp
, xfs_fsblock_t fsbno
)
1479 return XFS_FSB_TO_AGNO(mp
, fsbno
);
1483 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FSB_TO_DADDR)
1485 xfs_fsb_to_daddr(xfs_mount_t
*mp
, xfs_fsblock_t fsbno
)
1487 return XFS_FSB_TO_DADDR(mp
, fsbno
);
1491 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FSB_TO_DB)
1493 xfs_fsb_to_db(xfs_inode_t
*ip
, xfs_fsblock_t fsb
)
1495 return XFS_FSB_TO_DB(ip
, fsb
);
1499 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_HDR_BLOCK)
1501 xfs_hdr_block(xfs_mount_t
*mp
, xfs_daddr_t d
)
1503 return XFS_HDR_BLOCK(mp
, d
);
1507 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IALLOC_BLOCKS)
1509 xfs_ialloc_blocks(xfs_mount_t
*mp
)
1511 return XFS_IALLOC_BLOCKS(mp
);
1515 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IALLOC_FIND_FREE)
1517 xfs_ialloc_find_free(xfs_inofree_t
*fp
)
1519 return XFS_IALLOC_FIND_FREE(fp
);
1523 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IALLOC_INODES)
1525 xfs_ialloc_inodes(xfs_mount_t
*mp
)
1527 return XFS_IALLOC_INODES(mp
);
1531 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IBT_BLOCK)
1533 xfs_ibt_block(xfs_mount_t
*mp
)
1535 return XFS_IBT_BLOCK(mp
);
1539 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_ASIZE)
1541 xfs_ifork_asize(xfs_inode_t
*ip
)
1543 return XFS_IFORK_ASIZE(ip
);
1547 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_DSIZE)
1549 xfs_ifork_dsize(xfs_inode_t
*ip
)
1551 return XFS_IFORK_DSIZE(ip
);
1555 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_FMT_SET)
1557 xfs_ifork_fmt_set(xfs_inode_t
*ip
, int w
, int n
)
1559 XFS_IFORK_FMT_SET(ip
, w
, n
);
1563 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_FORMAT)
1565 xfs_ifork_format(xfs_inode_t
*ip
, int w
)
1567 return XFS_IFORK_FORMAT(ip
, w
);
1571 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_NEXT_SET)
1573 xfs_ifork_next_set(xfs_inode_t
*ip
, int w
, int n
)
1575 XFS_IFORK_NEXT_SET(ip
, w
, n
);
1579 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_NEXTENTS)
1581 xfs_ifork_nextents(xfs_inode_t
*ip
, int w
)
1583 return XFS_IFORK_NEXTENTS(ip
, w
);
1587 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_PTR)
1589 xfs_ifork_ptr(xfs_inode_t
*ip
, int w
)
1591 return XFS_IFORK_PTR(ip
, w
);
1595 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_Q)
1597 xfs_ifork_q(xfs_inode_t
*ip
)
1599 return XFS_IFORK_Q(ip
);
1603 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_SIZE)
1605 xfs_ifork_size(xfs_inode_t
*ip
, int w
)
1607 return XFS_IFORK_SIZE(ip
, w
);
1611 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ILOG_FBROOT)
1613 xfs_ilog_fbroot(int w
)
1615 return XFS_ILOG_FBROOT(w
);
1619 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ILOG_FDATA)
1621 xfs_ilog_fdata(int w
)
1623 return XFS_ILOG_FDATA(w
);
1627 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ILOG_FEXT)
1629 xfs_ilog_fext(int w
)
1631 return XFS_ILOG_FEXT(w
);
1635 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IN_MAXLEVELS)
1637 xfs_in_maxlevels(xfs_mount_t
*mp
)
1639 return XFS_IN_MAXLEVELS(mp
);
1643 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_AGBNO_BITS)
1645 xfs_ino_agbno_bits(xfs_mount_t
*mp
)
1647 return XFS_INO_AGBNO_BITS(mp
);
1651 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_AGINO_BITS)
1653 xfs_ino_agino_bits(xfs_mount_t
*mp
)
1655 return XFS_INO_AGINO_BITS(mp
);
1659 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_AGNO_BITS)
1661 xfs_ino_agno_bits(xfs_mount_t
*mp
)
1663 return XFS_INO_AGNO_BITS(mp
);
1667 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_BITS)
1669 xfs_ino_bits(xfs_mount_t
*mp
)
1671 return XFS_INO_BITS(mp
);
1675 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_MASK)
1679 return XFS_INO_MASK(k
);
1683 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_OFFSET_BITS)
1685 xfs_ino_offset_bits(xfs_mount_t
*mp
)
1687 return XFS_INO_OFFSET_BITS(mp
);
1691 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_TO_AGBNO)
1693 xfs_ino_to_agbno(xfs_mount_t
*mp
, xfs_ino_t i
)
1695 return XFS_INO_TO_AGBNO(mp
, i
);
1699 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_TO_AGINO)
1701 xfs_ino_to_agino(xfs_mount_t
*mp
, xfs_ino_t i
)
1703 return XFS_INO_TO_AGINO(mp
, i
);
1707 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_TO_AGNO)
1709 xfs_ino_to_agno(xfs_mount_t
*mp
, xfs_ino_t i
)
1711 return XFS_INO_TO_AGNO(mp
, i
);
1715 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_TO_FSB)
1717 xfs_ino_to_fsb(xfs_mount_t
*mp
, xfs_ino_t i
)
1719 return XFS_INO_TO_FSB(mp
, i
);
1723 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_TO_OFFSET)
1725 xfs_ino_to_offset(xfs_mount_t
*mp
, xfs_ino_t i
)
1727 return XFS_INO_TO_OFFSET(mp
, i
);
1731 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_BLOCK_MAXRECS)
1733 xfs_inobt_block_maxrecs(int lev
, xfs_btree_cur_t
*cur
)
1735 return XFS_INOBT_BLOCK_MAXRECS(lev
, cur
);
1739 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_BLOCK_MINRECS)
1741 xfs_inobt_block_minrecs(int lev
, xfs_btree_cur_t
*cur
)
1743 return XFS_INOBT_BLOCK_MINRECS(lev
, cur
);
1747 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_BLOCK_SIZE)
1750 xfs_inobt_block_size(int lev
, xfs_btree_cur_t
*cur
)
1752 return XFS_INOBT_BLOCK_SIZE(lev
, cur
);
1756 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_CLR_FREE)
1758 xfs_inobt_clr_free(xfs_inobt_rec_t
*rp
, int i
, xfs_arch_t arch
)
1760 XFS_INOBT_CLR_FREE(rp
, i
, arch
);
1764 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_IS_FREE)
1766 xfs_inobt_is_free(xfs_inobt_rec_t
*rp
, int i
, xfs_arch_t arch
)
1768 return XFS_INOBT_IS_FREE(rp
, i
, arch
);
1772 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_IS_LAST_REC)
1774 xfs_inobt_is_last_rec(xfs_btree_cur_t
*cur
)
1776 return XFS_INOBT_IS_LAST_REC(cur
);
1780 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_KEY_ADDR)
1783 xfs_inobt_key_addr(xfs_inobt_block_t
*bb
, int i
, xfs_btree_cur_t
*cur
)
1785 return XFS_INOBT_KEY_ADDR(bb
, i
, cur
);
1789 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_MASK)
1791 xfs_inobt_mask(int i
)
1793 return XFS_INOBT_MASK(i
);
1797 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_MASKN)
1799 xfs_inobt_maskn(int i
, int n
)
1801 return XFS_INOBT_MASKN(i
, n
);
1805 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_PTR_ADDR)
1807 xfs_inobt_ptr_addr(xfs_inobt_block_t
*bb
, int i
, xfs_btree_cur_t
*cur
)
1809 return XFS_INOBT_PTR_ADDR(bb
, i
, cur
);
1813 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_REC_ADDR)
1816 xfs_inobt_rec_addr(xfs_inobt_block_t
*bb
, int i
, xfs_btree_cur_t
*cur
)
1818 return XFS_INOBT_REC_ADDR(bb
, i
, cur
);
1822 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_SET_FREE)
1824 xfs_inobt_set_free(xfs_inobt_rec_t
*rp
, int i
, xfs_arch_t arch
)
1826 XFS_INOBT_SET_FREE(rp
, i
, arch
);
1830 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ITOBHV)
1832 xfs_itobhv(xfs_inode_t
*ip
)
1834 return XFS_ITOBHV(ip
);
1838 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ITOV)
1840 xfs_itov(xfs_inode_t
*ip
)
1842 return XFS_ITOV(ip
);
1846 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LBLOG)
1848 xfs_lblog(xfs_mount_t
*mp
)
1850 return XFS_LBLOG(mp
);
1854 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LBSIZE)
1856 xfs_lbsize(xfs_mount_t
*mp
)
1858 return XFS_LBSIZE(mp
);
1862 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_ALL_FREE)
1864 xfs_lic_all_free(xfs_log_item_chunk_t
*cp
)
1866 XFS_LIC_ALL_FREE(cp
);
1870 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_ARE_ALL_FREE)
1872 xfs_lic_are_all_free(xfs_log_item_chunk_t
*cp
)
1874 return XFS_LIC_ARE_ALL_FREE(cp
);
1878 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_CLAIM)
1880 xfs_lic_claim(xfs_log_item_chunk_t
*cp
, int slot
)
1882 XFS_LIC_CLAIM(cp
, slot
);
1886 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_DESC_TO_CHUNK)
1887 xfs_log_item_chunk_t
*
1888 xfs_lic_desc_to_chunk(xfs_log_item_desc_t
*dp
)
1890 return XFS_LIC_DESC_TO_CHUNK(dp
);
1894 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_DESC_TO_SLOT)
1896 xfs_lic_desc_to_slot(xfs_log_item_desc_t
*dp
)
1898 return XFS_LIC_DESC_TO_SLOT(dp
);
1902 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_INIT)
1904 xfs_lic_init(xfs_log_item_chunk_t
*cp
)
1910 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_INIT_SLOT)
1912 xfs_lic_init_slot(xfs_log_item_chunk_t
*cp
, int slot
)
1914 XFS_LIC_INIT_SLOT(cp
, slot
);
1918 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_ISFREE)
1920 xfs_lic_isfree(xfs_log_item_chunk_t
*cp
, int slot
)
1922 return XFS_LIC_ISFREE(cp
, slot
);
1926 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_RELSE)
1928 xfs_lic_relse(xfs_log_item_chunk_t
*cp
, int slot
)
1930 XFS_LIC_RELSE(cp
, slot
);
1934 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_SLOT)
1935 xfs_log_item_desc_t
*
1936 xfs_lic_slot(xfs_log_item_chunk_t
*cp
, int slot
)
1938 return XFS_LIC_SLOT(cp
, slot
);
1942 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_VACANCY)
1944 xfs_lic_vacancy(xfs_log_item_chunk_t
*cp
)
1946 return XFS_LIC_VACANCY(cp
);
1950 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LITINO)
1952 xfs_litino(xfs_mount_t
*mp
)
1954 return XFS_LITINO(mp
);
1958 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MAKE_IPTR)
1960 xfs_make_iptr(xfs_mount_t
*mp
, xfs_buf_t
*b
, int o
)
1962 return XFS_MAKE_IPTR(mp
, b
, o
);
1966 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MASK32HI)
1970 return XFS_MASK32HI(n
);
1974 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MASK32LO)
1978 return XFS_MASK32LO(n
);
1982 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MASK64HI)
1986 return XFS_MASK64HI(n
);
1990 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MASK64LO)
1994 return XFS_MASK64LO(n
);
1998 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MIN_FREELIST)
2000 xfs_min_freelist(xfs_agf_t
*a
, xfs_mount_t
*mp
)
2002 return XFS_MIN_FREELIST(a
, mp
);
2006 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MIN_FREELIST_PAG)
2008 xfs_min_freelist_pag(xfs_perag_t
*pag
, xfs_mount_t
*mp
)
2010 return XFS_MIN_FREELIST_PAG(pag
, mp
);
2014 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MIN_FREELIST_RAW)
2016 xfs_min_freelist_raw(uint bl
, uint cl
, xfs_mount_t
*mp
)
2018 return XFS_MIN_FREELIST_RAW(bl
, cl
, mp
);
2022 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MTOVFS)
2024 xfs_mtovfs(xfs_mount_t
*mp
)
2026 return XFS_MTOVFS(mp
);
2030 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_OFFBNO_TO_AGINO)
2032 xfs_offbno_to_agino(xfs_mount_t
*mp
, xfs_agblock_t b
, int o
)
2034 return XFS_OFFBNO_TO_AGINO(mp
, b
, o
);
2038 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_PREALLOC_BLOCKS)
2040 xfs_prealloc_blocks(xfs_mount_t
*mp
)
2042 return XFS_PREALLOC_BLOCKS(mp
);
2046 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_BLOCK)
2048 xfs_sb_block(xfs_mount_t
*mp
)
2050 return XFS_SB_BLOCK(mp
);
2054 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_GOOD_VERSION)
2056 xfs_sb_good_version(xfs_sb_t
*sbp
)
2058 return XFS_SB_GOOD_VERSION(sbp
);
2062 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_ADDATTR)
2064 xfs_sb_version_addattr(xfs_sb_t
*sbp
)
2066 XFS_SB_VERSION_ADDATTR(sbp
);
2070 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_ADDDALIGN)
2072 xfs_sb_version_adddalign(xfs_sb_t
*sbp
)
2074 XFS_SB_VERSION_ADDDALIGN(sbp
);
2078 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_ADDNLINK)
2080 xfs_sb_version_addnlink(xfs_sb_t
*sbp
)
2082 XFS_SB_VERSION_ADDNLINK(sbp
);
2086 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_ADDQUOTA)
2088 xfs_sb_version_addquota(xfs_sb_t
*sbp
)
2090 XFS_SB_VERSION_ADDQUOTA(sbp
);
2094 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_ADDSHARED)
2096 xfs_sb_version_addshared(xfs_sb_t
*sbp
)
2098 XFS_SB_VERSION_ADDSHARED(sbp
);
2102 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASALIGN)
2104 xfs_sb_version_hasalign(xfs_sb_t
*sbp
)
2106 return XFS_SB_VERSION_HASALIGN(sbp
);
2110 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASATTR)
2112 xfs_sb_version_hasattr(xfs_sb_t
*sbp
)
2114 return XFS_SB_VERSION_HASATTR(sbp
);
2118 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASDALIGN)
2120 xfs_sb_version_hasdalign(xfs_sb_t
*sbp
)
2122 return XFS_SB_VERSION_HASDALIGN(sbp
);
2126 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASDIRV2)
2128 xfs_sb_version_hasdirv2(xfs_sb_t
*sbp
)
2130 return XFS_SB_VERSION_HASDIRV2(sbp
);
2134 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASEXTFLGBIT)
2136 xfs_sb_version_hasextflgbit(xfs_sb_t
*sbp
)
2138 return XFS_SB_VERSION_HASEXTFLGBIT(sbp
);
2142 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASNLINK)
2144 xfs_sb_version_hasnlink(xfs_sb_t
*sbp
)
2146 return XFS_SB_VERSION_HASNLINK(sbp
);
2150 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASQUOTA)
2152 xfs_sb_version_hasquota(xfs_sb_t
*sbp
)
2154 return XFS_SB_VERSION_HASQUOTA(sbp
);
2158 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASSHARED)
2160 xfs_sb_version_hasshared(xfs_sb_t
*sbp
)
2162 return XFS_SB_VERSION_HASSHARED(sbp
);
2166 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_NUM)
2168 xfs_sb_version_num(xfs_sb_t
*sbp
)
2170 return XFS_SB_VERSION_NUM(sbp
);
2174 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_SUBALIGN)
2176 xfs_sb_version_subalign(xfs_sb_t
*sbp
)
2178 XFS_SB_VERSION_SUBALIGN(sbp
);
2182 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_SUBSHARED)
2184 xfs_sb_version_subshared(xfs_sb_t
*sbp
)
2186 XFS_SB_VERSION_SUBSHARED(sbp
);
2190 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASLOGV2)
2192 xfs_sb_version_haslogv2(xfs_sb_t
*sbp
)
2194 return XFS_SB_VERSION_HASLOGV2(sbp
);
2198 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASSECTOR)
2200 xfs_sb_version_hassector(xfs_sb_t
*sbp
)
2202 return XFS_SB_VERSION_HASSECTOR(sbp
);
2206 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_TONEW)
2208 xfs_sb_version_tonew(unsigned v
)
2210 return XFS_SB_VERSION_TONEW(v
);
2214 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_TOOLD)
2216 xfs_sb_version_toold(unsigned v
)
2218 return XFS_SB_VERSION_TOOLD(v
);
2222 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XLOG_GRANT_ADD_SPACE)
2224 xlog_grant_add_space(xlog_t
*log
, int bytes
, int type
)
2226 XLOG_GRANT_ADD_SPACE(log
, bytes
, type
);
2230 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XLOG_GRANT_SUB_SPACE)
2232 xlog_grant_sub_space(xlog_t
*log
, int bytes
, int type
)
2234 XLOG_GRANT_SUB_SPACE(log
, bytes
, type
);
2238 #if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASMOREBITS)
2240 xfs_sb_version_hasmorebits(xfs_sb_t
*sbp
)
2242 return XFS_SB_VERSION_HASMOREBITS(sbp
);