patch-2.1.46 linux/fs/pipe.c

Next file: linux/include/linux/fs.h
Previous file: linux/fs/open.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.45/linux/fs/pipe.c linux/fs/pipe.c
@@ -391,7 +391,6 @@
 		} else {
 			PIPE_BASE(*inode) = (char *) page;
 			inode->i_op = &pipe_inode_operations;
-			inode->i_count = 1;
 			PIPE_WAIT(*inode) = NULL;
 			PIPE_START(*inode) = PIPE_LEN(*inode) = 0;
 			PIPE_RD_OPENERS(*inode) = PIPE_WR_OPENERS(*inode) = 0;
@@ -404,7 +403,7 @@
 			 * that it already _is_ on the dirty list.
 			 */
 			inode->i_state = 1 << I_DIRTY;
-			inode->i_mode |= S_IFIFO | S_IRUSR | S_IWUSR;
+			inode->i_mode = S_IFIFO | S_IRUSR | S_IWUSR;
 			inode->i_uid = current->fsuid;
 			inode->i_gid = current->fsgid;
 			inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov