mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
ceph: only unregister registered bdi
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
5dacf09121
commit
e0e3271074
1 changed files with 2 additions and 1 deletions
|
@ -942,7 +942,8 @@ 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 */
|
||||
bdi_unregister(&client->backing_dev_info);
|
||||
if (s->s_bdi == &client->backing_dev_info)
|
||||
bdi_unregister(&client->backing_dev_info);
|
||||
bdi_destroy(&client->backing_dev_info);
|
||||
ceph_destroy_client(client);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue