diff mbox series

[1/1] fixup: btrfs: add read count tracking for filesystem stats

Message ID abf8061ae205c71936f60a22fab66503371be3bf.1735834884.git.anand.jain@oracle.com (mailing list archive)
State New
Headers show
Series [1/1] fixup: btrfs: add read count tracking for filesystem stats | expand

Commit Message

Anand Jain Jan. 2, 2025, 4:37 p.m. UTC
fs_devices::fs_stats is disabled by default during allocation. Explicitly
disabling it in open_ctree() overrides this setting during device open.
So we dont' have to disable it in the open_ctree().

This patch should be merged with in the ML.
  btrfs: add read count tracking for filesystem stats

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
 fs/btrfs/disk-io.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 79b859790e8c..ab45b02df957 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -3481,9 +3481,6 @@  int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device
 		goto fail_sysfs;
 	}
 
-	/* Disable filesystem stats tracking unless required by a feature. */
-	fs_devices->fs_stats = false;
-
 	ret = btrfs_read_block_groups(fs_info);
 	if (ret) {
 		btrfs_err(fs_info, "failed to read block groups: %d", ret);