]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: mballoc: make mb_debug() implementation to use pr_debug()
authorRitesh Harjani <riteshh@linux.ibm.com>
Sun, 10 May 2020 06:24:54 +0000 (11:54 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 Jun 2020 03:16:52 +0000 (23:16 -0400)
commit7c2a58a525ec375ac864db93ba52d253d4e77a49
treecd486d8d0a721d17a85abcb467f51f5088b41642
parent5cfddd7cf6be385197ccce36f6f612ee9dc03151
ext4: mballoc: make mb_debug() implementation to use pr_debug()

mb_debug() msg had only 1 control level for all type of msgs.
And if we enable mballoc_debug then all of those msgs would be enabled.
Instead of adding multiple debug levels for mb_debug() msgs, use
pr_debug() with which we could have finer control to print msgs at all
of different levels (i.e. at file, func, line no.).

Also add process name/pid, superblk id, and other info in mb_debug()
msg. This also kills the mballoc_debug module parameter, since it is
not needed any more.

Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
Link: https://lore.kernel.org/r/f0c660cbde9e2edbe95c67942ca9ad80dd2231eb.1589086800.git.riteshh@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/Kconfig
fs/ext4/mballoc.c
fs/ext4/mballoc.h