[PATCH 0/3] btrfs: reduce repeated calls to btrfs_need_stripe_tree_update()
From: Johannes Thumshirn
Date: Thu Dec 12 2024 - 07:54:58 EST
When working on RST backed RAID56 I was looking for a way to plumb the "use
RST or not" decision into the bio submission code and this way found that
we can cache the return of btrfs_need_raid_stripe_tree_update() in the
btrfs_io_context (and btrfs_io_stripe) so there's no need to do multiple
lookups for the same I/O.
Signed-off-by: Johannes Thumshirn <johannes.thjumshirn@xxxxxxx>
---
Johannes Thumshirn (3):
btrfs: cache stripe tree usage in io_geometry
btrfs: cache RAID stripe tree decission in btrfs_io_context
btrfs: pass btrfs_io_geometry to is_single_device_io
fs/btrfs/bio.c | 3 +--
fs/btrfs/volumes.c | 17 ++++++++++-------
fs/btrfs/volumes.h | 2 ++
3 files changed, 13 insertions(+), 9 deletions(-)
---
base-commit: f7e8118a1c33aff911c3ce414d3e832eaba6b36d
change-id: 20241212-btrfs_need_stripe_tree_update-cleanups-166f5e7e894c
Best regards,
--
Johannes Thumshirn <jth@xxxxxxxxxx>