LCOV - code coverage report
Current view: top level - fs/xfs - xfs_filestream.h (source / functions) Hit Total Coverage
Test: fstests of 6.5.0-rc4-xfsx @ Mon Jul 31 20:08:34 PDT 2023 Lines: 2 2 100.0 %
Date: 2023-07-31 20:08:34 Functions: 0 0 -

          Line data    Source code
       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             : 
       9             : struct xfs_mount;
      10             : struct xfs_inode;
      11             : struct xfs_bmalloca;
      12             : struct xfs_alloc_arg;
      13             : 
      14             : int xfs_filestream_mount(struct xfs_mount *mp);
      15             : void xfs_filestream_unmount(struct xfs_mount *mp);
      16             : void xfs_filestream_deassociate(struct xfs_inode *ip);
      17             : int xfs_filestream_select_ag(struct xfs_bmalloca *ap,
      18             :                 struct xfs_alloc_arg *args, xfs_extlen_t *blen);
      19             : 
      20             : static inline int
      21             : xfs_inode_is_filestream(
      22             :         struct xfs_inode        *ip)
      23             : {
      24    47955992 :         return xfs_has_filestreams(ip->i_mount) ||
      25    47922131 :                 (ip->i_diflags & XFS_DIFLAG_FILESTREAM);
      26             : }
      27             : 
      28             : #endif /* __XFS_FILESTREAM_H__ */

Generated by: LCOV version 1.14