1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
6 #ifndef __XFS_RTALLOC_H__
7 #define __XFS_RTALLOC_H__
9 /* kernel only definitions and functions */
16 * Initialize realtime fields in the mount structure.
20 struct xfs_mount *mp); /* file system mount structure */
23 struct xfs_mount *mp);
26 * Get the bitmap and summary inodes into the mount structure
31 struct xfs_mount *mp); /* file system mount structure */
34 * Grow the realtime area of the filesystem.
38 struct xfs_mount *mp, /* file system mount structure */
39 xfs_growfs_rt_t *in); /* user supplied growfs struct */
41 int xfs_rtalloc_reinit_frextents(struct xfs_mount *mp);
43 # define xfs_growfs_rt(mp,in) (-ENOSYS)
44 # define xfs_rtalloc_reinit_frextents(m) (0)
45 static inline int /* error */
47 xfs_mount_t *mp) /* file system mount structure */
49 if (mp->m_sb.sb_rblocks == 0)
52 xfs_warn(mp, "Not built with CONFIG_XFS_RT");
55 # define xfs_rtmount_inodes(m) (((mp)->m_sb.sb_rblocks == 0)? 0 : (-ENOSYS))
56 # define xfs_rtunmount_inodes(m)
57 #endif /* CONFIG_XFS_RT */
59 #endif /* __XFS_RTALLOC_H__ */