writeback: add wbc_to_write_cmd()
authorJens Axboe <axboe@fb.com>
Thu, 21 Jul 2016 17:03:29 +0000 (11:03 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 26 Jul 2016 02:57:54 +0000 (20:57 -0600)
commitd15dd8470380d739335468212645507f24a86ed1
tree1ff13d01aeda31c62c56b6db3c2b35301ad234b0
parentfbc26597009bc195322be72f7ffc1f4395e455cd
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