Increment kobj_lookup_misses on a miss rather than decrementing it.
Otherwise, the miss count is actually -kobj_lookup_misses. Mostly a pedantic change as KOBJ_STATS isn't on by default.
This commit is contained in:
parent
54de74466a
commit
42b6a681bc
@ -237,7 +237,7 @@ kobj_lookup_method(kobj_class_t cls,
|
||||
* a 'miss'.
|
||||
*/
|
||||
kobj_lookup_hits--;
|
||||
kobj_lookup_misses--;
|
||||
kobj_lookup_misses++;
|
||||
#endif
|
||||
|
||||
ce = kobj_lookup_method_mi(cls, desc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user