The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame^] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | **************************************************************************** |
| 11 | ****************************************************************************/ |
| 12 | #ifndef _LINUX_PAGEMAP_H |
| 13 | #define _LINUX_PAGEMAP_H |
| 14 | |
| 15 | #include <linux/mm.h> |
| 16 | #include <linux/fs.h> |
| 17 | #include <linux/list.h> |
| 18 | #include <linux/highmem.h> |
| 19 | #include <linux/compiler.h> |
| 20 | #include <asm/uaccess.h> |
| 21 | #include <linux/gfp.h> |
| 22 | |
| 23 | #define AS_EIO (__GFP_BITS_SHIFT + 0) |
| 24 | #define AS_ENOSPC (__GFP_BITS_SHIFT + 1) |
| 25 | |
| 26 | #define PAGE_CACHE_SHIFT PAGE_SHIFT |
| 27 | #define PAGE_CACHE_SIZE PAGE_SIZE |
| 28 | #define PAGE_CACHE_MASK PAGE_MASK |
| 29 | #define PAGE_CACHE_ALIGN(addr) (((addr)+PAGE_CACHE_SIZE-1)&PAGE_CACHE_MASK) |
| 30 | #define page_cache_get(page) get_page(page) |
| 31 | #define page_cache_release(page) put_page(page) |
| 32 | |
| 33 | #endif |