[f2fs-dev] [PATCH v2] f2fs_io: add fdatasync

2024-09-28 Thread LongPing Wei via Linux-f2fs-devel
Signed-off-by: LongPing Wei --- v2: update manual of f2fs_io --- man/f2fs_io.8 | 6 ++ tools/f2fs_io/f2fs_io.c | 25 + 2 files changed, 31 insertions(+) diff --git a/man/f2fs_io.8 b/man/f2fs_io.8 index b9c9dc8..124d662 100644 --- a/man/f2fs_io.8 +++ b/man/f

Re: [f2fs-dev] [PATCH] f2fs: compress: fix inconsistent update of i_blocks in release_compress_blocks and reserve_compress_blocks

2024-09-28 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/29 10:43, Qi Han wrote: After release a file and subsequently reserve it, the FSCK flag is set when the file is deleted, as shown in the following backtrace: F2FS-fs (dm-48): Inconsistent i_blocks, ino:401231, iblocks:1448, sectors:1472 fs_rec_info_write_type+0x58/0x274 f2fs_rec_info_w

Re: [f2fs-dev] [PATCH] f2fs_io: add fdatasync

2024-09-28 Thread Chao Yu via Linux-f2fs-devel
Hi, Longping, Missed to update manual of f2fs_io? On 2024/9/27 10:52, LongPing Wei wrote: Signed-off-by: LongPing Wei --- tools/f2fs_io/f2fs_io.c | 25 + 1 file changed, 25 insertions(+) diff --git a/tools/f2fs_io/f2fs_io.c b/tools/f2fs_io/f2fs_io.c index 94f0adf..8

[f2fs-dev] [PATCH] f2fs: compress: fix inconsistent update of i_blocks in release_compress_blocks and reserve_compress_blocks

2024-09-28 Thread Qi Han via Linux-f2fs-devel
After release a file and subsequently reserve it, the FSCK flag is set when the file is deleted, as shown in the following backtrace: F2FS-fs (dm-48): Inconsistent i_blocks, ino:401231, iblocks:1448, sectors:1472 fs_rec_info_write_type+0x58/0x274 f2fs_rec_info_write+0x1c/0x2c set_sbi_flag+0x74/0x9