f2fs: preallocate blocks for encrypted file
authorYunlei He <heyunlei@huawei.com>
Sun, 18 Sep 2016 00:16:56 +0000 (08:16 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 22 Sep 2016 18:43:08 +0000 (11:43 -0700)
commit5d4c0af41fd4cc26cb75af4f3de7fb63c91209c1
tree70e7c5105a9791897f2ba94e0e2264130405df02
parent5bc994a043470c3ee544edaefbf93406d00f8de7
f2fs: preallocate blocks for encrypted file

This patch allow preallocates data blocks for buffered aio writes
in encrypted file.

Signed-off-by: Yunlei He <heyunlei@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
[Jaegeuk Kim: fix to avoid BUG_ON]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/segment.c