mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Fixed typo in spl_slab_alloc()
The typo did not have any effect (apart from a negligible performance impact) because skc->skc_flags * KMC_OFFSLAB is always non-null when at least one bit in skc->skc_flags is set. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
64c075c3f4
commit
8d177c181f
@ -979,7 +979,7 @@ spl_slab_alloc(spl_kmem_cache_t *skc, int flags)
|
||||
sks->sks_ref = 0;
|
||||
obj_size = spl_obj_size(skc);
|
||||
|
||||
if (skc->skc_flags * KMC_OFFSLAB)
|
||||
if (skc->skc_flags & KMC_OFFSLAB)
|
||||
offslab_size = spl_offslab_size(skc);
|
||||
|
||||
for (i = 0; i < sks->sks_objs; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user