diff options
author | NeilBrown <neilb@suse.de> | 2006-03-26 04:37:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-26 11:56:55 -0500 |
commit | 3978d7179d3849848df8a37dd0a5acc20bcb8750 (patch) | |
tree | f6a60c588d54ffc482764e7846aabf7ba6135aa4 /include | |
parent | 5f921ae96f1529a55966f25cd5c70fab11d38be7 (diff) |
[PATCH] Make address_space_operations->sync_page return void
The only user ignores the return value, and the only instanace
(block_sync_page) always returns 0...
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/buffer_head.h | 2 | ||||
-rw-r--r-- | include/linux/fs.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index 9f159baf153f..27dd97b3fce9 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h | |||
@@ -200,7 +200,7 @@ int cont_prepare_write(struct page*, unsigned, unsigned, get_block_t*, | |||
200 | int generic_cont_expand(struct inode *inode, loff_t size); | 200 | int generic_cont_expand(struct inode *inode, loff_t size); |
201 | int generic_cont_expand_simple(struct inode *inode, loff_t size); | 201 | int generic_cont_expand_simple(struct inode *inode, loff_t size); |
202 | int block_commit_write(struct page *page, unsigned from, unsigned to); | 202 | int block_commit_write(struct page *page, unsigned from, unsigned to); |
203 | int block_sync_page(struct page *); | 203 | void block_sync_page(struct page *); |
204 | sector_t generic_block_bmap(struct address_space *, sector_t, get_block_t *); | 204 | sector_t generic_block_bmap(struct address_space *, sector_t, get_block_t *); |
205 | int generic_commit_write(struct file *, struct page *, unsigned, unsigned); | 205 | int generic_commit_write(struct file *, struct page *, unsigned, unsigned); |
206 | int block_truncate_page(struct address_space *, loff_t, get_block_t *); | 206 | int block_truncate_page(struct address_space *, loff_t, get_block_t *); |
diff --git a/include/linux/fs.h b/include/linux/fs.h index 5adf32b90f36..972435d4df5c 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -350,7 +350,7 @@ struct writeback_control; | |||
350 | struct address_space_operations { | 350 | struct address_space_operations { |
351 | int (*writepage)(struct page *page, struct writeback_control *wbc); | 351 | int (*writepage)(struct page *page, struct writeback_control *wbc); |
352 | int (*readpage)(struct file *, struct page *); | 352 | int (*readpage)(struct file *, struct page *); |
353 | int (*sync_page)(struct page *); | 353 | void (*sync_page)(struct page *); |
354 | 354 | ||
355 | /* Write back some dirty pages from this mapping. */ | 355 | /* Write back some dirty pages from this mapping. */ |
356 | int (*writepages)(struct address_space *, struct writeback_control *); | 356 | int (*writepages)(struct address_space *, struct writeback_control *); |