LCOV - code coverage report
Current view: top level - include/linux - hugetlb_inline.h (source / functions) Hit Total Coverage
Test: fstests of 6.5.0-rc3-djwx @ Mon Jul 31 20:08:22 PDT 2023 Lines: 0 1 0.0 %
Date: 2023-07-31 20:08:22 Functions: 0 0 -

          Line data    Source code
       1             : /* SPDX-License-Identifier: GPL-2.0 */
       2             : #ifndef _LINUX_HUGETLB_INLINE_H
       3             : #define _LINUX_HUGETLB_INLINE_H
       4             : 
       5             : #ifdef CONFIG_HUGETLB_PAGE
       6             : 
       7             : #include <linux/mm.h>
       8             : 
       9             : static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma)
      10             : {
      11           0 :         return !!(vma->vm_flags & VM_HUGETLB);
      12             : }
      13             : 
      14             : #else
      15             : 
      16             : static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma)
      17             : {
      18             :         return false;
      19             : }
      20             : 
      21             : #endif
      22             : 
      23             : #endif

Generated by: LCOV version 1.14