Deleted Added
full compact
kern_lockf.c (112367) kern_lockf.c (114216)
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Scooter Morris at Genentech Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)ufs_lockf.c 8.3 (Berkeley) 1/6/94
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Scooter Morris at Genentech Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)ufs_lockf.c 8.3 (Berkeley) 1/6/94
37 * $FreeBSD: head/sys/kern/kern_lockf.c 112367 2003-03-18 08:45:25Z phk $
37 * $FreeBSD: head/sys/kern/kern_lockf.c 114216 2003-04-29 13:36:06Z kan $
38 */
39
40#include "opt_debug_lockf.h"
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/kernel.h>
38 */
39
40#include "opt_debug_lockf.h"
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/kernel.h>
45#include <sys/limits.h>
45#include <sys/lock.h>
46#include <sys/mount.h>
47#include <sys/mutex.h>
48#include <sys/proc.h>
49#include <sys/unistd.h>
50#include <sys/vnode.h>
51#include <sys/malloc.h>
52#include <sys/fcntl.h>
53#include <sys/lockf.h>
54
46#include <sys/lock.h>
47#include <sys/mount.h>
48#include <sys/mutex.h>
49#include <sys/proc.h>
50#include <sys/unistd.h>
51#include <sys/vnode.h>
52#include <sys/malloc.h>
53#include <sys/fcntl.h>
54#include <sys/lockf.h>
55
55#include <machine/limits.h>
56
57/*
58 * This variable controls the maximum number of processes that will
59 * be checked in doing deadlock detection.
60 */
61static int maxlockdepth = MAXDEPTH;
62
63#ifdef LOCKF_DEBUG
64#include <sys/sysctl.h>

--- 779 unchanged lines hidden ---
56/*
57 * This variable controls the maximum number of processes that will
58 * be checked in doing deadlock detection.
59 */
60static int maxlockdepth = MAXDEPTH;
61
62#ifdef LOCKF_DEBUG
63#include <sys/sysctl.h>

--- 779 unchanged lines hidden ---