Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/mm.h
Show First 20 Lines • Show All 223 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static inline unsigned long | static inline unsigned long | ||||
vma_pages(struct vm_area_struct *vma) | vma_pages(struct vm_area_struct *vma) | ||||
{ | { | ||||
return ((vma->vm_end - vma->vm_start) >> PAGE_SHIFT); | return ((vma->vm_end - vma->vm_start) >> PAGE_SHIFT); | ||||
} | } | ||||
#define offset_in_page(off) ((off) & (PAGE_SIZE - 1)) | #define offset_in_page(off) ((unsigned long)(off) & (PAGE_SIZE - 1)) | ||||
static inline void | static inline void | ||||
set_page_dirty(struct vm_page *page) | set_page_dirty(struct vm_page *page) | ||||
{ | { | ||||
vm_page_dirty(page); | vm_page_dirty(page); | ||||
} | } | ||||
static inline void | static inline void | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |