]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove xfs_file_wait_for_io
authorChristoph Hellwig <hch@lst.de>
Thu, 20 Oct 2016 04:49:55 +0000 (15:49 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 20 Oct 2016 04:49:55 +0000 (15:49 +1100)
commitec40759902556f21f37641ad9f19d02c4dd4b555
treeadddbc1b53cb05c0a60e1d16c69dfdd86bece914
parent576177818e6f1e65f6109ed4a8fae8b60131c861
xfs: remove xfs_file_wait_for_io

filemap_write_and_wait_range operates on full pages, so there is no
need for the rounding operations.  Additionally this allows us to
micro-optimize by skipping the second inode_dio_wait for a
intra-file clone.

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