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)
committerIan Chang <ianc@nvidia.com>
Wed, 27 Jan 2016 10:03:40 +0000 (18:03 +0800)
commit7abb8ca0bd2e27da2aa9c8fa469cf4b6d1a89f58
tree3888806cdfec953fb7ac75550fbcf3c9557770a0
parenta2bfcfcfaa59d93ca10c4a8fc2cc3ff2f9f790de
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