f2fs: limit # of inmemory pages
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 19 Oct 2017 02:05:57 +0000 (19:05 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 26 Oct 2017 08:44:21 +0000 (10:44 +0200)
commit57864ae5ce3ab5c6e3137dd03edefdb2e5531ba1
tree759d8b6d20e4c1eae6ea718708288ba484b0e778
parentab383be510ab2039042a89ae4fc3128eb8383cc4
f2fs: limit # of inmemory pages

If some abnormal users try lots of atomic write operations, f2fs is able to
produce pinned pages in the main memory which affects system performance.
This patch limits that as 20% over total memory size, and if f2fs reaches
to the limit, it will drop all the inmemory pages.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/node.c
fs/f2fs/node.h
fs/f2fs/segment.c
fs/f2fs/super.c