commit | 2658e50de61429f57d9496bfe371f232e2d039a1 | [log] [tgz] |
---|---|---|
author | Jaegeuk Kim <jaegeuk@kernel.org> | Fri Jun 19 12:01:21 2015 -0700 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Tue Aug 04 14:09:54 2015 -0700 |
tree | 741bcc6a3c0df01f3180eb6cb934019313959ca4 | |
parent | 244f4fc1c530c4e486f0e4f0909c0514e4539ba2 [diff] |
f2fs: introduce a shrinker for mounted fs This patch introduces a shrinker targeting to reduce memory footprint consumed by a number of in-memory f2fs data structures. In addition, it newly adds: - sbi->umount_mutex to avoid data races on shrinker and put_super - sbi->shruinker_run_no to not revisit objects Note that the basic implementation was copied from fs/ubifs/shrinker.c Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>