Skip to content

Rework eviction space flushing

Josef Bacik linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5btrfs: add a flush step for delayed iputsfs/btrfs/ctree.h fs/btrfs/space-info.c include/trace/events/btrfs.h+6 -30 replies
2/5btrfs: unify error handling for ticket flushingfs/btrfs/space-info.c+11 -210 replies
3/5btrfs: factor out the ticket flush handlingfs/btrfs/space-info.c+42 -220 replies
4/5btrfs: refactor priority_reclaim_metadata_spacefs/btrfs/space-info.c+11 -61 reply
5/5btrfs: introduce an evict flushing statefs/btrfs/ctree.h fs/btrfs/inode.c fs/btrfs/space-info.c+62 -470 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Rework eviction space flushing

This is a set of patches to address how we do space flushing for inode evictions. Historically we've only been allowed to do a few things to reclaim space for inode evictions, mostly because we'd deadlock with iput. But we have delayed iputs in place to make sure we're always doing iput where it's completely safe to do an iput.

However we do run iputs for flushing, so we can't just do FLUSH_ALL, otherwise we could deadlock. Also we still want to prioritize evictions for space reclamation because we likely will free up space for other people to make reservations.

The first 4 patches are preparation patches, just refactoring so we can add this new flushing time for eviction. This allows us to clean up our current ad-hoc loop we have for reclaiming space for evictions and use the common helpers that everybody else uses. Thanks,

Josef