Remove some unused and broken code that attempted to not invoke locking
asserts on NULL vnode pointers. All the vnode assertion routines already check for NULL vnode pointers.
This commit is contained in:
parent
24139401dd
commit
6cfec3e161
@ -71,9 +71,6 @@ function add_debug_code(name, arg, pos, ind)
|
||||
else
|
||||
star = "";
|
||||
if (lockdata[name, arg, pos] && (lockdata[name, arg, pos] != "-")) {
|
||||
if (arg ~ /^\*/) {
|
||||
printc(ind"if ("substr(arg, 2)" != NULL) {");
|
||||
}
|
||||
printc(ind"ASSERT_VI_UNLOCKED("star"a->a_"arg", \""uname"\");");
|
||||
# Add assertions for locking
|
||||
if (lockdata[name, arg, pos] == "L")
|
||||
@ -85,9 +82,6 @@ function add_debug_code(name, arg, pos, ind)
|
||||
else if (0) {
|
||||
# XXX More checks!
|
||||
}
|
||||
if (arg ~ /^\*/) {
|
||||
printc("ind}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user