xfs: use iomap for blocksize == PAGE_SIZE readpage and readpages
authorChristoph Hellwig <hch@lst.de>
Thu, 12 Jul 2018 05:25:56 +0000 (22:25 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:25:56 +0000 (22:25 -0700)
commit8b2e77c1634935aefc9a4e2aacadda9cd30b78d7
treeb051341e99d8593e85b73664d71d8aaf1e9a7962
parentc2efdfc100af42cc04525ef0db74b176da59e1a4
xfs: use iomap for blocksize == PAGE_SIZE readpage and readpages

For file systems with a block size that equals the page size we never do
partial reads, so we can use the buffer_head-less iomap versions of
readpage and readpages without conflicting with the buffer_head structures
create later in write_begin.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_aops.c