bcachefs: add bch_verbose() statements for shutdown
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 21 Jul 2018 07:56:57 +0000 (03:56 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:07 +0000 (17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super.c

index 3191d4c..fe95b8b 100644 (file)
@@ -404,6 +404,8 @@ void bch2_fs_stop(struct bch_fs *c)
        struct bch_dev *ca;
        unsigned i;
 
+       bch_verbose(c, "shutting down");
+
        for_each_member_device(ca, c, i)
                if (ca->kobj.state_in_sysfs &&
                    ca->disk_sb.bdev)
@@ -444,6 +446,8 @@ void bch2_fs_stop(struct bch_fs *c)
                if (c->devs[i])
                        bch2_dev_free(rcu_dereference_protected(c->devs[i], 1));
 
+       bch_verbose(c, "shutdown complete");
+
        kobject_put(&c->kobj);
 }