summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorGuoju Fang <fangguoju@gmail.com>2018-12-13 15:53:57 +0100
committerJens Axboe <axboe@kernel.dk>2018-12-13 16:15:54 +0100
commite78bd0d26f7396c7bd17be60d9686be8ef8e453a (patch)
tree0a20744ad966b2b90f4db19cb09b64b5fbcbc467 /drivers/md
parentbcache: set writeback_percent in a flexible range (diff)
downloadlinux-e78bd0d26f7396c7bd17be60d9686be8ef8e453a.tar.xz
linux-e78bd0d26f7396c7bd17be60d9686be8ef8e453a.zip
bcache: print number of keys in trace_bcache_journal_write
Sometimes flush journal may be very frequent, so it's useful to dump number of keys every time write journal. Signed-off-by: Guoju Fang <fangguoju@gmail.com> Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/bcache/journal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/journal.c b/drivers/md/bcache/journal.c
index 522c7426f3a0..b2fd412715b1 100644
--- a/drivers/md/bcache/journal.c
+++ b/drivers/md/bcache/journal.c
@@ -663,7 +663,7 @@ static void journal_write_unlocked(struct closure *cl)
REQ_SYNC|REQ_META|REQ_PREFLUSH|REQ_FUA);
bch_bio_map(bio, w->data);
- trace_bcache_journal_write(bio);
+ trace_bcache_journal_write(bio, w->data->keys);
bio_list_add(&list, bio);
SET_PTR_OFFSET(k, i, PTR_OFFSET(k, i) + sectors);