@@ -564,14 +564,14 @@ EXPORT_SYMBOL(thaw_bdev);
static int blkdev_writepage(struct address_space *mapping, struct page *page,
struct writeback_control *wbc)
{
- return block_write_full_page(page->mapping->host, page,
+ return block_write_full_page(mapping->host, page,
blkdev_get_block, wbc);
}
static int blkdev_readpage(struct file * file, struct address_space *mapping,
struct page * page)
{
- return block_read_full_page(page->mapping->host,page,blkdev_get_block);
+ return block_read_full_page(mapping->host,page,blkdev_get_block);
}
static int blkdev_readpages(struct file *file, struct address_space *mapping,
@@ -1941,7 +1941,7 @@ EXPORT_SYMBOL_GPL(blkdev_read_iter);
static int blkdev_releasepage(struct address_space *mapping,
struct page *page, gfp_t wait)
{
- struct super_block *super = BDEV_I(page->mapping->host)->bdev.bd_super;
+ struct super_block *super = BDEV_I(mapping->host)->bdev.bd_super;
if (super && super->s_op->bdev_try_to_free_page)
return super->s_op->bdev_try_to_free_page(super, page, wait);