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:
Gunnar Beutner 2011-10-11 10:03:29 -07:00 committed by Brian Behlendorf
parent 64c075c3f4
commit 8d177c181f

View 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++) {