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

          Line data    Source code
       1             : // SPDX-License-Identifier: GPL-2.0
       2             : /*
       3             :  * Copyright (c) 2022-2023 Oracle, Inc.
       4             :  * All rights reserved.
       5             :  */
       6             : #ifndef __XFS_PARENT_UTILS_H__
       7             : #define __XFS_PARENT_UTILS_H__
       8             : 
       9             : static inline unsigned int
      10             : xfs_getparents_arraytop(
      11             :         const struct xfs_getparents     *ppi,
      12             :         unsigned int                    nr)
      13             : {
      14   939395094 :         return sizeof(struct xfs_getparents) +
      15             :                         (nr * sizeof(ppi->gp_offsets[0]));
      16             : }
      17             : 
      18             : int xfs_getparent_pointers(struct xfs_inode *ip, struct xfs_getparents *ppi);
      19             : 
      20             : #endif  /* __XFS_PARENT_UTILS_H__ */

Generated by: LCOV version 1.14