{
struct inode *inode;
LASSERT(hash != 0);
-
+
inode = iget4(sb, hash, NULL, md);
if (inode) {
if (!(inode->i_state & (I_FREEING | I_CLEAR)))
ll_update_inode(inode, md);
-
+
CDEBUG(D_VFSTRACE, "inode: %lu/%u(%p)\n",
inode->i_ino, inode->i_generation, inode);
}
clear_bit(LLI_F_HAVE_MDS_SIZE_LOCK,
&(ll_i2info(inode)->lli_flags));
-
+
if (S_ISDIR(inode->i_mode) &&
(bits & MDS_INODELOCK_UPDATE)) {
CDEBUG(D_INODE, "invalidating inode %lu\n",
struct inode *i2, const char *name, int namelen,
int mode)
{
- LASSERT(i1 = NULL);
+ LASSERT(i1 != NULL);
LASSERT(op_data != NULL);
ll_i2gids(op_data->suppgids, i1, i2);
LBUG();
}
}
-
+
ll_prepare_mdc_op_data(&op_data, parent, NULL, dentry->d_name.name,
dentry->d_name.len, lookup_flags);
case S_IFSOCK:
ll_prepare_mdc_op_data(&op_data, dir, NULL,
nd->last.name, nd->last.len, 0);
-
+
err = mdc_create(sbi->ll_mdc_exp, &op_data, NULL, 0, mode,
current->fsuid, current->fsgid,
current->cap_effective, rdev, &request);
ll_prepare_mdc_op_data(&op_data, dir, NULL, dchild->d_name.name,
dchild->d_name.len, 0);
-
+
err = mdc_create(sbi->ll_mdc_exp, &op_data, NULL, 0, mode,
current->fsuid, current->fsgid,
current->cap_effective, rdev, &request);
ll_update_times(request, 0, dir);
- err = ll_prep_inode(sbi->ll_osc_exp, &inode, request, 0,
+ err = ll_prep_inode(sbi->ll_osc_exp, &inode, request, 0,
dchild->d_sb);
if (err)
GOTO(out_err, err);
ll_prepare_mdc_op_data(&op_data, src, dir, tgtnd->last.name,
tgtnd->last.len, 0);
-
+
err = mdc_link(sbi->ll_mdc_exp, &op_data, &request);
if (err == 0)
ll_update_times(request, 0, dir);
ll_prepare_mdc_op_data(&op_data, dir, NULL,
nd->last.name, nd->last.len, 0);
-
+
err = mdc_create(sbi->ll_mdc_exp, &op_data, NULL, 0, mode,
current->fsuid, current->fsgid, current->cap_effective,
0, &request);
if (mounted)
RETURN(-EBUSY);
}
-
+
ll_prepare_mdc_op_data(&op_data, dir, NULL, nd->last.name,
nd->last.len, S_IFDIR);
-
+
rc = mdc_unlink(ll_i2sbi(dir)->ll_mdc_exp, &op_data, &request);
if (rc == 0)
ll_update_times(request, 0, dir);
ll_prepare_mdc_op_data(&op_data, dir, NULL,
nd->last.name, nd->last.len, 0);
-
+
rc = mdc_unlink(ll_i2sbi(dir)->ll_mdc_exp, &op_data, &request);
if (rc)
GOTO(out, rc);
tgtnd->last.name, tgt->i_ino, tgt->i_generation, tgt);
ll_prepare_mdc_op_data(&op_data, src, tgt, NULL, 0, 0);
-
+
err = mdc_rename(sbi->ll_mdc_exp, &op_data,
srcnd->last.name, srcnd->last.len,
tgtnd->last.name, tgtnd->last.len, &request);