xfs_filestream.h 805 B

12345678910111213141516171819202122232425262728
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2006-2007 Silicon Graphics, Inc.
  4. * All Rights Reserved.
  5. */
  6. #ifndef __XFS_FILESTREAM_H__
  7. #define __XFS_FILESTREAM_H__
  8. struct xfs_mount;
  9. struct xfs_inode;
  10. struct xfs_bmalloca;
  11. int xfs_filestream_mount(struct xfs_mount *mp);
  12. void xfs_filestream_unmount(struct xfs_mount *mp);
  13. void xfs_filestream_deassociate(struct xfs_inode *ip);
  14. xfs_agnumber_t xfs_filestream_lookup_ag(struct xfs_inode *ip);
  15. int xfs_filestream_new_ag(struct xfs_bmalloca *ap, xfs_agnumber_t *agp);
  16. int xfs_filestream_peek_ag(struct xfs_mount *mp, xfs_agnumber_t agno);
  17. static inline int
  18. xfs_inode_is_filestream(
  19. struct xfs_inode *ip)
  20. {
  21. return (ip->i_mount->m_flags & XFS_MOUNT_FILESTREAMS) ||
  22. (ip->i_d.di_flags & XFS_DIFLAG_FILESTREAM);
  23. }
  24. #endif /* __XFS_FILESTREAM_H__ */