Re: [PATCH v2 2/2] btrfs: zoned: automatically reclaim zones

2021-04-07 Thread Johannes Thumshirn
On 19/03/2021 18:59, Josef Bacik wrote: >> diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c >> index f9250f14fc1e..d4fccf113df1 100644 >> --- a/fs/btrfs/disk-io.c >> +++ b/fs/btrfs/disk-io.c >> @@ -1815,6 +1815,13 @@ static int cleaner_kthread(void *arg) >> * unused block groups.

Re: [PATCH v2 2/2] btrfs: zoned: automatically reclaim zones

2021-04-07 Thread Johannes Thumshirn
On 23/03/2021 07:45, Anand Jain wrote: > > On 19/03/2021 18:48, Johannes Thumshirn wrote: >> When a file gets deleted on a zoned file system, the space freed is not >> returned back into the block group's free space, but is migrated to >> zone_unusable. >> >> As this zone_unusable space is behind

Re: [PATCH v2 2/2] btrfs: zoned: automatically reclaim zones

2021-03-25 Thread Johannes Thumshirn
On 23/03/2021 11:22, Johannes Thumshirn wrote: > On 23/03/2021 10:57, Filipe Manana wrote: >> On Fri, Mar 19, 2021 at 10:52 AM Johannes Thumshirn >> wrote: >>> >>> When a file gets deleted on a zoned file system, the space freed is not >>> returned back into the block group's free space, but is mi

Re: [PATCH v2 2/2] btrfs: zoned: automatically reclaim zones

2021-03-23 Thread Johannes Thumshirn
On 23/03/2021 10:57, Filipe Manana wrote: > On Fri, Mar 19, 2021 at 10:52 AM Johannes Thumshirn > wrote: >> >> When a file gets deleted on a zoned file system, the space freed is not >> returned back into the block group's free space, but is migrated to >> zone_unusable. >> >> As this zone_unusabl

Re: [PATCH v2 2/2] btrfs: zoned: automatically reclaim zones

2021-03-23 Thread Filipe Manana
On Fri, Mar 19, 2021 at 10:52 AM Johannes Thumshirn wrote: > > When a file gets deleted on a zoned file system, the space freed is not > returned back into the block group's free space, but is migrated to > zone_unusable. > > As this zone_unusable space is behind the current write pointer it is no

Re: [PATCH v2 2/2] btrfs: zoned: automatically reclaim zones

2021-03-23 Thread Naohiro Aota
On Fri, Mar 19, 2021 at 01:59:02PM -0400, Josef Bacik wrote: > On 3/19/21 6:48 AM, Johannes Thumshirn wrote: > > When a file gets deleted on a zoned file system, the space freed is not > > returned back into the block group's free space, but is migrated to > > zone_unusable. > > > > As this zone_u

Re: [PATCH v2 2/2] btrfs: zoned: automatically reclaim zones

2021-03-22 Thread Anand Jain
On 19/03/2021 18:48, Johannes Thumshirn wrote: When a file gets deleted on a zoned file system, the space freed is not returned back into the block group's free space, but is migrated to zone_unusable. As this zone_unusable space is behind the current write pointer it is not possible to use it

Re: [PATCH v2 2/2] btrfs: zoned: automatically reclaim zones

2021-03-19 Thread Josef Bacik
On 3/19/21 6:48 AM, Johannes Thumshirn wrote: When a file gets deleted on a zoned file system, the space freed is not returned back into the block group's free space, but is migrated to zone_unusable. As this zone_unusable space is behind the current write pointer it is not possible to use it fo