diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2011-01-13 18:45:46 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 20:32:32 -0500 |
commit | 71927e84e0aebfbe5a91565c3b207af25a4e9162 (patch) | |
tree | 8271f6d2008405bd392893ab0f7a4bd25653dc90 /fs/fs-writeback.c | |
parent | 6585027a5e8cb490e3a761b2f3f3c3acf722aff2 (diff) |
writeback: trace wakeup event for background writeback
This tracks when balance_dirty_pages() tries to wakeup the flusher thread
for background writeback (if it was not started already).
Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Jan Engelhardt <jengelh@medozas.de>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/fs-writeback.c')
-rw-r--r-- | fs/fs-writeback.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 3a07f6d8bc0..482de0a92ca 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c | |||
@@ -169,6 +169,7 @@ void bdi_start_background_writeback(struct backing_dev_info *bdi) | |||
169 | * We just wake up the flusher thread. It will perform background | 169 | * We just wake up the flusher thread. It will perform background |
170 | * writeback as soon as there is no other work to do. | 170 | * writeback as soon as there is no other work to do. |
171 | */ | 171 | */ |
172 | trace_writeback_wake_background(bdi); | ||
172 | spin_lock_bh(&bdi->wb_lock); | 173 | spin_lock_bh(&bdi->wb_lock); |
173 | bdi_wakeup_flusher(bdi); | 174 | bdi_wakeup_flusher(bdi); |
174 | spin_unlock_bh(&bdi->wb_lock); | 175 | spin_unlock_bh(&bdi->wb_lock); |