Lines Matching refs:sip
331 struct ud_inode *sip,
399 rw_enter(&sip->i_contents, RW_WRITER);
400 if (sip->i_nlink == 0) {
401 rw_exit(&sip->i_contents);
404 if (sip->i_nlink == MAXLINK) {
405 rw_exit(&sip->i_contents);
409 sip->i_nlink++;
410 mutex_enter(&sip->i_tlock);
411 sip->i_flag |= ICHG;
412 mutex_exit(&sip->i_tlock);
413 ud_iupdat(sip, 1);
414 rw_exit(&sip->i_contents);
447 if (sip == tdp) {
451 rw_enter(&sip->i_contents, RW_READER);
452 if ((sip->i_type == VDIR) && (sdp != tdp)) {
455 if ((err = ud_iaccess(sip, IWRITE, cr, 0))) {
456 rw_exit(&sip->i_contents);
459 blkno = sip->i_icb_lbano;
460 rw_exit(&sip->i_contents);
465 rw_exit(&sip->i_contents);
490 err = ud_dirrename(sdp, sip, tdp, tip,
518 if (err = ud_dirmakeinode(tdp, &sip, vap, op, cr))
522 namlen, &slot, sip, sdp, cr)) {
527 rw_enter(&sip->i_contents, RW_WRITER);
528 if (sip->i_type == VDIR) {
531 sip->i_nlink = 0;
532 mutex_enter(&sip->i_tlock);
533 sip->i_flag |= ICHG;
534 mutex_exit(&sip->i_tlock);
535 rw_exit(&sip->i_contents);
536 VN_RELE(ITOV(sip));
537 sip = NULL;
540 *ipp = sip;
542 VN_RELE(ITOV(sip));
584 rw_enter(&sip->i_contents, RW_WRITER);
585 sip->i_nlink--;
586 rw_exit(&sip->i_contents);
588 mutex_enter(&sip->i_tlock);
589 sip->i_flag |= ICHG;
590 mutex_exit(&sip->i_tlock);
1274 * Enter the file sip in the directory tdp with name namep.
1279 struct ud_inode *sip, struct ud_inode *sdp, struct cred *cr)
1290 udf_vfsp = sip->i_udf;
1296 if (ITOV(tdp)->v_vfsp != ITOV(sip)->v_vfsp) {
1301 if ((op == DE_RENAME) && (sip->i_type == VDIR)) {
1302 if ((error = ud_dirfixdotdot(sip, sdp, tdp)) != 0) {
1314 if (sip->i_type == VDIR) {
1321 fid->fid_icb.lad_ext_len = SWAP_32(sip->i_udf->udf_lbsize);
1322 fid->fid_icb.lad_ext_loc = SWAP_32(sip->i_icb_block);
1323 fid->fid_icb.lad_ext_prn = SWAP_16(sip->i_icb_prn);
1440 ud_dirrename(struct ud_inode *sdp, struct ud_inode *sip,
1460 if (sip->i_icb_lbano == tip->i_icb_lbano) {
1467 rw_enter(&sip->i_contents, RW_READER);
1474 (ITOV(tip)->v_vfsp != ITOV(sip)->v_vfsp)) {
1493 doingdirectory = (sip->i_type == VDIR);
1524 * from the target inode (ip) to the source inode (sip).
1529 fid->fid_icb.lad_ext_prn = SWAP_16(sip->i_icb_prn);
1530 fid->fid_icb.lad_ext_loc = SWAP_32(sip->i_icb_block);
1531 dnlc_enter(ITOV(tdp), namep, ITOV(sip));
1556 * Fix the ".." entry in sip to point to dp.
1577 rw_exit(&sip->i_contents);
1600 rw_exit(&sip->i_contents);
1601 error = ud_dirfixdotdot(sip, sdp, tdp);
1608 rw_exit(&sip->i_contents);