From: Josef Bacik Date: Wed, 14 Sep 2022 15:06:26 +0000 (-0400) Subject: btrfs: remove unused BTRFS_TOTAL_BYTES_PINNED_BATCH X-Git-Tag: v6.2-rc1~143^2~241 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea206640a600c808d30d8d62c44b6982c12a143b;p=thirdparty%2Flinux.git btrfs: remove unused BTRFS_TOTAL_BYTES_PINNED_BATCH This hasn't been used since 138a12d86574 ("btrfs: rip out btrfs_space_info::total_bytes_pinned") so it is safe to remove. Reviewed-by: Qu Wenruo Reviewed-by: Johannes Thumshirn Signed-off-by: Josef Bacik Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 3be1db2c558f0..8bd49328efab6 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -92,14 +92,6 @@ struct reloc_control; #define BTRFS_DIRTY_METADATA_THRESH SZ_32M -/* - * Use large batch size to reduce overhead of metadata updates. On the reader - * side, we only read it when we are close to ENOSPC and the read overhead is - * mostly related to the number of CPUs, so it is OK to use arbitrary large - * value here. - */ -#define BTRFS_TOTAL_BYTES_PINNED_BATCH SZ_128M - #define BTRFS_MAX_EXTENT_SIZE SZ_128M /*