]> git.baikalelectronics.ru Git - kernel.git/commit
staging: erofs: introduce erofs shrinker
authorGao Xiang <gaoxiang25@huawei.com>
Thu, 26 Jul 2018 12:22:04 +0000 (20:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jul 2018 15:24:10 +0000 (17:24 +0200)
commitd38222cd4e77caf53c047806688e51fea9ee7f10
tree98ad3b2a8b90878e7635a8ed0e1ab54484ff2266
parentc18bbfd5782c89c3cdd51f10dda72a4d4ff2b3aa
staging: erofs: introduce erofs shrinker

This patch adds a dedicated shrinker targeting to free unneeded
memory consumed by a number of erofs in-memory data structures.

Like F2FS and UBIFS, it also adds:
  - sbi->umount_mutex to avoid races on shrinker and put_super
  - sbi->shrinker_run_no to not revisit recently scaned objects

Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/internal.h
drivers/staging/erofs/super.c
drivers/staging/erofs/utils.c