• Home
  • Raw
  • Download

Lines Matching full:mp

14 #define XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp)    \  argument
15 (((mp)->m_rmap_mxr[0]) - ((mp)->m_rmap_mnr[0]))
18 #define XFS_RMAPADD_SPACE_RES(mp) ((mp)->m_rmap_maxlevels) argument
21 #define XFS_NRMAPADD_SPACE_RES(mp, b)\ argument
22 (((b + XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) - 1) / \
23 XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp)) * \
24 XFS_RMAPADD_SPACE_RES(mp))
26 #define XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) \ argument
27 (((mp)->m_alloc_mxr[0]) - ((mp)->m_alloc_mnr[0]))
28 #define XFS_EXTENTADD_SPACE_RES(mp,w) (XFS_BM_MAXLEVELS(mp,w) - 1) argument
29 #define XFS_NEXTENTADD_SPACE_RES(mp,b,w)\ argument
30 (((b + XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) - 1) / \
31 XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp)) * \
32 XFS_EXTENTADD_SPACE_RES(mp,w))
35 #define XFS_SWAP_RMAP_SPACE_RES(mp,b,w)\ argument
36 (XFS_NEXTENTADD_SPACE_RES((mp), (b), (w)) + \
37 XFS_NRMAPADD_SPACE_RES((mp), (b)))
39 #define XFS_DAENTER_1B(mp,w) \ argument
40 ((w) == XFS_DATA_FORK ? (mp)->m_dir_geo->fsbcount : 1)
41 #define XFS_DAENTER_DBS(mp,w) \ argument
43 #define XFS_DAENTER_BLOCKS(mp,w) \ argument
44 (XFS_DAENTER_1B(mp,w) * XFS_DAENTER_DBS(mp,w))
45 #define XFS_DAENTER_BMAP1B(mp,w) \ argument
46 XFS_NEXTENTADD_SPACE_RES(mp, XFS_DAENTER_1B(mp, w), w)
47 #define XFS_DAENTER_BMAPS(mp,w) \ argument
48 (XFS_DAENTER_DBS(mp,w) * XFS_DAENTER_BMAP1B(mp,w))
49 #define XFS_DAENTER_SPACE_RES(mp,w) \ argument
50 (XFS_DAENTER_BLOCKS(mp,w) + XFS_DAENTER_BMAPS(mp,w))
51 #define XFS_DAREMOVE_SPACE_RES(mp,w) XFS_DAENTER_BMAPS(mp,w) argument
52 #define XFS_DIRENTER_MAX_SPLIT(mp,nl) 1 argument
53 #define XFS_DIRENTER_SPACE_RES(mp,nl) \ argument
54 (XFS_DAENTER_SPACE_RES(mp, XFS_DATA_FORK) * \
55 XFS_DIRENTER_MAX_SPLIT(mp,nl))
56 #define XFS_DIRREMOVE_SPACE_RES(mp) \ argument
57 XFS_DAREMOVE_SPACE_RES(mp, XFS_DATA_FORK)
58 #define XFS_IALLOC_SPACE_RES(mp) \ argument
59 (M_IGEO(mp)->ialloc_blks + \
60 ((xfs_sb_version_hasfinobt(&mp->m_sb) ? 2 : 1) * \
61 M_IGEO(mp)->inobt_maxlevels))
66 #define XFS_ADDAFORK_SPACE_RES(mp) \ argument
67 ((mp)->m_dir_geo->fsbcount + XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK))
68 #define XFS_ATTRRM_SPACE_RES(mp) \ argument
69 XFS_DAREMOVE_SPACE_RES(mp, XFS_ATTR_FORK)
71 #define XFS_ATTRSET_SPACE_RES(mp, v) \ argument
72 (XFS_DAENTER_SPACE_RES(mp, XFS_ATTR_FORK) + XFS_B_TO_FSB(mp, v))
73 #define XFS_CREATE_SPACE_RES(mp,nl) \ argument
74 (XFS_IALLOC_SPACE_RES(mp) + XFS_DIRENTER_SPACE_RES(mp,nl))
75 #define XFS_DIOSTRAT_SPACE_RES(mp, v) \ argument
76 (XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK) + (v))
77 #define XFS_GROWFS_SPACE_RES(mp) \ argument
78 (2 * (mp)->m_ag_maxlevels)
79 #define XFS_GROWFSRT_SPACE_RES(mp,b) \ argument
80 ((b) + XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK))
81 #define XFS_LINK_SPACE_RES(mp,nl) \ argument
82 XFS_DIRENTER_SPACE_RES(mp,nl)
83 #define XFS_MKDIR_SPACE_RES(mp,nl) \ argument
84 (XFS_IALLOC_SPACE_RES(mp) + XFS_DIRENTER_SPACE_RES(mp,nl))
85 #define XFS_QM_DQALLOC_SPACE_RES(mp) \ argument
86 (XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK) + \
88 #define XFS_QM_QINOCREATE_SPACE_RES(mp) \ argument
89 XFS_IALLOC_SPACE_RES(mp)
90 #define XFS_REMOVE_SPACE_RES(mp) \ argument
91 XFS_DIRREMOVE_SPACE_RES(mp)
92 #define XFS_RENAME_SPACE_RES(mp,nl) \ argument
93 (XFS_DIRREMOVE_SPACE_RES(mp) + XFS_DIRENTER_SPACE_RES(mp,nl))
94 #define XFS_SYMLINK_SPACE_RES(mp,nl,b) \ argument
95 (XFS_IALLOC_SPACE_RES(mp) + XFS_DIRENTER_SPACE_RES(mp,nl) + (b))
96 #define XFS_IFREE_SPACE_RES(mp) \ argument
97 (xfs_sb_version_hasfinobt(&mp->m_sb) ? \
98 M_IGEO(mp)->inobt_maxlevels : 0)