]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - fs/ceph/mds_client.c
ceph: avoid d_parent in ceph_dentry_hash; fix ceph_encode_fh() hashing bug
[~shefty/rdma-dev.git] / fs / ceph / mds_client.c
index 3b1e743b8c8d288b1780f32ca8eeafe9b4053ec3..8a09cd5a659efa2e1c045ef2d3c9d6e86c10eb42 100644 (file)
@@ -670,7 +670,7 @@ static int __choose_mds(struct ceph_mds_client *mdsc,
                } else {
                        /* dir + name */
                        inode = dir;
-                       hash = ceph_dentry_hash(req->r_dentry);
+                       hash = ceph_dentry_hash(dir, req->r_dentry);
                        is_hash = true;
                }
        }