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>
Wed, 7 Sep 2016 14:39:49 +0000 (08:39 -0600)
commit33a170c4f076584bc05feb19efa7beb0ee099318
tree5a06fa19170925afc0021c07d8b924e4625eeb49
parent273d4cb9fc3d75b6b7f147d1a064f75a5412a76c
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