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
Illumos #3006
[zfs.git]
/
module
/
zfs
/
zfs_rlock.c
diff --git
a/module/zfs/zfs_rlock.c
b/module/zfs/zfs_rlock.c
index
325d5aa
..
136972b
100644
(file)
--- a/
module/zfs/zfs_rlock.c
+++ b/
module/zfs/zfs_rlock.c
@@
-22,6
+22,9
@@
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2012 by Delphix. All rights reserved.
+ */
/*
* This file contains the code to implement file range locking in
/*
* This file contains the code to implement file range locking in
@@
-495,9
+498,9
@@
zfs_range_unlock_reader(znode_t *zp, rl_t *remove, list_t *free_list)
list_insert_tail(free_list, remove);
} else {
list_insert_tail(free_list, remove);
} else {
- ASSERT
3U(remove->r_cnt, ==, 0
);
- ASSERT
3U(remove->r_write_wanted, ==, 0
);
- ASSERT
3U(remove->r_read_wanted, ==, 0
);
+ ASSERT
0(remove->r_cnt
);
+ ASSERT
0(remove->r_write_wanted
);
+ ASSERT
0(remove->r_read_wanted
);
/*
* Find start proxy representing this reader lock,
* then decrement ref count on all proxies
/*
* Find start proxy representing this reader lock,
* then decrement ref count on all proxies