diff options
author | Andi Kleen <andi@firstfloor.org> | 2009-09-16 11:50:13 +0200 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2009-09-16 11:50:13 +0200 |
commit | 257187362123f15d9d1e09918cf87cebbea4e786 (patch) | |
tree | 92b768ad3f2afeda13a2acadc6d5766090ebcc60 /include/linux/mm.h | |
parent | 83f786680aec8d030184f7ced1a0a3dd8ac81764 (diff) | |
download | linux-257187362123f15d9d1e09918cf87cebbea4e786.tar.gz linux-257187362123f15d9d1e09918cf87cebbea4e786.tar.bz2 linux-257187362123f15d9d1e09918cf87cebbea4e786.zip |
HWPOISON: Define a new error_remove_page address space op for async truncation
Truncating metadata pages is not safe right now before
we haven't audited all file systems.
To enable truncation only for data address space define
a new address_space callback error_remove_page.
This is used for memory_failure.c memory error handling.
This can be then set to truncate_inode_page()
This patch just defines the new operation and adds documentation.
Callers and users come in followon patches.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index b05bbde0296d..a16018f7d61c 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -795,6 +795,7 @@ extern int vmtruncate(struct inode * inode, loff_t offset); extern int vmtruncate_range(struct inode * inode, loff_t offset, loff_t end); int truncate_inode_page(struct address_space *mapping, struct page *page); +int generic_error_remove_page(struct address_space *mapping, struct page *page); int invalidate_inode_page(struct page *page); |