writeback: add wbc_to_write_cmd()
authorJens Axboe <axboe@fb.com>
Mon, 12 Sep 2016 15:01:20 +0000 (09:01 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 12 Sep 2016 15:01:20 +0000 (09:01 -0600)
commit35df85e7ed19c5d91370cdf40f14d7f06591e340
treedd8374835644f14296cfc1faacd80731c84c54b1
parentaa590e90be1a5bea18f3efd4b31d6fbfaedb98df
writeback: add wbc_to_write_cmd()

Add wbc_to_write_cmd(), 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>
Reviewed-by: Jan Kara <jack@suse.cz>
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