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-acha @ Mon Jul 31 20:08:06 PDT 2023 Lines: 1 1 100.0 %
Date: 2023-07-31 20:08:07 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   505677860 :         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