Re: [block/for-next] writeback: don't access page->mapping directly in track_foreign_dirty TP

From: Jens Axboe
Date: Fri Aug 30 2019 - 21:54:56 EST

On 8/30/19 5:39 PM, Tejun Heo wrote:
> 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.

Applied, thanks.

Jens Axboe