Re: [f2fs-dev] [PATCH v2 1/8] f2fs: convert f2fs_write_begin() to use folio

2024-08-21 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/20 14:58, Chao Yu wrote: On 2024/8/20 12:38, Li Zetao wrote: I want to apply your patch set for testing, but there is a conflict on the master branch of linux-next. Maybe it depends on a certain pre-patch. Please let me know, thank you.    Applying: f2fs: convert f2fs_write_begin()

Re: [f2fs-dev] [PATCH v2 2/4] f2fs: atomic: fix to not allow GC to pollute atomic_file

2024-09-01 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/20 10:44, Sunmin Jeong wrote: Hello Chao Yu, SQLite App GC Thread Shrinker - f2fs_ioc_start_atomic_write - f2fs_ioc_commit_atomic_write - f2fs_commit_atomic_write - filemap_write_and_wait_range : write atomic_file's data to cow_inode

Re: [f2fs-dev] [PATCH v2 2/4] f2fs: atomic: fix to not allow GC to pollute atomic_file

2024-09-01 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/28 23:27, Jaegeuk Kim wrote: On 08/14, Chao Yu wrote: SQLite App GC Thread Shrinker - f2fs_ioc_start_atomic_write - f2fs_ioc_commit_atomic_write - f2fs_commit_atomic_write - filemap_write_and_wait_range : write atomic_file's data to cow_inode

Re: [f2fs-dev] [RFC PATCH] f2fs: don't set SBI_QUOTA_NEED_REPAIR flag if receive SIGKILL

2024-09-02 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/27 14:22, wangzijie wrote: Thread A -dquot_initialize -dqget -f2fs_dquot_acquire -v2_read_dquot -qtree_read_dquot -find_tree_dqentry -f2fs_quota_read -read_cache_page_gfp -do_read_cache_folio -fiemap_read_folio -folio_wait

Re: [f2fs-dev] [PATCH v2] f2fs: Do not check the FI_DIRTY_INODE flag when umounting a ro fs.

2024-09-02 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/29 0:54, Julian Sun wrote: Hi, all. Recently syzbot reported a bug as following: kernel BUG at fs/f2fs/inode.c:896! CPU: 1 UID: 0 PID: 5217 Comm: syz-executor605 Not tainted 6.11.0-rc4-syzkaller-00033-g872cf28b8df9 #0 RIP: 0010:f2fs_evict_inode+0x1598/0x15c0 fs/f2fs/inode.c:896 Call

Re: [f2fs-dev] [PATCH] f2fs: prevent atomic file from being dirtied before commit

2024-09-02 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/27 4:23, Daeho Jeong wrote: From: Daeho Jeong Keep atomic file clean while updating and make it dirtied during commit in order to avoid unnecessary and excessive inode updates in the previous fix. Fixes: 4bf78322346f ("f2fs: mark inode dirty for FI_ATOMIC_COMMITTED flag") Signed-off-

[f2fs-dev] [PATCH] f2fs/003: add missing _fixed_by_kernel_commit line

2024-09-02 Thread Chao Yu via Linux-f2fs-devel
The bug related to this regression testcase has been fixed by commit b40a2b003709 ("f2fs: use meta inode for GC of atomic file"), let's add missing _fixed_by_kernel_commit line for this testcase. Cc: Jaegeuk Kim Cc: Daeho Jeong Signed-off-by: Chao Yu --- tests/f2fs/003 | 3 +++ 1 file changed,

Re: [f2fs-dev] [PATCH v2] f2fs: Do not check the FI_DIRTY_INODE flag when umounting a ro fs.

2024-09-03 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/2 21:01, Julian Sun wrote: On Mon, 2024-09-02 at 16:13 +0800, Chao Yu wrote: On 2024/8/29 0:54, Julian Sun wrote: Hi, all. Recently syzbot reported a bug as following: kernel BUG at fs/f2fs/inode.c:896! CPU: 1 UID: 0 PID: 5217 Comm: syz-executor605 Not tainted 6.11.0-rc4-syzkaller-0

Re: [f2fs-dev] [syzbot] [f2fs?] kernel BUG in f2fs_evict_inode (3)

2024-09-03 Thread Chao Yu via Linux-f2fs-devel
#syz test git://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git wip On 2024/8/22 23:38, syzbot wrote: syzbot has found a reproducer for the following issue on: HEAD commit:872cf28b8df9 Merge tag 'platform-drivers-x86-v6.11-4' of g.. git tree: upstream console+strace: https://sy

Re: [f2fs-dev] [PATCH] f2fs: prevent atomic file from being dirtied before commit

2024-09-03 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/4 1:07, Daeho Jeong wrote: On Mon, Sep 2, 2024 at 3:08 AM Chao Yu wrote: On 2024/8/27 4:23, Daeho Jeong wrote: From: Daeho Jeong Keep atomic file clean while updating and make it dirtied during commit in order to avoid unnecessary and excessive inode updates in the previous fix.

[f2fs-dev] [PATCH 1/2] fsck.f2fs: fix to detect double '.' or '..'

2024-09-03 Thread Chao Yu via Linux-f2fs-devel
If there are double '.' or '..' dirents in directory, fsck.f2fs won't detect and repaire the issue correctly, fix it. Reviewed-by: Sheng Yong Signed-off-by: Chao Yu --- fsck/fsck.c | 55 +++ fsck/fsck.h | 3 ++- include/f2fs_fs.h | 6 +++

[f2fs-dev] [PATCH 2/2] fsck.f2fs: support to add missing '.' or '..' dirent

2024-09-03 Thread Chao Yu via Linux-f2fs-devel
Previously, once fsck.f2fs detects that directory missed '.' or '..' dirent, it tags inode w/ F2FS_INLINE_DOTS flag, and expects f2fs kernel module can repaire it online during it runs to lookup() on target directory. This patch abandons previous implementation, and do repaires directly. Reviewed

[f2fs-dev] [PATCH] f2fs: fix to check atomic_file in f2fs ioctl interfaces

2024-09-03 Thread Chao Yu via Linux-f2fs-devel
Some f2fs ioctl interfaces like f2fs_ioc_set_pin_file(), f2fs_move_file_range(), and f2fs_defragment_range() missed to check atomic_write status, which may cause potential race issue, fix it. Cc: sta...@vger.kernel.org Signed-off-by: Chao Yu --- fs/f2fs/file.c | 13 - 1 file changed,

Re: [f2fs-dev] [PATCH] f2fs: prevent atomic file from being dirtied before commit

2024-09-03 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/4 10:52, Daeho Jeong wrote: On Tue, Sep 3, 2024 at 7:26 PM Chao Yu wrote: On 2024/9/4 1:07, Daeho Jeong wrote: On Mon, Sep 2, 2024 at 3:08 AM Chao Yu wrote: On 2024/8/27 4:23, Daeho Jeong wrote: From: Daeho Jeong Keep atomic file clean while updating and make it dirtied during

Re: [f2fs-dev] [RFC PATCH] f2fs: don't set SBI_QUOTA_NEED_REPAIR flag if receive SIGKILL

2024-09-03 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/3 14:06, wangzijie wrote: From: Chao Yu via Linux-f2fs-devel On 2024/8/27 14:22, wangzijie wrote: Thread A -dquot_initialize   -dqget    -f2fs_dquot_acquire     -v2_read_dquot -qtree_read_dquot   -find_tree_dqentry    -f2fs_quota_read     -read_cache_page_gfp

Re: [f2fs-dev] [PATCH v2] f2fs: Do not check the FI_DIRTY_INODE flag when umounting a ro fs.

2024-09-04 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/4 5:20, Jaegeuk Kim wrote: On 09/03, Chao Yu wrote: On 2024/9/2 21:01, Julian Sun wrote: On Mon, 2024-09-02 at 16:13 +0800, Chao Yu wrote: On 2024/8/29 0:54, Julian Sun wrote: Hi, all. Recently syzbot reported a bug as following: kernel BUG at fs/f2fs/inode.c:896! CPU: 1 UID: 0 PI

Re: [f2fs-dev] [PATCH] f2fs: prevent atomic file from being dirtied before commit

2024-09-04 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/4 22:56, Daeho Jeong wrote: On Tue, Sep 3, 2024 at 8:35 PM Chao Yu wrote: On 2024/9/4 10:52, Daeho Jeong wrote: On Tue, Sep 3, 2024 at 7:26 PM Chao Yu wrote: On 2024/9/4 1:07, Daeho Jeong wrote: On Mon, Sep 2, 2024 at 3:08 AM Chao Yu wrote: On 2024/8/27 4:23, Daeho Jeong wrot

Re: [f2fs-dev] [PATCH] mkfs.f2fs: use correct endian conversion for writing lpf inode

2024-09-04 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/4 1:31, Daeho Jeong wrote: From: Daeho Jeong The conversion between cpu and little endian is incorrect. Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net

Re: [f2fs-dev] [syzbot] [f2fs?] WARNING: lock held when returning

2024-09-04 Thread Chao Yu via Linux-f2fs-devel
#syz invalid Becuase commit "f2fs: atomic: fix to not allow GC to pollute atomic_file" has been dropped. On 2024/8/17 8:27, syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:9e6869691724 Add linux-next specific files for 20240812 git tree: linux-next console outp

Re: [f2fs-dev] [syzbot] [f2fs?] WARNING: lock held when returning to user space in f2fs_ioc_start_atomic_write

2024-09-04 Thread Chao Yu via Linux-f2fs-devel
#syz fix: f2fs: atomic: fix to forbid dio in atomic_file On 2024/8/14 19:51, syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:9e6869691724 Add linux-next specific files for 20240812 git tree: linux-next console+strace: https://syzkaller.appspot.com/x/log.txt?x=14

Re: [f2fs-dev] [syzbot] [f2fs?] WARNING: lock held when returning to user space in f2fs_commit_atomic_write

2024-09-04 Thread Chao Yu via Linux-f2fs-devel
#syz invalid Becuase commit "f2fs: atomic: fix to not allow GC to pollute atomic_file" has been dropped from linux-next git repo. On 2024/8/14 4:49, syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:9e6869691724 Add linux-next specific files for 20240812 git tree:

Re: [f2fs-dev] [syzbot] [f2fs?] possible deadlock in f2fs_release_file (2)

2024-09-04 Thread Chao Yu via Linux-f2fs-devel
#syz invalid Becuase commit "f2fs: atomic: fix to not allow GC to pollute atomic_file" has been dropped from linux-next git repo. On 2024/8/16 17:16, syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:9e6869691724 Add linux-next specific files for 20240812 git tree:

Re: [f2fs-dev] [PATCH v2] f2fs-tools: add write hint support

2024-09-04 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/4 9:12, Daejun Park wrote: This patch enables support for write hints by segment type. Signed-off-by: Daejun Park Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourc

Re: [f2fs-dev] [PATCH v2] f2fs: avoid unused block when dio write in LFS mode

2024-09-04 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/5 13:24, Daejun Park wrote: This patch addresses the problem that when using LFS mode, unused blocks may occur in f2fs_map_blocks() during block allocation for dio writes. If a new section is allocated during block allocation, it will not be included in the map struct by map_is_mergeab

Re: [f2fs-dev] [PATCH] f2fs-tools: fix wrong endian conversion related to i_flags

2024-09-05 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/6 5:20, Daeho Jeong wrote: From: Daeho Jeong Fixed wrong endian conversions related to i_flags. Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://

Re: [f2fs-dev] [PATCH 1/7] f2fs: make BG GC more aggressive for zoned devices

2024-09-05 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/30 5:52, Daeho Jeong wrote: From: Daeho Jeong Since we don't have any GC on device side for zoned devices, need more aggressive BG GC. So, tune the parameters for that. Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, ___ Linu

Re: [f2fs-dev] [PATCH 2/7] f2fs: read summary blocks with the correct amount for migration_granularity

2024-09-05 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/30 5:52, Daeho Jeong wrote: From: Daeho Jeong Now we do readahead for a full section by not considering migration_granularity and it triggers unnecessary read. So, make it read with the correct amount. Signed-off-by: Daeho Jeong --- fs/f2fs/gc.c | 33 --

Re: [f2fs-dev] [PATCH 3/7] f2fs: add reserved_segments sysfs node

2024-09-05 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/30 5:52, Daeho Jeong wrote: From: Daeho Jeong For the fine tuning of GC behavior, add reserved_segments sysfs node. Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sour

Re: [f2fs-dev] [PATCH 4/7] f2fs: increase BG GC migration granularity when boosted for zoned devices

2024-09-05 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/30 5:52, Daeho Jeong wrote: From: Daeho Jeong Need bigger BG GC migration granularity when free section is running low. Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.

[f2fs-dev] [PATCH] f2fs: get rid of online repaire on corrupted directory

2024-09-05 Thread Chao Yu via Linux-f2fs-devel
syzbot reports a f2fs bug as below: kernel BUG at fs/f2fs/inode.c:896! RIP: 0010:f2fs_evict_inode+0x1598/0x15c0 fs/f2fs/inode.c:896 Call Trace: evict+0x532/0x950 fs/inode.c:704 dispose_list fs/inode.c:747 [inline] evict_inodes+0x5f9/0x690 fs/inode.c:797 generic_shutdown_super+0x9d/0x2d0 fs/sup

Re: [f2fs-dev] [PATCH 5/7] f2fs: do FG_GC when GC boosting is required for zoned devices

2024-09-05 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/30 5:52, Daeho Jeong wrote: From: Daeho Jeong Under low free section count, we need to use FG_GC instead of BG_GC to recover free sections. Signed-off-by: Daeho Jeong --- fs/f2fs/f2fs.h | 1 + fs/f2fs/gc.c | 24 +--- 2 files changed, 18 insertions(+), 7 de

Re: [f2fs-dev] [PATCH 6/7] f2fs: create gc_no_zoned_gc_percent and gc_boost_zoned_gc_percent

2024-09-05 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/30 5:52, Daeho Jeong wrote: From: Daeho Jeong Added control knobs for gc_no_zoned_gc_percent and gc_boost_zoned_gc_percent. Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@li

Re: [f2fs-dev] [PATCH] Revert "f2fs: stop allocating pinned sections if EAGAIN happens"

2024-09-06 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/6 16:31, Wu Bo wrote: On Tue, Feb 20, 2024 at 02:50:11PM +0800, Chao Yu wrote: On 2024/2/8 16:11, Wu Bo wrote: On 2024/2/5 11:54, Chao Yu wrote: How about calling f2fs_balance_fs() to double check and make sure there is enough free space for following allocation.     if (has_no

Re: [f2fs-dev] [RFC PATCH] f2fs: don't set SBI_QUOTA_NEED_REPAIR flag if receive SIGKILL

2024-09-08 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/8 12:12, wangzijie wrote: From: Chao Yu via Linux-f2fs-devel On 2024/8/27 14:22, wangzijie wrote: Thread A -dquot_initialize   -dqget    -f2fs_dquot_acquire     -v2_read_dquot -qtree_read_dquot   -find_tree_dqentry    -f2fs_quota_read

Re: [f2fs-dev] [PATCH 2/7] f2fs: read summary blocks with the correct amount for migration_granularity

2024-09-09 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/7 4:23, Daeho Jeong wrote: On Thu, Sep 5, 2024 at 7:56 PM Chao Yu wrote: On 2024/8/30 5:52, Daeho Jeong wrote: From: Daeho Jeong Now we do readahead for a full section by not considering migration_granularity and it triggers unnecessary read. So, make it read with the correct amou

Re: [f2fs-dev] [RFC PATCH] f2fs: don't set SBI_QUOTA_NEED_REPAIR flag if receive SIGKILL

2024-09-09 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/9 12:06, wangzijie wrote: On 2024/9/8 12:12, wangzijie wrote: From: Chao Yu via Linux-f2fs-devel On 2024/8/27 14:22, wangzijie wrote: Thread A -dquot_initialize   -dqget    -f2fs_dquot_acquire     -v2_read_dquot -qtree_read_dquot   -find_tree_dqentry

Re: [f2fs-dev] [PATCH 7/7] f2fs: add valid block ratio not to do excessive GC for one time GC

2024-09-09 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/30 5:52, Daeho Jeong wrote: From: Daeho Jeong We need to introduce a valid block ratio threshold not to trigger excessive GC for zoned deivces. The initial value of it is 95%. So, F2FS will stop the thread from intiating GC for sections having valid blocks exceeding the ratio. Signed

Re: [f2fs-dev] [syzbot] [f2fs?] kernel BUG in new_curseg

2024-09-09 Thread Chao Yu via Linux-f2fs-devel
#syz test git://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git wip On 2024/9/9 16:19, syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:89f5e14d05b4 Merge tag 'timers_urgent_for_v6.11_rc7' of gi.. git tree: upstream console output: https://syzkaller.appspo

[f2fs-dev] [PATCH] f2fs: fix to don't panic system for no free segment fault injection

2024-09-09 Thread Chao Yu via Linux-f2fs-devel
f2fs: fix to don't panic system for no free segment fault injection syzbot reports a f2fs bug as below: F2FS-fs (loop0): inject no free segment in get_new_segment of __allocate_new_segment+0x1ce/0x940 fs/f2fs/segment.c:3167 F2FS-fs (loop0): Stopped filesystem due to reason: 7 [ cut h

[f2fs-dev] [PATCH] f2fs: fix to don't set SB_RDONLY in f2fs_handle_critical_error()

2024-09-09 Thread Chao Yu via Linux-f2fs-devel
syzbot reports a f2fs bug as below: [ cut here ] WARNING: CPU: 1 PID: 58 at kernel/rcu/sync.c:177 rcu_sync_dtor+0xcd/0x180 kernel/rcu/sync.c:177 CPU: 1 UID: 0 PID: 58 Comm: kworker/1:2 Not tainted 6.10.0-syzkaller-12562-g1722389b0d86 #0 Workqueue: events destroy_super_wor

[f2fs-dev] [PATCH] f2fs: fix to tag STATX_DIOALIGN only if inode support dio

2024-09-10 Thread Chao Yu via Linux-f2fs-devel
After commit 5c8764f8679e ("f2fs: fix to force buffered IO on inline_data inode"), f2fs starts to force using buffered IO on inline_data inode. And also, it will cause f2fs_getattr() returning invalid zeroed value on .dio_mem_align and .dio_offset_align fields, however, STATX_DIOALIGN flag was bee

Re: [f2fs-dev] [syzbot] [f2fs?] WARNING in rcu_sync_dtor

2024-09-10 Thread Chao Yu via Linux-f2fs-devel
#syz test: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git wip On 2024/7/26 15:54, syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:1722389b0d86 Merge tag 'net-6.11-rc1' of git://git.kernel... git tree: upstream console+strace: https://syzkaller.ap

Re: [f2fs-dev] [PATCH] fsck.f2fs: remove redundant i_ext.len set to zero

2024-09-10 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/10 0:45, Daeho Jeong wrote: From: Daeho Jeong Removed a redundant code to set i_ext.len to zero. Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https:/

Re: [f2fs-dev] [PATCH v2 1/7] f2fs: make BG GC more aggressive for zoned devices

2024-09-10 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/10 6:19, Daeho Jeong wrote: From: Daeho Jeong Since we don't have any GC on device side for zoned devices, need more aggressive BG GC. So, tune the parameters for that. Signed-off-by: Daeho Jeong Daeho, What about collecting all last reviewed-by tags for each patch of this patchs

Re: [f2fs-dev] [PATCH v2 2/7] f2fs: introduce migration_window_granularity

2024-09-10 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/10 6:19, Daeho Jeong wrote: From: Daeho Jeong We can control the scanning window granularity for GC migration. For more frequent scanning and GC on zoned devices, we need a fine grained control knob for it. Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, __

Re: [f2fs-dev] [PATCH v2 3/7] f2fs: add reserved_segments sysfs node

2024-09-10 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/10 6:19, Daeho Jeong wrote: From: Daeho Jeong For the fine tuning of GC behavior, add reserved_segments sysfs node. Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sour

Re: [f2fs-dev] [PATCH v2 4/7] f2fs: increase BG GC migration window granularity when boosted for zoned devices

2024-09-10 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/10 6:19, Daeho Jeong wrote: From: Daeho Jeong Need bigger BG GC migration window granularity when free section is running low. Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel

Re: [f2fs-dev] [PATCH v2 5/7] f2fs: do FG_GC when GC boosting is required for zoned devices

2024-09-10 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/10 6:19, Daeho Jeong wrote: From: Daeho Jeong Under low free section count, we need to use FG_GC instead of BG_GC to recover free sections. Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Lin

Re: [f2fs-dev] [PATCH v2 6/7] f2fs: create gc_no_zoned_gc_percent and gc_boost_zoned_gc_percent

2024-09-10 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/10 6:19, Daeho Jeong wrote: From: Daeho Jeong Added control knobs for gc_no_zoned_gc_percent and gc_boost_zoned_gc_percent. Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@li

Re: [f2fs-dev] [PATCH v2 7/7] f2fs: add valid block ratio not to do excessive GC for one time GC

2024-09-10 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/10 6:19, Daeho Jeong wrote: From: Daeho Jeong We need to introduce a valid block ratio threshold not to trigger excessive GC for zoned deivces. The initial value of it is 95%. So, F2FS will stop the thread from intiating GC for sections having valid blocks exceeding the ratio. Signed

Re: [f2fs-dev] [PATCH] f2fs: fix to tag STATX_DIOALIGN only if inode support dio

2024-09-10 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/11 1:06, Eric Biggers wrote: On Tue, Sep 10, 2024 at 08:57:53PM +0800, Chao Yu via Linux-f2fs-devel wrote: After commit 5c8764f8679e ("f2fs: fix to force buffered IO on inline_data inode"), f2fs starts to force using buffered IO on inline_data inode. And also, it

Re: [f2fs-dev] [RFC PATCH] f2fs: don't set SBI_QUOTA_NEED_REPAIR flag if receive SIGKILL

2024-09-11 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/4 11:49, Chao Yu via Linux-f2fs-devel wrote: On 2024/9/3 14:06, wangzijie wrote: From: Chao Yu via Linux-f2fs-devel On 2024/8/27 14:22, wangzijie wrote: Thread A -dquot_initialize   -dqget    -f2fs_dquot_acquire     -v2_read_dquot -qtree_read_dquot   -find_tree_dqentry

Re: [f2fs-dev] [PATCH v1 1/2] f2fs: remove unused parameters

2024-09-11 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/11 10:40, liuder...@oppo.com wrote: From: liuderong Remove unused parameter segno from f2fs_usable_segs_in_sec. Signed-off-by: liuderong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforg

Re: [f2fs-dev] [PATCH v1 2/2] f2fs: introduce get_section_mtime

2024-09-11 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/11 10:40, liuder...@oppo.com wrote: From: liuderong When segs_per_sec is larger than 1, section may contain free segments, mtime should be the mean value of each valid segments, so introduce get_section_mtime to exclude free segments in a section. Signed-off-by: liuderong --- fs/f

Re: [f2fs-dev] [PATCH 0/9] f2fs: new mount API conversion

2024-09-11 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/11 10:04, Hongbo Li wrote: Is the subject of the email required to be [f2fs-dev][PATCH]? Hongbo, "[f2fs-dev]" prefix is added by f2fs mailing list when it forwards your patch to someone who subscribes the list, if you receive a patch w/o f2fs-dev prefix, it is because you Sent/Cced p

Re: [f2fs-dev] [PATCH v2 00/13] f2fs: introduce inline tail

2024-09-12 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/11 11:57, Wu Bo wrote: The inode in F2FS occupies an entire 4k block. For many small files, this means they consume much more space than their actual size. Therefore, there is significant potential to better utilize the inode block space. Currently, F2FS has two features to make use of

Re: [f2fs-dev] [PATCH v2] f2fs: forcibly migrate to secure space for zoned device file pinning

2024-09-12 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/13 0:59, Daeho Jeong wrote: From: Daeho Jeong We need to migrate data blocks even though it is full to secure space for zoned device file pinning. Signed-off-by: Daeho Jeong Fixes: 9703d69d9d15 ("f2fs: support file pinning for zoned devices") Reviewed-by: Chao Yu Thanks, _

Re: [f2fs-dev] [linus:master] [f2fs] 5c8764f867: xfstests.generic.091.fail

2024-09-12 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/12 21:50, kernel test robot wrote: Hello, kernel test robot noticed "xfstests.generic.091.fail" on: commit: 5c8764f8679e659c5cb295af7d32279002d13735 ("f2fs: fix to force buffered IO on inline_data inode") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master Can

Re: [f2fs-dev] [PATCH v2] f2fs: iostat: support accounting compressed IO

2022-08-11 Thread Chao Yu via Linux-f2fs-devel
Jaegeuk, Any comments on this patch? On 2022/8/7 18:49, Chao Yu wrote: From: Chao Yu Previously, we supported to account FS_CDATA_READ_IO type IO only, in this patch, it adds to account more type IO for compressed file: - APP_BUFFERED_CDATA_IO - APP_MAPPED_CDATA_IO - FS_CDATA_IO - APP_BUFFERE

Re: [f2fs-dev] [PATCH] fsck.f2fs: Add progression feedback

2022-01-06 Thread Chao Yu via Linux-f2fs-devel
On 2021/12/30 8:59, Antoine Viallon via Linux-f2fs-devel wrote: Some variable naming mistaskes were made in the last patch, here is an updated version. --- fsck/fsck.c | 9 + fsck/fsck.h | 1 + 2 files changed, 10 insertions(+) diff --git a/fsck/fsck.c b/fsck/fsck.c index ecd87af..9

Re: [f2fs-dev] [PATCH] f2fs-tools: add atomic write related options to f2fs_io write command

2022-02-07 Thread Chao Yu via Linux-f2fs-devel
On 2022/2/3 4:17, Daeho Jeong wrote: From: Daeho Jeong Added two option to f2fs_io "write" command. - atomic_commit : atomic write & commit - atomic_abort : atomic write & abort Also, added an optional option {delay}, which is in ms unit and optional only for atomic_commit and atomic_abort

Re: [f2fs-dev] [PATCH] common/attr: adbjust acl_max of f2fs

2022-02-24 Thread Chao Yu via Linux-f2fs-devel
On 2022/2/8 15:16, Sun Ke via Linux-f2fs-devel wrote: f2fs has set inline_xattr as a default option, and introduced a new option named 'noinline_xattr' for disabling default inline_xattr option. So in _acl_get_max we need to check 'noinline_xattr' string in fs option, otherwise we may select the

Re: [f2fs-dev] [PATCH] f2fs: quota: fix loop condition at f2fs_quota_sync()

2022-02-24 Thread Chao Yu via Linux-f2fs-devel
On 2022/2/15 16:27, Juhyung Park wrote: cnt should be passed to sb_has_quota_active() instead of type to check active quota properly. Moreover, when the type is -1, the compiler with enough inline knowledge can discard sb_has_quota_active() check altogether, causing a NULL pointer dereference at

Re: [f2fs-dev] [PATCH -next v2] ext4:fix file system corrupted when rmdir non empty directory with IO error

2022-02-25 Thread Chao Yu via Linux-f2fs-devel
On 2022/2/25 16:22, yebin via Linux-f2fs-devel wrote: diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index a0e51937d92e..3de5a1343070 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c @@ -953,7 +953,7 @@ void f2fs_delete_entry(struct f2fs_dir_entry *dentry, struct page *page,   f2fs_drop_nlink(

Re: [f2fs-dev] [PATCH] generic/066: attr1 is still there after log replay on f2fs

2022-03-08 Thread Chao Yu via Linux-f2fs-devel
On 2022/2/28 11:57, Sun Ke via Linux-f2fs-devel wrote: The test fail on f2fs: xattr names and values after second fsync log replay: # file: SCRATCH_MNT/foobar +user.attr1="val1" user.attr3="val3" attr1 is still there after log replay. I guess it is f2fs's special feature t

Re: [f2fs-dev] [PATCH v2] generic/066: attr1 is still there after log replay on f2fs

2022-03-14 Thread Chao Yu via Linux-f2fs-devel
On 2022/3/11 17:43, Sun Ke via Linux-f2fs-devel wrote: The test fail on f2fs: xattr names and values after second fsync log replay: # file: SCRATCH_MNT/foobar +user.attr1="val1" user.attr3="val3" attr1 is still there after log replay. f2fs doesn't support fs-op level trans

Re: [f2fs-dev] [PATCH] man: update mkfs.f2fs to give the default android option

2022-03-27 Thread Chao Yu via Linux-f2fs-devel
On 2022/3/23 10:28, Jaegeuk Kim wrote: This gives an information of "-g android". Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/list

Re: [f2fs-dev] [PATCH v4] f2fs: introduce device aliasing file

2024-10-08 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/9 2:05, Daeho Jeong wrote: From: Daeho Jeong F2FS should understand how the device aliasing file works and support deleting the file after use. A device aliasing file can be created by mkfs.f2fs tool and it can map the whole device with an extrent, not using node blocks. The file spa

Re: [f2fs-dev] [PATCH] f2fs: fix null-ptr-deref in f2fs_submit_page_bio()

2024-10-11 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/12 0:44, Ye Bin wrote: From: Ye Bin There's issue as follows when concurrently installing the f2fs.ko module and mounting the f2fs file system: KASAN: null-ptr-deref in range [0x0020-0x0027] RIP: 0010:__bio_alloc+0x2fb/0x6c0 [f2fs] Call Trace: f2fs_submit

Re: [f2fs-dev] [PATCH] f2fs-tools: remove linux/fcntl.h but define the hint directly

2024-10-14 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/15 8:23, Jaegeuk Kim via Linux-f2fs-devel wrote: It's complicated to address libc and kernel headers. Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net htt

Re: [f2fs-dev] [PATCH] f2fs_io: choose MB/s instead of MiB/s

2024-10-14 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/15 5:32, Jaegeuk Kim via Linux-f2fs-devel wrote: Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-d

[f2fs-dev] [PATCH 1/2] f2fs/006: add testcase to check out-of-space case

2024-10-14 Thread Chao Yu via Linux-f2fs-devel
This is a regression test to check whether f2fs handles dirty data correctly when checkpoint is disabled, if lfs mode is on, it will trigger OPU for all overwritten data, this will cost free segments, so f2fs must account overwritten data as OPU data when calculating free space, otherwise, it may r

[f2fs-dev] [PATCH 2/2] f2fs/007: add testcase to check consistency of compressed inode metadata

2024-10-14 Thread Chao Yu via Linux-f2fs-devel
metadata of compressed inode should always be consistent after file compression, reservation, releasement and decompression, let's add a testcase to check it. Cc: Jaegeuk Kim Cc: Qi Han Signed-off-by: Chao Yu --- tests/f2fs/007 | 116 + tests/f2f

Re: [f2fs-dev] [PATCH] f2fs_io: support fadvice for read

2024-10-14 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/12 6:49, Jaegeuk Kim via Linux-f2fs-devel wrote: This adds a way to boost read performance by giving fadvise. Signed-off-by: Jaegeuk Kim --- tools/f2fs_io/f2fs_io.c | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/tools/f2fs_io/f2fs_

[f2fs-dev] [PATCH] f2fs: fix to account dirty data in __get_secs_required()

2024-10-14 Thread Chao Yu via Linux-f2fs-devel
It will trigger system panic w/ testcase in [1]: [ cut here ] kernel BUG at fs/f2fs/segment.c:2752! RIP: 0010:new_curseg+0xc81/0x2110 Call Trace: f2fs_allocate_data_block+0x1c91/0x4540 do_write_page+0x163/0xdf0 f2fs_outplace_write_data+0x1aa/0x340 f2fs_do_write_data_pag

Re: [f2fs-dev] [RESEND PATCH] f2fs: Use struct_size() to improve f2fs_acl_clone()

2024-10-08 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/7 19:46, Thorsten Blum wrote: Use struct_size() to calculate the number of bytes to allocate for a cloned acl. Signed-off-by: Thorsten Blum Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourcefo

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] [PATCH] fs/writeback: convert wbc_account_cgroup_owner to take a folio

2024-10-11 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/1 6:58, Jaegeuk Kim wrote: On 09/26, Matthew Wilcox wrote: On Thu, Sep 26, 2024 at 04:01:21PM +0200, Pankaj Raghav (Samsung) wrote: Convert wbc_account_cgroup_owner() to take a folio instead of a page, and convert all callers to pass a folio directly except f2fs. Convert the page to

[f2fs-dev] [PATCH] f2fs/004: add missing _fixed_by_kernel_commit line

2024-10-11 Thread Chao Yu via Linux-f2fs-devel
The bug related to this regression testcase has been fixed by commit b2c160f4f3cf ("f2fs: atomic: fix to forbid dio in atomic_file"), let's add missing _fixed_by_kernel_commit line for this testcase. Cc: Jaegeuk Kim Cc: Daeho Jeong Signed-off-by: Chao Yu --- tests/f2fs/004 | 3 +++ 1 file chan

Re: [f2fs-dev] [PATCH] f2fs: fix f2fs_bug_on when uninstalling filesystem call f2fs_evict_inode.

2024-10-07 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/18 16:44, Qi Han wrote: creating a large files during checkpoint disable until it runs out of space and then delete it, then remount to enable checkpoint again, and then unmount the filesystem triggers the f2fs_bug_on as below: [ cut here ] kernel BUG at fs/f2fs

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

2024-10-07 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/29 14:17, LongPing Wei wrote: Signed-off-by: LongPing Wei Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

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

2024-10-07 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/29 16:00, 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 v3] f2fs: introduce device aliasing file

2024-10-07 Thread Chao Yu via Linux-f2fs-devel
On 2024/9/26 5:52, Daeho Jeong wrote: From: Daeho Jeong F2FS should understand how the device aliasing file works and support deleting the file after use. A device aliasing file can be created by mkfs.f2fs tool and it can map the whole device with an extrent, not using node blocks. The file spa

[f2fs-dev] [PATCH] f2fs: fix to do sanity check on node blkaddr in truncate_node()

2024-10-16 Thread Chao Yu via Linux-f2fs-devel
syzbot reports a f2fs bug as below: [ cut here ] kernel BUG at fs/f2fs/segment.c:2534! RIP: 0010:f2fs_invalidate_blocks+0x35f/0x370 fs/f2fs/segment.c:2534 Call Trace: truncate_node+0x1ae/0x8c0 fs/f2fs/node.c:909 f2fs_remove_inode_page+0x5c2/0x870 fs/f2fs/node.c:1288 f2fs

[f2fs-dev] [PATCH] f2fs: fix to parse temperature correctly in f2fs_get_segment_temp()

2024-10-16 Thread Chao Yu via Linux-f2fs-devel
In __get_segment_type(), __get_segment_type_6() may return CURSEG_COLD_DATA_PINNED or CURSEG_ALL_DATA_ATGC log type, but following f2fs_get_segment_temp() can only handle persistent log type, fix it. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h| 5 +++-- fs/f2fs/file.c| 4 ++-- fs/f2fs/se

[f2fs-dev] [PATCH] f2fs: multidevice: add stats in debugfs

2024-10-16 Thread Chao Yu via Linux-f2fs-devel
This patch adds per-device stats in debugfs, the examples are as below: mkfs.f2fs -f -c /dev/vdc /dev/vdb mount /dev/vdb /mnt/f2fs/ cat /sys/kernel/debug/f2fs/status Multidevice stats: [seg: inusedirty full free prefree] #0 500 40070

Re: [f2fs-dev] [PATCH v2] f2fs: fix the wrong f2fs_bug_on condition in f2fs_do_replace_block

2024-10-21 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/21 10:31, LongPing Wei wrote: This f2fs_bug_on was introduced by commit 2c1905042c8c ("f2fs: check segment type in __f2fs_replace_block") when there were only 6 curseg types. After commit d0b9e42ab615 ("f2fs: introduce inmem curseg") was introduced, the condition should be changed to c

Re: [f2fs-dev] [PATCH] f2fs: check curseg->inited before write_sum_page in change_curseg

2024-10-21 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/21 12:48, Yongpeng Yang wrote: In the __f2fs_init_atgc_curseg->get_atssr_segment calling, curseg->segno is NULL_SEGNO, indicating that there is no summary block that needs to be written. Fixes: 093749e296e2 ("f2fs: support age threshold based garbage collection") Signed-off-by: Yo

Re: [f2fs-dev] [PATCH] f2fs: fix to convert log type to segment data type correctly

2024-10-21 Thread Chao Yu via Linux-f2fs-devel
Hi, Thanks for the report, I rebased this patch on top of https://lore.kernel.org/linux-f2fs-devel/20241017012932.1570038-1-c...@kernel.org, so there will be dependency in between these two patch. Thanks, On 2024/10/20 5:57, kernel test robot wrote: Hi Chao, kernel test robot noticed the foll

[f2fs-dev] [PATCH v3] f2fs: fix to parse temperature correctly in f2fs_get_segment_temp()

2024-10-21 Thread Chao Yu via Linux-f2fs-devel
In __get_segment_type(), __get_segment_type_6() may return CURSEG_COLD_DATA_PINNED or CURSEG_ALL_DATA_ATGC log type, but following f2fs_get_segment_temp() can only handle persistent log type, fix it. Signed-off-by: Chao Yu --- v3: - initialize type variable in __get_segment_type() fs/f2fs/f2fs.h

Re: [f2fs-dev] [PATCH 2/3] f2fs: zone: allow IPU for regular file in regular block device

2024-10-21 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/22 7:18, Jaegeuk Kim wrote: On 10/18, Chao Yu wrote: blkzoned feature enables lfs mode by default, for data updates from regular file, it only allow to use OPU, this patch changes to allow to use IPU if regular file's data block locates in regular block device, if data block locates i

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

2024-10-21 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/9 18:27, Qi Han wrote: 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 f2f

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

2024-10-21 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/22 11:14, 韩棋 wrote: 在 2024/10/22 10:53, Chao Yu 写道: On 2024/10/9 18:27, Qi Han wrote: 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 st

[f2fs-dev] [PATCH] f2fs: fix to avoid potential deadlock in f2fs_record_stop_reason()

2024-10-21 Thread Chao Yu via Linux-f2fs-devel
syzbot reports deadlock issue of f2fs as below: == WARNING: possible circular locking dependency detected 6.12.0-rc3-syzkaller-00087-gc964ced77262 #0 Not tainted -- kswapd0/79 is trying to acqui

Re: [f2fs-dev] [PATCH] f2fs: decrease spare area for pinned files for zoned devices

2024-10-17 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/16 0:54, Daeho Jeong wrote: From: Daeho Jeong Now we reclaim too much space before allocating pinned space for zoned devices. Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel

[f2fs-dev] [PATCH v7] f2fs: zone: don't block IO if there is remained open zone

2024-10-17 Thread Chao Yu via Linux-f2fs-devel
max open zone may be larger than log header number of f2fs, for such case, it doesn't need to wait last IO in previous zone, let's introduce available_open_zone semaphore, and reduce it once we submit first write IO in a zone, and increase it after completion of last IO in the zone. Cc: Daeho Jeon

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

2024-10-17 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/9 18:27, Qi Han wrote: 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 f2f

Re: [f2fs-dev] [PATCH v6] f2fs: introduce device aliasing file

2024-10-16 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/16 2:09, Daeho Jeong wrote: From: Daeho Jeong F2FS should understand how the device aliasing file works and support deleting the file after use. A device aliasing file can be created by mkfs.f2fs tool and it can map the whole device with an extent, not using node blocks. The file spa

[f2fs-dev] [PATCH 1/2] f2fs_io: {set, clear}flags: support immutable flag correctly

2024-10-18 Thread Chao Yu via Linux-f2fs-devel
Hand over immutable flag clearing functionality from setflags to clearflags, since the flag name is immutable rather than noimmutable. And support setting functionality in subcommand setflags. Signed-off-by: Chao Yu --- man/f2fs_io.8 | 6 +++--- tools/f2fs_io/f2fs_io.c | 9 ++---

[f2fs-dev] [PATCH 2/2] f2fs_io: {set, clear}flags: support nocow flag

2024-10-18 Thread Chao Yu via Linux-f2fs-devel
This patch supports to set or clear nocow flag in f2fs_io Signed-off-by: Chao Yu --- man/f2fs_io.8 | 4 ++-- tools/f2fs_io/f2fs_io.c | 10 -- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/man/f2fs_io.8 b/man/f2fs_io.8 index e58244c..5041c1b 100644 --- a/man/f

  1   2   3   4   5   6   7   8   9   10   >