f2fs: refresh recent accessed nat entry in lru list
authorChao Yu <yuchao0@huawei.com>
Sun, 5 Aug 2018 15:08:59 +0000 (23:08 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 5 Sep 2018 22:20:42 +0000 (15:20 -0700)
commite3f12d2a3b02ed0fc875007b1a8c5d68201868ff
tree047a59baae403028a269ed74239a7888979c7989
parente2827ff5b8cab0f0aa9c6342114e19159d2de2ab
f2fs: refresh recent accessed nat entry in lru list

Introduce nat_list_lock to protect nm_i->nat_entries list, and manage
it as a LRU list, refresh location for therein recent accessed entries
in the list.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/node.c