]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: clear radix tree dirty tag of pages whose dirty flag is cleared
authorDaeho Jeong <daeho.jeong@samsung.com>
Mon, 11 Sep 2017 07:30:28 +0000 (16:30 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 12 Sep 2017 04:32:38 +0000 (21:32 -0700)
commit4eb5fb5777431ed9d91ed0ed29d6545e09971327
tree9c0f4ff0c0c5569a562e4baba5bcd2ea8489a2be
parent3188802c39e7451008eb7524598d211ca989ee8f
f2fs: clear radix tree dirty tag of pages whose dirty flag is cleared

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: Daeho Jeong <daeho.jeong@samsung.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/dir.c
fs/f2fs/inline.c