git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Linux 3.4 compat, d_make_root() replaces d_alloc_root()
[zfs.git]
/
include
/
sys
/
spa.h
diff --git
a/include/sys/spa.h
b/include/sys/spa.h
index
52737eb
..
c9028fb
100644
(file)
--- a/
include/sys/spa.h
+++ b/
include/sys/spa.h
@@
-20,6
+20,7
@@
*/
/*
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
*/
/*
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011 by Delphix. All rights reserved.
*/
#ifndef _SYS_SPA_H
*/
#ifndef _SYS_SPA_H
@@
-698,6
+699,13
@@
_NOTE(CONSTCOND) } while (0)
#define dprintf_bp(bp, fmt, ...)
#endif
#define dprintf_bp(bp, fmt, ...)
#endif
+extern boolean_t spa_debug_enabled(spa_t *spa);
+#define spa_dbgmsg(spa, ...) \
+{ \
+ if (spa_debug_enabled(spa)) \
+ zfs_dbgmsg(__VA_ARGS__); \
+}
+
extern int spa_mode_global; /* mode, e.g. FREAD | FWRITE */
#ifdef __cplusplus
extern int spa_mode_global; /* mode, e.g. FREAD | FWRITE */
#ifdef __cplusplus