mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 01:34:00 +08: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:
parent
754e0b0e35
commit
1241ebeca3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user