]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf2cf196b6904a8605712393a11b2852fa58db211
tree661222cc79afdc9c8f7b9954b9868b8cd89184a2
parenta297a0093fa8d7f8e8c46c4ae1b94177b2a2e1fd
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