diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index ffee2f743418..2be8d9b5e46f 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -145,6 +145,15 @@ extern pgprot_t protection_map[16]; | |||
145 | #define FAULT_FLAG_WRITE 0x01 /* Fault was a write access */ | 145 | #define FAULT_FLAG_WRITE 0x01 /* Fault was a write access */ |
146 | #define FAULT_FLAG_NONLINEAR 0x02 /* Fault was via a nonlinear mapping */ | 146 | #define FAULT_FLAG_NONLINEAR 0x02 /* Fault was via a nonlinear mapping */ |
147 | 147 | ||
148 | static inline int is_linear_pfn_mapping(struct vm_area_struct *vma) | ||
149 | { | ||
150 | return ((vma->vm_flags & VM_PFNMAP) && vma->vm_pgoff); | ||
151 | } | ||
152 | |||
153 | static inline int is_pfn_mapping(struct vm_area_struct *vma) | ||
154 | { | ||
155 | return (vma->vm_flags & VM_PFNMAP); | ||
156 | } | ||
148 | 157 | ||
149 | /* | 158 | /* |
150 | * vm_fault is filled by the the pagefault handler and passed to the vma's | 159 | * vm_fault is filled by the the pagefault handler and passed to the vma's |