diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-02-21 03:08:24 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-04 22:56:44 +0200 |
commit | 9802ff48f3fd8ae5d6699c5a32afc76769920c98 (patch) | |
tree | 34bae265b8e3473935923e3bec290b3842cb46b5 /fs/bcachefs/super.c | |
parent | bcachefs: Further improve btree_update_to_text() (diff) | |
download | linux-9802ff48f3fd8ae5d6699c5a32afc76769920c98.tar.xz linux-9802ff48f3fd8ae5d6699c5a32afc76769920c98.zip |
bcachefs: Print shutdown journal sequence number
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r-- | fs/bcachefs/super.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index ed63018f21be..8daf80a38d60 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -288,8 +288,13 @@ static void __bch2_fs_read_only(struct bch_fs *c) if (test_bit(JOURNAL_REPLAY_DONE, &c->journal.flags) && !test_bit(BCH_FS_emergency_ro, &c->flags)) set_bit(BCH_FS_clean_shutdown, &c->flags); + bch2_fs_journal_stop(&c->journal); + bch_info(c, "%sshutdown complete, journal seq %llu", + test_bit(BCH_FS_clean_shutdown, &c->flags) ? "" : "un", + c->journal.seq_ondisk); + /* * After stopping journal: */ |