diff options
author | Nick Piggin <npiggin@suse.de> | 2009-09-16 05:50:12 -0400 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2009-09-16 05:50:12 -0400 |
commit | 750b4987b0cd4d408e54cb83a80a067cbe690feb (patch) | |
tree | 1372d0f64da3575eb93bac284c73e548e23b9ea6 /include/linux/mm.h | |
parent | 2a7684a23e9c263c2a1e8b2c0027ad1836a0f9df (diff) |
HWPOISON: Refactor truncate to allow direct truncating of page v2
Extract out truncate_inode_page() out of the truncate path so that
it can be used by memory-failure.c
[AK: description, headers, fix typos]
v2: Some white space changes from Fengguang Wu
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 082b68cb5ffe..8cbc0aafd5bd 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -794,6 +794,8 @@ static inline void unmap_shared_mapping_range(struct address_space *mapping, | |||
794 | extern int vmtruncate(struct inode * inode, loff_t offset); | 794 | extern int vmtruncate(struct inode * inode, loff_t offset); |
795 | extern int vmtruncate_range(struct inode * inode, loff_t offset, loff_t end); | 795 | extern int vmtruncate_range(struct inode * inode, loff_t offset, loff_t end); |
796 | 796 | ||
797 | int truncate_inode_page(struct address_space *mapping, struct page *page); | ||
798 | |||
797 | #ifdef CONFIG_MMU | 799 | #ifdef CONFIG_MMU |
798 | extern int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma, | 800 | extern int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma, |
799 | unsigned long address, unsigned int flags); | 801 | unsigned long address, unsigned int flags); |