Deleted Added
full compact
ffs_vnops.c (2979) ffs_vnops.c (3396)
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_vnops.c 8.7 (Berkeley) 2/3/94
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_vnops.c 8.7 (Berkeley) 2/3/94
34 * $Id: ffs_vnops.c,v 1.4 1994/09/21 03:47:38 wollman Exp $
34 * $Id: ffs_vnops.c,v 1.5 1994/09/22 19:38:32 wollman Exp $
35 */
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/resourcevar.h>
40#include <sys/kernel.h>
41#include <sys/file.h>
42#include <sys/stat.h>

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

271 (void) bawrite(bp);
272 else
273 (void) bwrite(bp);
274 goto loop;
275 }
276 if (ap->a_waitfor == MNT_WAIT) {
277 while (vp->v_numoutput) {
278 vp->v_flag |= VBWAIT;
35 */
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/resourcevar.h>
40#include <sys/kernel.h>
41#include <sys/file.h>
42#include <sys/stat.h>

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

271 (void) bawrite(bp);
272 else
273 (void) bwrite(bp);
274 goto loop;
275 }
276 if (ap->a_waitfor == MNT_WAIT) {
277 while (vp->v_numoutput) {
278 vp->v_flag |= VBWAIT;
279 sleep((caddr_t)&vp->v_numoutput, PRIBIO + 1);
279 (void) tsleep((caddr_t)&vp->v_numoutput, PRIBIO + 1, "ffsfsn", 0);
280 }
281#ifdef DIAGNOSTIC
282 if (vp->v_dirtyblkhd.lh_first) {
283 vprint("ffs_fsync: dirty", vp);
284 goto loop;
285 }
286#endif
287 }
288 splx(s);
289 tv = time;
290 return (VOP_UPDATE(ap->a_vp, &tv, &tv, ap->a_waitfor == MNT_WAIT));
291}
280 }
281#ifdef DIAGNOSTIC
282 if (vp->v_dirtyblkhd.lh_first) {
283 vprint("ffs_fsync: dirty", vp);
284 goto loop;
285 }
286#endif
287 }
288 splx(s);
289 tv = time;
290 return (VOP_UPDATE(ap->a_vp, &tv, &tv, ap->a_waitfor == MNT_WAIT));
291}