switch statfs to fget_light/fput_light
[linux-2.6.git] / include / linux / page-isolation.h
blob3bdcab30ca4121e5067cb2eac291d039c6eee07e
1 #ifndef __LINUX_PAGEISOLATION_H
2 #define __LINUX_PAGEISOLATION_H
4 /*
5 * Changes migrate type in [start_pfn, end_pfn) to be MIGRATE_ISOLATE.
6 * If specified range includes migrate types other than MOVABLE or CMA,
7 * this will fail with -EBUSY.
9 * For isolating all pages in the range finally, the caller have to
10 * free all pages in the range. test_page_isolated() can be used for
11 * test it.
13 extern int
14 start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
15 unsigned migratetype);
18 * Changes MIGRATE_ISOLATE to MIGRATE_MOVABLE.
19 * target range is [start_pfn, end_pfn)
21 extern int
22 undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
23 unsigned migratetype);
26 * Test all pages in [start_pfn, end_pfn) are isolated or not.
28 int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn);
31 * Internal functions. Changes pageblock's migrate type.
33 extern int set_migratetype_isolate(struct page *page);
34 extern void unset_migratetype_isolate(struct page *page, unsigned migratetype);
37 #endif