]> git.karo-electronics.de Git - linux-beck.git/commitdiff
get rid of alloc_pipe_info() argument
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Mar 2013 15:04:15 +0000 (11:04 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Apr 2013 18:13:01 +0000 (14:13 -0400)
not used anymore

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/pipe.c
fs/splice.c
include/linux/pipe_fs_i.h

index 39bdec06fe2b9643ae617911c43593adfb2eb0df..6cac5ceeded0ff6a35b37c71054fafde82eb094a 100644 (file)
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -775,7 +775,7 @@ pipe_fasync(int fd, struct file *filp, int on)
        return retval;
 }
 
-struct pipe_inode_info * alloc_pipe_info(struct inode *inode)
+struct pipe_inode_info *alloc_pipe_info(void)
 {
        struct pipe_inode_info *pipe;
 
@@ -841,7 +841,7 @@ static struct inode * get_pipe_inode(void)
 
        inode->i_ino = get_next_ino();
 
-       pipe = alloc_pipe_info(inode);
+       pipe = alloc_pipe_info();
        if (!pipe)
                goto fail_iput;
 
@@ -1031,7 +1031,7 @@ static int fifo_open(struct inode *inode, struct file *filp)
                spin_unlock(&inode->i_lock);
        } else {
                spin_unlock(&inode->i_lock);
-               pipe = alloc_pipe_info(inode);
+               pipe = alloc_pipe_info();
                if (!pipe)
                        return -ENOMEM;
                pipe->files = 1;
index 9f2a4447da50e6450342d159f4f5d7e218f8b50e..45e645b15d9271bb43485d8946303aeb3a32cd4e 100644 (file)
@@ -1183,7 +1183,7 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd,
         */
        pipe = current->splice_pipe;
        if (unlikely(!pipe)) {
-               pipe = alloc_pipe_info(NULL);
+               pipe = alloc_pipe_info();
                if (!pipe)
                        return -ENOMEM;
 
index ed8eeeb10811edfb93a2712cc0a56f525f76e192..765114f162435d95a816843aab674f425325f7e0 100644 (file)
@@ -146,7 +146,7 @@ int pipe_proc_fn(struct ctl_table *, int, void __user *, size_t *, loff_t *);
 /* Drop the inode semaphore and wait for a pipe event, atomically */
 void pipe_wait(struct pipe_inode_info *pipe);
 
-struct pipe_inode_info * alloc_pipe_info(struct inode * inode);
+struct pipe_inode_info *alloc_pipe_info(void);
 void free_pipe_info(struct inode * inode);
 void __free_pipe_info(struct pipe_inode_info *);