summaryrefslogtreecommitdiff
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-07-08 17:42:21 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2016-07-15 15:21:19 -0700
commit0a2aa8fbb9693020b822ac7a23755591554eaea5 (patch)
tree842512aea53c62075d1e3c6d4cea58960126f037 /fs/f2fs/node.c
parent1d353eb7e43853335a3c535c204c4e86f82eaf66 (diff)
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;
}