f2fs: use extent cache to optimize f2fs_reserve_block
authorFan Li <fanofcode.li@samsung.com>
Wed, 5 Aug 2015 07:52:16 +0000 (15:52 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 6 Aug 2015 05:15:42 +0000 (22:15 -0700)
commit759af1c9c16fec5323111b799ce25a3d8864df7e
treec92f1022dd58aaf20d51742da74b886e91e701fc
parente90c2d2850d9d034e814a328725a4b15878f0357
f2fs: use extent cache to optimize f2fs_reserve_block

In some cases, we only need the block address when we call
f2fs_reserve_block,
other fields of struct dnode_of_data aren't necessary.
We can try extent cache first for such cases in order to speed up the
process.

Signed-off-by: Fan li <fanofcode.li@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h