writeback: add wbc_to_write()
authorJens Axboe <axboe@fb.com>
Wed, 23 Mar 2016 03:36:10 +0000 (21:36 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 28 Mar 2016 15:13:00 +0000 (09:13 -0600)
commit9df8cf758f4c6b591e02755c7f5056bfe2e2999b
treef34d519baa6c4cef356450889e3c067291bfbaaa
parent2f8149ed2bafac6a50b05397e3902c854428c5da
writeback: add wbc_to_write()

Add wbc_to_write(), which returns the write type to use, based on a
struct writeback_control. No functional changes in this patch, but it
prepares us for factoring other wbc fields for write type.

Signed-off-by: Jens Axboe <axboe@fb.com>
fs/block_dev.c
fs/buffer.c
fs/f2fs/data.c
fs/f2fs/node.c
fs/gfs2/meta_io.c
fs/mpage.c
fs/xfs/xfs_aops.c
include/linux/writeback.h