f2fs: add a new function: f2fs_reserve_block()
authorHuajun Li <huajun.li@intel.com>
Sun, 10 Nov 2013 15:13:18 +0000 (23:13 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:18:03 +0000 (10:18 +0900)
commitb600965c43f9690eb481d0c19948e109b685bde7
treea74052ffde2e60c1a179e4e72a99ba3acd5eb205
parent0daaad97dcdc5cf91d368894a0954704e9a2cf2d
f2fs: add a new function: f2fs_reserve_block()

Add the function f2fs_reserve_block() to easily reserve new blocks, and
use it to clean up more codes.

Signed-off-by: Huajun Li <huajun.li@intel.com>
Signed-off-by: Haicheng Li <haicheng.li@linux.intel.com>
Signed-off-by: Weihong Xu <weihong.xu@intel.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c