mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04: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 <[email protected]> Reviewed-by: Dave Chinner <[email protected]> Reviewed-by: Brian Foster <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
This commit is contained in:
1 parent
ee1b218b09
commit
670654b004
1 file changed
-6
@@ -609,12 +609,6 @@ xfs_file_dio_write(
|
||||
out:
|
||||
if (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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user