commit | de32ec4cfeb3b3afd2abf5116068deace10e420f | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Thu Mar 21 11:16:56 2013 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Tue Apr 09 14:13:00 2013 -0400 |
tree | 5f9dc308ed075f8de192a2288cf9f083a9b28a5a | |
parent | 72b0d9aacb89f3759931ec440e1b535671145bb4 [diff] [blame] |
pipe: set file->private_data to ->i_pipe simplify get_pipe_info(), while we are at it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/coredump.c b/fs/coredump.c index 288e5c9..a987f3d 100644 --- a/fs/coredump.c +++ b/fs/coredump.c
@@ -409,9 +409,7 @@ static void wait_for_dump_helpers(struct file *file) { - struct pipe_inode_info *pipe; - - pipe = file_inode(file)->i_pipe; + struct pipe_inode_info *pipe = file->private_data; pipe_lock(pipe); pipe->readers++;