Skip to content
Commit 0e175a18 authored by Curt Wohlgemuth's avatar Curt Wohlgemuth Committed by Wu Fengguang
Browse files

writeback: Add a 'reason' to wb_writeback_work



This creates a new 'reason' field in a wb_writeback_work
structure, which unambiguously identifies who initiates
writeback activity.  A 'wb_reason' enumeration has been
added to writeback.h, to enumerate the possible reasons.

The 'writeback_work_class' and tracepoint event class and
'writeback_queue_io' tracepoints are updated to include the
symbolic 'reason' in all trace events.

And the 'writeback_inodes_sbXXX' family of routines has had
a wb_stats parameter added to them, so callers can specify
why writeback is being started.

Acked-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarCurt Wohlgemuth <curtw@google.com>
Signed-off-by: default avatarWu Fengguang <fengguang.wu@intel.com>
parent ad4e38dd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment