SCCS-vsn: sys/ufs/ffs/ufs_quota.c 7.16
SCCS-vsn: sys/ufs/ufs/ufs_quota.c 7.16
SCCS-vsn: sys/ufs/ffs/ufs_vnops.c 7.101
SCCS-vsn: sys/ufs/ufs/ufs_vnops.c 7.101
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)ufs_quota.c 7.15 (Berkeley) %G%
+ * @(#)ufs_quota.c 7.16 (Berkeley) %G%
*/
#include <sys/param.h>
#include <sys/kernel.h>
*/
#include <sys/param.h>
#include <sys/kernel.h>
register int type;
caddr_t fname;
{
register int type;
caddr_t fname;
{
register struct ufsmount *ump = VFSTOUFS(mp);
register struct vnode *vp, **vpp;
struct vnode *nextvp;
register struct ufsmount *ump = VFSTOUFS(mp);
register struct vnode *vp, **vpp;
struct vnode *nextvp;
qsync(mp)
struct mount *mp;
{
qsync(mp)
struct mount *mp;
{
struct ufsmount *ump = VFSTOUFS(mp);
register struct vnode *vp, *nextvp;
register struct dquot *dq;
struct ufsmount *ump = VFSTOUFS(mp);
register struct vnode *vp, *nextvp;
register struct dquot *dq;
register int type;
struct dquot **dqp;
{
register int type;
struct dquot **dqp;
{
- USES_VOP_LOCK;
- USES_VOP_READ;
- USES_VOP_UNLOCK;
register struct dquot *dq;
register union dqhead *dh;
register struct dquot *dp;
register struct dquot *dq;
register union dqhead *dh;
register struct dquot *dp;
struct vnode *vp;
register struct dquot *dq;
{
struct vnode *vp;
register struct dquot *dq;
{
- USES_VOP_LOCK;
- USES_VOP_UNLOCK;
- USES_VOP_WRITE;
struct vnode *dqvp;
struct iovec aiov;
struct uio auio;
struct vnode *dqvp;
struct iovec aiov;
struct uio auio;
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)ufs_vnops.c 7.100 (Berkeley) %G%
+ * @(#)ufs_vnops.c 7.101 (Berkeley) %G%
*/
#include <sys/param.h>
*/
#include <sys/param.h>
struct proc *a_p;
} */ *ap;
{
struct proc *a_p;
} */ *ap;
{
register struct vnode *vp = ap->a_vp;
register struct inode *ip = VTOI(vp);
register struct ucred *cred = ap->a_cred;
register struct vnode *vp = ap->a_vp;
register struct inode *ip = VTOI(vp);
register struct ucred *cred = ap->a_cred;
struct proc *a_p;
} */ *ap;
{
struct proc *a_p;
} */ *ap;
{
- USES_VOP_TRUNCATE;
- USES_VOP_UPDATE;
register struct vattr *vap = ap->a_vap;
register struct vnode *vp = ap->a_vp;
register struct inode *ip = VTOI(vp);
register struct vattr *vap = ap->a_vap;
register struct vnode *vp = ap->a_vp;
register struct inode *ip = VTOI(vp);
struct componentname *a_cnp;
} */ *ap;
{
struct componentname *a_cnp;
} */ *ap;
{
- USES_VOP_UPDATE;
- USES_VOP_ABORTOP;
register struct vnode *vp = ap->a_vp;
register struct vnode *tdvp = ap->a_tdvp;
register struct componentname *cnp = ap->a_cnp;
register struct vnode *vp = ap->a_vp;
register struct vnode *tdvp = ap->a_tdvp;
register struct componentname *cnp = ap->a_cnp;
struct vnode *dvp, **vpp;
struct componentname *cnp;
{
struct vnode *dvp, **vpp;
struct componentname *cnp;
{
- USES_VOP_LOCK;
- USES_VOP_LOOKUP;
- USES_VOP_UNLOCK;
register struct vnode *dp = 0; /* the directory we are searching */
struct vnode *tdp; /* saved dp */
struct mount *mp; /* mount table entry */
register struct vnode *dp = 0; /* the directory we are searching */
struct vnode *tdp; /* saved dp */
struct mount *mp; /* mount table entry */
struct componentname *a_tcnp;
} */ *ap;
{
struct componentname *a_tcnp;
} */ *ap;
{
- USES_VOP_ABORTOP;
- USES_VOP_ACCESS;
- USES_VOP_LOCK;
- USES_VOP_TRUNCATE;
- USES_VOP_UNLOCK;
- USES_VOP_UPDATE;
struct vnode *tvp = ap->a_tvp;
register struct vnode *tdvp = ap->a_tdvp;
struct vnode *fvp = ap->a_fvp;
struct vnode *tvp = ap->a_tvp;
register struct vnode *tdvp = ap->a_tdvp;
struct vnode *fvp = ap->a_fvp;
struct vattr *a_vap;
} */ *ap;
{
struct vattr *a_vap;
} */ *ap;
{
- USES_VOP_UPDATE;
- USES_VOP_VALLOC;
- USES_VOP_VFREE;
register struct vnode *dvp = ap->a_dvp;
register struct vattr *vap = ap->a_vap;
register struct componentname *cnp = ap->a_cnp;
register struct vnode *dvp = ap->a_dvp;
register struct vattr *vap = ap->a_vap;
register struct componentname *cnp = ap->a_cnp;
int
ufs_rmdir(ap)
struct vop_rmdir_args /* {
int
ufs_rmdir(ap)
struct vop_rmdir_args /* {
- struct vnodeop_desc *a_desc;
struct vnode *a_dvp;
struct vnode *a_vp;
struct componentname *a_cnp;
} */ *ap;
{
struct vnode *a_dvp;
struct vnode *a_vp;
struct componentname *a_cnp;
} */ *ap;
{
register struct vnode *dvp = ap->a_dvp;
register struct componentname *cnp = ap->a_cnp;
register struct inode *ip, *dp;
register struct vnode *dvp = ap->a_dvp;
register struct componentname *cnp = ap->a_cnp;
register struct inode *ip, *dp;
struct ucred *a_cred;
} */ *ap;
{
struct ucred *a_cred;
} */ *ap;
{
register struct uio *uio = ap->a_uio;
int count, lost, error;
register struct uio *uio = ap->a_uio;
int count, lost, error;
{
register struct vnode *vp = ap->a_vp;
register struct inode *ip = VTOI(vp);
{
register struct vnode *vp = ap->a_vp;
register struct inode *ip = VTOI(vp);
if (ip->i_size < vp->v_mount->mnt_maxsymlinklen) {
uiomove((char *)ip->i_shortlink, (int)ip->i_size, ap->a_uio);
if (ip->i_size < vp->v_mount->mnt_maxsymlinklen) {
uiomove((char *)ip->i_shortlink, (int)ip->i_size, ap->a_uio);
struct buf *a_bp;
} */ *ap;
{
struct buf *a_bp;
} */ *ap;
{
register struct buf *bp = ap->a_bp;
register struct vnode *vp = bp->b_vp;
register struct inode *ip;
register struct buf *bp = ap->a_bp;
register struct vnode *vp = bp->b_vp;
register struct inode *ip;
struct vnode **vpp;
struct componentname *cnp;
{
struct vnode **vpp;
struct componentname *cnp;
{
- USES_VOP_UPDATE;
- USES_VOP_VALLOC;
- USES_VOP_VFREE;
register struct inode *ip, *pdir;
struct vnode *tvp;
int error;
register struct inode *ip, *pdir;
struct vnode *tvp;
int error;
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)ufs_quota.c 7.15 (Berkeley) %G%
+ * @(#)ufs_quota.c 7.16 (Berkeley) %G%
*/
#include <sys/param.h>
#include <sys/kernel.h>
*/
#include <sys/param.h>
#include <sys/kernel.h>
register int type;
caddr_t fname;
{
register int type;
caddr_t fname;
{
register struct ufsmount *ump = VFSTOUFS(mp);
register struct vnode *vp, **vpp;
struct vnode *nextvp;
register struct ufsmount *ump = VFSTOUFS(mp);
register struct vnode *vp, **vpp;
struct vnode *nextvp;
qsync(mp)
struct mount *mp;
{
qsync(mp)
struct mount *mp;
{
struct ufsmount *ump = VFSTOUFS(mp);
register struct vnode *vp, *nextvp;
register struct dquot *dq;
struct ufsmount *ump = VFSTOUFS(mp);
register struct vnode *vp, *nextvp;
register struct dquot *dq;
register int type;
struct dquot **dqp;
{
register int type;
struct dquot **dqp;
{
- USES_VOP_LOCK;
- USES_VOP_READ;
- USES_VOP_UNLOCK;
register struct dquot *dq;
register union dqhead *dh;
register struct dquot *dp;
register struct dquot *dq;
register union dqhead *dh;
register struct dquot *dp;
struct vnode *vp;
register struct dquot *dq;
{
struct vnode *vp;
register struct dquot *dq;
{
- USES_VOP_LOCK;
- USES_VOP_UNLOCK;
- USES_VOP_WRITE;
struct vnode *dqvp;
struct iovec aiov;
struct uio auio;
struct vnode *dqvp;
struct iovec aiov;
struct uio auio;
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)ufs_vnops.c 7.100 (Berkeley) %G%
+ * @(#)ufs_vnops.c 7.101 (Berkeley) %G%
*/
#include <sys/param.h>
*/
#include <sys/param.h>
struct proc *a_p;
} */ *ap;
{
struct proc *a_p;
} */ *ap;
{
register struct vnode *vp = ap->a_vp;
register struct inode *ip = VTOI(vp);
register struct ucred *cred = ap->a_cred;
register struct vnode *vp = ap->a_vp;
register struct inode *ip = VTOI(vp);
register struct ucred *cred = ap->a_cred;
struct proc *a_p;
} */ *ap;
{
struct proc *a_p;
} */ *ap;
{
- USES_VOP_TRUNCATE;
- USES_VOP_UPDATE;
register struct vattr *vap = ap->a_vap;
register struct vnode *vp = ap->a_vp;
register struct inode *ip = VTOI(vp);
register struct vattr *vap = ap->a_vap;
register struct vnode *vp = ap->a_vp;
register struct inode *ip = VTOI(vp);
struct componentname *a_cnp;
} */ *ap;
{
struct componentname *a_cnp;
} */ *ap;
{
- USES_VOP_UPDATE;
- USES_VOP_ABORTOP;
register struct vnode *vp = ap->a_vp;
register struct vnode *tdvp = ap->a_tdvp;
register struct componentname *cnp = ap->a_cnp;
register struct vnode *vp = ap->a_vp;
register struct vnode *tdvp = ap->a_tdvp;
register struct componentname *cnp = ap->a_cnp;
struct vnode *dvp, **vpp;
struct componentname *cnp;
{
struct vnode *dvp, **vpp;
struct componentname *cnp;
{
- USES_VOP_LOCK;
- USES_VOP_LOOKUP;
- USES_VOP_UNLOCK;
register struct vnode *dp = 0; /* the directory we are searching */
struct vnode *tdp; /* saved dp */
struct mount *mp; /* mount table entry */
register struct vnode *dp = 0; /* the directory we are searching */
struct vnode *tdp; /* saved dp */
struct mount *mp; /* mount table entry */
struct componentname *a_tcnp;
} */ *ap;
{
struct componentname *a_tcnp;
} */ *ap;
{
- USES_VOP_ABORTOP;
- USES_VOP_ACCESS;
- USES_VOP_LOCK;
- USES_VOP_TRUNCATE;
- USES_VOP_UNLOCK;
- USES_VOP_UPDATE;
struct vnode *tvp = ap->a_tvp;
register struct vnode *tdvp = ap->a_tdvp;
struct vnode *fvp = ap->a_fvp;
struct vnode *tvp = ap->a_tvp;
register struct vnode *tdvp = ap->a_tdvp;
struct vnode *fvp = ap->a_fvp;
struct vattr *a_vap;
} */ *ap;
{
struct vattr *a_vap;
} */ *ap;
{
- USES_VOP_UPDATE;
- USES_VOP_VALLOC;
- USES_VOP_VFREE;
register struct vnode *dvp = ap->a_dvp;
register struct vattr *vap = ap->a_vap;
register struct componentname *cnp = ap->a_cnp;
register struct vnode *dvp = ap->a_dvp;
register struct vattr *vap = ap->a_vap;
register struct componentname *cnp = ap->a_cnp;
int
ufs_rmdir(ap)
struct vop_rmdir_args /* {
int
ufs_rmdir(ap)
struct vop_rmdir_args /* {
- struct vnodeop_desc *a_desc;
struct vnode *a_dvp;
struct vnode *a_vp;
struct componentname *a_cnp;
} */ *ap;
{
struct vnode *a_dvp;
struct vnode *a_vp;
struct componentname *a_cnp;
} */ *ap;
{
register struct vnode *dvp = ap->a_dvp;
register struct componentname *cnp = ap->a_cnp;
register struct inode *ip, *dp;
register struct vnode *dvp = ap->a_dvp;
register struct componentname *cnp = ap->a_cnp;
register struct inode *ip, *dp;
struct ucred *a_cred;
} */ *ap;
{
struct ucred *a_cred;
} */ *ap;
{
register struct uio *uio = ap->a_uio;
int count, lost, error;
register struct uio *uio = ap->a_uio;
int count, lost, error;
{
register struct vnode *vp = ap->a_vp;
register struct inode *ip = VTOI(vp);
{
register struct vnode *vp = ap->a_vp;
register struct inode *ip = VTOI(vp);
if (ip->i_size < vp->v_mount->mnt_maxsymlinklen) {
uiomove((char *)ip->i_shortlink, (int)ip->i_size, ap->a_uio);
if (ip->i_size < vp->v_mount->mnt_maxsymlinklen) {
uiomove((char *)ip->i_shortlink, (int)ip->i_size, ap->a_uio);
struct buf *a_bp;
} */ *ap;
{
struct buf *a_bp;
} */ *ap;
{
register struct buf *bp = ap->a_bp;
register struct vnode *vp = bp->b_vp;
register struct inode *ip;
register struct buf *bp = ap->a_bp;
register struct vnode *vp = bp->b_vp;
register struct inode *ip;
struct vnode **vpp;
struct componentname *cnp;
{
struct vnode **vpp;
struct componentname *cnp;
{
- USES_VOP_UPDATE;
- USES_VOP_VALLOC;
- USES_VOP_VFREE;
register struct inode *ip, *pdir;
struct vnode *tvp;
int error;
register struct inode *ip, *pdir;
struct vnode *tvp;
int error;