vfs_bio.c (48326) | vfs_bio.c (48333) |
---|---|
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.217 1999/06/26 14:46:35 peter Exp $ | 14 * $Id: vfs_bio.c,v 1.218 1999/06/28 15:32:10 peter 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 * --- 489 unchanged lines hidden (view full) --- 512 bp->b_flags &= ~(B_READ | B_DONE | B_ERROR); 513 bp->b_flags |= B_WRITEINPROG | B_CACHE; 514 515 bp->b_vp->v_numoutput++; 516 vfs_busy_pages(bp, 1); 517 if (curproc != NULL) 518 curproc->p_stats->p_ru.ru_oublock++; 519 splx(s); | 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 * --- 489 unchanged lines hidden (view full) --- 512 bp->b_flags &= ~(B_READ | B_DONE | B_ERROR); 513 bp->b_flags |= B_WRITEINPROG | B_CACHE; 514 515 bp->b_vp->v_numoutput++; 516 vfs_busy_pages(bp, 1); 517 if (curproc != NULL) 518 curproc->p_stats->p_ru.ru_oublock++; 519 splx(s); |
520 BUF_KERNPROC(bp); | 520 if (oldflags & B_ASYNC) 521 BUF_KERNPROC(bp); |
521 VOP_STRATEGY(bp->b_vp, bp); 522 523 /* 524 * Collect statistics on synchronous and asynchronous writes. 525 * Writes to block devices are charged to their associated 526 * filesystem (if any). 527 */ 528 if ((vp = bp->b_vp) != NULL) { --- 2444 unchanged lines hidden --- | 522 VOP_STRATEGY(bp->b_vp, bp); 523 524 /* 525 * Collect statistics on synchronous and asynchronous writes. 526 * Writes to block devices are charged to their associated 527 * filesystem (if any). 528 */ 529 if ((vp = bp->b_vp) != NULL) { --- 2444 unchanged lines hidden --- |