[f2fs-dev] [PATCH] f2fs: fix to release compress file for F2FS_IOC_RESERVE_COMPRESS_BLOCKS when has no space

2023-02-10 Thread Yangtao Li via Linux-f2fs-devel
When the released file is reserving and the space is insufficient, the fsck flag is set incorrectly, and lead to the file cannot be reserved and released normally. $ mount -t f2fs -o compress_extension=*,compress_mode=user /mnt/9p/f2fs.img /mnt/f2fs/ $ dd if=/dev/zero of=/mnt/f2fs/800M bs=

[f2fs-dev] [PATCH v2] f2fs: export ipu policy in debugfs

2023-02-10 Thread Yangtao Li via Linux-f2fs-devel
Export ipu_policy as a string in debugfs for better readability and it can help us better understand some strategies of the file system. Signed-off-by: Yangtao Li --- v2: -drop unsigned long conversion fs/f2fs/debug.c | 66 +-- fs/f2fs/segment.h | 1

Re: [f2fs-dev] [PATCH] f2fs: fix to release compress file for F2FS_IOC_RESERVE_COMPRESS_BLOCKS when has no space

2023-02-10 Thread Jaegeuk Kim
On 02/10, Yangtao Li wrote: > When the released file is reserving and the space is insufficient, > the fsck flag is set incorrectly, and lead to the file cannot be > reserved and released normally. > > $ mount -t f2fs -o compress_extension=*,compress_mode=user /mnt/9p/f2fs.img > /mnt/f2fs/ >

[f2fs-dev] [PATCH] f2fs: fix wrong segment count

2023-02-10 Thread Jaegeuk Kim
MAIN_SEGS is for data area, while TOTAL_SEGS includes data and metadata. Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h index 8ee5e5db9287..6003fbaf4b7d 100644 --- a/fs/f2fs/segment.h

[f2fs-dev] [PATCH] f2fs-tools: fix # of total segments

2023-02-10 Thread Jaegeuk Kim
TOTAL_SEGS should include metadata segments and main segments. Signed-off-by: Jaegeuk Kim --- fsck/f2fs.h | 2 +- fsck/fsck.c | 4 ++-- fsck/mount.c | 26 +- fsck/resize.c | 8 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/fsck/f2fs.h b

[f2fs-dev] Patchwork summary for: f2fs

2023-02-10 Thread patchwork-bot+f2fs
Hello: The following patches were marked "accepted", because they were applied to jaegeuk/f2fs.git (dev): Patch: [f2fs-dev] f2fs: make kobj_type structures constant Submitter: Thomas Weißschuh Committer: Jaegeuk Kim Patchwork: https://patchwork.kernel.org/project/f2fs/list/?series=720156

Re: [f2fs-dev] [PATCH] f2fs: make kobj_type structures constant

2023-02-10 Thread patchwork-bot+f2fs
Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim : On Thu, 09 Feb 2023 03:20:10 + you wrote: > Since commit ee6d3dd4ed48 ("driver core: make kobj_type constant.") > the driver core allows the usage of const struct kobj_type. > > Take advantage of this to constify the st