Commit 2ecdc82e authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Al Viro

kill unused invalidate_inode_pages helper

No one is calling this anymore as everyone has switched to
invalidate_mapping_pages long time ago.  Also update a few
references to it in comments.  nfs has two more, but I can't
easily figure what they are actually referring to, so I left
them as-is.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 270ba5f7
...@@ -1041,7 +1041,7 @@ static void invalidate_sub(struct fsg_lun *curlun) ...@@ -1041,7 +1041,7 @@ static void invalidate_sub(struct fsg_lun *curlun)
unsigned long rc; unsigned long rc;
rc = invalidate_mapping_pages(inode->i_mapping, 0, -1); rc = invalidate_mapping_pages(inode->i_mapping, 0, -1);
VLDBG(curlun, "invalidate_inode_pages -> %ld\n", rc); VLDBG(curlun, "invalidate_mapping_pages -> %ld\n", rc);
} }
static int do_verify(struct fsg_common *common) static int do_verify(struct fsg_common *common)
......
...@@ -1448,7 +1448,7 @@ static void invalidate_sub(struct fsg_lun *curlun) ...@@ -1448,7 +1448,7 @@ static void invalidate_sub(struct fsg_lun *curlun)
unsigned long rc; unsigned long rc;
rc = invalidate_mapping_pages(inode->i_mapping, 0, -1); rc = invalidate_mapping_pages(inode->i_mapping, 0, -1);
VLDBG(curlun, "invalidate_inode_pages -> %ld\n", rc); VLDBG(curlun, "invalidate_mapping_pages -> %ld\n", rc);
} }
static int do_verify(struct fsg_dev *fsg) static int do_verify(struct fsg_dev *fsg)
......
...@@ -2058,12 +2058,6 @@ extern int invalidate_inodes(struct super_block *); ...@@ -2058,12 +2058,6 @@ extern int invalidate_inodes(struct super_block *);
unsigned long invalidate_mapping_pages(struct address_space *mapping, unsigned long invalidate_mapping_pages(struct address_space *mapping,
pgoff_t start, pgoff_t end); pgoff_t start, pgoff_t end);
static inline unsigned long __deprecated
invalidate_inode_pages(struct address_space *mapping)
{
return invalidate_mapping_pages(mapping, 0, ~0UL);
}
static inline void invalidate_remote_inode(struct inode *inode) static inline void invalidate_remote_inode(struct inode *inode)
{ {
if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
......
...@@ -1117,7 +1117,7 @@ static void do_generic_file_read(struct file *filp, loff_t *ppos, ...@@ -1117,7 +1117,7 @@ static void do_generic_file_read(struct file *filp, loff_t *ppos,
if (!PageUptodate(page)) { if (!PageUptodate(page)) {
if (page->mapping == NULL) { if (page->mapping == NULL) {
/* /*
* invalidate_inode_pages got it * invalidate_mapping_pages got it
*/ */
unlock_page(page); unlock_page(page);
page_cache_release(page); page_cache_release(page);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment