diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h --- a/sys/compat/linuxkpi/common/include/linux/mm.h +++ b/sys/compat/linuxkpi/common/include/linux/mm.h @@ -288,6 +288,19 @@ return (PHYS_TO_VM_PAGE(paddr)); } +static inline int +trylock_page(struct page *page) +{ + return (vm_page_trylock(page)); +} + +static inline void +unlock_page(struct page *page) +{ + + vm_page_unlock(page); +} + extern int is_vmalloc_addr(const void *addr); void si_meminfo(struct sysinfo *si);