Lines Matching refs:ndip

1325 static int update_moved_ino(struct gfs2_inode *ip, struct gfs2_inode *ndip,  in update_moved_ino()  argument
1329 return gfs2_dir_mvino(ip, &gfs2_qdotdot, ndip, DT_DIR); in update_moved_ino()
1351 struct gfs2_inode *ndip = GFS2_I(ndir); in gfs2_rename() local
1374 error = gfs2_rsqa_alloc(ndip); in gfs2_rename()
1378 if (odip != ndip) { in gfs2_rename()
1387 error = gfs2_ok_to_move(ip, ndip); in gfs2_rename()
1395 if (odip != ndip) { in gfs2_rename()
1396 gfs2_holder_init(ndip->i_gl, LM_ST_EXCLUSIVE, 0, ghs + num_gh); in gfs2_rename()
1433 error = gfs2_unlink_ok(ndip, &ndentry->d_name, nip); in gfs2_rename()
1469 if (odip != ndip) { in gfs2_rename()
1470 if (!ndip->i_inode.i_nlink) { in gfs2_rename()
1474 if (ndip->i_entries == (u32)-1) { in gfs2_rename()
1479 ndip->i_inode.i_nlink == (u32)-1) { in gfs2_rename()
1502 error = gfs2_quota_lock_check(ndip, &ap); in gfs2_rename()
1506 error = gfs2_inplace_reserve(ndip, &ap); in gfs2_rename()
1510 error = gfs2_trans_begin(sdp, gfs2_trans_da_blks(ndip, &da, 4) + in gfs2_rename()
1524 error = gfs2_unlink_inode(ndip, ndentry); in gfs2_rename()
1526 error = update_moved_ino(ip, ndip, dir_rename); in gfs2_rename()
1542 gfs2_inplace_release(ndip); in gfs2_rename()
1545 gfs2_quota_unlock(ndip); in gfs2_rename()
1575 struct gfs2_inode *ndip = GFS2_I(ndir); in gfs2_exchange() local
1591 if (odip != ndip) { in gfs2_exchange()
1599 error = gfs2_ok_to_move(oip, ndip); in gfs2_exchange()
1614 if (odip != ndip) { in gfs2_exchange()
1615 gfs2_holder_init(ndip->i_gl, LM_ST_EXCLUSIVE, 0, ghs + num_gh); in gfs2_exchange()
1637 error = gfs2_unlink_ok(ndip, &ndentry->d_name, nip); in gfs2_exchange()
1655 error = update_moved_ino(oip, ndip, S_ISDIR(old_mode)); in gfs2_exchange()
1663 error = gfs2_dir_mvino(ndip, &ndentry->d_name, oip, in gfs2_exchange()
1673 if (odip != ndip) { in gfs2_exchange()
1676 drop_nlink(&ndip->i_inode); in gfs2_exchange()
1678 inc_nlink(&ndip->i_inode); in gfs2_exchange()
1682 mark_inode_dirty(&ndip->i_inode); in gfs2_exchange()
1683 if (odip != ndip) in gfs2_exchange()