mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-01 02:32:49 -04:00
iomap: Fix iomap_invalidatepage tracepoint
This tracepoint is defined to take an offset in the file, not an
offset in the folio.
Fixes: 1ac994525b ("iomap: Remove pgoff from tracepoints")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: Mike Marshall <hubcap@omnibond.com> # orangefs
Tested-by: David Howells <dhowells@redhat.com> # afs
This commit is contained in:
@@ -480,7 +480,8 @@ EXPORT_SYMBOL_GPL(iomap_releasepage);
|
||||
|
||||
void iomap_invalidate_folio(struct folio *folio, size_t offset, size_t len)
|
||||
{
|
||||
trace_iomap_invalidatepage(folio->mapping->host, offset, len);
|
||||
trace_iomap_invalidatepage(folio->mapping->host,
|
||||
folio_pos(folio) + offset, len);
|
||||
|
||||
/*
|
||||
* If we're invalidating the entire folio, clear the dirty state
|
||||
|
||||
Reference in New Issue
Block a user