diff options
author | Josef 'Jeff' Sipek <[email protected]> | 2015-03-12 11:03:31 +1100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-03-12 15:40:33 -0700 |
commit | 73ad4a9f3cfc2e830de45c2a8be2823d01ab07a6 (patch) | |
tree | d42358f809ad90e6ae07390e24916531573082b3 /module/zfs/dmu.c | |
parent | 7f3e4662832269b687ff20dafc6a33f8e1d28912 (diff) |
Illumos 5047 - don't use atomic_*_nv if you discard the return value
5047 don't use atomic_*_nv if you discard the return value
Author: Josef 'Jeff' Sipek <[email protected]>
Reviewed by: Garrett D'Amore <[email protected]>
Reviewed by: Jason King <[email protected]>
Reviewed by: Matthew Ahrens <[email protected]>
Approved by: Robert Mustacchi <[email protected]>
References:
https://www.illumos.org/issues/5047
https://github.com/illumos/illumos-gate/commit/640c167
Porting Notes:
Several hunks from the original patch where not specific to ZFS
and thus were dropped.
Ported-by: Chris Dunlop <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Richard Yao <[email protected]>
Issue #3172
Diffstat (limited to 'module/zfs/dmu.c')
-rw-r--r-- | module/zfs/dmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/dmu.c b/module/zfs/dmu.c index a158738a5..1501ae804 100644 --- a/module/zfs/dmu.c +++ b/module/zfs/dmu.c @@ -283,7 +283,7 @@ dmu_bonus_hold(objset_t *os, uint64_t object, void *tag, dmu_buf_t **dbp) /* as long as the bonus buf is held, the dnode will be held */ if (refcount_add(&db->db_holds, tag) == 1) { VERIFY(dnode_add_ref(dn, db)); - (void) atomic_inc_32_nv(&dn->dn_dbufs_count); + atomic_inc_32(&dn->dn_dbufs_count); } /* |