diff options
-rw-r--r-- | fs/ceph/super.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c index b9cb8cebcdc1..cd81c84e96fc 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c | |||
@@ -942,7 +942,8 @@ static void ceph_kill_sb(struct super_block *s) | |||
942 | dout("kill_sb %p\n", s); | 942 | dout("kill_sb %p\n", s); |
943 | ceph_mdsc_pre_umount(&client->mdsc); | 943 | ceph_mdsc_pre_umount(&client->mdsc); |
944 | kill_anon_super(s); /* will call put_super after sb is r/o */ | 944 | kill_anon_super(s); /* will call put_super after sb is r/o */ |
945 | bdi_unregister(&client->backing_dev_info); | 945 | if (s->s_bdi == &client->backing_dev_info) |
946 | bdi_unregister(&client->backing_dev_info); | ||
946 | bdi_destroy(&client->backing_dev_info); | 947 | bdi_destroy(&client->backing_dev_info); |
947 | ceph_destroy_client(client); | 948 | ceph_destroy_client(client); |
948 | } | 949 | } |