f2fs: allocate node and hot data in the beginning of partition
authorJaegeuk Kim <jaegeuk@kernel.org>
Sat, 25 Mar 2017 00:41:45 +0000 (20:41 -0400)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 30 Mar 2017 00:34:37 +0000 (17:34 -0700)
commit7a20b8a61eff81bdb7097a578752a74860e9d142
treeaebd2031eeea3771201126c0b4020e4f09d6a20a
parentc541a51b8ce81d003b02ed67ad3604a2e6220e3e
f2fs: allocate node and hot data in the beginning of partition

In order to give more spatial locality, this patch changes the block allocation
policy which assigns beginning of partition for small and hot data/node blocks.
In order to do this, we set noheap allocation by default and introduce another
mount option, heap, to reset it back.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c
fs/f2fs/segment.c
fs/f2fs/super.c