]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: add mount option for ref_tracker
authorLeo Martins <loemra.dev@gmail.com>
Tue, 12 Aug 2025 23:04:41 +0000 (16:04 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Sep 2025 08:54:32 +0000 (10:54 +0200)
commit46d33a0cc484ceb11aa47166e66d349ab3074eef
tree7be69aa3d579c3a8782110bff4b7ecc32549af8f
parentb767a28d6154986929a2231d48b637b18b2aabb3
btrfs: add mount option for ref_tracker

The ref_tracker infrastructure aids debugging but is not enabled by
default as it has a performance impact. Add mount option 'ref_tracker'
so it can be selectively enabled on a filesystem. Currently it track
references of 'delayed inodes'.

Signed-off-by: Leo Martins <loemra.dev@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delayed-inode.h
fs/btrfs/fs.h
fs/btrfs/super.c