Merge branches 'work.namei', 'work.dcache' and 'work.iov_iter' into for-linus
[linux-2.6-microblaze.git] / fs / ceph / super.c
index fd2ea18..f2f7669 100644 (file)
@@ -844,6 +844,8 @@ static struct dentry *ceph_real_mount(struct ceph_fs_client *fsc)
                err = ceph_fs_debugfs_init(fsc);
                if (err < 0)
                        goto fail;
+       } else {
+               root = dget(fsc->sb->s_root);
        }
 
        fsc->mount_state = CEPH_MOUNT_MOUNTED;