f2fs: don't cache nat entry if out of memory
authorChao Yu <yuchao0@huawei.com>
Tue, 13 Dec 2016 10:54:59 +0000 (18:54 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 29 Jan 2017 03:46:00 +0000 (12:46 +0900)
commit5c9e418436f3445d7cc4f3ba2964f231a4b33f17
tree6978a3f3c2940f76d0db9ed0010e0429de36726e
parentfed24668482e07421b8e746a4886e7725434050a
f2fs: don't cache nat entry if out of memory

If we run out of memory, in cache_nat_entry, it's better to avoid loop
for allocating memory to cache nat entry, so in low memory scenario, for
read path of node block, I expect this can avoid unneeded latency.

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