Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0e32710 authored by Sage Weil's avatar Sage Weil
Browse files

ceph: only unregister registered bdi



Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 5dacf091
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -942,6 +942,7 @@ static void ceph_kill_sb(struct super_block *s)
	dout("kill_sb %p\n", s);
	ceph_mdsc_pre_umount(&client->mdsc);
	kill_anon_super(s);    /* will call put_super after sb is r/o */
	if (s->s_bdi == &client->backing_dev_info)
		bdi_unregister(&client->backing_dev_info);
	bdi_destroy(&client->backing_dev_info);
	ceph_destroy_client(client);