X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/88b9be0b21249a061c1425ad60fd5824ae1730e2..ced3a25217745d4ff6a73506f72bad776a066a69:/usr/src/sys/ufs/ffs/ufs_inode.c diff --git a/usr/src/sys/ufs/ffs/ufs_inode.c b/usr/src/sys/ufs/ffs/ufs_inode.c index e8de953c71..c97d8678ac 100644 --- a/usr/src/sys/ufs/ffs/ufs_inode.c +++ b/usr/src/sys/ufs/ffs/ufs_inode.c @@ -3,7 +3,7 @@ * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * - * @(#)ufs_inode.c 7.2 (Berkeley) %G% + * @(#)ufs_inode.c 7.3 (Berkeley) %G% */ #include "param.h" @@ -483,7 +483,7 @@ itrunc(oip, length) indirtrunc(ip, bn, lastiblock[level], level); if (lastiblock[level] < 0) { ip->i_ib[level] = 0; - free(ip, bn, (off_t)fs->fs_bsize); + blkfree(ip, bn, (off_t)fs->fs_bsize); blocksreleased += nblocks; } } @@ -502,7 +502,7 @@ itrunc(oip, length) continue; ip->i_db[i] = 0; bsize = (off_t)blksize(fs, ip, i); - free(ip, bn, bsize); + blkfree(ip, bn, bsize); blocksreleased += btodb(bsize); } if (lastblock < 0) @@ -532,7 +532,7 @@ itrunc(oip, length) * required for the storage we're keeping. */ bn += numfrags(fs, newspace); - free(ip, bn, oldspace - newspace); + blkfree(ip, bn, oldspace - newspace); blocksreleased += btodb(oldspace - newspace); } } @@ -624,7 +624,7 @@ indirtrunc(ip, bn, lastbn, level) if (level > SINGLE) blocksreleased += indirtrunc(ip, nb, (daddr_t)-1, level - 1); - free(ip, nb, (off_t)fs->fs_bsize); + blkfree(ip, nb, (off_t)fs->fs_bsize); blocksreleased += nblocks; }