linux/fs/xfs/xfs_filestream.h
<<
>>
Prefs
   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
   9struct xfs_mount;
  10struct xfs_inode;
  11struct xfs_bmalloca;
  12
  13int xfs_filestream_mount(struct xfs_mount *mp);
  14void xfs_filestream_unmount(struct xfs_mount *mp);
  15void xfs_filestream_deassociate(struct xfs_inode *ip);
  16xfs_agnumber_t xfs_filestream_lookup_ag(struct xfs_inode *ip);
  17int xfs_filestream_new_ag(struct xfs_bmalloca *ap, xfs_agnumber_t *agp);
  18int xfs_filestream_peek_ag(struct xfs_mount *mp, xfs_agnumber_t agno);
  19
  20static inline int
  21xfs_inode_is_filestream(
  22        struct xfs_inode        *ip)
  23{
  24        return xfs_has_filestreams(ip->i_mount) ||
  25                (ip->i_diflags & XFS_DIFLAG_FILESTREAM);
  26}
  27
  28#endif /* __XFS_FILESTREAM_H__ */
  29