aboutsummaryrefslogblamecommitdiffstats
path: root/fs/xfs/xfs_macros.c
blob: c715da13b2fe687701c730f9931c7cebabdb461a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
  
                                                                       

























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































                                                                                   




                                                  











































































































































































































































































































































                                                                            







                                                                           















































































































































                                                                               






                                                                           
/*
 * Copyright (c) 2000-2005 Silicon Graphics, Inc.  All Rights Reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it would be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * Further, this software is distributed without any warranty that it is
 * free of the rightful claim of any third person regarding infringement
 * or the like.  Any license provided herein, whether implied or
 * otherwise, applies only to this software file.  Patent licenses, if
 * any, provided herein do not apply to combinations of this program with
 * other software, or any other product whatsoever.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write the Free Software Foundation, Inc., 59
 * Temple Place - Suite 330, Boston MA 02111-1307, USA.
 *
 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 * Mountain View, CA  94043, or:
 *
 * http://www.sgi.com
 *
 * For further information regarding this notice, see:
 *
 * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
 */

#define	XFS_MACRO_C

#include "xfs.h"
#include "xfs_macros.h"
#include "xfs_types.h"
#include "xfs_inum.h"
#include "xfs_log.h"
#include "xfs_trans.h"
#include "xfs_sb.h"
#include "xfs_ag.h"
#include "xfs_dir.h"
#include "xfs_dir2.h"
#include "xfs_dmapi.h"
#include "xfs_mount.h"
#include "xfs_alloc_btree.h"
#include "xfs_ialloc_btree.h"
#include "xfs_bmap_btree.h"
#include "xfs_btree.h"
#include "xfs_attr_sf.h"
#include "xfs_dir_sf.h"
#include "xfs_dir2_sf.h"
#include "xfs_dinode.h"
#include "xfs_ialloc.h"
#include "xfs_inode_item.h"
#include "xfs_inode.h"
#include "xfs_bmap.h"
#include "xfs_rw.h"
#include "xfs_log_priv.h"
#include "xfs_da_btree.h"
#include "xfs_attr_leaf.h"
#include "xfs_dir_leaf.h"
#include "xfs_dir2_data.h"
#include "xfs_dir2_leaf.h"
#include "xfs_dir2_block.h"
#include "xfs_dir2_node.h"
#include "xfs_bit.h"

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_ISNULLDSTARTBLOCK)
int
isnulldstartblock(xfs_dfsbno_t x)
{
	return ISNULLDSTARTBLOCK(x);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_ISNULLSTARTBLOCK)
int
isnullstartblock(xfs_fsblock_t x)
{
	return ISNULLSTARTBLOCK(x);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_NULLSTARTBLOCK)
xfs_fsblock_t
nullstartblock(int k)
{
	return NULLSTARTBLOCK(k);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_STARTBLOCKVAL)
xfs_filblks_t
startblockval(xfs_fsblock_t x)
{
	return STARTBLOCKVAL(x);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AG_CHECK_DADDR)
void
xfs_ag_check_daddr(xfs_mount_t *mp, xfs_daddr_t d, xfs_extlen_t len)
{
	XFS_AG_CHECK_DADDR(mp, d, len);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AG_DADDR)
xfs_daddr_t
xfs_ag_daddr(xfs_mount_t *mp, xfs_agnumber_t agno, xfs_daddr_t d)
{
	return XFS_AG_DADDR(mp, agno, d);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AG_MAXLEVELS)
int
xfs_ag_maxlevels(xfs_mount_t *mp)
{
	return XFS_AG_MAXLEVELS(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGB_TO_DADDR)
xfs_daddr_t
xfs_agb_to_daddr(xfs_mount_t *mp, xfs_agnumber_t agno, xfs_agblock_t agbno)
{
	return XFS_AGB_TO_DADDR(mp, agno, agbno);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGB_TO_FSB)
xfs_fsblock_t
xfs_agb_to_fsb(xfs_mount_t *mp, xfs_agnumber_t agno, xfs_agblock_t agbno)
{
	return XFS_AGB_TO_FSB(mp, agno, agbno);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGBLOCK_MAX)
xfs_agblock_t
xfs_agblock_max(xfs_agblock_t a, xfs_agblock_t b)
{
	return XFS_AGBLOCK_MAX(a, b);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGBLOCK_MIN)
xfs_agblock_t
xfs_agblock_min(xfs_agblock_t a, xfs_agblock_t b)
{
	return XFS_AGBLOCK_MIN(a, b);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGF_BLOCK)
xfs_agblock_t
xfs_agf_block(xfs_mount_t *mp)
{
	return XFS_AGF_BLOCK(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGF_GOOD_VERSION)
int
xfs_agf_good_version(unsigned v)
{
	return XFS_AGF_GOOD_VERSION(v);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGFL_BLOCK)
xfs_agblock_t
xfs_agfl_block(xfs_mount_t *mp)
{
	return XFS_AGFL_BLOCK(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGI_BLOCK)
xfs_agblock_t
xfs_agi_block(xfs_mount_t *mp)
{
	return XFS_AGI_BLOCK(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGI_GOOD_VERSION)
int
xfs_agi_good_version(unsigned v)
{
	return XFS_AGI_GOOD_VERSION(v);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGINO_TO_AGBNO)
xfs_agblock_t
xfs_agino_to_agbno(xfs_mount_t *mp, xfs_agino_t i)
{
	return XFS_AGINO_TO_AGBNO(mp, i);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGINO_TO_INO)
xfs_ino_t
xfs_agino_to_ino(xfs_mount_t *mp, xfs_agnumber_t a, xfs_agino_t i)
{
	return XFS_AGINO_TO_INO(mp, a, i);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_AGINO_TO_OFFSET)
int
xfs_agino_to_offset(xfs_mount_t *mp, xfs_agino_t i)
{
	return XFS_AGINO_TO_OFFSET(mp, i);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ALLOC_BLOCK_MAXRECS)
int
xfs_alloc_block_maxrecs(int lev, xfs_btree_cur_t *cur)
{
	return XFS_ALLOC_BLOCK_MAXRECS(lev, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ALLOC_BLOCK_MINRECS)
int
xfs_alloc_block_minrecs(int lev, xfs_btree_cur_t *cur)
{
	return XFS_ALLOC_BLOCK_MINRECS(lev, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ALLOC_BLOCK_SIZE)
/*ARGSUSED1*/
int
xfs_alloc_block_size(int lev, xfs_btree_cur_t *cur)
{
	return XFS_ALLOC_BLOCK_SIZE(lev, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ALLOC_KEY_ADDR)
/*ARGSUSED3*/
xfs_alloc_key_t *
xfs_alloc_key_addr(xfs_alloc_block_t *bb, int i, xfs_btree_cur_t *cur)
{
	return XFS_ALLOC_KEY_ADDR(bb, i, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ALLOC_PTR_ADDR)
xfs_alloc_ptr_t *
xfs_alloc_ptr_addr(xfs_alloc_block_t *bb, int i, xfs_btree_cur_t *cur)
{
	return XFS_ALLOC_PTR_ADDR(bb, i, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ALLOC_REC_ADDR)
/*ARGSUSED3*/
xfs_alloc_rec_t *
xfs_alloc_rec_addr(xfs_alloc_block_t *bb, int i, xfs_btree_cur_t *cur)
{
	return XFS_ALLOC_REC_ADDR(bb, i, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_LEAF_ENTSIZE_LOCAL)
int
xfs_attr_leaf_entsize_local(int nlen, int vlen)
{
	return XFS_ATTR_LEAF_ENTSIZE_LOCAL(nlen, vlen);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_LEAF_ENTSIZE_LOCAL_MAX)
int
xfs_attr_leaf_entsize_local_max(int bsize)
{
	return XFS_ATTR_LEAF_ENTSIZE_LOCAL_MAX(bsize);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_LEAF_ENTSIZE_REMOTE)
int
xfs_attr_leaf_entsize_remote(int nlen)
{
	return XFS_ATTR_LEAF_ENTSIZE_REMOTE(nlen);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_LEAF_NAME)
char *
xfs_attr_leaf_name(xfs_attr_leafblock_t *leafp, int idx)
{
	return XFS_ATTR_LEAF_NAME(leafp, idx);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_LEAF_NAME_LOCAL)
xfs_attr_leaf_name_local_t *
xfs_attr_leaf_name_local(xfs_attr_leafblock_t *leafp, int idx)
{
	return XFS_ATTR_LEAF_NAME_LOCAL(leafp, idx);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_LEAF_NAME_REMOTE)
xfs_attr_leaf_name_remote_t *
xfs_attr_leaf_name_remote(xfs_attr_leafblock_t *leafp, int idx)
{
	return XFS_ATTR_LEAF_NAME_REMOTE(leafp, idx);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_SF_ENTSIZE)
int
xfs_attr_sf_entsize(xfs_attr_sf_entry_t *sfep)
{
	return XFS_ATTR_SF_ENTSIZE(sfep);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_SF_ENTSIZE_BYNAME)
int
xfs_attr_sf_entsize_byname(int nlen, int vlen)
{
	return XFS_ATTR_SF_ENTSIZE_BYNAME(nlen, vlen);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_SF_NEXTENTRY)
xfs_attr_sf_entry_t *
xfs_attr_sf_nextentry(xfs_attr_sf_entry_t *sfep)
{
	return XFS_ATTR_SF_NEXTENTRY(sfep);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ATTR_SF_TOTSIZE)
int
xfs_attr_sf_totsize(xfs_inode_t *dp)
{
	return XFS_ATTR_SF_TOTSIZE(dp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BHVTOI)
xfs_inode_t *
xfs_bhvtoi(bhv_desc_t *bhvp)
{
	return XFS_BHVTOI(bhvp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BHVTOM)
xfs_mount_t *
xfs_bhvtom(bhv_desc_t *bdp)
{
	return XFS_BHVTOM(bdp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_VFSTOM)
xfs_mount_t *
xfs_vfstom(vfs_t *vfs)
{
	return XFS_VFSTOM(vfs);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BM_MAXLEVELS)
int
xfs_bm_maxlevels(xfs_mount_t *mp, int w)
{
	return XFS_BM_MAXLEVELS(mp, w);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BLOCK_DMAXRECS)
int
xfs_bmap_block_dmaxrecs(int lev, xfs_btree_cur_t *cur)
{
	return XFS_BMAP_BLOCK_DMAXRECS(lev, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BLOCK_DMINRECS)
int
xfs_bmap_block_dminrecs(int lev, xfs_btree_cur_t *cur)
{
	return XFS_BMAP_BLOCK_DMINRECS(lev, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BLOCK_DSIZE)
int
xfs_bmap_block_dsize(int lev, xfs_btree_cur_t *cur)
{
	return XFS_BMAP_BLOCK_DSIZE(lev, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BLOCK_IMAXRECS)
int
xfs_bmap_block_imaxrecs(int lev, xfs_btree_cur_t *cur)
{
	return XFS_BMAP_BLOCK_IMAXRECS(lev, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BLOCK_IMINRECS)
int
xfs_bmap_block_iminrecs(int lev, xfs_btree_cur_t *cur)
{
	return XFS_BMAP_BLOCK_IMINRECS(lev, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BLOCK_ISIZE)
int
xfs_bmap_block_isize(int lev, xfs_btree_cur_t *cur)
{
	return XFS_BMAP_BLOCK_ISIZE(lev, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BROOT_KEY_ADDR)
/*ARGSUSED3*/
xfs_bmbt_key_t *
xfs_bmap_broot_key_addr(xfs_bmbt_block_t *bb, int i, int sz)
{
	return XFS_BMAP_BROOT_KEY_ADDR(bb, i, sz);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BROOT_MAXRECS)
int
xfs_bmap_broot_maxrecs(int sz)
{
	return XFS_BMAP_BROOT_MAXRECS(sz);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BROOT_NUMRECS)
int
xfs_bmap_broot_numrecs(xfs_bmdr_block_t *bb)
{
	return XFS_BMAP_BROOT_NUMRECS(bb);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BROOT_PTR_ADDR)
xfs_bmbt_ptr_t *
xfs_bmap_broot_ptr_addr(xfs_bmbt_block_t *bb, int i, int sz)
{
	return XFS_BMAP_BROOT_PTR_ADDR(bb, i, sz);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BROOT_REC_ADDR)
/*ARGSUSED3*/
xfs_bmbt_rec_t *
xfs_bmap_broot_rec_addr(xfs_bmbt_block_t *bb, int i, int sz)
{
	return XFS_BMAP_BROOT_REC_ADDR(bb, i, sz);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BROOT_SPACE)
int
xfs_bmap_broot_space(xfs_bmdr_block_t *bb)
{
	return XFS_BMAP_BROOT_SPACE(bb);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_BROOT_SPACE_CALC)
int
xfs_bmap_broot_space_calc(int nrecs)
{
	return XFS_BMAP_BROOT_SPACE_CALC(nrecs);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_IBLOCK_SIZE)
/*ARGSUSED1*/
int
xfs_bmap_iblock_size(int lev, xfs_btree_cur_t *cur)
{
	return XFS_BMAP_IBLOCK_SIZE(lev, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_INIT)
void
xfs_bmap_init(xfs_bmap_free_t *flp, xfs_fsblock_t *fbp)
{
	XFS_BMAP_INIT(flp, fbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_KEY_DADDR)
/*ARGSUSED3*/
xfs_bmbt_key_t *
xfs_bmap_key_daddr(xfs_bmbt_block_t *bb, int i, xfs_btree_cur_t *cur)
{
	return XFS_BMAP_KEY_DADDR(bb, i, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_KEY_IADDR)
/*ARGSUSED3*/
xfs_bmbt_key_t *
xfs_bmap_key_iaddr(xfs_bmbt_block_t *bb, int i, xfs_btree_cur_t *cur)
{
	return XFS_BMAP_KEY_IADDR(bb, i, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_PTR_DADDR)
xfs_bmbt_ptr_t *
xfs_bmap_ptr_daddr(xfs_bmbt_block_t *bb, int i, xfs_btree_cur_t *cur)
{
	return XFS_BMAP_PTR_DADDR(bb, i, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_PTR_IADDR)
xfs_bmbt_ptr_t *
xfs_bmap_ptr_iaddr(xfs_bmbt_block_t *bb, int i, xfs_btree_cur_t *cur)
{
	return XFS_BMAP_PTR_IADDR(bb, i, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_RBLOCK_DSIZE)
/*ARGSUSED1*/
int
xfs_bmap_rblock_dsize(int lev, xfs_btree_cur_t *cur)
{
	return XFS_BMAP_RBLOCK_DSIZE(lev, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_RBLOCK_ISIZE)
/*ARGSUSED1*/
int
xfs_bmap_rblock_isize(int lev, xfs_btree_cur_t *cur)
{
	return XFS_BMAP_RBLOCK_ISIZE(lev, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_REC_DADDR)
/*ARGSUSED3*/
xfs_bmbt_rec_t *
xfs_bmap_rec_daddr(xfs_bmbt_block_t *bb, int i, xfs_btree_cur_t *cur)
{
	return XFS_BMAP_REC_DADDR(bb, i, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_REC_IADDR)
/*ARGSUSED3*/
xfs_bmbt_rec_t *
xfs_bmap_rec_iaddr(xfs_bmbt_block_t *bb, int i, xfs_btree_cur_t *cur)
{
	return XFS_BMAP_REC_IADDR(bb, i, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAP_SANITY_CHECK)
int
xfs_bmap_sanity_check(xfs_mount_t *mp, xfs_bmbt_block_t *bb, int level)
{
	return XFS_BMAP_SANITY_CHECK(mp, bb, level);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMAPI_AFLAG)
int
xfs_bmapi_aflag(int w)
{
	return XFS_BMAPI_AFLAG(w);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BMDR_SPACE_CALC)
int
xfs_bmdr_space_calc(int nrecs)
{
	return XFS_BMDR_SPACE_CALC(nrecs);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BNO_BLOCK)
xfs_agblock_t
xfs_bno_block(xfs_mount_t *mp)
{
	return XFS_BNO_BLOCK(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BTREE_LONG_PTRS)
int
xfs_btree_long_ptrs(xfs_btnum_t btnum)
{
	return XFS_BTREE_LONG_PTRS(btnum);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_AGF)
xfs_agf_t *
xfs_buf_to_agf(xfs_buf_t *bp)
{
	return XFS_BUF_TO_AGF(bp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_AGFL)
xfs_agfl_t *
xfs_buf_to_agfl(xfs_buf_t *bp)
{
	return XFS_BUF_TO_AGFL(bp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_AGI)
xfs_agi_t *
xfs_buf_to_agi(xfs_buf_t *bp)
{
	return XFS_BUF_TO_AGI(bp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_ALLOC_BLOCK)
xfs_alloc_block_t *
xfs_buf_to_alloc_block(xfs_buf_t *bp)
{
	return XFS_BUF_TO_ALLOC_BLOCK(bp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_BLOCK)
xfs_btree_block_t *
xfs_buf_to_block(xfs_buf_t *bp)
{
	return XFS_BUF_TO_BLOCK(bp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_BMBT_BLOCK)
xfs_bmbt_block_t *
xfs_buf_to_bmbt_block(xfs_buf_t *bp)
{
	return XFS_BUF_TO_BMBT_BLOCK(bp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_DINODE)
xfs_dinode_t *
xfs_buf_to_dinode(xfs_buf_t *bp)
{
	return XFS_BUF_TO_DINODE(bp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_INOBT_BLOCK)
xfs_inobt_block_t *
xfs_buf_to_inobt_block(xfs_buf_t *bp)
{
	return XFS_BUF_TO_INOBT_BLOCK(bp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_LBLOCK)
xfs_btree_lblock_t *
xfs_buf_to_lblock(xfs_buf_t *bp)
{
	return XFS_BUF_TO_LBLOCK(bp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_SBLOCK)
xfs_btree_sblock_t *
xfs_buf_to_sblock(xfs_buf_t *bp)
{
	return XFS_BUF_TO_SBLOCK(bp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_BUF_TO_SBP)
xfs_sb_t *
xfs_buf_to_sbp(xfs_buf_t *bp)
{
	return XFS_BUF_TO_SBP(bp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_ASIZE)
int
xfs_cfork_asize_disk(xfs_dinode_core_t *dcp, xfs_mount_t *mp)
{
	return XFS_CFORK_ASIZE_DISK(dcp, mp);
}
int
xfs_cfork_asize(xfs_dinode_core_t *dcp, xfs_mount_t *mp)
{
	return XFS_CFORK_ASIZE(dcp, mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_BOFF)
int
xfs_cfork_boff_disk(xfs_dinode_core_t *dcp)
{
	return XFS_CFORK_BOFF_DISK(dcp);
}
int
xfs_cfork_boff(xfs_dinode_core_t *dcp)
{
	return XFS_CFORK_BOFF(dcp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_DSIZE)
int
xfs_cfork_dsize_disk(xfs_dinode_core_t *dcp, xfs_mount_t *mp)
{
	return XFS_CFORK_DSIZE_DISK(dcp, mp);
}
int
xfs_cfork_dsize(xfs_dinode_core_t *dcp, xfs_mount_t *mp)
{
	return XFS_CFORK_DSIZE(dcp, mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_FMT_SET)
void
xfs_cfork_fmt_set(xfs_dinode_core_t *dcp, int w, int n)
{
	XFS_CFORK_FMT_SET(dcp, w, n);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_FORMAT)
int
xfs_cfork_format(xfs_dinode_core_t *dcp, int w)
{
	return XFS_CFORK_FORMAT(dcp, w);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_NEXT_SET)
void
xfs_cfork_next_set(xfs_dinode_core_t *dcp, int w, int n)
{
	XFS_CFORK_NEXT_SET(dcp, w, n);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_NEXTENTS)
int
xfs_cfork_nextents_disk(xfs_dinode_core_t *dcp, int w)
{
	return XFS_CFORK_NEXTENTS_DISK(dcp, w);
}
int
xfs_cfork_nextents(xfs_dinode_core_t *dcp, int w)
{
	return XFS_CFORK_NEXTENTS(dcp, w);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_Q)
int
xfs_cfork_q_disk(xfs_dinode_core_t *dcp)
{
	return XFS_CFORK_Q_DISK(dcp);
}
int
xfs_cfork_q(xfs_dinode_core_t *dcp)
{
	return XFS_CFORK_Q(dcp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CFORK_SIZE)
int
xfs_cfork_size_disk(xfs_dinode_core_t *dcp, xfs_mount_t *mp, int w)
{
	return XFS_CFORK_SIZE_DISK(dcp, mp, w);
}
int
xfs_cfork_size(xfs_dinode_core_t *dcp, xfs_mount_t *mp, int w)
{
	return XFS_CFORK_SIZE(dcp, mp, w);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_CNT_BLOCK)
xfs_agblock_t
xfs_cnt_block(xfs_mount_t *mp)
{
	return XFS_CNT_BLOCK(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DA_COOKIE_BNO)
xfs_dablk_t
xfs_da_cookie_bno(xfs_mount_t *mp, xfs_off_t cookie)
{
	return XFS_DA_COOKIE_BNO(mp, cookie);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DA_COOKIE_ENTRY)
int
xfs_da_cookie_entry(xfs_mount_t *mp, xfs_off_t cookie)
{
	return XFS_DA_COOKIE_ENTRY(mp, cookie);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DA_COOKIE_HASH)
/*ARGSUSED1*/
xfs_dahash_t
xfs_da_cookie_hash(xfs_mount_t *mp, xfs_off_t cookie)
{
	return XFS_DA_COOKIE_HASH(mp, cookie);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DA_MAKE_BNOENTRY)
__uint32_t
xfs_da_make_bnoentry(xfs_mount_t *mp, xfs_dablk_t bno, int entry)
{
	return XFS_DA_MAKE_BNOENTRY(mp, bno, entry);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DA_MAKE_COOKIE)
xfs_off_t
xfs_da_make_cookie(xfs_mount_t *mp, xfs_dablk_t bno, int entry,
		   xfs_dahash_t hash)
{
	return XFS_DA_MAKE_COOKIE(mp, bno, entry, hash);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DADDR_TO_AGBNO)
xfs_agblock_t
xfs_daddr_to_agbno(xfs_mount_t *mp, xfs_daddr_t d)
{
	return XFS_DADDR_TO_AGBNO(mp, d);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DADDR_TO_AGNO)
xfs_agnumber_t
xfs_daddr_to_agno(xfs_mount_t *mp, xfs_daddr_t d)
{
	return XFS_DADDR_TO_AGNO(mp, d);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DADDR_TO_FSB)
xfs_fsblock_t
xfs_daddr_to_fsb(xfs_mount_t *mp, xfs_daddr_t d)
{
	return XFS_DADDR_TO_FSB(mp, d);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_APTR)
char *
xfs_dfork_aptr(xfs_dinode_t *dip)
{
	return XFS_DFORK_APTR(dip);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_ASIZE)
int
xfs_dfork_asize(xfs_dinode_t *dip, xfs_mount_t *mp)
{
	return XFS_DFORK_ASIZE(dip, mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_BOFF)
int
xfs_dfork_boff(xfs_dinode_t *dip)
{
	return XFS_DFORK_BOFF(dip);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_DPTR)
char *
xfs_dfork_dptr(xfs_dinode_t *dip)
{
	return XFS_DFORK_DPTR(dip);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_DSIZE)
int
xfs_dfork_dsize(xfs_dinode_t *dip, xfs_mount_t *mp)
{
	return XFS_DFORK_DSIZE(dip, mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_NEXTENTS)
int
xfs_dfork_nextents(xfs_dinode_t *dip, int w)
{
	return XFS_DFORK_NEXTENTS(dip, w);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_PTR)
char *
xfs_dfork_ptr(xfs_dinode_t *dip, int w)
{
	return XFS_DFORK_PTR(dip, w);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_Q)
int
xfs_dfork_q(xfs_dinode_t *dip)
{
	return XFS_DFORK_Q(dip);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DFORK_SIZE)
int
xfs_dfork_size(xfs_dinode_t *dip, xfs_mount_t *mp, int w)
{
	return XFS_DFORK_SIZE(dip, mp, w);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DINODE_GOOD_VERSION)
int
xfs_dinode_good_version(int v)
{
	return XFS_DINODE_GOOD_VERSION(v);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_LEAF_ENTSIZE_BYENTRY)
int
xfs_dir_leaf_entsize_byentry(xfs_dir_leaf_entry_t *entry)
{
	return XFS_DIR_LEAF_ENTSIZE_BYENTRY(entry);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_LEAF_ENTSIZE_BYNAME)
int
xfs_dir_leaf_entsize_byname(int len)
{
	return XFS_DIR_LEAF_ENTSIZE_BYNAME(len);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_LEAF_NAMESTRUCT)
xfs_dir_leaf_name_t *
xfs_dir_leaf_namestruct(xfs_dir_leafblock_t *leafp, int offset)
{
	return XFS_DIR_LEAF_NAMESTRUCT(leafp, offset);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_SF_ALLFIT)
int
xfs_dir_sf_allfit(int count, int totallen)
{
	return XFS_DIR_SF_ALLFIT(count, totallen);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_SF_ENTSIZE_BYENTRY)
int
xfs_dir_sf_entsize_byentry(xfs_dir_sf_entry_t *sfep)
{
	return XFS_DIR_SF_ENTSIZE_BYENTRY(sfep);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_SF_ENTSIZE_BYNAME)
int
xfs_dir_sf_entsize_byname(int len)
{
	return XFS_DIR_SF_ENTSIZE_BYNAME(len);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_SF_GET_DIRINO)
void
xfs_dir_sf_get_dirino(xfs_dir_ino_t *from, xfs_ino_t *to)
{
	XFS_DIR_SF_GET_DIRINO(from, to);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_SF_NEXTENTRY)
xfs_dir_sf_entry_t *
xfs_dir_sf_nextentry(xfs_dir_sf_entry_t *sfep)
{
	return XFS_DIR_SF_NEXTENTRY(sfep);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR_SF_PUT_DIRINO)
void
xfs_dir_sf_put_dirino(xfs_ino_t *from, xfs_dir_ino_t *to)
{
	XFS_DIR_SF_PUT_DIRINO(from, to);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_BLOCK_LEAF_P)
xfs_dir2_leaf_entry_t *
xfs_dir2_block_leaf_p(xfs_dir2_block_tail_t *btp)
{
	return XFS_DIR2_BLOCK_LEAF_P(btp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_BLOCK_TAIL_P)
xfs_dir2_block_tail_t *
xfs_dir2_block_tail_p(xfs_mount_t *mp, xfs_dir2_block_t *block)
{
	return XFS_DIR2_BLOCK_TAIL_P(mp, block);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_BYTE_TO_DA)
xfs_dablk_t
xfs_dir2_byte_to_da(xfs_mount_t *mp, xfs_dir2_off_t by)
{
	return XFS_DIR2_BYTE_TO_DA(mp, by);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_BYTE_TO_DATAPTR)
/* ARGSUSED */
xfs_dir2_dataptr_t
xfs_dir2_byte_to_dataptr(xfs_mount_t *mp, xfs_dir2_off_t by)
{
	return XFS_DIR2_BYTE_TO_DATAPTR(mp, by);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_BYTE_TO_DB)
xfs_dir2_db_t
xfs_dir2_byte_to_db(xfs_mount_t *mp, xfs_dir2_off_t by)
{
	return XFS_DIR2_BYTE_TO_DB(mp, by);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_BYTE_TO_OFF)
xfs_dir2_data_aoff_t
xfs_dir2_byte_to_off(xfs_mount_t *mp, xfs_dir2_off_t by)
{
	return XFS_DIR2_BYTE_TO_OFF(mp, by);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DA_TO_BYTE)
xfs_dir2_off_t
xfs_dir2_da_to_byte(xfs_mount_t *mp, xfs_dablk_t da)
{
	return XFS_DIR2_DA_TO_BYTE(mp, da);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DA_TO_DB)
xfs_dir2_db_t
xfs_dir2_da_to_db(xfs_mount_t *mp, xfs_dablk_t da)
{
	return XFS_DIR2_DA_TO_DB(mp, da);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DATA_ENTRY_TAG_P)
xfs_dir2_data_off_t *
xfs_dir2_data_entry_tag_p(xfs_dir2_data_entry_t *dep)
{
	return XFS_DIR2_DATA_ENTRY_TAG_P(dep);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DATA_ENTSIZE)
int
xfs_dir2_data_entsize(int n)
{
	return XFS_DIR2_DATA_ENTSIZE(n);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DATA_UNUSED_TAG_P)
xfs_dir2_data_off_t *
xfs_dir2_data_unused_tag_p(xfs_dir2_data_unused_t *dup)
{
	return XFS_DIR2_DATA_UNUSED_TAG_P(dup);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DATAPTR_TO_BYTE)
/* ARGSUSED */
xfs_dir2_off_t
xfs_dir2_dataptr_to_byte(xfs_mount_t *mp, xfs_dir2_dataptr_t dp)
{
	return XFS_DIR2_DATAPTR_TO_BYTE(mp, dp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DATAPTR_TO_DB)
xfs_dir2_db_t
xfs_dir2_dataptr_to_db(xfs_mount_t *mp, xfs_dir2_dataptr_t dp)
{
	return XFS_DIR2_DATAPTR_TO_DB(mp, dp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DATAPTR_TO_OFF)
xfs_dir2_data_aoff_t
xfs_dir2_dataptr_to_off(xfs_mount_t *mp, xfs_dir2_dataptr_t dp)
{
	return XFS_DIR2_DATAPTR_TO_OFF(mp, dp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DB_OFF_TO_BYTE)
xfs_dir2_off_t
xfs_dir2_db_off_to_byte(xfs_mount_t *mp, xfs_dir2_db_t db,
			xfs_dir2_data_aoff_t o)
{
	return XFS_DIR2_DB_OFF_TO_BYTE(mp, db, o);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DB_OFF_TO_DATAPTR)
xfs_dir2_dataptr_t
xfs_dir2_db_off_to_dataptr(xfs_mount_t *mp, xfs_dir2_db_t db,
			   xfs_dir2_data_aoff_t o)
{
	return XFS_DIR2_DB_OFF_TO_DATAPTR(mp, db, o);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DB_TO_DA)
xfs_dablk_t
xfs_dir2_db_to_da(xfs_mount_t *mp, xfs_dir2_db_t db)
{
	return XFS_DIR2_DB_TO_DA(mp, db);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DB_TO_FDB)
xfs_dir2_db_t
xfs_dir2_db_to_fdb(xfs_mount_t *mp, xfs_dir2_db_t db)
{
	return XFS_DIR2_DB_TO_FDB(mp, db);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_DB_TO_FDINDEX)
int
xfs_dir2_db_to_fdindex(xfs_mount_t *mp, xfs_dir2_db_t db)
{
	return XFS_DIR2_DB_TO_FDINDEX(mp, db);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_LEAF_BESTS_P)
xfs_dir2_data_off_t *
xfs_dir2_leaf_bests_p(xfs_dir2_leaf_tail_t *ltp)
{
	return XFS_DIR2_LEAF_BESTS_P(ltp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_LEAF_TAIL_P)
xfs_dir2_leaf_tail_t *
xfs_dir2_leaf_tail_p(xfs_mount_t *mp, xfs_dir2_leaf_t *lp)
{
	return XFS_DIR2_LEAF_TAIL_P(mp, lp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_MAX_LEAF_ENTS)
int
xfs_dir2_max_leaf_ents(xfs_mount_t *mp)
{
	return XFS_DIR2_MAX_LEAF_ENTS(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_ENTSIZE_BYENTRY)
int
xfs_dir2_sf_entsize_byentry(xfs_dir2_sf_t *sfp, xfs_dir2_sf_entry_t *sfep)
{
	return XFS_DIR2_SF_ENTSIZE_BYENTRY(sfp, sfep);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_FIRSTENTRY)
xfs_dir2_sf_entry_t *
xfs_dir2_sf_firstentry(xfs_dir2_sf_t *sfp)
{
	return XFS_DIR2_SF_FIRSTENTRY(sfp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_ENTSIZE_BYNAME)
int
xfs_dir2_sf_entsize_byname(xfs_dir2_sf_t *sfp, int len)
{
	return XFS_DIR2_SF_ENTSIZE_BYNAME(sfp, len);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_GET_INUMBER)
xfs_intino_t
xfs_dir2_sf_get_inumber(xfs_dir2_sf_t *sfp, xfs_dir2_inou_t *from)
{
	return XFS_DIR2_SF_GET_INUMBER(sfp, from);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_GET_OFFSET)
xfs_dir2_data_aoff_t
xfs_dir2_sf_get_offset(xfs_dir2_sf_entry_t *sfep)
{
	return XFS_DIR2_SF_GET_OFFSET(sfep);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_HDR_SIZE)
int
xfs_dir2_sf_hdr_size(int i8count)
{
	return XFS_DIR2_SF_HDR_SIZE(i8count);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_INUMBERP)
xfs_dir2_inou_t *
xfs_dir2_sf_inumberp(xfs_dir2_sf_entry_t *sfep)
{
	return XFS_DIR2_SF_INUMBERP(sfep);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_NEXTENTRY)
xfs_dir2_sf_entry_t *
xfs_dir2_sf_nextentry(xfs_dir2_sf_t *sfp, xfs_dir2_sf_entry_t *sfep)
{
	return XFS_DIR2_SF_NEXTENTRY(sfp, sfep);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_PUT_INUMBER)
void
xfs_dir2_sf_put_inumber(xfs_dir2_sf_t *sfp, xfs_ino_t *from, xfs_dir2_inou_t *to)
{
	XFS_DIR2_SF_PUT_INUMBER(sfp, from, to);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_DIR2_SF_PUT_OFFSET)
void
xfs_dir2_sf_put_offset(xfs_dir2_sf_entry_t *sfep, xfs_dir2_data_aoff_t off)
{
	XFS_DIR2_SF_PUT_OFFSET(sfep, off);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_EXTFMT_INODE )
xfs_exntfmt_t
xfs_extfmt_inode(struct xfs_inode *ip)
{
	return XFS_EXTFMT_INODE(ip);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_EXTLEN_MAX)
xfs_extlen_t
xfs_extlen_max(xfs_extlen_t a, xfs_extlen_t b)
{
	return XFS_EXTLEN_MAX(a, b);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_EXTLEN_MIN)
xfs_extlen_t
xfs_extlen_min(xfs_extlen_t a, xfs_extlen_t b)
{
	return XFS_EXTLEN_MIN(a, b);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FILBLKS_MAX)
xfs_filblks_t
xfs_filblks_max(xfs_filblks_t a, xfs_filblks_t b)
{
	return XFS_FILBLKS_MAX(a, b);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FILBLKS_MIN)
xfs_filblks_t
xfs_filblks_min(xfs_filblks_t a, xfs_filblks_t b)
{
	return XFS_FILBLKS_MIN(a, b);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FILEOFF_MAX)
xfs_fileoff_t
xfs_fileoff_max(xfs_fileoff_t a, xfs_fileoff_t b)
{
	return XFS_FILEOFF_MAX(a, b);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FILEOFF_MIN)
xfs_fileoff_t
xfs_fileoff_min(xfs_fileoff_t a, xfs_fileoff_t b)
{
	return XFS_FILEOFF_MIN(a, b);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FSB_SANITY_CHECK)
int
xfs_fsb_sanity_check(xfs_mount_t *mp, xfs_fsblock_t fsbno)
{
	return XFS_FSB_SANITY_CHECK(mp, fsbno);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FSB_TO_AGBNO)
xfs_agblock_t
xfs_fsb_to_agbno(xfs_mount_t *mp, xfs_fsblock_t fsbno)
{
	return XFS_FSB_TO_AGBNO(mp, fsbno);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FSB_TO_AGNO)
xfs_agnumber_t
xfs_fsb_to_agno(xfs_mount_t *mp, xfs_fsblock_t fsbno)
{
	return XFS_FSB_TO_AGNO(mp, fsbno);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FSB_TO_DADDR)
xfs_daddr_t
xfs_fsb_to_daddr(xfs_mount_t *mp, xfs_fsblock_t fsbno)
{
	return XFS_FSB_TO_DADDR(mp, fsbno);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_FSB_TO_DB)
xfs_daddr_t
xfs_fsb_to_db(xfs_inode_t *ip, xfs_fsblock_t fsb)
{
	return XFS_FSB_TO_DB(ip, fsb);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_HDR_BLOCK)
xfs_agblock_t
xfs_hdr_block(xfs_mount_t *mp, xfs_daddr_t d)
{
	return XFS_HDR_BLOCK(mp, d);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IALLOC_BLOCKS)
xfs_extlen_t
xfs_ialloc_blocks(xfs_mount_t *mp)
{
	return XFS_IALLOC_BLOCKS(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IALLOC_FIND_FREE)
int
xfs_ialloc_find_free(xfs_inofree_t *fp)
{
	return XFS_IALLOC_FIND_FREE(fp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IALLOC_INODES)
int
xfs_ialloc_inodes(xfs_mount_t *mp)
{
	return XFS_IALLOC_INODES(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IBT_BLOCK)
xfs_agblock_t
xfs_ibt_block(xfs_mount_t *mp)
{
	return XFS_IBT_BLOCK(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_ASIZE)
int
xfs_ifork_asize(xfs_inode_t *ip)
{
	return XFS_IFORK_ASIZE(ip);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_DSIZE)
int
xfs_ifork_dsize(xfs_inode_t *ip)
{
	return XFS_IFORK_DSIZE(ip);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_FMT_SET)
void
xfs_ifork_fmt_set(xfs_inode_t *ip, int w, int n)
{
	XFS_IFORK_FMT_SET(ip, w, n);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_FORMAT)
int
xfs_ifork_format(xfs_inode_t *ip, int w)
{
	return XFS_IFORK_FORMAT(ip, w);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_NEXT_SET)
void
xfs_ifork_next_set(xfs_inode_t *ip, int w, int n)
{
	XFS_IFORK_NEXT_SET(ip, w, n);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_NEXTENTS)
int
xfs_ifork_nextents(xfs_inode_t *ip, int w)
{
	return XFS_IFORK_NEXTENTS(ip, w);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_PTR)
xfs_ifork_t *
xfs_ifork_ptr(xfs_inode_t *ip, int w)
{
	return XFS_IFORK_PTR(ip, w);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_Q)
int
xfs_ifork_q(xfs_inode_t *ip)
{
	return XFS_IFORK_Q(ip);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IFORK_SIZE)
int
xfs_ifork_size(xfs_inode_t *ip, int w)
{
	return XFS_IFORK_SIZE(ip, w);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ILOG_FBROOT)
int
xfs_ilog_fbroot(int w)
{
	return XFS_ILOG_FBROOT(w);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ILOG_FDATA)
int
xfs_ilog_fdata(int w)
{
	return XFS_ILOG_FDATA(w);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ILOG_FEXT)
int
xfs_ilog_fext(int w)
{
	return XFS_ILOG_FEXT(w);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_IN_MAXLEVELS)
int
xfs_in_maxlevels(xfs_mount_t *mp)
{
	return XFS_IN_MAXLEVELS(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_AGBNO_BITS)
int
xfs_ino_agbno_bits(xfs_mount_t *mp)
{
	return XFS_INO_AGBNO_BITS(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_AGINO_BITS)
int
xfs_ino_agino_bits(xfs_mount_t *mp)
{
	return XFS_INO_AGINO_BITS(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_AGNO_BITS)
int
xfs_ino_agno_bits(xfs_mount_t *mp)
{
	return XFS_INO_AGNO_BITS(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_BITS)
int
xfs_ino_bits(xfs_mount_t *mp)
{
	return XFS_INO_BITS(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_MASK)
__uint32_t
xfs_ino_mask(int k)
{
	return XFS_INO_MASK(k);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_OFFSET_BITS)
int
xfs_ino_offset_bits(xfs_mount_t *mp)
{
	return XFS_INO_OFFSET_BITS(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_TO_AGBNO)
xfs_agblock_t
xfs_ino_to_agbno(xfs_mount_t *mp, xfs_ino_t i)
{
	return XFS_INO_TO_AGBNO(mp, i);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_TO_AGINO)
xfs_agino_t
xfs_ino_to_agino(xfs_mount_t *mp, xfs_ino_t i)
{
	return XFS_INO_TO_AGINO(mp, i);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_TO_AGNO)
xfs_agnumber_t
xfs_ino_to_agno(xfs_mount_t *mp, xfs_ino_t i)
{
	return XFS_INO_TO_AGNO(mp, i);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_TO_FSB)
xfs_fsblock_t
xfs_ino_to_fsb(xfs_mount_t *mp, xfs_ino_t i)
{
	return XFS_INO_TO_FSB(mp, i);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INO_TO_OFFSET)
int
xfs_ino_to_offset(xfs_mount_t *mp, xfs_ino_t i)
{
	return XFS_INO_TO_OFFSET(mp, i);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_BLOCK_MAXRECS)
int
xfs_inobt_block_maxrecs(int lev, xfs_btree_cur_t *cur)
{
	return XFS_INOBT_BLOCK_MAXRECS(lev, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_BLOCK_MINRECS)
int
xfs_inobt_block_minrecs(int lev, xfs_btree_cur_t *cur)
{
	return XFS_INOBT_BLOCK_MINRECS(lev, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_BLOCK_SIZE)
/*ARGSUSED1*/
int
xfs_inobt_block_size(int lev, xfs_btree_cur_t *cur)
{
	return XFS_INOBT_BLOCK_SIZE(lev, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_CLR_FREE)
void
xfs_inobt_clr_free(xfs_inobt_rec_t *rp, int i)
{
	XFS_INOBT_CLR_FREE(rp, i);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_IS_FREE)
int
xfs_inobt_is_free(xfs_inobt_rec_t *rp, int i)
{
	return XFS_INOBT_IS_FREE(rp, i);
}
int
xfs_inobt_is_free_disk(xfs_inobt_rec_t *rp, int i)
{
	return XFS_INOBT_IS_FREE_DISK(rp, i);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_IS_LAST_REC)
int
xfs_inobt_is_last_rec(xfs_btree_cur_t *cur)
{
	return XFS_INOBT_IS_LAST_REC(cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_KEY_ADDR)
/*ARGSUSED3*/
xfs_inobt_key_t *
xfs_inobt_key_addr(xfs_inobt_block_t *bb, int i, xfs_btree_cur_t *cur)
{
	return XFS_INOBT_KEY_ADDR(bb, i, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_MASK)
xfs_inofree_t
xfs_inobt_mask(int i)
{
	return XFS_INOBT_MASK(i);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_MASKN)
xfs_inofree_t
xfs_inobt_maskn(int i, int n)
{
	return XFS_INOBT_MASKN(i, n);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_PTR_ADDR)
xfs_inobt_ptr_t *
xfs_inobt_ptr_addr(xfs_inobt_block_t *bb, int i, xfs_btree_cur_t *cur)
{
	return XFS_INOBT_PTR_ADDR(bb, i, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_REC_ADDR)
/*ARGSUSED3*/
xfs_inobt_rec_t *
xfs_inobt_rec_addr(xfs_inobt_block_t *bb, int i, xfs_btree_cur_t *cur)
{
	return XFS_INOBT_REC_ADDR(bb, i, cur);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_INOBT_SET_FREE)
void
xfs_inobt_set_free(xfs_inobt_rec_t *rp, int i)
{
	XFS_INOBT_SET_FREE(rp, i);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ITOBHV)
bhv_desc_t *
xfs_itobhv(xfs_inode_t *ip)
{
	return XFS_ITOBHV(ip);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_ITOV)
vnode_t *
xfs_itov(xfs_inode_t *ip)
{
	return XFS_ITOV(ip);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LBLOG)
int
xfs_lblog(xfs_mount_t *mp)
{
	return XFS_LBLOG(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LBSIZE)
int
xfs_lbsize(xfs_mount_t *mp)
{
	return XFS_LBSIZE(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_ALL_FREE)
void
xfs_lic_all_free(xfs_log_item_chunk_t *cp)
{
	XFS_LIC_ALL_FREE(cp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_ARE_ALL_FREE)
int
xfs_lic_are_all_free(xfs_log_item_chunk_t *cp)
{
	return XFS_LIC_ARE_ALL_FREE(cp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_CLAIM)
void
xfs_lic_claim(xfs_log_item_chunk_t *cp, int slot)
{
	XFS_LIC_CLAIM(cp, slot);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_DESC_TO_CHUNK)
xfs_log_item_chunk_t *
xfs_lic_desc_to_chunk(xfs_log_item_desc_t *dp)
{
	return XFS_LIC_DESC_TO_CHUNK(dp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_DESC_TO_SLOT)
int
xfs_lic_desc_to_slot(xfs_log_item_desc_t *dp)
{
	return XFS_LIC_DESC_TO_SLOT(dp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_INIT)
void
xfs_lic_init(xfs_log_item_chunk_t *cp)
{
	XFS_LIC_INIT(cp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_INIT_SLOT)
void
xfs_lic_init_slot(xfs_log_item_chunk_t *cp, int slot)
{
	XFS_LIC_INIT_SLOT(cp, slot);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_ISFREE)
int
xfs_lic_isfree(xfs_log_item_chunk_t *cp, int slot)
{
	return XFS_LIC_ISFREE(cp, slot);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_RELSE)
void
xfs_lic_relse(xfs_log_item_chunk_t *cp, int slot)
{
	XFS_LIC_RELSE(cp, slot);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_SLOT)
xfs_log_item_desc_t *
xfs_lic_slot(xfs_log_item_chunk_t *cp, int slot)
{
	return XFS_LIC_SLOT(cp, slot);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LIC_VACANCY)
int
xfs_lic_vacancy(xfs_log_item_chunk_t *cp)
{
	return XFS_LIC_VACANCY(cp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_LITINO)
int
xfs_litino(xfs_mount_t *mp)
{
	return XFS_LITINO(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MAKE_IPTR)
xfs_dinode_t *
xfs_make_iptr(xfs_mount_t *mp, xfs_buf_t *b, int o)
{
	return XFS_MAKE_IPTR(mp, b, o);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MASK32HI)
__uint32_t
xfs_mask32hi(int n)
{
	return XFS_MASK32HI(n);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MASK32LO)
__uint32_t
xfs_mask32lo(int n)
{
	return XFS_MASK32LO(n);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MASK64HI)
__uint64_t
xfs_mask64hi(int n)
{
	return XFS_MASK64HI(n);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MASK64LO)
__uint64_t
xfs_mask64lo(int n)
{
	return XFS_MASK64LO(n);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MIN_FREELIST)
int
xfs_min_freelist(xfs_agf_t *a, xfs_mount_t *mp)
{
	return XFS_MIN_FREELIST(a, mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MIN_FREELIST_PAG)
int
xfs_min_freelist_pag(xfs_perag_t *pag, xfs_mount_t *mp)
{
	return XFS_MIN_FREELIST_PAG(pag, mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MIN_FREELIST_RAW)
int
xfs_min_freelist_raw(uint bl, uint cl, xfs_mount_t *mp)
{
	return XFS_MIN_FREELIST_RAW(bl, cl, mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_MTOVFS)
vfs_t *
xfs_mtovfs(xfs_mount_t *mp)
{
	return XFS_MTOVFS(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_OFFBNO_TO_AGINO)
xfs_agino_t
xfs_offbno_to_agino(xfs_mount_t *mp, xfs_agblock_t b, int o)
{
	return XFS_OFFBNO_TO_AGINO(mp, b, o);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_PREALLOC_BLOCKS)
xfs_agblock_t
xfs_prealloc_blocks(xfs_mount_t *mp)
{
	return XFS_PREALLOC_BLOCKS(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_BLOCK)
xfs_agblock_t
xfs_sb_block(xfs_mount_t *mp)
{
	return XFS_SB_BLOCK(mp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_GOOD_VERSION)
int
xfs_sb_good_version(xfs_sb_t *sbp)
{
	return XFS_SB_GOOD_VERSION(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_ADDATTR)
void
xfs_sb_version_addattr(xfs_sb_t *sbp)
{
	XFS_SB_VERSION_ADDATTR(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_ADDDALIGN)
void
xfs_sb_version_adddalign(xfs_sb_t *sbp)
{
	XFS_SB_VERSION_ADDDALIGN(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_ADDNLINK)
void
xfs_sb_version_addnlink(xfs_sb_t *sbp)
{
	XFS_SB_VERSION_ADDNLINK(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_ADDQUOTA)
void
xfs_sb_version_addquota(xfs_sb_t *sbp)
{
	XFS_SB_VERSION_ADDQUOTA(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_ADDSHARED)
void
xfs_sb_version_addshared(xfs_sb_t *sbp)
{
	XFS_SB_VERSION_ADDSHARED(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_ADDATTR2)
void
xfs_sb_version_addattr2(xfs_sb_t *sbp)
{
	XFS_SB_VERSION_ADDATTR2(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASALIGN)
int
xfs_sb_version_hasalign(xfs_sb_t *sbp)
{
	return XFS_SB_VERSION_HASALIGN(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASATTR)
int
xfs_sb_version_hasattr(xfs_sb_t *sbp)
{
	return XFS_SB_VERSION_HASATTR(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASDALIGN)
int
xfs_sb_version_hasdalign(xfs_sb_t *sbp)
{
	return XFS_SB_VERSION_HASDALIGN(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASDIRV2)
int
xfs_sb_version_hasdirv2(xfs_sb_t *sbp)
{
	return XFS_SB_VERSION_HASDIRV2(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASEXTFLGBIT)
int
xfs_sb_version_hasextflgbit(xfs_sb_t *sbp)
{
	return XFS_SB_VERSION_HASEXTFLGBIT(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASNLINK)
int
xfs_sb_version_hasnlink(xfs_sb_t *sbp)
{
	return XFS_SB_VERSION_HASNLINK(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASQUOTA)
int
xfs_sb_version_hasquota(xfs_sb_t *sbp)
{
	return XFS_SB_VERSION_HASQUOTA(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASSHARED)
int
xfs_sb_version_hasshared(xfs_sb_t *sbp)
{
	return XFS_SB_VERSION_HASSHARED(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_NUM)
int
xfs_sb_version_num(xfs_sb_t *sbp)
{
	return XFS_SB_VERSION_NUM(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_SUBALIGN)
void
xfs_sb_version_subalign(xfs_sb_t *sbp)
{
	XFS_SB_VERSION_SUBALIGN(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_SUBSHARED)
void
xfs_sb_version_subshared(xfs_sb_t *sbp)
{
	XFS_SB_VERSION_SUBSHARED(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASLOGV2)
int
xfs_sb_version_haslogv2(xfs_sb_t *sbp)
{
	return XFS_SB_VERSION_HASLOGV2(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASSECTOR)
int
xfs_sb_version_hassector(xfs_sb_t *sbp)
{
	return XFS_SB_VERSION_HASSECTOR(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_TONEW)
unsigned
xfs_sb_version_tonew(unsigned v)
{
	return XFS_SB_VERSION_TONEW(v);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_TOOLD)
unsigned
xfs_sb_version_toold(unsigned v)
{
	return XFS_SB_VERSION_TOOLD(v);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XLOG_GRANT_ADD_SPACE)
void
xlog_grant_add_space(xlog_t *log, int bytes, int type)
{
	XLOG_GRANT_ADD_SPACE(log, bytes, type);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XLOG_GRANT_SUB_SPACE)
void
xlog_grant_sub_space(xlog_t *log, int bytes, int type)
{
	XLOG_GRANT_SUB_SPACE(log, bytes, type);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASMOREBITS)
int
xfs_sb_version_hasmorebits(xfs_sb_t *sbp)
{
	return XFS_SB_VERSION_HASMOREBITS(sbp);
}
#endif

#if XFS_WANT_FUNCS_C || (XFS_WANT_SPACE_C && XFSSO_XFS_SB_VERSION_HASATTR2)
int
xfs_sb_version_hasattr2(xfs_sb_t *sbp)
{
	return XFS_SB_VERSION_HASATTR2(sbp);
}
#endif