Yeah, we will remove this later, keep it for now because it is very
convenient. I guess you refer the /proc/slab_allocations feature.
We found it less appropriate because it needs additional scripts to
be run to detect leaks, while this simple just hack makes UBIFS print
a message if there is a leak, which is just easier for us.
That was introduced to test the UBIFS shrinker, and to make sure
there are no races and everything works fine. Yes, will be removed
later.
Well, I do not see a big reason not to get rid of this harmless stuff.
Many kernel subsystems have their debugging, why not? Using BUG_ON() is
OK in few most important places. But we want to have more assertions
which are compiled-out by default, why can't we?. Similar is for prints.
Thanks for the feed-back.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
--