Thread (20 messages) 20 messages, 6 authors, 2017-06-17

Re: [PATCH 04/10] fs: Introduce RWF_NOWAIT and FMODE_AIO_NOWAIT

From: Al Viro <hidden>
Date: 2017-06-17 04:09:47
Also in: linux-block, linux-fsdevel

On Thu, Jun 15, 2017 at 10:59:56AM -0500, Goldwyn Rodrigues wrote:
quoted hunk ↗ jump to hunk
 static inline int kiocb_set_rw_flags(struct kiocb *ki, int flags)
 {
-	if (unlikely(flags & ~(RWF_HIPRI | RWF_DSYNC | RWF_SYNC)))
+	if (unlikely(flags & ~(RWF_HIPRI | RWF_DSYNC | RWF_SYNC | RWF_NOWAIT)))
Minor nit: that calls for something like
	if (unlikely(flags & ~RWF_ALL)
 		return -EOPNOTSUPP;
with corresponding definition.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help