aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h9
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
817extern void truncate_pagecache(struct inode *inode, loff_t old, loff_t new); 817extern void truncate_pagecache(struct inode *inode, loff_t old, loff_t new);
818extern void truncate_setsize(struct inode *inode, loff_t newsize);
818extern int vmtruncate(struct inode *inode, loff_t offset); 819extern int vmtruncate(struct inode *inode, loff_t offset);
819extern int vmtruncate_range(struct inode *inode, loff_t offset, loff_t end); 820extern int vmtruncate_range(struct inode *inode, loff_t offset, loff_t end);
820 821
@@ -1465,6 +1466,14 @@ extern int sysctl_memory_failure_recovery;
1465extern void shake_page(struct page *p, int access); 1466extern void shake_page(struct page *p, int access);
1466extern atomic_long_t mce_bad_pages; 1467extern atomic_long_t mce_bad_pages;
1467extern int soft_offline_page(struct page *page, int flags); 1468extern int soft_offline_page(struct page *page, int flags);
1469#ifdef CONFIG_MEMORY_FAILURE
1470int is_hwpoison_address(unsigned long addr);
1471#else
1472static inline int is_hwpoison_address(unsigned long addr)
1473{
1474 return 0;
1475}
1476#endif
1468 1477
1469extern void dump_page(struct page *page); 1478extern void dump_page(struct page *page);
1470 1479