[f2fs-dev] [PATCH] f2fs: fix to avoid racing in between buffered read and OPU dio write

2024-05-07 Thread Chao Yu
If lfs mode is on, buffered read may race w/ OPU dio write as below, it may cause buffered read hits unwritten data unexpectly. Thread AThread B - f2fs_file_write_iter - f2fs_dio_write_iter - __iomap_dio_rw - f2fs_iomap_begin - f2fs_map_blocks - __allocate_da

[f2fs-dev] [PATCH] f2fs: allow dirty sections with zero valid block for checkpoint disabled

2024-05-07 Thread Daeho Jeong
From: Daeho Jeong Following the semantic for dirty segments in checkpoint disabled mode, apply the same rule to dirty sections. Signed-off-by: Daeho Jeong --- fs/f2fs/segment.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c inde

[f2fs-dev] [PATCH 2/2] dump.f2fs: Fix xattr dumping

2024-05-07 Thread Daniel Rosenberg via Linux-f2fs-devel
Xattrs for files with inline data were being skipped. This dumps those, as well as xattrs for folders. Signed-off-by: Daniel Rosenberg --- fsck/dump.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/fsck/dump.c b/fsck/dump.c index f60f6f9..3bd17e3 1

[f2fs-dev] [PATCH 1/2] dump.f2fs: Add ability to dump folders

2024-05-07 Thread Daniel Rosenberg via Linux-f2fs-devel
This adds the ability to dump folders as well as files. Folders are dumped recursively. Additionally, dumped files/folders may be directed to a folder specified by -o [path] instead of ./lost_found. The -r flag will dump the entire fs from the root inode. -f or -y will skip the prompt before dumpin