OSDN Git Service

f2fs: check the largest extent at look-up time
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 29 Jun 2015 23:01:14 +0000 (16:01 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Aug 2015 21:09:56 +0000 (14:09 -0700)
commit84bc926c076963d5b992640f5c8d242754801fd6
tree449d6caa46fd24d069a06c8d70215d4013aa2d5b
parent3e72f721390dc14e7b33fda812843c0725810106
f2fs: check the largest extent at look-up time

Because of the extent shrinker or other -ENOMEM scenarios, it cannot guarantee
that the largest extent would be cached in the tree all the time.

Instead of relying on extent_tree, we can simply check the cached one in extent
tree accordingly.

Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
include/trace/events/f2fs.h