Deleted Added
full compact
vfs_subr.c (217824) vfs_subr.c (218195)
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

34 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
35 */
36
37/*
38 * External virtual filesystem routines
39 */
40
41#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

34 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
35 */
36
37/*
38 * External virtual filesystem routines
39 */
40
41#include <sys/cdefs.h>
42__FBSDID("$FreeBSD: head/sys/kern/vfs_subr.c 217824 2011-01-25 14:04:02Z kib $");
42__FBSDID("$FreeBSD: head/sys/kern/vfs_subr.c 218195 2011-02-02 16:35:10Z mdf $");
43
44#include "opt_ddb.h"
45
46#include <sys/param.h>
47#include <sys/systm.h>
48#include <sys/bio.h>
49#include <sys/buf.h>
50#include <sys/condvar.h>

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

702 }
703 KASSERT((vp->v_iflag & VI_DOOMED) == 0,
704 ("VI_DOOMED unexpectedly detected in vlrureclaim()"));
705 vgonel(vp);
706 VOP_UNLOCK(vp, 0);
707 vdropl(vp);
708 done++;
709next_iter_mntunlocked:
43
44#include "opt_ddb.h"
45
46#include <sys/param.h>
47#include <sys/systm.h>
48#include <sys/bio.h>
49#include <sys/buf.h>
50#include <sys/condvar.h>

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

702 }
703 KASSERT((vp->v_iflag & VI_DOOMED) == 0,
704 ("VI_DOOMED unexpectedly detected in vlrureclaim()"));
705 vgonel(vp);
706 VOP_UNLOCK(vp, 0);
707 vdropl(vp);
708 done++;
709next_iter_mntunlocked:
710 if ((count % 256) != 0)
710 if (should_yield())
711 goto relock_mnt;
712 goto yield;
713next_iter:
711 goto relock_mnt;
712 goto yield;
713next_iter:
714 if ((count % 256) != 0)
714 if (should_yield())
715 continue;
716 MNT_IUNLOCK(mp);
717yield:
718 uio_yield();
719relock_mnt:
720 MNT_ILOCK(mp);
721 }
722 MNT_IUNLOCK(mp);

--- 3722 unchanged lines hidden ---
715 continue;
716 MNT_IUNLOCK(mp);
717yield:
718 uio_yield();
719relock_mnt:
720 MNT_ILOCK(mp);
721 }
722 MNT_IUNLOCK(mp);

--- 3722 unchanged lines hidden ---