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 /include/linux/fs.h | |
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 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 972435d4df5c..9674679525f9 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -369,7 +369,7 @@ struct address_space_operations { | |||
369 | int (*commit_write)(struct file *, struct page *, unsigned, unsigned); | 369 | int (*commit_write)(struct file *, struct page *, unsigned, unsigned); |
370 | /* Unfortunately this kludge is needed for FIBMAP. Don't use it */ | 370 | /* Unfortunately this kludge is needed for FIBMAP. Don't use it */ |
371 | sector_t (*bmap)(struct address_space *, sector_t); | 371 | sector_t (*bmap)(struct address_space *, sector_t); |
372 | int (*invalidatepage) (struct page *, unsigned long); | 372 | void (*invalidatepage) (struct page *, unsigned long); |
373 | int (*releasepage) (struct page *, gfp_t); | 373 | int (*releasepage) (struct page *, gfp_t); |
374 | ssize_t (*direct_IO)(int, struct kiocb *, const struct iovec *iov, | 374 | ssize_t (*direct_IO)(int, struct kiocb *, const struct iovec *iov, |
375 | loff_t offset, unsigned long nr_segs); | 375 | loff_t offset, unsigned long nr_segs); |