]> granicus.if.org Git - spl/commitdiff
Fixed typo in spl_slab_alloc()
authorGunnar Beutner <gunnar@beutner.name>
Tue, 11 Oct 2011 17:03:29 +0000 (10:03 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 11 Oct 2011 17:03:43 +0000 (10:03 -0700)
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>
module/spl/spl-kmem.c

index a916f7ef0075735a25d7ebd5ae39a0eca893fbb2..112b0e31866d46a44a49a079af2cc7df03d95401 100644 (file)
@@ -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++) {