mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
bcachefs: add bch_verbose() statements for shutdown
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
4077991c85
commit
af1c687181
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user