]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: don't register a new bdi for the same client
authorYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 30 Oct 2008 23:35:23 +0000 (16:35 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 30 Oct 2008 23:35:36 +0000 (16:35 -0700)
src/kernel/super.c

index b4f953f7a3ac257a0e0d84be99a569cc8d878705..b8a1eedeb3077804fc112c1725e7d69565e4cbf7 100644 (file)
@@ -1037,12 +1037,13 @@ static int ceph_get_sb(struct file_system_type *fs_type,
                ceph_destroy_client(client);
                client = ceph_client(sb);
                dout(20, "get_sb got existing client %p\n", client);
-       } else
+       } else {
                dout(20, "get_sb using new client %p\n", client);
 
-       err = ceph_init_bdi(sb, client);
-       if (err < 0)
-               goto out_splat;
+               err = ceph_init_bdi(sb, client);
+               if (err < 0)
+                       goto out_splat;
+       }
 
        err = ceph_mount(client, mnt, path);
        if (err < 0)