diff options
author | Andrew Morton <akpm@osdl.org> | 2007-02-10 04:45:39 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:31 -0500 |
commit | fc0ecff698165ae8e178efa086e0dd1f385206b1 (patch) | |
tree | fc6274f0862bdd6749172201170b2f6a7ce4c4ff /include/linux/fs.h | |
parent | 54bc485522afdac33de5504da2ea8cdcc690674e (diff) |
[PATCH] remove invalidate_inode_pages()
Convert all calls to invalidate_inode_pages() into open-coded calls to
invalidate_mapping_pages().
Leave the invalidate_inode_pages() wrapper in place for now, marked as
deprecated.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index a1180d05ed96..20fd1619ccfb 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1574,7 +1574,7 @@ 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 | 1576 | ||
1577 | static inline unsigned long | 1577 | static inline unsigned long __deprecated |
1578 | invalidate_inode_pages(struct address_space *mapping) | 1578 | invalidate_inode_pages(struct address_space *mapping) |
1579 | { | 1579 | { |
1580 | return invalidate_mapping_pages(mapping, 0, ~0UL); | 1580 | return invalidate_mapping_pages(mapping, 0, ~0UL); |
@@ -1584,7 +1584,7 @@ static inline void invalidate_remote_inode(struct inode *inode) | |||
1584 | { | 1584 | { |
1585 | if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || | 1585 | if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || |
1586 | S_ISLNK(inode->i_mode)) | 1586 | S_ISLNK(inode->i_mode)) |
1587 | invalidate_inode_pages(inode->i_mapping); | 1587 | invalidate_mapping_pages(inode->i_mapping, 0, -1); |
1588 | } | 1588 | } |
1589 | extern int invalidate_inode_pages2(struct address_space *mapping); | 1589 | extern int invalidate_inode_pages2(struct address_space *mapping); |
1590 | extern int invalidate_inode_pages2_range(struct address_space *mapping, | 1590 | extern int invalidate_inode_pages2_range(struct address_space *mapping, |