Lines Matching full:mp

14 #define XFS_MAX_CONTIG_BMAPS_PER_BLOCK(mp)    \  argument
15 (((mp)->m_bmap_dmxr[0]) - ((mp)->m_bmap_dmnr[0]))
18 #define XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) \ argument
19 (((mp)->m_rmap_mxr[0]) - ((mp)->m_rmap_mnr[0]))
22 #define XFS_RMAPADD_SPACE_RES(mp) ((mp)->m_rmap_maxlevels) argument
32 #define XFS_NRMAPADD_SPACE_RES(mp, b)\ argument
33 (((b + XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) - 1) / \
34 XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp)) * \
35 XFS_RMAPADD_SPACE_RES(mp))
37 #define XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) \ argument
38 (((mp)->m_alloc_mxr[0]) - ((mp)->m_alloc_mnr[0]))
39 #define XFS_EXTENTADD_SPACE_RES(mp,w) (XFS_BM_MAXLEVELS(mp,w) - 1) argument
40 #define XFS_NEXTENTADD_SPACE_RES(mp,b,w)\ argument
41 (((b + XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) - 1) / \
42 XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp)) * \
43 XFS_EXTENTADD_SPACE_RES(mp,w))
46 #define XFS_SWAP_RMAP_SPACE_RES(mp,b,w)\ argument
47 (XFS_NEXTENTADD_SPACE_RES((mp), (b), (w)) + \
48 XFS_NRMAPADD_SPACE_RES((mp), (b)))
50 #define XFS_DAENTER_1B(mp,w) \ argument
51 ((w) == XFS_DATA_FORK ? (mp)->m_dir_geo->fsbcount : 1)
52 #define XFS_DAENTER_DBS(mp,w) \ argument
54 #define XFS_DAENTER_BLOCKS(mp,w) \ argument
55 (XFS_DAENTER_1B(mp,w) * XFS_DAENTER_DBS(mp,w))
56 #define XFS_DAENTER_BMAP1B(mp,w) \ argument
57 XFS_NEXTENTADD_SPACE_RES(mp, XFS_DAENTER_1B(mp, w), w)
58 #define XFS_DAENTER_BMAPS(mp,w) \ argument
59 (XFS_DAENTER_DBS(mp,w) * XFS_DAENTER_BMAP1B(mp,w))
60 #define XFS_DAENTER_SPACE_RES(mp,w) \ argument
61 (XFS_DAENTER_BLOCKS(mp,w) + XFS_DAENTER_BMAPS(mp,w))
62 #define XFS_DAREMOVE_SPACE_RES(mp,w) XFS_DAENTER_BMAPS(mp,w) argument
63 #define XFS_DIRENTER_MAX_SPLIT(mp,nl) 1 argument
64 #define XFS_DIRENTER_SPACE_RES(mp,nl) \ argument
65 (XFS_DAENTER_SPACE_RES(mp, XFS_DATA_FORK) * \
66 XFS_DIRENTER_MAX_SPLIT(mp,nl))
67 #define XFS_DIRREMOVE_SPACE_RES(mp) \ argument
68 XFS_DAREMOVE_SPACE_RES(mp, XFS_DATA_FORK)
69 #define XFS_IALLOC_SPACE_RES(mp) \ argument
70 (M_IGEO(mp)->ialloc_blks + \
71 ((xfs_has_finobt(mp) ? 2 : 1) * M_IGEO(mp)->inobt_maxlevels))
76 #define XFS_ADDAFORK_SPACE_RES(mp) \ argument
77 ((mp)->m_dir_geo->fsbcount + XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK))
78 #define XFS_ATTRRM_SPACE_RES(mp) \ argument
79 XFS_DAREMOVE_SPACE_RES(mp, XFS_ATTR_FORK)
81 #define XFS_ATTRSET_SPACE_RES(mp, v) \ argument
82 (XFS_DAENTER_SPACE_RES(mp, XFS_ATTR_FORK) + XFS_B_TO_FSB(mp, v))
83 #define XFS_DIOSTRAT_SPACE_RES(mp, v) \ argument
84 (XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK) + (v))
85 #define XFS_GROWFS_SPACE_RES(mp) \ argument
86 (2 * (mp)->m_alloc_maxlevels)
87 #define XFS_GROWFSRT_SPACE_RES(mp,b) \ argument
88 ((b) + XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK))
89 #define XFS_QM_DQALLOC_SPACE_RES(mp) \ argument
90 (XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK) + \
92 #define XFS_QM_QINOCREATE_SPACE_RES(mp) \ argument
93 XFS_IALLOC_SPACE_RES(mp)
94 #define XFS_IFREE_SPACE_RES(mp) \ argument
95 (xfs_has_finobt(mp) ? M_IGEO(mp)->inobt_maxlevels : 0)
97 unsigned int xfs_parent_calc_space_res(struct xfs_mount *mp,
100 unsigned int xfs_create_space_res(struct xfs_mount *mp, unsigned int namelen);
101 unsigned int xfs_mkdir_space_res(struct xfs_mount *mp, unsigned int namelen);
102 unsigned int xfs_link_space_res(struct xfs_mount *mp, unsigned int namelen);
103 unsigned int xfs_symlink_space_res(struct xfs_mount *mp, unsigned int namelen,
105 unsigned int xfs_remove_space_res(struct xfs_mount *mp, unsigned int namelen);
107 unsigned int xfs_rename_space_res(struct xfs_mount *mp,