summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-07-09 02:42:21 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2016-07-16 00:21:19 +0200
commit0a2aa8fbb9693020b822ac7a23755591554eaea5 (patch)
tree842512aea53c62075d1e3c6d4cea58960126f037 /fs/f2fs/node.c
parentf2fs: fix ERR_PTR returned by bio (diff)
downloadlinux-0a2aa8fbb9693020b822ac7a23755591554eaea5.tar.xz
linux-0a2aa8fbb9693020b822ac7a23755591554eaea5.zip
f2fs: refactor __exchange_data_block for speed up
This reduces the elapsed time to do xfstests/generic/017. Before: 715 s After: 458 s Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r--fs/f2fs/node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index b841c439adb7..d78f61d647c0 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -649,6 +649,7 @@ release_out:
if (err == -ENOENT) {
dn->cur_level = i;
dn->max_level = level;
+ dn->ofs_in_node = offset[level];
}
return err;
}