aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <[email protected]>2024-05-20 20:19:53 +0200
committerDavid Sterba <[email protected]>2024-07-11 15:33:19 +0200
commit5100c4eb527ebe175d3dbaeb0b8cc04f312183d7 (patch)
treef6a087a15450a355506c77768b6be0bb92cebd36
parentd2715d1db455e5e1099c48408aeae15551b67e02 (diff)
btrfs: remove unused define EXTENT_SIZE_PER_ITEM
This was added in c61a16a701a126 ("Btrfs: fix the confusion between delalloc bytes and metadata bytes") and removed in 03fe78cc2942c5 ("btrfs: use delalloc_bytes to determine flush amount for shrink_delalloc") where the calculation was reworked to use a non-constant numbers. This was found by 'make W=2'. Reviewed-by: Boris Burkov <[email protected]> Reviewed-by: Anand Jain <[email protected]> Reviewed-by: Naohiro Aota <[email protected]> Signed-off-by: David Sterba <[email protected]>
-rw-r--r--fs/btrfs/space-info.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/space-info.c b/fs/btrfs/space-info.c
index ae8c56442549..293eb009188e 100644
--- a/fs/btrfs/space-info.c
+++ b/fs/btrfs/space-info.c
@@ -605,8 +605,6 @@ static inline u64 calc_reclaim_items_nr(const struct btrfs_fs_info *fs_info,
return nr;
}
-#define EXTENT_SIZE_PER_ITEM SZ_256K
-
/*
* shrink metadata reservation for delalloc
*/