f2fs: fallocate data blocks in single locked node page
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 6 May 2016 22:30:38 +0000 (15:30 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 7 May 2016 17:44:55 +0000 (10:44 -0700)
commite12dd7bd874cb1c8658d5e8c1eab5f91a71939dc
tree8c76421e5fdc95531c0019bfb1760cc47aa1a965
parentf61cce5b81f91ba336184008b24baec84afbb3dd
f2fs: fallocate data blocks in single locked node page

This patch is to improve the expand_inode speed in fallocate by allocating
data blocks as many as possible in single locked node page.

In SSD,
 # time fallocate -l 500G $MNT/testfile

Before : 1m 33.410 s
After  : 24.758 s

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