summaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/journal.c
diff options
context:
space:
mode:
authorGuoju Fang <fangguoju@gmail.com>2018-12-13 22:53:57 +0800
committerJens Axboe <axboe@kernel.dk>2018-12-13 08:15:54 -0700
commite78bd0d26f7396c7bd17be60d9686be8ef8e453a (patch)
tree0a20744ad966b2b90f4db19cb09b64b5fbcbc467 /drivers/md/bcache/journal.c
parentcc38ca7ed54a1df04ae9f23614b348ebfc918029 (diff)
downloadlinux-e78bd0d26f7396c7bd17be60d9686be8ef8e453a.tar.bz2
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/bcache/journal.c')
-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);