[SSI] openssi/kernel/fs fifo.c,1.7,1.8 pipe.c,1.8,1.9

Roger Tsang <[email protected]> Sun, 29 Aug 2010 17:46:52 +0000
Newsgroups gmane.linux.cluster.ssic.cvs
Message-ID <[email protected]>
Update of /cvsroot/ssic-linux/openssi/kernel/fs
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv18590/fs

Modified Files:
      Tag: OPENSSI-FC
	fifo.c pipe.c 
Log Message:
FIFO (#ifdef RMTFB_REFCNT_FIX):
- Remove unused ssi_rmtfb_cli field in struct pipe_inode_info.  ssi_fifo_register() is a macro that tells fifo_open() to return immediately when the pipe is remote.  So the code path to set ssi_rmtfb_cli is skipped and free_pipe_info() is never traversed.


Index: pipe.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/fs/pipe.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- pipe.c	17 Dec 2009 06:43:51 -0000	1.8
+++ pipe.c	29 Aug 2010 17:46:50 -0000	1.9
@@ -656,10 +656,6 @@
 	}
 	if (info->tmp_page)
 		__free_page(info->tmp_page);
-#ifdef RMTFB_REFCNT_FIX
-	if (info->ssi_rmtfb_cli)
-		rmtfb_putcli((struct rmtfb_cli *)info->ssi_rmtfb_cli);
-#endif
 	kfree(info);
 }
 

Index: fifo.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/fs/fifo.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- fifo.c	5 Mar 2010 05:44:40 -0000	1.7
+++ fifo.c	29 Aug 2010 17:46:50 -0000	1.8
@@ -52,19 +52,6 @@
 		ret = -ENOMEM;
 		if(!pipe_new(inode))
 			goto err_nocleanup;
-#ifdef CONFIG_SSI
-#ifdef RMTFB_REFCNT_FIX
-		if (filp->private_data) {
-			void *rfb = (void *) ftocli(filp);
-			if (rfb) {
-				struct pipe_inode_info *info = inode->i_pipe;
-				/* take rmtfb_cli reference from filp */
-				info->ssi_rmtfb_cli = rfb;
-				filp->private_data = NULL;
-			}
-		}
-#endif /* RMTFB_REFCNT_FIX */
-#endif
 	}
 	filp->f_version = 0;
 


------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d