Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

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