#ifndef __XFS_RTALLOC_H__
#define __XFS_RTALLOC_H__
struct xfs_mount;
struct xfs_trans;
#ifdef CONFIG_XFS_RT
int
xfs_rtmount_init(
struct xfs_mount *mp);
void
xfs_rtunmount_inodes(
struct xfs_mount *mp);
int
xfs_rtmount_inodes(
struct xfs_mount *mp);
int
xfs_growfs_rt(
struct xfs_mount *mp,
xfs_growfs_rt_t *in);
int xfs_rtalloc_reinit_frextents(struct xfs_mount *mp);
#else
#define xfs_growfs_rt …
#define xfs_rtalloc_reinit_frextents …
static inline int
xfs_rtmount_init(
xfs_mount_t *mp)
{
if (mp->m_sb.sb_rblocks == 0)
return 0;
xfs_warn(mp, "Not built with CONFIG_XFS_RT");
return -ENOSYS;
}
#define xfs_rtmount_inodes …
#define xfs_rtunmount_inodes …
#endif
#endif