__u32 mode)
{
struct inode * inode = dentry->d_inode;
+#if 0
struct ext2_dir_entry_2 * de;
struct page * page;
+#endif
int err = -ENOENT;
if (dentry->d_it && dentry->d_it->it_disposition) {
GOTO(out, err);
}
+#if 0
de = ext2_find_entry(dir, dentry, &page);
if (!de)
goto out;
-
+#endif
err = ll_mdc_unlink(dir, dentry->d_inode, mode,
dentry->d_name.name, dentry->d_name.len);
if (err)
goto out;
+#if 0
err = ext2_delete_entry(de, page);
if (err)
goto out;
+#endif
+ invalidate_inode_pages(dir);
inode->i_ctime = dir->i_ctime;
out:
ENTRY;
/* a name was supplied by the client; fid1 is the directory */
- lock_mode = (req->rq_reqmsg->opc == MDS_REINT) ? LCK_CW : LCK_PW;
+ lock_mode = (req->rq_reqmsg->opc == MDS_REINT) ? LCK_PW : LCK_PW;
de = mds_fid2locked_dentry(obd, rec->ur_fid1, NULL, lock_mode, &lockh);
if (IS_ERR(de)) {
LBUG();