diff options
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index a2b48041b910..709f6728fc90 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -815,6 +815,7 @@ static inline void unmap_shared_mapping_range(struct address_space *mapping, | |||
815 | } | 815 | } |
816 | 816 | ||
817 | extern void truncate_pagecache(struct inode *inode, loff_t old, loff_t new); | 817 | extern void truncate_pagecache(struct inode *inode, loff_t old, loff_t new); |
818 | extern void truncate_setsize(struct inode *inode, loff_t newsize); | ||
818 | extern int vmtruncate(struct inode *inode, loff_t offset); | 819 | extern int vmtruncate(struct inode *inode, loff_t offset); |
819 | extern int vmtruncate_range(struct inode *inode, loff_t offset, loff_t end); | 820 | extern int vmtruncate_range(struct inode *inode, loff_t offset, loff_t end); |
820 | 821 | ||
@@ -1465,6 +1466,14 @@ extern int sysctl_memory_failure_recovery; | |||
1465 | extern void shake_page(struct page *p, int access); | 1466 | extern void shake_page(struct page *p, int access); |
1466 | extern atomic_long_t mce_bad_pages; | 1467 | extern atomic_long_t mce_bad_pages; |
1467 | extern int soft_offline_page(struct page *page, int flags); | 1468 | extern int soft_offline_page(struct page *page, int flags); |
1469 | #ifdef CONFIG_MEMORY_FAILURE | ||
1470 | int is_hwpoison_address(unsigned long addr); | ||
1471 | #else | ||
1472 | static inline int is_hwpoison_address(unsigned long addr) | ||
1473 | { | ||
1474 | return 0; | ||
1475 | } | ||
1476 | #endif | ||
1468 | 1477 | ||
1469 | extern void dump_page(struct page *page); | 1478 | extern void dump_page(struct page *page); |
1470 | 1479 | ||