]> Zhao Yanbai Git Server - minix.git/commitdiff
VFS consistency: use I_PIPE/NO_PIPE when checking v_pipe
authorDavid van Moolenbroek <david@minix3.org>
Tue, 19 May 2009 14:34:44 +0000 (14:34 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Tue, 19 May 2009 14:34:44 +0000 (14:34 +0000)
servers/vfs/read.c

index 884b49459102652877c0886eef432194ac8549e7..65657e7994c3015f6e3aa1f8cd5dd0e75cef7113 100644 (file)
@@ -87,7 +87,7 @@ int rw_flag;                  /* READING or WRITING */
 
   vp = f->filp_vno;
 
-  if (vp->v_pipe)
+  if (vp->v_pipe == I_PIPE)
   {
        if (fp->fp_cum_io_partial != 0)
        {