diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index f9bea57abbde7295ddad725cc06c35e1ebaa684d..f8be9d629e7572246925c93e56dcbd5804f49400 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1575,8 +1575,8 @@ static ssize_t btrfs_direct_write(struct kiocb *iocb, struct iov_iter *from) /* * If we are in a NOWAIT context, then return -EAGAIN to signal the caller * it must retry the operation in a context where blocking is acceptable, - * since we currently don't have NOWAIT semantics support for buffered IO - * and may block there for many reasons (reserving space for example). + * because even if we end up not blocking during the buffered IO attempt + * below, we will block when flushing and waiting for the IO. */ if (iocb->ki_flags & IOCB_NOWAIT) { err = -EAGAIN;