Merge tag 'xfs-5.19-for-linus-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[sfrench/cifs-2.6.git] / fs / xfs / xfs_file.c
index a60632ecc3f0aa2c452c448e6309a9f2733c7aaa..5a171c0b244b7cd5640f9b6ed8e69b0131eeea2e 100644 (file)
@@ -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;
        }