Lines Matching refs:nip
1353 struct gfs2_inode *nip = NULL; in gfs2_rename() local
1365 nip = GFS2_I(d_inode(ndentry)); in gfs2_rename()
1366 if (ip == nip) in gfs2_rename()
1402 if (nip) { in gfs2_rename()
1403 gfs2_holder_init(nip->i_gl, LM_ST_EXCLUSIVE, 0, ghs + num_gh); in gfs2_rename()
1409 nrgd = gfs2_blk2rgrpd(sdp, nip->i_no_addr, 1); in gfs2_rename()
1432 if (nip) { in gfs2_rename()
1433 error = gfs2_unlink_ok(ndip, &ndentry->d_name, nip); in gfs2_rename()
1437 if (nip->i_inode.i_nlink == 0) { in gfs2_rename()
1442 if (S_ISDIR(nip->i_inode.i_mode)) { in gfs2_rename()
1443 if (nip->i_entries < 2) { in gfs2_rename()
1444 gfs2_consist_inode(nip); in gfs2_rename()
1448 if (nip->i_entries > 2) { in gfs2_rename()
1494 if (nip == NULL) { in gfs2_rename()
1523 if (nip) in gfs2_rename()
1577 struct gfs2_inode *nip = GFS2_I(ndentry->d_inode); in gfs2_exchange() local
1583 umode_t new_mode = nip->i_inode.i_mode; in gfs2_exchange()
1606 error = gfs2_ok_to_move(nip, odip); in gfs2_exchange()
1621 gfs2_holder_init(nip->i_gl, LM_ST_EXCLUSIVE, 0, ghs + num_gh); in gfs2_exchange()
1631 if (oip->i_inode.i_nlink == 0 || nip->i_inode.i_nlink == 0) in gfs2_exchange()
1637 error = gfs2_unlink_ok(ndip, &ndentry->d_name, nip); in gfs2_exchange()
1659 error = update_moved_ino(nip, odip, S_ISDIR(new_mode)); in gfs2_exchange()
1668 error = gfs2_dir_mvino(odip, &odentry->d_name, nip, in gfs2_exchange()