mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
xfs: remove the buffered I/O fallback assert
The iomap code has been designed from the start not to do magic fallback, so remove the assert in preparation for further code cleanups. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
This commit is contained in:
parent
ee1b218b09
commit
670654b004
1 changed files with 0 additions and 6 deletions
|
@ -609,12 +609,6 @@ xfs_file_dio_write(
|
||||||
out:
|
out:
|
||||||
if (iolock)
|
if (iolock)
|
||||||
xfs_iunlock(ip, iolock);
|
xfs_iunlock(ip, iolock);
|
||||||
|
|
||||||
/*
|
|
||||||
* No fallback to buffered IO after short writes for XFS, direct I/O
|
|
||||||
* will either complete fully or return an error.
|
|
||||||
*/
|
|
||||||
ASSERT(ret < 0 || ret == count);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue