mirror of https://github.com/torvalds/linux.git
35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _XFS_ZONE_ALLOC_H
|
|
#define _XFS_ZONE_ALLOC_H
|
|
|
|
struct iomap_ioend;
|
|
struct xfs_open_zone;
|
|
|
|
void xfs_zone_alloc_and_submit(struct iomap_ioend *ioend,
|
|
struct xfs_open_zone **oz);
|
|
int xfs_zone_free_blocks(struct xfs_trans *tp, struct xfs_rtgroup *rtg,
|
|
xfs_fsblock_t fsbno, xfs_filblks_t len);
|
|
int xfs_zoned_end_io(struct xfs_inode *ip, xfs_off_t offset, xfs_off_t count,
|
|
xfs_daddr_t daddr, struct xfs_open_zone *oz,
|
|
xfs_fsblock_t old_startblock);
|
|
void xfs_open_zone_put(struct xfs_open_zone *oz);
|
|
|
|
void xfs_zoned_wake_all(struct xfs_mount *mp);
|
|
bool xfs_zone_rgbno_is_valid(struct xfs_rtgroup *rtg, xfs_rgnumber_t rgbno);
|
|
void xfs_mark_rtg_boundary(struct iomap_ioend *ioend);
|
|
|
|
#ifdef CONFIG_XFS_RT
|
|
int xfs_mount_zones(struct xfs_mount *mp);
|
|
void xfs_unmount_zones(struct xfs_mount *mp);
|
|
#else
|
|
static inline int xfs_mount_zones(struct xfs_mount *mp)
|
|
{
|
|
return -EIO;
|
|
}
|
|
static inline void xfs_unmount_zones(struct xfs_mount *mp)
|
|
{
|
|
}
|
|
#endif /* CONFIG_XFS_RT */
|
|
|
|
#endif /* _XFS_ZONE_ALLOC_H */
|