return page;
 }
 
-struct page *ll_get_dir_page(struct inode *dir, __u64 hash,
-                            struct ll_dir_chain *chain)
+struct page *ll_get_dir_page(struct inode *dir, struct md_op_data *op_data,
+                            __u64 hash, struct ll_dir_chain *chain)
 {
        ldlm_policy_data_t policy = {.l_inodebits = {MDS_INODELOCK_UPDATE} };
        struct address_space *mapping = dir->i_mapping;
 
        ll_dir_chain_init(&chain);
 
-       page = ll_get_dir_page(inode, pos, &chain);
+       page = ll_get_dir_page(inode, op_data, pos, &chain);
 
        while (rc == 0 && !done) {
                struct lu_dirpage *dp;
                                        le32_to_cpu(dp->ldp_flags) &
                                        LDF_COLLIDE);
                        next = pos;
-                       page = ll_get_dir_page(inode, pos,
+                       page = ll_get_dir_page(inode, op_data, pos,
                                               &chain);
                }
        }
 
 void ll_release_page(struct page *page, int remove);
 extern const struct file_operations ll_dir_operations;
 extern const struct inode_operations ll_dir_inode_operations;
-struct page *ll_get_dir_page(struct inode *dir, __u64 hash,
-                            struct ll_dir_chain *chain);
+struct page *ll_get_dir_page(struct inode *dir, struct md_op_data *op_data,
+                            __u64 hash, struct ll_dir_chain *chain);
 int ll_dir_read(struct inode *inode, __u64 *ppos, struct md_op_data *op_data,
                struct dir_context *ctx);
 
 
        wake_up(&thread->t_ctl_waitq);
 
        ll_dir_chain_init(&chain);
-       page = ll_get_dir_page(dir, pos, &chain);
+       page = ll_get_dir_page(dir, op_data, pos, &chain);
 
        while (1) {
                struct lu_dirpage *dp;
                        ll_release_page(page, le32_to_cpu(dp->ldp_flags) &
                                              LDF_COLLIDE);
                        sai->sai_in_readpage = 1;
-                       page = ll_get_dir_page(dir, pos, &chain);
+                       page = ll_get_dir_page(dir, op_data, pos, &chain);
                        sai->sai_in_readpage = 0;
                }
        }
 {
        struct ll_dir_chain   chain;
        const struct qstr  *target = &dentry->d_name;
+       struct md_op_data *op_data;
        struct page       *page;
        __u64            pos    = 0;
        int                dot_de;
        int                rc     = LS_NONE_FIRST_DE;
 
+       op_data = ll_prep_md_op_data(NULL, dir, dir, NULL, 0, 0,
+                                    LUSTRE_OPC_ANY, dir);
+       if (IS_ERR(op_data))
+               return PTR_ERR(op_data);
+
        ll_dir_chain_init(&chain);
-       page = ll_get_dir_page(dir, pos, &chain);
+       page = ll_get_dir_page(dir, op_data, pos, &chain);
 
        while (1) {
                struct lu_dirpage *dp;
                         */
                        ll_release_page(page, le32_to_cpu(dp->ldp_flags) &
                                              LDF_COLLIDE);
-                       page = ll_get_dir_page(dir, pos, &chain);
+                       page = ll_get_dir_page(dir, op_data, pos, &chain);
                }
        }
 
 out:
        ll_dir_chain_fini(&chain);
+       ll_finish_md_op_data(op_data);
        return rc;
 }