summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_file.c
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2022-05-23 08:55:09 +1000
committerDave Chinner <david@fromorbit.com>2022-05-23 08:55:09 +1000
commitab6a8d3f1a2a85dea5b300fd63b7033cb1040a95 (patch)
tree40fa149944c002cca9c7e3480c2fb47d7836bcac /fs/xfs/xfs_file.c
parent4183e4f27f402d712bccab30588a6fe7575963c0 (diff)
parent73c348d4ab5c34aa2186071e66eaa5700d35e104 (diff)
downloadlinux-stable-ab6a8d3f1a2a85dea5b300fd63b7033cb1040a95.tar.gz
linux-stable-ab6a8d3f1a2a85dea5b300fd63b7033cb1040a95.tar.bz2
linux-stable-ab6a8d3f1a2a85dea5b300fd63b7033cb1040a95.zip
Merge branch 'guilt/xfs-5.19-misc-3' into xfs-5.19-for-next
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r--fs/xfs/xfs_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index af954a5b71f8..e2f2a3a94634 100644
--- a/fs/xfs/xfs_file.c
+++ b/fs/xfs/xfs_file.c
@@ -576,9 +576,9 @@ xfs_file_dio_write_unaligned(
* don't even bother trying the fast path in this case.
*/
if (iocb->ki_pos > isize || iocb->ki_pos + count >= isize) {
-retry_exclusive:
if (iocb->ki_flags & IOCB_NOWAIT)
return -EAGAIN;
+retry_exclusive:
iolock = XFS_IOLOCK_EXCL;
flags = IOMAP_DIO_FORCE_WAIT;
}