Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.11 /fs/pipe.c

Filename:/fs/pipe.c
Lines Added:1
Lines Deleted:2
Also changed in: (Previous) 2.4.11-pre6  2.4.11-pre5  2.4.11-pre4  2.4.11-pre3  2.4.11-pre2  2.4.11-pre1 
(Following) 2.4.19-pre2  2.4.19-pre1-ac3  2.4.19-pre2-ac2  2.4.19-pre2-ac3  2.4.19-pre2-ac4  2.4.19-pre3 

Location
[  2.4.11
  [  fs
     o  pipe.c

Patch

diff -u --recursive --new-file v2.4.10/linux/fs/pipe.c linux/fs/pipe.c
--- v2.4.10/linux/fs/pipe.c   Sun Sep 23 11:41:00 2001
+++ linux/fs/pipe.c   Fri Sep 28 18:03:48 2001
@@ -476,7 +476,7 @@
 
 static struct inode * get_pipe_inode(void)
 {
-   struct inode *inode = get_empty_inode();
+   struct inode *inode = new_inode(pipe_mnt->mnt_sb);
 
    if (!inode)
       goto fail_inode;
@@ -485,7 +485,6 @@
       goto fail_iput;
    PIPE_READERS(*inode) = PIPE_WRITERS(*inode) = 1;
    inode->i_fop = &rdwr_pipe_fops;
-   inode->i_sb = pipe_mnt->mnt_sb;
 
    /*
     * Mark the inode dirty from the very beginning,


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.