xfs: use ENOTBLK for direct I/O to buffered I/O fallback
authorChristoph Hellwig <hch@lst.de>
Fri, 24 Jul 2020 05:45:58 +0000 (22:45 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 5 Aug 2020 16:24:16 +0000 (09:24 -0700)
commit80e543ae24db8f03241004136cb5bb37586fba70
treefae2d48ffec7d9f6b2f77c1b9d82b3785b6129b2
parent54752de928c40028e5575ab6b49be9ec3c24b466
xfs: use ENOTBLK for direct I/O to buffered I/O fallback

This is what the classic fs/direct-io.c implementation and thuse other
file systems use.

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