block: move down direct IO plugging
authorFengguang Wu <fengguang.wu@intel.com>
Thu, 9 Aug 2012 13:23:09 +0000 (15:23 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 9 Aug 2012 13:23:09 +0000 (15:23 +0200)
commit647d1e4c5235763b83fbfe74a09d148edc6ca152
tree5c7be727323b16ee80ddba672b3b3baa69454486
parent8430f9772f9ac305211f177b0fa56a312175da11
block: move down direct IO plugging

Move unplugging for direct I/O from around ->direct_IO() down to
do_blockdev_direct_IO(). This implicitly adds plugging for direct
writes.

CC: Li Shaohua <shli@fusionio.com>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/direct-io.c
mm/filemap.c