]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: remain nat cache entries for further free nid allocation
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 21 Mar 2013 03:53:19 +0000 (12:53 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 27 Mar 2013 00:16:18 +0000 (09:16 +0900)
commit441a6b4384f691ce6118f48f6069b40f1966ab59
tree3d1fed6b28e7e3f085b5f72e5ad2a706d5a7712b
parent34d365f48a25abdbbd4c9399ed5c86d5a9b3900e
f2fs: remain nat cache entries for further free nid allocation

In the checkpoint flow, the f2fs investigates the total nat cache entries.
Previously, if an entry has NULL_ADDR, f2fs drops the entry and adds the
obsolete nid to the free nid list.
However, this free nid will be reused sooner, resulting in its nat entry miss.
In order to avoid this, we don't need to drop the nat cache entry at this moment.

Reviewed-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/node.c