Deleted Added
full compact
vfs_bio.c (35210) vfs_bio.c (35256)
1/*
2 * Copyright (c) 1994,1997 John S. Dyson
3 * 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
9 * notice immediately at the beginning of the file, without modification,
10 * this list of conditions, and the following disclaimer.
11 * 2. Absolutely no warranty of function or purpose is made by the author
12 * John S. Dyson.
13 *
1/*
2 * Copyright (c) 1994,1997 John S. Dyson
3 * 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
9 * notice immediately at the beginning of the file, without modification,
10 * this list of conditions, and the following disclaimer.
11 * 2. Absolutely no warranty of function or purpose is made by the author
12 * John S. Dyson.
13 *
14 * $Id: vfs_bio.c,v 1.160 1998/03/27 06:48:24 dyson Exp $
14 * $Id: vfs_bio.c,v 1.161 1998/04/15 17:46:30 bde Exp $
15 */
16
17/*
18 * this file contains a new buffer I/O scheme implementing a coherent
19 * VM object and buffer cache scheme. Pains have been taken to make
20 * sure that the performance degradation associated with schemes such
21 * as this is not realized.
22 *

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

1658 bufmallocspace += mbsize;
1659 return 1;
1660 }
1661#endif
1662 origbuf = NULL;
1663 origbufsize = 0;
1664#if !defined(NO_B_MALLOC)
1665 /*
15 */
16
17/*
18 * this file contains a new buffer I/O scheme implementing a coherent
19 * VM object and buffer cache scheme. Pains have been taken to make
20 * sure that the performance degradation associated with schemes such
21 * as this is not realized.
22 *

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

1658 bufmallocspace += mbsize;
1659 return 1;
1660 }
1661#endif
1662 origbuf = NULL;
1663 origbufsize = 0;
1664#if !defined(NO_B_MALLOC)
1665 /*
1666 * If the buffer is growing on it's other-than-first allocation,
1666 * If the buffer is growing on its other-than-first allocation,
1667 * then we revert to the page-allocation scheme.
1668 */
1669 if (bp->b_flags & B_MALLOC) {
1670 origbuf = bp->b_data;
1671 origbufsize = bp->b_bufsize;
1672 bp->b_data = bp->b_kvabase;
1673 bufspace -= bp->b_bufsize;
1674 bufmallocspace -= bp->b_bufsize;

--- 768 unchanged lines hidden ---
1667 * then we revert to the page-allocation scheme.
1668 */
1669 if (bp->b_flags & B_MALLOC) {
1670 origbuf = bp->b_data;
1671 origbufsize = bp->b_bufsize;
1672 bp->b_data = bp->b_kvabase;
1673 bufspace -= bp->b_bufsize;
1674 bufmallocspace -= bp->b_bufsize;

--- 768 unchanged lines hidden ---