Lines Matching refs:ndip

1374 static int update_moved_ino(struct gfs2_inode *ip, struct gfs2_inode *ndip,  in update_moved_ino()  argument
1378 return gfs2_dir_mvino(ip, &gfs2_qdotdot, ndip, DT_DIR); in update_moved_ino()
1400 struct gfs2_inode *ndip = GFS2_I(ndir); in gfs2_rename() local
1424 error = gfs2_qa_get(ndip); in gfs2_rename()
1428 if (odip != ndip) { in gfs2_rename()
1437 error = gfs2_ok_to_move(ip, ndip); in gfs2_rename()
1445 if (odip != ndip) { in gfs2_rename()
1446 gfs2_holder_init(ndip->i_gl, LM_ST_EXCLUSIVE,GL_ASYNC, in gfs2_rename()
1497 error = gfs2_unlink_ok(ndip, &ndentry->d_name, nip); in gfs2_rename()
1535 if (odip != ndip) { in gfs2_rename()
1536 if (!ndip->i_inode.i_nlink) { in gfs2_rename()
1540 if (ndip->i_entries == (u32)-1) { in gfs2_rename()
1545 ndip->i_inode.i_nlink == (u32)-1) { in gfs2_rename()
1569 error = gfs2_quota_lock_check(ndip, &ap); in gfs2_rename()
1573 error = gfs2_inplace_reserve(ndip, &ap); in gfs2_rename()
1577 error = gfs2_trans_begin(sdp, gfs2_trans_da_blks(ndip, &da, 4) + in gfs2_rename()
1591 error = gfs2_unlink_inode(ndip, ndentry); in gfs2_rename()
1593 error = update_moved_ino(ip, ndip, dir_rename); in gfs2_rename()
1609 gfs2_inplace_release(ndip); in gfs2_rename()
1612 gfs2_quota_unlock(ndip); in gfs2_rename()
1627 gfs2_qa_put(ndip); in gfs2_rename()
1647 struct gfs2_inode *ndip = GFS2_I(ndir); in gfs2_exchange() local
1663 if (odip != ndip) { in gfs2_exchange()
1671 error = gfs2_ok_to_move(oip, ndip); in gfs2_exchange()
1686 if (odip != ndip) { in gfs2_exchange()
1687 gfs2_holder_init(ndip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, in gfs2_exchange()
1714 error = gfs2_unlink_ok(ndip, &ndentry->d_name, nip); in gfs2_exchange()
1734 error = update_moved_ino(oip, ndip, S_ISDIR(old_mode)); in gfs2_exchange()
1742 error = gfs2_dir_mvino(ndip, &ndentry->d_name, oip, in gfs2_exchange()
1752 if (odip != ndip) { in gfs2_exchange()
1755 drop_nlink(&ndip->i_inode); in gfs2_exchange()
1757 inc_nlink(&ndip->i_inode); in gfs2_exchange()
1761 mark_inode_dirty(&ndip->i_inode); in gfs2_exchange()
1762 if (odip != ndip) in gfs2_exchange()