diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-01-04 00:06:49 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:21 -0400 |
commit | 365f64f36c55b79d8510a5f476b2740a22c682eb (patch) | |
tree | 2dcadbd8a8cc28cc7623ced501d26332e43b74b9 /fs/bcachefs/journal_io.c | |
parent | efe68e1d65c008dd1f19517378d0ad0688c6a643 (diff) | |
download | lwn-365f64f36c55b79d8510a5f476b2740a22c682eb.tar.gz lwn-365f64f36c55b79d8510a5f476b2740a22c682eb.zip |
bcachefs: Add verbose log messages for journal read
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/journal_io.c')
-rw-r--r-- | fs/bcachefs/journal_io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c index 22feea751b00..c659a5a95b63 100644 --- a/fs/bcachefs/journal_io.c +++ b/fs/bcachefs/journal_io.c @@ -892,6 +892,7 @@ static void bch2_journal_read_device(struct closure *cl) struct journal_device *ja = container_of(cl, struct journal_device, read); struct bch_dev *ca = container_of(ja, struct bch_dev, journal); + struct bch_fs *c = ca->fs; struct journal_list *jlist = container_of(cl->parent, struct journal_list, cl); struct journal_read_buf buf = { NULL, 0 }; @@ -943,6 +944,7 @@ static void bch2_journal_read_device(struct closure *cl) ja->discard_idx = ja->dirty_idx_ondisk = ja->dirty_idx = (ja->cur_idx + 1) % ja->nr; out: + bch_verbose(c, "journal read done on device %s, ret %i", ca->name, ret); kvpfree(buf.data, buf.size); percpu_ref_put(&ca->io_ref); closure_return(cl); |