aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2009-09-16 05:50:13 -0400
committerAndi Kleen <ak@linux.intel.com>2009-09-16 05:50:13 -0400
commit83f786680aec8d030184f7ced1a0a3dd8ac81764 (patch)
treec519509ce47883936bc4759343b1b3a01749153f /include
parent750b4987b0cd4d408e54cb83a80a067cbe690feb (diff)
HWPOISON: Add invalidate_inode_page
Add a simple way to invalidate a single page This is just a refactoring of the truncate.c code. Originally from Fengguang, modified by Andi Kleen. Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 8cbc0aafd5bd..b05bbde0296d 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -796,6 +796,8 @@ extern int vmtruncate_range(struct inode * inode, loff_t offset, loff_t end);
796 796
797int truncate_inode_page(struct address_space *mapping, struct page *page); 797int truncate_inode_page(struct address_space *mapping, struct page *page);
798 798
799int invalidate_inode_page(struct page *page);
800
799#ifdef CONFIG_MMU 801#ifdef CONFIG_MMU
800extern int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma, 802extern int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma,
801 unsigned long address, unsigned int flags); 803 unsigned long address, unsigned int flags);