ext4: replace ext4_io_submit->io_op with ->io_wbc
authorTejun Heo <tj@kernel.org>
Wed, 22 Jul 2015 03:50:24 +0000 (23:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 22 Jul 2015 03:50:24 +0000 (23:50 -0400)
ext4_io_submit_init() takes the pointer to writeback_control to test
its sync_mode and determine between WRITE and WRITE_SYNC and records
the result in ->io_op.  This patch makes it record the pointer
directly and moves the test to ext4_io_submit().

This doesn't cause any noticeable differences now but having
writeback_control available throughout IO submission path will be
depended upon by the planned cgroup writeback support.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/page-io.c

diff --cc fs/ext4/ext4.h
Simple merge
Simple merge