diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-07-30 16:56:05 +0300 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-12-18 08:06:07 +0300 |
commit | 6e478521df535b9d5ef5eb84d4352f235bbbef99 (patch) | |
tree | 44e51c7e20e38873b393e7fbc09e69ee203347e6 /include/linux/iomap.h | |
parent | 9c4ce08dd21145d10775c6ce6f21330a9558f8d9 (diff) | |
download | linux-6e478521df535b9d5ef5eb84d4352f235bbbef99.tar.xz |
iomap,xfs: Convert ->discard_page to ->discard_folio
XFS has the only implementation of ->discard_page today, so convert it
to use folios in the same patch as converting the API.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'include/linux/iomap.h')
-rw-r--r-- | include/linux/iomap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h index 29491fb9c5ba..5ef5088dbbd8 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h @@ -285,7 +285,7 @@ struct iomap_writeback_ops { * Optional, allows the file system to discard state on a page where * we failed to submit any I/O. */ - void (*discard_page)(struct page *page, loff_t fileoff); + void (*discard_folio)(struct folio *folio, loff_t pos); }; struct iomap_writepage_ctx { |