]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
btrfs: remove unused define EXTENT_SIZE_PER_ITEM
authorDavid Sterba <dsterba@suse.com>
Mon, 20 May 2024 18:19:53 +0000 (20:19 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:19 +0000 (15:33 +0200)
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 <boris@bur.io>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/space-info.c

index ae8c56442549c737da754778f1c1866a8f8ddd07..293eb009188e5050343cfa76ce742ddbb9ac2be3 100644 (file)
@@ -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
  */