Deleted Added
full compact
vnode.h (42900) vnode.h (43301)
1/*
2 * Copyright (c) 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 * @(#)vnode.h 8.7 (Berkeley) 2/4/94
1/*
2 * Copyright (c) 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 * @(#)vnode.h 8.7 (Berkeley) 2/4/94
34 * $Id: vnode.h,v 1.79 1999/01/05 18:50:01 eivind Exp $
34 * $Id: vnode.h,v 1.80 1999/01/20 14:49:12 eivind Exp $
35 */
36
37#ifndef _SYS_VNODE_H_
38#define _SYS_VNODE_H_
39
40#include <sys/queue.h>
41#include <sys/select.h>
42#include <sys/uio.h>

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

417 || (vp)->v_tag == VT_NFS \
418 || (vp)->v_tag == VT_LFS \
419 || (vp)->v_tag == VT_ISOFS \
420 || (vp)->v_tag == VT_MSDOSFS \
421 || (vp)->v_tag == VT_DEVFS)
422
423#define ASSERT_VOP_LOCKED(vp, str) \
424 if ((vp) && IS_LOCKING_VFS(vp) && !VOP_ISLOCKED(vp)) { \
35 */
36
37#ifndef _SYS_VNODE_H_
38#define _SYS_VNODE_H_
39
40#include <sys/queue.h>
41#include <sys/select.h>
42#include <sys/uio.h>

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

417 || (vp)->v_tag == VT_NFS \
418 || (vp)->v_tag == VT_LFS \
419 || (vp)->v_tag == VT_ISOFS \
420 || (vp)->v_tag == VT_MSDOSFS \
421 || (vp)->v_tag == VT_DEVFS)
422
423#define ASSERT_VOP_LOCKED(vp, str) \
424 if ((vp) && IS_LOCKING_VFS(vp) && !VOP_ISLOCKED(vp)) { \
425 panic("%s: %x is not locked but should be", str, vp); \
425 panic("%s: %p is not locked but should be", str, vp); \
426 }
427
428#define ASSERT_VOP_UNLOCKED(vp, str) \
429 if ((vp) && IS_LOCKING_VFS(vp) && VOP_ISLOCKED(vp)) { \
426 }
427
428#define ASSERT_VOP_UNLOCKED(vp, str) \
429 if ((vp) && IS_LOCKING_VFS(vp) && VOP_ISLOCKED(vp)) { \
430 panic("%s: %x is locked but shouldn't be", str, vp); \
430 panic("%s: %p is locked but shouldn't be", str, vp); \
431 }
432
433#else
434
435#define ASSERT_VOP_LOCKED(vp, str)
436#define ASSERT_VOP_UNLOCKED(vp, str)
437
438#endif

--- 126 unchanged lines hidden ---
431 }
432
433#else
434
435#define ASSERT_VOP_LOCKED(vp, str)
436#define ASSERT_VOP_UNLOCKED(vp, str)
437
438#endif

--- 126 unchanged lines hidden ---