diff options
author | NeilBrown <neilb@suse.de> | 2006-03-26 04:37:18 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-26 11:56:55 -0500 |
commit | 2ff28e22bdb8727fbc7d7889807bc5a73aae56c5 (patch) | |
tree | f7418aa963d729bf9fe8bd44d6c9b6e424a6c6bf /fs/reiserfs/inode.c | |
parent | 3978d7179d3849848df8a37dd0a5acc20bcb8750 (diff) |
[PATCH] Make address_space_operations->invalidatepage return void
The return value of this function is never used, so let's be honest and
declare it as void.
Some places where invalidatepage returned 0, I have inserted comments
suggesting a BUG_ON.
[akpm@osdl.org: JBD BUG fix]
[akpm@osdl.org: rework for git-nfs]
[akpm@osdl.org: don't go BUG in block_invalidate_page()]
Signed-off-by: Neil Brown <neilb@suse.de>
Acked-by: Dave Kleikamp <shaggy@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/reiserfs/inode.c')
-rw-r--r-- | fs/reiserfs/inode.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c index d60f6238c66a..62e18c19b446 100644 --- a/fs/reiserfs/inode.c +++ b/fs/reiserfs/inode.c | |||
@@ -2793,7 +2793,7 @@ static int invalidatepage_can_drop(struct inode *inode, struct buffer_head *bh) | |||
2793 | } | 2793 | } |
2794 | 2794 | ||
2795 | /* clm -- taken from fs/buffer.c:block_invalidate_page */ | 2795 | /* clm -- taken from fs/buffer.c:block_invalidate_page */ |
2796 | static int reiserfs_invalidatepage(struct page *page, unsigned long offset) | 2796 | static void reiserfs_invalidatepage(struct page *page, unsigned long offset) |
2797 | { | 2797 | { |
2798 | struct buffer_head *head, *bh, *next; | 2798 | struct buffer_head *head, *bh, *next; |
2799 | struct inode *inode = page->mapping->host; | 2799 | struct inode *inode = page->mapping->host; |
@@ -2832,10 +2832,12 @@ static int reiserfs_invalidatepage(struct page *page, unsigned long offset) | |||
2832 | * The get_block cached value has been unconditionally invalidated, | 2832 | * The get_block cached value has been unconditionally invalidated, |
2833 | * so real IO is not possible anymore. | 2833 | * so real IO is not possible anymore. |
2834 | */ | 2834 | */ |
2835 | if (!offset && ret) | 2835 | if (!offset && ret) { |
2836 | ret = try_to_release_page(page, 0); | 2836 | ret = try_to_release_page(page, 0); |
2837 | /* maybe should BUG_ON(!ret); - neilb */ | ||
2838 | } | ||
2837 | out: | 2839 | out: |
2838 | return ret; | 2840 | return; |
2839 | } | 2841 | } |
2840 | 2842 | ||
2841 | static int reiserfs_set_page_dirty(struct page *page) | 2843 | static int reiserfs_set_page_dirty(struct page *page) |