svn commit: r228263 - head/sys/fs/fifofs

Konstantin Belousov kib at FreeBSD.org
Sun Dec 4 19:25:49 UTC 2011


Author: kib
Date: Sun Dec  4 19:25:49 2011
New Revision: 228263
URL: http://svn.freebsd.org/changeset/base/228263

Log:
  Initialize fifoinfo fi_wgen field on open. The only important is the
  difference between fi_wgen and f_seqcount, so the change is purely
  cosmetic, but it makes the code easier to understand.
  
  Submitted by:	gianni
  MFC after:	2 weeks

Modified:
  head/sys/fs/fifofs/fifo_vnops.c

Modified: head/sys/fs/fifofs/fifo_vnops.c
==============================================================================
--- head/sys/fs/fifofs/fifo_vnops.c	Sun Dec  4 18:55:19 2011	(r228262)
+++ head/sys/fs/fifofs/fifo_vnops.c	Sun Dec  4 19:25:49 2011	(r228263)
@@ -218,7 +218,7 @@ fail1:
 			free(fip, M_VNODE);
 			return (error);
 		}
-		fip->fi_readers = fip->fi_writers = 0;
+		fip->fi_wgen = fip->fi_readers = fip->fi_writers = 0;
 		wso->so_snd.sb_lowat = PIPE_BUF;
 		SOCKBUF_LOCK(&rso->so_rcv);
 		rso->so_rcv.sb_state |= SBS_CANTRCVMORE;


More information about the svn-src-all mailing list