lkml.org 
[lkml]   [2024]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] btrfs: zoned: always set aside a zone for relocation
Date
For zoned filesytsems we heavily rely on relocation for garbage collecting
as we cannot do any in-place updates of disk blocks.

But there can be situations where we're running out of space for doing the
relocation.

To solve this, always have a zone reserved for relocation.

This is a subset of another approach to this problem I've submitted in
https://lore.kernel.org/r/20240328-hans-v1-0-4cd558959407@kernel.org

---
Johannes Thumshirn (2):
btrfs: zoned: reserve relocation zone on mount
btrfs: reserve new relocation zone after successful relocation

fs/btrfs/disk-io.c | 2 ++
fs/btrfs/relocation.c | 4 ++++
fs/btrfs/zoned.c | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++
fs/btrfs/zoned.h | 3 +++
4 files changed, 69 insertions(+)
---
base-commit: d52875a6df98dc77933853e8427bd77f4598a9a7
change-id: 20240514-zoned-gc-2ce793459eb7

Best regards,
--
Johannes Thumshirn <jth@kernel.org>


\
 
 \ /
  Last update: 2024-05-27 18:26    [W:0.041 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site