Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs Reduce diff from ...
details: https://anonhg.NetBSD.org/src/rev/0ca038bf4e84
branches: trunk
changeset: 807458:0ca038bf4e84
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Apr 11 02:33:16 2015 +0000
description:
Reduce diff from upstream a little.
diffstat:
external/cddl/osnet/dist/uts/common/fs/zfs/zfs_rlock.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (17 lines):
diff -r f39bb713d752 -r 0ca038bf4e84 external/cddl/osnet/dist/uts/common/fs/zfs/zfs_rlock.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_rlock.c Sat Apr 11 01:49:00 2015 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_rlock.c Sat Apr 11 02:33:16 2015 +0000
@@ -490,11 +490,10 @@
/*
* First check for the usual case of no locks
*/
- if (avl_numnodes(&zp->z_range_avl) == 0) {
+ if (avl_numnodes(&zp->z_range_avl) == 0)
avl_add(&zp->z_range_avl, new);
- } else {
+ else
zfs_range_lock_reader(zp, new);
- }
} else {
zfs_range_lock_writer(zp, new); /* RL_WRITER or RL_APPEND */
}
Home |
Main Index |
Thread Index |
Old Index