Deleted Added
full compact
kern_lockf.c (30309) kern_lockf.c (30354)
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 * $Id: kern_lockf.c,v 1.14 1997/04/01 10:30:06 bde Exp $
37 * $Id: kern_lockf.c,v 1.15 1997/10/11 18:31:23 phk Exp $
38 */
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/proc.h>
43#include <sys/unistd.h>
44#include <sys/vnode.h>
45#include <sys/malloc.h>

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

60#include <ufs/ufs/quota.h>
61#include <ufs/ufs/inode.h>
62
63
64static int lockf_debug = 0;
65SYSCTL_INT(_debug, OID_AUTO, lockf_debug, CTLFLAG_RW, &lockf_debug, 0, "");
66#endif
67
38 */
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/proc.h>
43#include <sys/unistd.h>
44#include <sys/vnode.h>
45#include <sys/malloc.h>

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

60#include <ufs/ufs/quota.h>
61#include <ufs/ufs/inode.h>
62
63
64static int lockf_debug = 0;
65SYSCTL_INT(_debug, OID_AUTO, lockf_debug, CTLFLAG_RW, &lockf_debug, 0, "");
66#endif
67
68MALLOC_DEFINE(M_LOCKF, "lockf", "Byte-range locking structures");
68static MALLOC_DEFINE(M_LOCKF, "lockf", "Byte-range locking structures");
69
70#define NOLOCKF (struct lockf *)0
71#define SELF 0x1
72#define OTHERS 0x2
73static int lf_clearlock __P((struct lockf *));
74static int lf_findoverlap __P((struct lockf *,
75 struct lockf *, int, struct lockf ***, struct lockf **));
76static struct lockf *

--- 721 unchanged lines hidden ---
69
70#define NOLOCKF (struct lockf *)0
71#define SELF 0x1
72#define OTHERS 0x2
73static int lf_clearlock __P((struct lockf *));
74static int lf_findoverlap __P((struct lockf *,
75 struct lockf *, int, struct lockf ***, struct lockf **));
76static struct lockf *

--- 721 unchanged lines hidden ---