Deleted Added
full compact
vfs_bio.c (8176) vfs_bio.c (8456)
1/*
2 * Copyright (c) 1994 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

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

13 * documentation and/or other materials provided with the distribution.
14 * 3. Absolutely no warranty of function or purpose is made by the author
15 * John S. Dyson.
16 * 4. This work was done expressly for inclusion into FreeBSD. Other use
17 * is allowed if this notation is included.
18 * 5. Modifications may be freely made to this file if the above conditions
19 * are met.
20 *
1/*
2 * Copyright (c) 1994 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

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

13 * documentation and/or other materials provided with the distribution.
14 * 3. Absolutely no warranty of function or purpose is made by the author
15 * John S. Dyson.
16 * 4. This work was done expressly for inclusion into FreeBSD. Other use
17 * is allowed if this notation is included.
18 * 5. Modifications may be freely made to this file if the above conditions
19 * are met.
20 *
21 * $Id: vfs_bio.c,v 1.42 1995/04/16 12:02:42 davidg Exp $
21 * $Id: vfs_bio.c,v 1.43 1995/04/30 05:09:13 davidg Exp $
22 */
23
24/*
25 * this file contains a new buffer I/O scheme implementing a coherent
26 * VM object and buffer cache scheme. Pains have been taken to make
27 * sure that the performance degradation associated with schemes such
28 * as this is not realized.
29 *

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

1127 }
1128
1129 /*
1130 * when debugging new filesystems or buffer I/O methods, this
1131 * is the most common error that pops up. if you see this, you
1132 * have not set the page busy flag correctly!!!
1133 */
1134 if (m->busy == 0) {
22 */
23
24/*
25 * this file contains a new buffer I/O scheme implementing a coherent
26 * VM object and buffer cache scheme. Pains have been taken to make
27 * sure that the performance degradation associated with schemes such
28 * as this is not realized.
29 *

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

1127 }
1128
1129 /*
1130 * when debugging new filesystems or buffer I/O methods, this
1131 * is the most common error that pops up. if you see this, you
1132 * have not set the page busy flag correctly!!!
1133 */
1134 if (m->busy == 0) {
1135 printf("biodone: page busy < 0, off: %d, foff: %d, resid: %d, index: %d\n",
1135 printf("biodone: page busy < 0, "
1136 "off: %ld, foff: %ld, "
1137 "resid: %d, index: %d\n",
1136 m->offset, foff, resid, i);
1138 m->offset, foff, resid, i);
1137 printf(" iosize: %d, lblkno: %d\n",
1138 bp->b_vp->v_mount->mnt_stat.f_iosize, bp->b_lblkno);
1139 printf(" iosize: %ld, lblkno: %ld\n",
1140 bp->b_vp->v_mount->mnt_stat.f_iosize,
1141 bp->b_lblkno);
1139 printf(" valid: 0x%x, dirty: 0x%x, mapped: %d\n",
1140 m->valid, m->dirty, m->bmapped);
1141 panic("biodone: page busy < 0\n");
1142 }
1143 --m->busy;
1144 if( (m->busy == 0) && (m->flags & PG_WANTED))
1145 wakeup((caddr_t) m);
1146 --obj->paging_in_progress;

--- 253 unchanged lines hidden ---
1142 printf(" valid: 0x%x, dirty: 0x%x, mapped: %d\n",
1143 m->valid, m->dirty, m->bmapped);
1144 panic("biodone: page busy < 0\n");
1145 }
1146 --m->busy;
1147 if( (m->busy == 0) && (m->flags & PG_WANTED))
1148 wakeup((caddr_t) m);
1149 --obj->paging_in_progress;

--- 253 unchanged lines hidden ---