Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efd84968 authored by Daeho Jeong's avatar Daeho Jeong Committed by Sahitya Tummala
Browse files

f2fs: clear radix tree dirty tag of pages whose dirty flag is cleared



commit 0abd8e70d24b665dd00972d4a259e05528cbf4c6 upstream.

On a senario like writing out the first dirty page of the inode
as the inline data, we only cleared dirty flags of the pages, but
didn't clear the dirty tags of those pages in the radix tree.

If we don't clear the dirty tags of the pages in the radix tree, the
inodes which contain the pages will be marked with I_DIRTY_PAGES again
and again, and writepages() for the inodes will be invoked in every
writeback period. As a result, nothing will be done in every
writepages() for the inodes and it will just consume CPU time
meaninglessly.

Signed-off-by: default avatarDaeho Jeong <daeho.jeong@samsung.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Git-commit: ddd52a4e
Git-repo: https://android.googlesource.com/kernel/common.git


Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
parent 7bf4f539
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment