diff options
author | phk <phk@FreeBSD.org> | 2005-02-08 20:51:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-02-08 20:51:00 +0000 |
commit | 5d77ec547b12517653680cde88f7d33c3e098ff3 (patch) | |
tree | 9440dd60fd21e3a5ba2ac647ef5bfb7745de6daa /sys | |
parent | b87bf48d9ecd582e932f78d08da61a704d5ab081 (diff) | |
download | FreeBSD-src-5d77ec547b12517653680cde88f7d33c3e098ff3.zip FreeBSD-src-5d77ec547b12517653680cde88f7d33c3e098ff3.tar.gz |
Use ffs_truncate() directly instead of UFS_TRUNCATE()
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index f90a497..0454e95 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -3141,7 +3141,7 @@ handle_workitem_remove(dirrem, xp) panic("handle_workitem_remove: bad dir delta"); inodedep->id_nlinkdelta = ip->i_nlink - ip->i_effnlink; FREE_LOCK(&lk); - if ((error = UFS_TRUNCATE(vp, (off_t)0, 0, td->td_ucred, td)) != 0) + if ((error = ffs_truncate(vp, (off_t)0, 0, td->td_ucred, td)) != 0) softdep_error("handle_workitem_remove: truncate", error); ACQUIRE_LOCK(&lk); /* |