diff options
author | Christian Brauner <brauner@kernel.org> | 2024-10-07 13:45:29 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-10-07 13:45:29 +0200 |
commit | 9b8e8091c86391333d217e837883a729b9cebac7 (patch) | |
tree | 742035a01c8d64e6e6d4d7c786b2c717ce9e9be7 /include/trace | |
parent | 9852d85ec9d492ebef56dc5f229416c925758edc (diff) | |
parent | e995e8b600260cff3cfaf2607a62be8bdc4aa9c7 (diff) | |
download | linux-stable-9b8e8091c86391333d217e837883a729b9cebac7.tar.gz linux-stable-9b8e8091c86391333d217e837883a729b9cebac7.tar.bz2 linux-stable-9b8e8091c86391333d217e837883a729b9cebac7.zip |
Merge patch series "Random netfs folio fixes"
Matthew Wilcox (Oracle) <willy@infradead.org> says:
A few minor fixes; nothing earth-shattering.
Matthew Wilcox (Oracle) (3):
netfs: Remove call to folio_index()
netfs: Fix a few minor bugs in netfs_page_mkwrite()
netfs: Remove unnecessary references to pages
Link: https://lore.kernel.org/r/20241005182307.3190401-1-willy@infradead.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/netfs.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/trace/events/netfs.h b/include/trace/events/netfs.h index 76bd42a96815..72a208fd4496 100644 --- a/include/trace/events/netfs.h +++ b/include/trace/events/netfs.h @@ -448,9 +448,10 @@ TRACE_EVENT(netfs_folio, ), TP_fast_assign( - __entry->ino = folio->mapping->host->i_ino; + struct address_space *__m = READ_ONCE(folio->mapping); + __entry->ino = __m ? __m->host->i_ino : 0; __entry->why = why; - __entry->index = folio_index(folio); + __entry->index = folio->index; __entry->nr = folio_nr_pages(folio); ), |