ext3: validate directory entry data before use
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / page-isolation.h
blob051c1b1ede4e668651f5310a88771115087dcdc9
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,
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);
17 * Changes MIGRATE_ISOLATE to MIGRATE_MOVABLE.
18 * target range is [start_pfn, end_pfn)
20 extern int
21 undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn);
24 * test all pages in [start_pfn, end_pfn)are isolated or not.
26 extern int
27 test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn);
30 * Internal funcs.Changes pageblock's migrate type.
31 * Please use make_pagetype_isolated()/make_pagetype_movable().
33 extern int set_migratetype_isolate(struct page *page);
34 extern void unset_migratetype_isolate(struct page *page);
37 #endif