f2fs: avoid small data writes by skipping writepages
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 18 Mar 2014 03:40:49 +0000 (12:40 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 18 Mar 2014 04:58:59 +0000 (13:58 +0900)
commit87d6f890944d092c4ef5b84053f0d0d5d8137b0b
treeb66d6ff07f4e9d838f43e3ddb0eae916507ce343
parentf8b2c1f940dca2843fe13b55ba5868bac8040551
f2fs: avoid small data writes by skipping writepages

This patch introduces nr_pages_to_skip(sbi, type) to determine writepages can
be skipped.
The dentry, node, and meta pages can be conrolled by F2FS without breaking the
FS consistency.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/checkpoint.c
fs/f2fs/data.c
fs/f2fs/node.c
fs/f2fs/segment.h