From: Christoph Hellwig Date: Sat, 23 Jan 2021 18:06:29 +0000 (-0800) Subject: xfs: remove the buffered I/O fallback assert X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=670654b004b0bf7a0bc749f4f555fdefd5c89dcb;p=linux.git 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 Reviewed-by: Dave Chinner Reviewed-by: Brian Foster Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 3dc5f8ca64ec6..b38002ddfa6cf 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; }