Deleted Added
full compact
ffs_inode.c (43311) ffs_inode.c (46349)
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.52 1999/01/07 16:14:16 bde Exp $
34 * $Id: ffs_inode.c,v 1.53 1999/01/28 00:57:54 dillon 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>

--- 404 unchanged lines hidden (view full) ---

447 * the on disk address, so we have to set the b_blkno field
448 * explicitly instead of letting bread do everything for us.
449 */
450 vp = ITOV(ip);
451 bp = getblk(vp, lbn, (int)fs->fs_bsize, 0, 0);
452 if ((bp->b_flags & B_CACHE) == 0) {
453 curproc->p_stats->p_ru.ru_inblock++; /* pay for read */
454 bp->b_flags |= B_READ;
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>

--- 404 unchanged lines hidden (view full) ---

447 * the on disk address, so we have to set the b_blkno field
448 * explicitly instead of letting bread do everything for us.
449 */
450 vp = ITOV(ip);
451 bp = getblk(vp, lbn, (int)fs->fs_bsize, 0, 0);
452 if ((bp->b_flags & B_CACHE) == 0) {
453 curproc->p_stats->p_ru.ru_inblock++; /* pay for read */
454 bp->b_flags |= B_READ;
455 bp->b_flags &= ~(B_ERROR|B_INVAL);
455 if (bp->b_bcount > bp->b_bufsize)
456 panic("ffs_indirtrunc: bad buffer size");
457 bp->b_blkno = dbn;
458 vfs_busy_pages(bp, 0);
459 VOP_STRATEGY(bp->b_vp, bp);
460 error = biowait(bp);
461 }
462 if (error) {

--- 63 unchanged lines hidden ---
456 if (bp->b_bcount > bp->b_bufsize)
457 panic("ffs_indirtrunc: bad buffer size");
458 bp->b_blkno = dbn;
459 vfs_busy_pages(bp, 0);
460 VOP_STRATEGY(bp->b_vp, bp);
461 error = biowait(bp);
462 }
463 if (error) {

--- 63 unchanged lines hidden ---