]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
f2fs: hide common code in f2fs_replace_block
authorChao Yu <chao2.yu@samsung.com>
Thu, 28 May 2015 11:15:35 +0000 (19:15 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 2 Jun 2015 16:52:07 +0000 (09:52 -0700)
commit528e34593d6eff11a289ef23452c66175a340f0b
treeee116eb15e84ee2837207649a484c999d7a2c66f
parent96c6dd59bf1d8b30afd3681550b321f4183e1914
f2fs: hide common code in f2fs_replace_block

This patch clean up codes through:
1.rename f2fs_replace_block to __f2fs_replace_block().
2.introduce new f2fs_replace_block() to include __f2fs_replace_block()
and some common related codes around __f2fs_replace_block().

Then, newly introduced function f2fs_replace_block can be used by
following patch.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/recovery.c
fs/f2fs/segment.c