]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/ceph/inode.c
Merge branches 'work.namei', 'work.dcache' and 'work.iov_iter' into for-linus
[linux.git] / fs / ceph / inode.c
index 9d0522ba069cd579795334282c8b0cc5edc67c2b..284f0d807151e4d28655e0087fa727164b701e64 100644 (file)
@@ -1507,7 +1507,8 @@ int ceph_readdir_prepopulate(struct ceph_mds_request *req,
                        ceph_fill_dirfrag(d_inode(parent), rinfo->dir_dir);
        }
 
-       if (ceph_frag_is_leftmost(frag) && req->r_readdir_offset == 2) {
+       if (ceph_frag_is_leftmost(frag) && req->r_readdir_offset == 2 &&
+           !(rinfo->hash_order && req->r_path2)) {
                /* note dir version at start of readdir so we can tell
                 * if any dentries get dropped */
                req->r_dir_release_cnt = atomic64_read(&ci->i_release_count);