Use ffs_truncate() directly instead of UFS_TRUNCATE()

This commit is contained in:
Poul-Henning Kamp 2005-02-08 20:51:00 +00:00
parent d04928f224
commit 44787ceb0b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141541

View File

@ -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);
/*