bnx2x: remove ndo_poll_controller
[linux/fpc-iii.git] / fs / xfs / xfs_filestream.h
blob5cc7665e93c92be0dcc6eeb6b25c7261dfcfc942
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__
9 struct xfs_mount;
10 struct xfs_inode;
11 struct xfs_bmalloca;
13 int xfs_filestream_mount(struct xfs_mount *mp);
14 void xfs_filestream_unmount(struct xfs_mount *mp);
15 void xfs_filestream_deassociate(struct xfs_inode *ip);
16 xfs_agnumber_t xfs_filestream_lookup_ag(struct xfs_inode *ip);
17 int xfs_filestream_new_ag(struct xfs_bmalloca *ap, xfs_agnumber_t *agp);
18 int xfs_filestream_peek_ag(struct xfs_mount *mp, xfs_agnumber_t agno);
20 static inline int
21 xfs_inode_is_filestream(
22 struct xfs_inode *ip)
24 return (ip->i_mount->m_flags & XFS_MOUNT_FILESTREAMS) ||
25 (ip->i_d.di_flags & XFS_DIFLAG_FILESTREAM);
28 #endif /* __XFS_FILESTREAM_H__ */