diff options
author | Gunnar Beutner <[email protected]> | 2011-10-11 10:03:29 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-10-11 10:03:43 -0700 |
commit | 8d177c181fb21c7cedd41e27aec2072ef2aed42e (patch) | |
tree | 5cd0b398da3f1836ea881f0e088a0cc02885a0b3 /module/spl | |
parent | 64c075c3f4381df02d206008b94498248cc49324 (diff) |
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 <[email protected]>
Diffstat (limited to 'module/spl')
-rw-r--r-- | module/spl/spl-kmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/spl/spl-kmem.c b/module/spl/spl-kmem.c index a916f7ef0..112b0e318 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++) { |