]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8cd13af5bf7fd51a344b249528793b08362bacb3
treeb051341e99d8593e85b73664d71d8aaf1e9a7962
parent16e9e0415ac468e6a037f8cfcc0e664eff6a3315
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