f2fs: introduce nr_pages_to_write for segment alignment
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 18 Mar 2014 04:47:11 +0000 (13:47 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 18 Mar 2014 07:37:53 +0000 (16:37 +0900)
commit50c8cdb35ad8016c52fb2326ef9d65542e3a3e1b
treedb261148aaa96080b35d61f8b1ac09d1fecb87a4
parentd3baf95da5b0bce9fe980eeff6140817d63fabdf
f2fs: introduce nr_pages_to_write for segment alignment

This patch introduces nr_pages_to_write to align page writes to the segment
or other operational unit size, which can be tuned according to the system
environment.

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