blob: 8dd397d3ca470a129a7f60b849fc55433c035878 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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
Ben Cheng4b29af02012-03-07 16:14:53 -080014
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080015#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>
Ben Cheng4b29af02012-03-07 16:14:53 -080022
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080023#define AS_EIO (__GFP_BITS_SHIFT + 0)
24#define AS_ENOSPC (__GFP_BITS_SHIFT + 1)
Ben Cheng4b29af02012-03-07 16:14:53 -080025
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080026#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)
Ben Cheng4b29af02012-03-07 16:14:53 -080032
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080033#endif