aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h3
-rw-r--r--include/linux/mm.h5
2 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 502d96ef345..2b08b5ce09b 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2382,7 +2382,8 @@ extern int buffer_migrate_page(struct address_space *,
2382#define buffer_migrate_page NULL 2382#define buffer_migrate_page NULL
2383#endif 2383#endif
2384 2384
2385extern int inode_change_ok(struct inode *, struct iattr *); 2385extern int inode_change_ok(const struct inode *, struct iattr *);
2386extern int inode_newsize_ok(const struct inode *, loff_t offset);
2386extern int __must_check inode_setattr(struct inode *, struct iattr *); 2387extern int __must_check inode_setattr(struct inode *, struct iattr *);
2387 2388
2388extern void file_update_time(struct file *file); 2389extern void file_update_time(struct file *file);
diff --git a/include/linux/mm.h b/include/linux/mm.h
index b6eae5e3144..8347e938fb2 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -791,8 +791,9 @@ static inline void unmap_shared_mapping_range(struct address_space *mapping,
791 unmap_mapping_range(mapping, holebegin, holelen, 0); 791 unmap_mapping_range(mapping, holebegin, holelen, 0);
792} 792}
793 793
794extern int vmtruncate(struct inode * inode, loff_t offset); 794extern void truncate_pagecache(struct inode *inode, loff_t old, loff_t new);
795extern int vmtruncate_range(struct inode * inode, loff_t offset, loff_t end); 795extern int vmtruncate(struct inode *inode, loff_t offset);
796extern int vmtruncate_range(struct inode *inode, loff_t offset, loff_t end);
796 797
797#ifdef CONFIG_MMU 798#ifdef CONFIG_MMU
798extern int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma, 799extern int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma,