Lines Matching refs:cdp
2755 xfs_inode_t *cdp; /* inode of created dir */ in xfs_mkdir() local
2860 &cdp, NULL); in xfs_mkdir()
2866 ITRACE(cdp); in xfs_mkdir()
2881 cdp->i_ino, &first_block, &free_list, in xfs_mkdir()
2896 error = XFS_DIR_INIT(mp, tp, cdp, dp); in xfs_mkdir()
2901 cdp->i_gen = 1; in xfs_mkdir()
2907 cvp = XFS_ITOV(cdp); in xfs_mkdir()
2912 IHOLD(cdp); in xfs_mkdir()
2917 XFS_QM_DQVOPCREATE(mp, tp, cdp, udqp, gdqp); in xfs_mkdir()
2930 IRELE(cdp); in xfs_mkdir()
2938 IRELE(cdp); in xfs_mkdir()
2950 created ? XFS_ITOV(cdp):NULL, in xfs_mkdir()
2987 xfs_inode_t *cdp; /* child directory */ in xfs_rmdir() local
3022 cdp = NULL; in xfs_rmdir()
3036 error = xfs_get_dir_entry(dentry, &cdp); in xfs_rmdir()
3042 dm_di_mode = cdp->i_d.di_mode; in xfs_rmdir()
3048 if (!error && dp != cdp) in xfs_rmdir()
3049 error = XFS_QM_DQATTACH(mp, cdp, 0); in xfs_rmdir()
3051 IRELE(cdp); in xfs_rmdir()
3078 IRELE(cdp); in xfs_rmdir()
3089 error = xfs_lock_dir_and_entry(dp, dentry, cdp); in xfs_rmdir()
3092 IRELE(cdp); in xfs_rmdir()
3097 if (dp != cdp) { in xfs_rmdir()
3106 ITRACE(cdp); in xfs_rmdir()
3107 xfs_trans_ijoin(tp, cdp, XFS_ILOCK_EXCL); in xfs_rmdir()
3109 ASSERT(cdp->i_d.di_nlink >= 2); in xfs_rmdir()
3110 if (cdp->i_d.di_nlink != 2) { in xfs_rmdir()
3114 if (!XFS_DIR_ISEMPTY(mp, cdp)) { in xfs_rmdir()
3119 error = XFS_DIR_REMOVENAME(mp, tp, dp, name, namelen, cdp->i_ino, in xfs_rmdir()
3144 error = xfs_droplink(tp, cdp); in xfs_rmdir()
3152 error = xfs_droplink(tp, cdp); in xfs_rmdir()
3158 last_cdp_link = (cdp)->i_d.di_nlink==0; in xfs_rmdir()
3164 IHOLD(cdp); in xfs_rmdir()
3180 IRELE(cdp); in xfs_rmdir()
3186 IRELE(cdp); in xfs_rmdir()
3194 VOP_LINK_REMOVED(XFS_ITOV(cdp), dir_vp, last_cdp_link); in xfs_rmdir()
3196 IRELE(cdp); in xfs_rmdir()