[f2fs-dev] [PATCH -next] f2fs: simplify code in f2fs_prepare_decomp_mem

2022-08-23 Thread Zhang Qilong via Linux-f2fs-devel
It could return directly after init_decompress_ctx. Signed-off-by: Zhang Qilong --- fs/f2fs/compress.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index 0d7e9021b90d..2a41d2aee515 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2f

[f2fs-dev] [PATCH] f2fs: increase the limit for reserve_root

2022-08-23 Thread Jaegeuk Kim
This patch increases the threshold that limits the reserved root space from 0.2% to 12.5% by using simple shift operation. Typically Android sets 128MB, but if the storage capacity is 32GB, 0.2% which is around 64MB becomes too small. Let's relax it. Signed-off-by: Jaegeuk Kim --- fs/f2fs/super

[f2fs-dev] [Bug 216050] f2fs_gc occupies 100% cpu

2022-08-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216050 bogdan.nico...@gmail.com changed: What|Removed |Added CC||bogdan.nico...@gmail.com --- C

[f2fs-dev] [Bug 216050] f2fs_gc occupies 100% cpu

2022-08-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216050 --- Comment #56 from bogdan.nico...@gmail.com --- Also, there is a another task hanging up with a call trace: kernel: INFO: task mandb:13173 blocked for more than 122 seconds. kernel: Not tainted 5.19.3-arch1-1 #1 kernel: "echo 0 > /proc/sy

Re: [f2fs-dev] [PATCH] f2fs: increase the limit for reserve_root

2022-08-23 Thread Jaegeuk Kim
On 08/23, Jaegeuk Kim wrote: > This patch increases the threshold that limits the reserved root space from > 0.2% > to 12.5% by using simple shift operation. > > Typically Android sets 128MB, but if the storage capacity is 32GB, 0.2% which > is > around 64MB becomes too small. Let's relax it. >

Re: [f2fs-dev] [PATCH -next] f2fs: fix wrong dirty page count when race between mmap and fallocate.

2022-08-23 Thread Shuqi Zhang via Linux-f2fs-devel
On 08/21, Jaegeuk Kim wrote: On 08/20, Jaegeuk Kim wrote: On 08/20, Chao Yu wrote: On 2022/8/15 16:15, Shuqi Zhang wrote: This is a BUG_ON issue as follows when running xfstest-generic-503: WARNING: CPU: 21 PID: 1385 at fs/f2fs/inode.c:762 f2fs_evict_inode+0x847/0xaa0 Modules linked in: CPU:

[f2fs-dev] [PATCH] PM: suspend: select SUSPEND_SKIP_SYNC too if PM_USERSPACE_AUTOSLEEP is selected

2022-08-23 Thread Juhyung Park
Commit 2fd77fff4b44 ("PM / suspend: make sync() on suspend-to-RAM build-time optional") added an option to skip sync() on suspend entry to avoid heavy overhead on platforms with frequent suspends. Years later, commit 261e224d6a5c ("pm/sleep: Add PM_USERSPACE_AUTOSLEEP Kconfig") added a dedicated c