diff options
-rw-r--r-- | include/linux/fs.h | 8 | ||||
-rw-r--r-- | mm/truncate.c | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 822c545c7209..a1180d05ed96 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1573,7 +1573,13 @@ extern int invalidate_partition(struct gendisk *, int); | |||
1573 | extern int invalidate_inodes(struct super_block *); | 1573 | extern int invalidate_inodes(struct super_block *); |
1574 | unsigned long invalidate_mapping_pages(struct address_space *mapping, | 1574 | unsigned long invalidate_mapping_pages(struct address_space *mapping, |
1575 | pgoff_t start, pgoff_t end); | 1575 | pgoff_t start, pgoff_t end); |
1576 | unsigned long invalidate_inode_pages(struct address_space *mapping); | 1576 | |
1577 | static inline unsigned long | ||
1578 | invalidate_inode_pages(struct address_space *mapping) | ||
1579 | { | ||
1580 | return invalidate_mapping_pages(mapping, 0, ~0UL); | ||
1581 | } | ||
1582 | |||
1577 | static inline void invalidate_remote_inode(struct inode *inode) | 1583 | static inline void invalidate_remote_inode(struct inode *inode) |
1578 | { | 1584 | { |
1579 | if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || | 1585 | if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
diff --git a/mm/truncate.c b/mm/truncate.c index 5df947de7654..85105db34609 100644 --- a/mm/truncate.c +++ b/mm/truncate.c | |||
@@ -310,12 +310,7 @@ unlock: | |||
310 | } | 310 | } |
311 | return ret; | 311 | return ret; |
312 | } | 312 | } |
313 | 313 | EXPORT_SYMBOL(invalidate_mapping_pages); | |
314 | unsigned long invalidate_inode_pages(struct address_space *mapping) | ||
315 | { | ||
316 | return invalidate_mapping_pages(mapping, 0, ~0UL); | ||
317 | } | ||
318 | EXPORT_SYMBOL(invalidate_inode_pages); | ||
319 | 314 | ||
320 | /* | 315 | /* |
321 | * This is like invalidate_complete_page(), except it ignores the page's | 316 | * This is like invalidate_complete_page(), except it ignores the page's |