aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/recovery.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-09-11 14:43:02 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-10-09 16:20:50 -0700
commit100136acfb4023ab7dc899192e95aca9aedfe98a (patch)
treefbb95aafe457218eeb3eb77740d19e060d9abf22 /fs/f2fs/recovery.c
parentf2fs: verify file type early in f2fs_fallocate (diff)
downloadlinux-dev-100136acfb4023ab7dc899192e95aca9aedfe98a.tar.xz
linux-dev-100136acfb4023ab7dc899192e95aca9aedfe98a.zip
f2fs: fix incorrect searching position when shrinking extent cache
When shrinking extent cache, we have two steps in the flow: 1) shrink objects which are unreferenced by inodes; 2) shrink objects from LRU list of extent cache. In step 1, if we haven't shrunk enough number of objects, we will try step 2, but before that we didn't update the searching position which may point to last inode index in global extent tree, result in failing to shrink objects by traversing the all inodes' extent tree. In this patch, we reset searching position to beginning of global extent tree for fixing. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/recovery.c')
0 files changed, 0 insertions, 0 deletions