summaryrefslogtreecommitdiff
path: root/fs/f2fs/recovery.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-05-06 13:08:06 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-05-28 15:41:42 -0700
commit19f106bc03e62739961249a29916ee3602ac3de9 (patch)
tree3946b70b7a6b97a5e1370ddc552cf04cd896c2d2 /fs/f2fs/recovery.c
parentd5b692b786e1aea68d2c6737dd0abeebc1dad619 (diff)
f2fs: introduce f2fs_replace_block() for reuse
Introduce a generic function replace_block base on recover_data_page, and export it. So with it we can operate file's meta data which is in CP/SSA area when we invoke fallocate with FALLOC_FL_COLLAPSE_RANGE flag. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/recovery.c')
-rw-r--r--fs/f2fs/recovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c
index b80d9d48f125..f77a1beac783 100644
--- a/fs/f2fs/recovery.c
+++ b/fs/f2fs/recovery.c
@@ -412,7 +412,7 @@ static int do_recover_data(struct f2fs_sb_info *sbi, struct inode *inode,
set_summary(&sum, dn.nid, dn.ofs_in_node, ni.version);
/* write dummy data page */
- recover_data_page(sbi, NULL, &sum, src, dest);
+ f2fs_replace_block(sbi, &sum, src, dest, false);
dn.data_blkaddr = dest;
set_data_blkaddr(&dn);
f2fs_update_extent_cache(&dn);