]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita12d6462e53f98085909d21ae052db4cfd35898f
tree6978a3f3c2940f76d0db9ed0010e0429de36726e
parentf49a1c0b96a3cf5807bb211cef7c99107a90ada0
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