fs: direct-io: don't dirtying pages for ITER_BVEC/ITER_KVEC direct read
authorMing Lei <ming.lei@canonical.com>
Mon, 17 Aug 2015 02:31:46 +0000 (10:31 +0800)
committerJens Axboe <axboe@fb.com>
Wed, 23 Sep 2015 17:00:57 +0000 (11:00 -0600)
commit53cbf3b157a0428d40989ab1c7df9228a1976fc2
tree70f1e0c29c0e8d07b1d0e7d03ce8d09a95c9cb1d
parent5948edbcbf43759586cdf2656d293ea7de310280
fs: direct-io: don't dirtying pages for ITER_BVEC/ITER_KVEC direct read

When direct read IO is submitted from kernel, it is often
unnecessary to dirty pages, for example of loop, dirtying pages
have been considered in the upper filesystem(over loop) side
already, and they don't need to be dirtied again.

So this patch doesn't dirtying pages for ITER_BVEC/ITER_KVEC
direct read, and loop should be the 1st case to use ITER_BVEC/ITER_KVEC
for direct read I/O.

The patch is based on previous Dave's patch.

Reviewed-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/direct-io.c