[f2fs-dev] [PATCH] f2fs: modify f2fs_is_checkpoint_ready logic to allow more data to be written with the CP disable

2024-10-09 Thread Qi Han via Linux-f2fs-devel
When the free segment is used up during CP disable, many write or ioctl operations will get ENOSPC error codes, even if there are still many blocks available. We can reproduce it in the following steps: dd if=/dev/zero of=f2fs.img bs=1M count=55 mkfs.f2fs -f f2fs.img mount f2fs.img f2fs_dir -o che

Re: [f2fs-dev] [PATCH] f2fs-tools:provide a more reasonable ovp rate for manually setting rsvd

2024-10-09 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/24 17:56, Liao Yuanhong wrote: The f2fs-tools support manual configuration of rsvd and ovp rate. In cases where only a small rsvd is set, the automatically calculated ovp rate can be very large, resulting in the reserved space of the entire file system being almost the same as before, f

Re: [f2fs-dev] Plans for F2FS Supporting Large Folios

2024-10-09 Thread Ryan Roberts
On 07/10/2024 17:38, Jaegeuk Kim wrote: > Hi Ryan, > > On 10/02, Ryan Roberts wrote: >> Hi Jaegeuk Kim, Chao Yu, >> >> I heard (via Matthew Wilcox) that you may be in the process of forming plans >> to >> add large folio support to f2fs? If so, I wonder if you could let me know how >> those plans

Re: [f2fs-dev] (2) [PATCH] libf2fs: Fix calculation of usable segments for single zoned

2024-10-09 Thread Yonggil Song
> On 2024/10/7 13:21, Yonggil Song wrote: > > There was a bug that did not subtract the super block area when calculating > > the usable segments for a single zoned device with a conventional zone. > > This bug resulted in incorrect the overprovision and reserved area. > > > > <256MiB legacy b

Re: [f2fs-dev] (3) [PATCH] libf2fs: Fix calculation of usable segments for single zoned

2024-10-09 Thread Yonggil Song
> > On 2024/10/7 13:21, Yonggil Song wrote: > > > There was a bug that did not subtract the super block area when > > > calculating > > > the usable segments for a single zoned device with a conventional zone. > > > This bug resulted in incorrect the overprovision and reserved area. > > > > > >

[f2fs-dev] [PATCH] f2fs: allow parallel DIO reads

2024-10-09 Thread Jaegeuk Kim via Linux-f2fs-devel
This fixes a regression which prevents parallel DIO reads. Fixes: 0cac51185e65 ("f2fs: fix to avoid racing in between read and OPU dio write") Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c inde

[f2fs-dev] [PATCH v2] libf2fs: Fix calculation of usable segments for single

2024-10-09 Thread Yonggil Song
There was a problem that did not subtract the super block area when calculating the usable segments for a single zoned device with a conventional zone. This resulted in incorrect the overprovision and reserved area. <256MiB legacy block + zoned block w/ 32MiB zone size> Info: Overp

[f2fs-dev] [RESEND][PATCH v2] libf2fs: Fix calculation of usable segments for single zoned device

2024-10-09 Thread Yonggil Song
There was a problem that did not subtract the super block area when calculating the usable segments for a single zoned device with a conventional zone. This resulted in incorrect the overprovision and reserved area. <256MiB legacy block + zoned block w/ 32MiB zone size> Info: Overp