f2fs: move all the bio initialization into __bio_alloc
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Fri, 20 Dec 2013 09:39:59 +0000 (17:39 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:18:07 +0000 (10:18 +0900)
Move all the bio initialization into __bio_alloc, and some minor cleanups are
also added.

v3:
  Use 'bool' rather than 'int' as Kim suggested.

v2:
  Use 'is_read' rather than 'rw' as Yu Chao suggested.
  Remove the needless initialization of bio->bi_private.

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/data.c

diff --cc fs/f2fs/data.c
Simple merge