linux/fs/netfs
Karl Mehltretter 62400ce406
netfs: Restore selective debug mask handling
The netfs debug macros test only whether netfs_debug is nonzero.
Consequently, selecting one debug point enables every entry, exit and
general debug message.

Documentation/filesystems/caching/fscache.rst and the NETFS_DEBUG
Kconfig help still describe /sys/module/netfs/parameters/debug as a
bitmask of per-stream function entry, exit and general debugging
points, and the fscache_*.c files still define FSCACHE_DEBUG_LEVEL,
but nothing has decoded either since the mask handling was dropped
when FS-Cache was folded into netfs.

Restore the per-level and per-point mask decoding.  Files that do not
define FSCACHE_DEBUG_LEVEL, which includes the netfs core, fall under
the cache management stream, the same default the FS-Cache macros had.

Fixes: 915cd30cde ("netfs, fscache: Combine fscache with netfs")
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Link: https://patch.msgid.link/20260905051738.11317-1-kmehltretter@gmail.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
2026-10-22 18:48:39 +02:00
..
buffered_read.c cachefiles: Don't rely on backing fs storage map for most use cases 2026-10-16 11:02:24 +02:00
buffered_write.c cachefiles: Don't rely on backing fs storage map for most use cases 2026-10-16 11:02:24 +02:00
direct_read.c netfs: Set subrequest->source at alloc before trace emission 2026-10-06 15:32:35 +02:00
direct_write.c netfs: Use uoff_t instead of unsigned long long and loff_t 2026-10-06 15:32:34 +02:00
fscache_cache.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
fscache_cookie.c netfs: Use uoff_t instead of unsigned long long and loff_t 2026-10-06 15:32:34 +02:00
fscache_io.c fscache, cachefiles: Fix resize handling 2026-10-16 11:02:26 +02:00
fscache_main.c fscache: delete fscache_cookie_lru_timer when fscache exits to avoid UAF 2024-09-01 10:30:25 +02:00
fscache_proc.c netfs: Fix proc/fs/fscache symlink to point to "netfs" not "../netfs" 2024-01-04 13:15:32 +00:00
fscache_stats.c netfs: Fix interaction between write-streaming and cachefiles culling 2024-01-05 15:42:25 +00:00
fscache_volume.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
internal.h netfs: Restore selective debug mask handling 2026-10-22 18:48:39 +02:00
iterator.c netfs: Use uoff_t instead of unsigned long long and loff_t 2026-10-06 15:32:34 +02:00
Kconfig netfs: Make deprecated PG_private_2 support opt-in 2026-10-06 15:32:35 +02:00
locking.c netfs: Replace wb_lock with a bit lock for asynchronicity 2026-07-01 15:26:29 +02:00
main.c netfs: Remove the writethrough code 2026-10-06 15:32:34 +02:00
Makefile netfs: Make deprecated PG_private_2 support opt-in 2026-10-06 15:32:35 +02:00
misc.c netfs: Add some functions to wrap the all-queued handling 2026-10-06 15:32:35 +02:00
objects.c cachefiles: Don't rely on backing fs storage map for most use cases 2026-10-16 11:02:24 +02:00
read_collect.c netfs: Add some functions to wrap the all-queued handling 2026-10-06 15:32:35 +02:00
read_pgpriv2.c netfs: Add some functions to wrap the all-queued handling 2026-10-06 15:32:35 +02:00
read_retry.c cachefiles: Don't rely on backing fs storage map for most use cases 2026-10-16 11:02:24 +02:00
read_single.c cachefiles: Don't rely on backing fs storage map for most use cases 2026-10-16 11:02:24 +02:00
rolling_buffer.c netfs: Fix missing alloc tagging of direct mempool allocations 2026-09-25 17:30:39 +02:00
stats.c netfs: Remove the writethrough code 2026-10-06 15:32:34 +02:00
write_collect.c cachefiles: Don't rely on backing fs storage map for most use cases 2026-10-16 11:02:24 +02:00
write_issue.c cachefiles: Fix unset error when calling netfs_prepare_write_failed() 2026-10-16 11:02:25 +02:00
write_retry.c cachefiles: Don't rely on backing fs storage map for most use cases 2026-10-16 11:02:24 +02:00