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>
Mon, 18 Apr 2016 01:16:44 +0000 (20:16 -0500)
commitf5dac7d91a584e8b52de0a0bd33787e7300cfdd5
treef7d10c6607a83ae70623ec699766c962d42e3a74
parent462ca58af90f301528d7e77eac347146254da90c
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>
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