[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>
This commit is contained in:
committed by
Linus Torvalds
parent
5f921ae96f
commit
3978d7179d
@@ -3007,7 +3007,7 @@ out:
|
||||
}
|
||||
EXPORT_SYMBOL(try_to_free_buffers);
|
||||
|
||||
int block_sync_page(struct page *page)
|
||||
void block_sync_page(struct page *page)
|
||||
{
|
||||
struct address_space *mapping;
|
||||
|
||||
@@ -3015,7 +3015,6 @@ int block_sync_page(struct page *page)
|
||||
mapping = page_mapping(page);
|
||||
if (mapping)
|
||||
blk_run_backing_dev(mapping->backing_dev_info, page);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user