bcachefs: add bch_verbose() statements for shutdown

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet
2018-07-21 03:56:57 -04:00
committed by Kent Overstreet
parent 4077991c85
commit af1c687181

View 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);
}