aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2006-03-26 04:37:18 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-26 11:56:55 -0500
commit2ff28e22bdb8727fbc7d7889807bc5a73aae56c5 (patch)
treef7418aa963d729bf9fe8bd44d6c9b6e424a6c6bf /fs/ext3
parent3978d7179d3849848df8a37dd0a5acc20bcb8750 (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/ext3')
-rw-r--r--fs/ext3/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c
index 2c361377e0a5..76e22c9c9c6c 100644
--- a/fs/ext3/inode.c
+++ b/fs/ext3/inode.c
@@ -1430,7 +1430,7 @@ ext3_readpages(struct file *file, struct address_space *mapping,
1430 return mpage_readpages(mapping, pages, nr_pages, ext3_get_block); 1430 return mpage_readpages(mapping, pages, nr_pages, ext3_get_block);
1431} 1431}
1432 1432
1433static int ext3_invalidatepage(struct page *page, unsigned long offset) 1433static void ext3_invalidatepage(struct page *page, unsigned long offset)
1434{ 1434{
1435 journal_t *journal = EXT3_JOURNAL(page->mapping->host); 1435 journal_t *journal = EXT3_JOURNAL(page->mapping->host);
1436 1436
@@ -1440,7 +1440,7 @@ static int ext3_invalidatepage(struct page *page, unsigned long offset)
1440 if (offset == 0) 1440 if (offset == 0)
1441 ClearPageChecked(page); 1441 ClearPageChecked(page);
1442 1442
1443 return journal_invalidatepage(journal, page, offset); 1443 journal_invalidatepage(journal, page, offset);
1444} 1444}
1445 1445
1446static int ext3_releasepage(struct page *page, gfp_t wait) 1446static int ext3_releasepage(struct page *page, gfp_t wait)