]> git.ipfire.org Git - thirdparty/linux.git/commit
ext2: guard reservation window dump with EXT2FS_DEBUG
authorMilos Nikic <nikic.milos@gmail.com>
Sat, 7 Feb 2026 02:29:20 +0000 (18:29 -0800)
committerJan Kara <jack@suse.cz>
Fri, 27 Feb 2026 11:16:07 +0000 (12:16 +0100)
commitad0e9663f0f5b0ed8e27d3690c5ac9de72243fba
treedbf263929dba8ee5d9521467ced2616d43a11726
parent0cf9c58bf654d0f27abe18005281dbf9890de401
ext2: guard reservation window dump with EXT2FS_DEBUG

The function __rsv_window_dump() is a heavyweight debug tool that walks
the reservation red-black tree. It is currently guarded by #if 1,
forcing it to be compiled into all kernels, even production ones.

Match the rest of the file by guarding it with #ifdef EXT2FS_DEBUG,
so it is only included when explicit debugging is enabled.

This removes the unused function code from standard builds.

Signed-off-by: Milos Nikic <nikic.milos@gmail.com>
Link: https://patch.msgid.link/20260207022920.258247-1-nikic.milos@gmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/balloc.c