patch-2.3.48 linux/fs/pipe.c

Next file: linux/fs/proc/base.c
Previous file: linux/fs/partitions/msdos.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/pipe.c linux/fs/pipe.c
@@ -533,7 +533,6 @@
 
 static struct inode * get_pipe_inode(void)
 {
-	extern struct inode_operations pipe_inode_operations;
 	struct inode *inode = get_empty_inode();
 	unsigned long page;
 
@@ -548,7 +547,7 @@
 	if (!inode->i_pipe)
 		goto fail_page;
 
-	inode->i_op = &pipe_inode_operations;
+	inode->i_fop = &rdwr_pipe_fops;
 
 	init_waitqueue_head(PIPE_WAIT(*inode));
 	PIPE_BASE(*inode) = (char *) page;
@@ -577,10 +576,6 @@
 fail_inode:
 	return NULL;
 }
-
-struct inode_operations pipe_inode_operations = {
-	&rdwr_pipe_fops,
-};
 
 int do_pipe(int *fd)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)