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>
Wed, 23 Mar 2016 14:35:57 +0000 (08:35 -0600)
commitbd1639f2905dc84d1d59030f3dd4cd87605cbf8e
treeaf2ac6f2f913cdec93d077d986616b076aa8233e
parent7ee6886699d4c425beac1ac5b57226ee0af35fa7
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