From 8d177c181fb21c7cedd41e27aec2072ef2aed42e Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 11 Oct 2011 10:03:29 -0700 Subject: [PATCH] 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 --- module/spl/spl-kmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/spl/spl-kmem.c b/module/spl/spl-kmem.c index a916f7e..112b0e3 100644 --- a/module/spl/spl-kmem.c +++ b/module/spl/spl-kmem.c @@ -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++) { -- 2.40.0