summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/super.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-02-21 03:08:24 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2024-04-04 22:56:44 +0200
commit9802ff48f3fd8ae5d6699c5a32afc76769920c98 (patch)
tree34bae265b8e3473935923e3bec290b3842cb46b5 /fs/bcachefs/super.c
parentbcachefs: Further improve btree_update_to_text() (diff)
downloadlinux-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.c5
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:
*/