0001
0002
0003
0004
0005
0006 #ifndef __XFS_FILESTREAM_H__
0007 #define __XFS_FILESTREAM_H__
0008
0009 struct xfs_mount;
0010 struct xfs_inode;
0011 struct xfs_bmalloca;
0012
0013 int xfs_filestream_mount(struct xfs_mount *mp);
0014 void xfs_filestream_unmount(struct xfs_mount *mp);
0015 void xfs_filestream_deassociate(struct xfs_inode *ip);
0016 xfs_agnumber_t xfs_filestream_lookup_ag(struct xfs_inode *ip);
0017 int xfs_filestream_new_ag(struct xfs_bmalloca *ap, xfs_agnumber_t *agp);
0018 int xfs_filestream_peek_ag(struct xfs_mount *mp, xfs_agnumber_t agno);
0019
0020 static inline int
0021 xfs_inode_is_filestream(
0022 struct xfs_inode *ip)
0023 {
0024 return xfs_has_filestreams(ip->i_mount) ||
0025 (ip->i_diflags & XFS_DIFLAG_FILESTREAM);
0026 }
0027
0028 #endif