]> git.baikalelectronics.ru Git - kernel.git/commit
quota: reclaim least recently used dquots
authorGreg Thelen <gthelen@google.com>
Fri, 8 Jun 2018 01:37:59 +0000 (18:37 -0700)
committerJan Kara <jack@suse.cz>
Wed, 20 Jun 2018 09:04:26 +0000 (11:04 +0200)
commit0f97774ac5cfe40556197bfd92aa4a38cbb9b68b
treee480b217731cda6346d560cea44af7cd301a045a
parent20c31d30afa4e0be4cca43b98945f0de59b3dc17
quota: reclaim least recently used dquots

The dquots in the free_dquots list are not reclaimed in LRU way.
put_dquot_last() puts entries to the tail and dqcache_shrink_scan()
frees from the tail. Free unreferenced dquots in LRU order because it
seems more reasonable than freeing most recently used.

Signed-off-by: Greg Thelen <gthelen@google.com>
Signed-off-by: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c