@@ -2213,7 +2213,8 @@ EXPORT_SYMBOL(generic_write_end);
* Returns true if all buffers which correspond to a file portion
* we want to read are uptodate.
*/
-int block_is_partially_uptodate(struct page *page, unsigned long from,
+int block_is_partially_uptodate(struct address_space *__mapping,
+ struct page *page, unsigned long from,
unsigned long count)
{
unsigned block_start, block_end, blocksize;
@@ -449,8 +449,9 @@ EXPORT_SYMBOL_GPL(iomap_readahead);
* we want to read within the page are uptodate.
*/
int
-iomap_is_partially_uptodate(struct page *page, unsigned long from,
- unsigned long count)
+iomap_is_partially_uptodate(struct address_space *__mapping,
+ struct page *page, unsigned long from,
+ unsigned long count)
{
struct iomap_page *iop = to_iomap_page(page);
struct inode *inode = page->mapping->host;
@@ -49,7 +49,7 @@ page_seek_hole_data(struct inode *inode, struct page *page, loff_t *lastoff,
for (off = 0; off < PAGE_SIZE; off += bsize) {
if (offset_in_page(*lastoff) >= off + bsize)
continue;
- if (ops->is_partially_uptodate(page, off, bsize) == seek_data) {
+ if (ops->is_partially_uptodate(MAPPING_NULL, page, off, bsize) == seek_data) {
unlock_page(page);
return true;
}
@@ -223,7 +223,8 @@ int __block_write_full_page(struct inode *inode, struct page *page,
get_block_t *get_block, struct writeback_control *wbc,
bh_end_io_t *handler);
int block_read_full_page(struct page*, get_block_t*);
-int block_is_partially_uptodate(struct page *page, unsigned long from,
+int block_is_partially_uptodate(struct address_space *__mapping,
+ struct page *page, unsigned long from,
unsigned long count);
int block_write_begin(struct address_space *mapping, loff_t pos, unsigned len,
unsigned flags, struct page **pagep, get_block_t *get_block);
@@ -411,7 +411,8 @@ struct address_space_operations {
bool (*isolate_page)(struct page *, isolate_mode_t);
void (*putback_page)(struct address_space *, struct page *);
int (*launder_page) (struct address_space *, struct page *);
- int (*is_partially_uptodate) (struct page *, unsigned long,
+ int (*is_partially_uptodate) (struct address_space *, struct page *,
+ unsigned long,
unsigned long);
void (*is_dirty_writeback) (struct page *, bool *, bool *);
int (*error_remove_page)(struct address_space *, struct page *);
@@ -157,8 +157,9 @@ ssize_t iomap_file_buffered_write(struct kiocb *iocb, struct iov_iter *from,
int iomap_readpage(struct page *page, const struct iomap_ops *ops);
void iomap_readahead(struct readahead_control *, const struct iomap_ops *ops);
int iomap_set_page_dirty(struct address_space *__mapping, struct page *page);
-int iomap_is_partially_uptodate(struct page *page, unsigned long from,
- unsigned long count);
+int iomap_is_partially_uptodate(struct address_space *__mapping,
+ struct page *page, unsigned long from,
+ unsigned long count);
int iomap_releasepage(struct address_space *__mapping, struct page *page,
gfp_t gfp_mask);
void iomap_invalidatepage(struct address_space *__mapping, struct page *page,
@@ -2244,8 +2244,8 @@ ssize_t generic_file_buffered_read(struct kiocb *iocb,
/* Did it get truncated before we got the lock? */
if (!page->mapping)
goto page_not_up_to_date_locked;
- if (!mapping->a_ops->is_partially_uptodate(page,
- offset, iter->count))
+ if (!mapping->a_ops->is_partially_uptodate(MAPPING_NULL, page,
+ offset, iter->count))
goto page_not_up_to_date_locked;
unlock_page(page);
}