diff options
author | 2019-08-30 16:39:54 -0700 | |
---|---|---|
committer | 2019-08-30 19:54:28 -0600 | |
commit | 0feacaa21634014148068035b02eade71f853496 (patch) | |
tree | c20571682d26e50058ed4d6ac54b4a9149f08dab /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'nvme-5.4' of git://git.infradead.org/nvme into for-5.4/block (diff) | |
download | wireguard-linux-0feacaa21634014148068035b02eade71f853496.tar.xz wireguard-linux-0feacaa21634014148068035b02eade71f853496.zip |
writeback: don't access page->mapping directly in track_foreign_dirty TP
page->mapping may encode different values in it and page_mapping()
should always be used to access the mapping pointer.
track_foreign_dirty tracepoint was incorrectly accessing page->mapping
directly. Use page_mapping() instead. Also, add NULL checks while at
it.
Fixes: 3a8e9ac89e6a ("writeback: add tracepoints for cgroup foreign writebacks")
Reported-by: Jan Kara <jack@suse.cz>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions