]> git.karo-electronics.de Git - karo-tx-linux.git/commit
writeback: Add a 'reason' to wb_writeback_work
authorCurt Wohlgemuth <curtw@google.com>
Sat, 8 Oct 2011 03:54:10 +0000 (21:54 -0600)
committerWu Fengguang <fengguang.wu@intel.com>
Sun, 9 Oct 2011 02:19:34 +0000 (10:19 +0800)
commitb2f3bf1ec63607f23e0fcc9d6f233cce999a5e3e
treec977f210dd070d163f7de04fc3bb3a0fea2fb932
parent5b0bbdf0c733891de88eb214c7ca43e79b2df53c
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: Jan Kara <jack@suse.cz>
Signed-off-by: Curt Wohlgemuth <curtw@google.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
13 files changed:
fs/btrfs/extent-tree.c
fs/buffer.c
fs/ext4/inode.c
fs/fs-writeback.c
fs/quota/quota.c
fs/sync.c
fs/ubifs/budget.c
include/linux/backing-dev.h
include/linux/writeback.h
include/trace/events/writeback.h
mm/backing-dev.c
mm/page-writeback.c
mm/vmscan.c