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=
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
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/
>
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
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
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
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