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, 31 Aug 2016 16:48:02 +0000 (10:48 -0600)
commit7032bc9d4235ca97142b928d3718c1a872834e99
treefd13c27d0392e734d9a9e0692c0e4937babe8c61
parent0e46358e1a8d3061105429dfacd06ab2ad7b646d
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