xfs: stop using generic_file_read_iter for direct I/O
authorChristoph Hellwig <hch@lst.de>
Wed, 20 Jul 2016 01:36:57 +0000 (11:36 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 20 Jul 2016 01:36:57 +0000 (11:36 +1000)
commitf1285ff0acf9040a39921355d07bd83a3308c402
treeea0906759f357f47b8c1049615f1f44a7f817d5e
parentbbc5a740c4f27a9732a3a3decf3186b4bce21108
xfs: stop using generic_file_read_iter for direct I/O

XFS already implement it's own flushing of the pagecache because it
implements proper synchronization for direct I/O reads.  This means
calling generic_file_read_iter for direct I/O is rather useless,
as it doesn't do much but updating the atime and iocb position for
us.  This also gets rid of the buffered I/O fallback that isn't used
for XFS.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_file.c