summaryrefslogtreecommitdiff
path: root/fs/coredump.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-21 19:16:56 +0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 22:13:00 +0400
commitde32ec4cfeb3b3afd2abf5116068deace10e420f (patch)
tree5f9dc308ed075f8de192a2288cf9f083a9b28a5a /fs/coredump.c
parent72b0d9aacb89f3759931ec440e1b535671145bb4 (diff)
downloadlinux-de32ec4cfeb3b3afd2abf5116068deace10e420f.tar.xz
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>
Diffstat (limited to 'fs/coredump.c')
-rw-r--r--fs/coredump.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/coredump.c b/fs/coredump.c
index 288e5c9f9bbe..a987f3d39d93 100644
--- a/fs/coredump.c
+++ b/fs/coredump.c
@@ -409,9 +409,7 @@ static void coredump_finish(struct mm_struct *mm)
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++;