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)
commit940a6d34b31b96f0748a4b688a551a0890b2b229
tree1db17fcefd8d15d3733877b4f6fab3f395ffeac4
parentba0697ec98f0244ea180ce336f399d1a24eb7bf8
f2fs: move all the bio initialization into __bio_alloc

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