f2fs: read node blocks ahead when truncating blocks
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 6 May 2016 23:19:43 +0000 (16:19 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 7 May 2016 17:44:56 +0000 (10:44 -0700)
commit79344efb93a26378a91193bed133cee42162cd81
tree661222cc79afdc9c8f7b9954b9868b8cd89184a2
parente12dd7bd874cb1c8658d5e8c1eab5f91a71939dc
f2fs: read node blocks ahead when truncating blocks

This patch enables reading node blocks in advance when truncating large
data blocks.

 > time rm $MNT/testfile (500GB) after drop_cachees
Before : 9.422 s
After  : 4.821 s

Reported-by: Stephen Bates <stephen.bates@microsemi.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c
fs/f2fs/node.c