ffs_inode.c (42374) | ffs_inode.c (43311) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)ffs_inode.c 8.13 (Berkeley) 4/21/95 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)ffs_inode.c 8.13 (Berkeley) 4/21/95 |
34 * $Id: ffs_inode.c,v 1.51 1999/01/06 18:18:06 bde Exp $ | 34 * $Id: ffs_inode.c,v 1.52 1999/01/07 16:14:16 bde Exp $ |
35 */ 36 37#include "opt_quota.h" 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/mount.h> 42#include <sys/proc.h> --- 442 unchanged lines hidden (view full) --- 485 * Recursively free totally unused blocks. 486 */ 487 for (i = NINDIR(fs) - 1, nlbn = lbn + 1 - i * factor; i > last; 488 i--, nlbn += factor) { 489 nb = bap[i]; 490 if (nb == 0) 491 continue; 492 if (level > SINGLE) { | 35 */ 36 37#include "opt_quota.h" 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/mount.h> 42#include <sys/proc.h> --- 442 unchanged lines hidden (view full) --- 485 * Recursively free totally unused blocks. 486 */ 487 for (i = NINDIR(fs) - 1, nlbn = lbn + 1 - i * factor; i > last; 488 i--, nlbn += factor) { 489 nb = bap[i]; 490 if (nb == 0) 491 continue; 492 if (level > SINGLE) { |
493 if (error = ffs_indirtrunc(ip, nlbn, fsbtodb(fs, nb), 494 (ufs_daddr_t)-1, level - 1, &blkcount)) | 493 if ((error = ffs_indirtrunc(ip, nlbn, fsbtodb(fs, nb), 494 (ufs_daddr_t)-1, level - 1, &blkcount)) != 0) |
495 allerror = error; 496 blocksreleased += blkcount; 497 } 498 ffs_blkfree(ip, nb, fs->fs_bsize); 499 blocksreleased += nblocks; 500 } 501 502 /* --- 23 unchanged lines hidden --- | 495 allerror = error; 496 blocksreleased += blkcount; 497 } 498 ffs_blkfree(ip, nb, fs->fs_bsize); 499 blocksreleased += nblocks; 500 } 501 502 /* --- 23 unchanged lines hidden --- |