Move the definition of simple_lock() and simple_unlock() to a common
header, since more of the LFS macros now use these functions. Since we're outside of the kernel, these are defined to be empty.
This commit is contained in:
parent
c0372ca1ef
commit
2d66b2737e
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lfs.h,v 1.4 2005/03/25 20:16:37 perseant Exp $ */
|
||||
/* $NetBSD: lfs.h,v 1.5 2005/04/01 23:45:59 he Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
@ -47,6 +47,15 @@ struct finfo;
|
||||
*/
|
||||
#define lfs_devvp lfs_unlockvp
|
||||
|
||||
/*
|
||||
* This is outside of the kernel, so no locking primitives available.
|
||||
*/
|
||||
#undef simple_lock
|
||||
#undef simple_unlock
|
||||
|
||||
#define simple_lock(arg) /* empty */
|
||||
#define simple_unlock(arg) /* empty */
|
||||
|
||||
/*
|
||||
* Structure used to pass around logical block paths generated by
|
||||
* ufs_getlbns and used by truncate and bmap code.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: segwrite.c,v 1.8 2005/03/25 20:16:37 perseant Exp $ */
|
||||
/* $NetBSD: segwrite.c,v 1.9 2005/04/01 23:45:59 he Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
@ -78,10 +78,6 @@
|
||||
#include <ufs/ufs/ufsmount.h>
|
||||
|
||||
/* Override certain things to make <ufs/lfs/lfs.h> work */
|
||||
#undef simple_lock
|
||||
#define simple_lock(x)
|
||||
#undef simple_unlock
|
||||
#define simple_unlock(x)
|
||||
#define vnode uvnode
|
||||
#define buf ubuf
|
||||
#define panic call_panic
|
||||
|
Loading…
x
Reference in New Issue
Block a user