Re: [f2fs-dev] [PATCH] f2fs: Reduce zoned block device memory usage

2019-03-05 Thread Jaegeuk Kim
On 03/04, Damien Le Moal wrote: > For zoned block devices, an array of zone types for each device is > allocated and initialized in order to determine if a section is stored > on a sequential zone (zone reset needed) or a conventional zone (no > zone reset needed and regular discard applies). Consi

Re: [f2fs-dev] [PATCH] f2fs: Reduce zoned block device memory usage

2019-03-05 Thread Damien Le Moal
On 2019/03/06 1:55, Jaegeuk Kim wrote: > On 03/05, Damien Le Moal wrote: >> Johannes, >> >> On 2019/03/04 18:46, Johannes Thumshirn wrote: >>> Hi Damien, >>> >>> On 04/03/2019 08:04, Damien Le Moal wrote: @@ -2765,9 +2765,11 @@ static int init_blkz_info(struct f2fs_sb_info *sbi, int devi

Re: [f2fs-dev] [PATCH] f2fs: Reduce zoned block device memory usage

2019-03-05 Thread Jaegeuk Kim
On 03/05, Damien Le Moal wrote: > Johannes, > > On 2019/03/04 18:46, Johannes Thumshirn wrote: > > Hi Damien, > > > > On 04/03/2019 08:04, Damien Le Moal wrote: > >> @@ -2765,9 +2765,11 @@ static int init_blkz_info(struct f2fs_sb_info *sbi, > >> int devi) > >>if (nr_sectors & (bdev_zone_sect

Re: [f2fs-dev] [PATCH] f2fs: Reduce zoned block device memory usage

2019-03-04 Thread Damien Le Moal
Johannes, On 2019/03/04 18:46, Johannes Thumshirn wrote: > Hi Damien, > > On 04/03/2019 08:04, Damien Le Moal wrote: >> @@ -2765,9 +2765,11 @@ static int init_blkz_info(struct f2fs_sb_info *sbi, >> int devi) >> if (nr_sectors & (bdev_zone_sectors(bdev) - 1)) >> FDEV(devi).nr_bl

Re: [f2fs-dev] [PATCH] f2fs: Reduce zoned block device memory usage

2019-03-04 Thread Johannes Thumshirn
Hi Damien, On 04/03/2019 08:04, Damien Le Moal wrote: > @@ -2765,9 +2765,11 @@ static int init_blkz_info(struct f2fs_sb_info *sbi, > int devi) > if (nr_sectors & (bdev_zone_sectors(bdev) - 1)) > FDEV(devi).nr_blkz++; > > - FDEV(devi).blkz_type = f2fs_kmalloc(sbi, FDEV(de

Re: [f2fs-dev] [PATCH] f2fs: Reduce zoned block device memory usage

2018-02-27 Thread Christoph Hellwig
On Tue, Feb 20, 2018 at 03:06:10PM +0900, Damien Le Moal wrote: > For a zoned block device mount, an array of zone types for the device is > allocated and initialized in order to determine if a section is stored > on a sequential zone (zone reset needed) or a conventional zone (no zone > reset need

Re: [f2fs-dev] [PATCH] f2fs: Reduce zoned block device memory usage

2018-02-27 Thread Damien Le Moal
Christoph, On 2/21/18 11:39, Christoph Hellwig wrote: > On Tue, Feb 20, 2018 at 03:06:10PM +0900, Damien Le Moal wrote: >> For a zoned block device mount, an array of zone types for the device is >> allocated and initialized in order to determine if a section is stored >> on a sequential zone (zon

Re: [f2fs-dev] [PATCH] f2fs: Reduce zoned block device memory usage

2018-02-27 Thread Damien Le Moal
Christoph, On 2/21/18 11:48, Damien Le Moal wrote: > Christoph, > > On 2/21/18 11:39, Christoph Hellwig wrote: >> On Tue, Feb 20, 2018 at 03:06:10PM +0900, Damien Le Moal wrote: >>> For a zoned block device mount, an array of zone types for the device is >>> allocated and initialized in order to