[f2fs-dev] [PATCH] f2fs: fix to check quota inums

2023-02-22 Thread Yangtao Li via Linux-f2fs-devel
We should check quota file ino before enable quota, and not only 0. BTW fix following check error: WARNING: Do not crash the kernel unless it is absolutely unavoidable--use WARN_ON_ONCE() plus recovery code (if feasible) instead of BUG() or variants. Fixes: ea6767337f86 ("f2fs: support quota sys

[f2fs-dev] [PATCH -next] f2fs: make f2fs_sync_inode_meta() static

2023-02-22 Thread Li Zetao via Linux-f2fs-devel
After commit 26b5a079197c ("f2fs: cleanup dirty pages if recover failed"), f2fs_sync_inode_meta() is only used in checkpoint.c, so f2fs_sync_inode_meta() should only be visible inside. Delete the declaration in the header file and change f2fs_sync_inode_meta() to static. Signed-off-by: Li Zetao -

Re: [f2fs-dev] [RFC PATCH] f2fs: preserve direct write semantics when buffering is forced

2023-02-22 Thread Yonggil Song
>In some cases, e.g. for zoned block devices, direct writes are >forced into buffered writes that will populate the page cache >and be written out just like buffered io. > >Direct reads, on the other hand, is supported for the zoned >block device case. This has the effect that applications >built f