Skip to content

Commit 9802ff4

Browse files
author
Kent Overstreet
committed
bcachefs: Print shutdown journal sequence number
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent d880a43 commit 9802ff4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

fs/bcachefs/super.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,13 @@ static void __bch2_fs_read_only(struct bch_fs *c)
288288
if (test_bit(JOURNAL_REPLAY_DONE, &c->journal.flags) &&
289289
!test_bit(BCH_FS_emergency_ro, &c->flags))
290290
set_bit(BCH_FS_clean_shutdown, &c->flags);
291+
291292
bch2_fs_journal_stop(&c->journal);
292293

294+
bch_info(c, "%sshutdown complete, journal seq %llu",
295+
test_bit(BCH_FS_clean_shutdown, &c->flags) ? "" : "un",
296+
c->journal.seq_ondisk);
297+
293298
/*
294299
* After stopping journal:
295300
*/

0 commit comments

Comments
 (0)