Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
7bee130e
Commit
7bee130e
authored
Mar 21, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get rid of alloc_pipe_info() argument
not used anymore Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
6447a3cf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
fs/pipe.c
fs/pipe.c
+3
-3
fs/splice.c
fs/splice.c
+1
-1
include/linux/pipe_fs_i.h
include/linux/pipe_fs_i.h
+1
-1
No files found.
fs/pipe.c
View file @
7bee130e
...
...
@@ -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
;
...
...
fs/splice.c
View file @
7bee130e
...
...
@@ -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
;
...
...
include/linux/pipe_fs_i.h
View file @
7bee130e
...
...
@@ -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
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment