writeback: add wbc_to_write_flags()
authorJens Axboe <axboe@fb.com>
Wed, 27 Jul 2016 21:24:08 +0000 (15:24 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 4 Oct 2016 16:18:57 +0000 (10:18 -0600)
commitb74d36372af9189f72e4959b8c8499d5b7731e1e
tree53780e4c4a6585cb646bdd250c05425e78403e33
parentb2a5e10257a5cbdcdd8a55726ff3fb0fe40085cf
writeback: add wbc_to_write_flags()

Add wbc_to_write_flags(), which returns the write modifier flags 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/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