writeback: add wbc_to_write_cmd()
authorJens Axboe <axboe@fb.com>
Thu, 14 Apr 2016 15:33:14 +0000 (09:33 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 26 Apr 2016 15:51:21 +0000 (09:51 -0600)
commit5cef6d4abb6e3fa1953eefaa272349056f117449
treece5c034c489437f80b90fb231cc677f4e46a31cc
parent8a99b2d6679bacb211ae919960763816d483b114
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