diff options
author | Christoph Hellwig <hch@lst.de> | 2021-01-23 21:06:29 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-02-01 20:47:19 +0300 |
commit | 670654b004b0bf7a0bc749f4f555fdefd5c89dcb (patch) | |
tree | 396a6a3c745e838a6840225d9f7f4a62cd142314 /fs/xfs | |
parent | ee1b218b09560982010e4dfffa8f9d4f05f62220 (diff) | |
download | linux-670654b004b0bf7a0bc749f4f555fdefd5c89dcb.tar.xz |
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>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_file.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 3dc5f8ca64ec..b38002ddfa6c 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -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; } |