Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

authored by

Christoph Hellwig and committed by
Al Viro
2ecdc82e 270ba5f7

+3 -9
+1 -1
drivers/usb/gadget/f_mass_storage.c
··· 1041 1041 unsigned long rc; 1042 1042 1043 1043 rc = invalidate_mapping_pages(inode->i_mapping, 0, -1); 1044 - VLDBG(curlun, "invalidate_inode_pages -> %ld\n", rc); 1044 + VLDBG(curlun, "invalidate_mapping_pages -> %ld\n", rc); 1045 1045 } 1046 1046 1047 1047 static int do_verify(struct fsg_common *common)
+1 -1
drivers/usb/gadget/file_storage.c
··· 1448 1448 unsigned long rc; 1449 1449 1450 1450 rc = invalidate_mapping_pages(inode->i_mapping, 0, -1); 1451 - VLDBG(curlun, "invalidate_inode_pages -> %ld\n", rc); 1451 + VLDBG(curlun, "invalidate_mapping_pages -> %ld\n", rc); 1452 1452 } 1453 1453 1454 1454 static int do_verify(struct fsg_dev *fsg)
-6
include/linux/fs.h
··· 2058 2058 unsigned long invalidate_mapping_pages(struct address_space *mapping, 2059 2059 pgoff_t start, pgoff_t end); 2060 2060 2061 - static inline unsigned long __deprecated 2062 - invalidate_inode_pages(struct address_space *mapping) 2063 - { 2064 - return invalidate_mapping_pages(mapping, 0, ~0UL); 2065 - } 2066 - 2067 2061 static inline void invalidate_remote_inode(struct inode *inode) 2068 2062 { 2069 2063 if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
+1 -1
mm/filemap.c
··· 1117 1117 if (!PageUptodate(page)) { 1118 1118 if (page->mapping == NULL) { 1119 1119 /* 1120 - * invalidate_inode_pages got it 1120 + * invalidate_mapping_pages got it 1121 1121 */ 1122 1122 unlock_page(page); 1123 1123 page_cache_release(page);