Commit | Line | Data |
---|---|---|
0b61f8a4 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2a82b8be DC |
2 | /* |
3 | * Copyright (c) 2006-2007 Silicon Graphics, Inc. | |
4 | * All Rights Reserved. | |
2a82b8be DC |
5 | */ |
6 | #ifndef __XFS_FILESTREAM_H__ | |
7 | #define __XFS_FILESTREAM_H__ | |
8 | ||
2a82b8be DC |
9 | struct xfs_mount; |
10 | struct xfs_inode; | |
2a82b8be DC |
11 | struct xfs_bmalloca; |
12 | ||
2a82b8be DC |
13 | int xfs_filestream_mount(struct xfs_mount *mp); |
14 | void xfs_filestream_unmount(struct xfs_mount *mp); | |
2a82b8be | 15 | void xfs_filestream_deassociate(struct xfs_inode *ip); |
2cd2ef6a | 16 | xfs_agnumber_t xfs_filestream_lookup_ag(struct xfs_inode *ip); |
2a82b8be | 17 | int xfs_filestream_new_ag(struct xfs_bmalloca *ap, xfs_agnumber_t *agp); |
b94acd47 | 18 | int xfs_filestream_peek_ag(struct xfs_mount *mp, xfs_agnumber_t agno); |
2a82b8be | 19 | |
b8f82a4a | 20 | static inline int |
2a82b8be DC |
21 | xfs_inode_is_filestream( |
22 | struct xfs_inode *ip) | |
23 | { | |
0560f31a | 24 | return xfs_has_filestreams(ip->i_mount) || |
db07349d | 25 | (ip->i_diflags & XFS_DIFLAG_FILESTREAM); |
2a82b8be DC |
26 | } |
27 | ||
2a82b8be | 28 | #endif /* __XFS_FILESTREAM_H__ */ |