summaryrefslogtreecommitdiffstats
path: root/fs/coredump.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-21 16:16:56 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 20:13:00 +0200
commitde32ec4cfeb3b3afd2abf5116068deace10e420f (patch)
tree5f9dc308ed075f8de192a2288cf9f083a9b28a5a /fs/coredump.c
parentpipe: don't use ->i_mutex (diff)
downloadlinux-de32ec4cfeb3b3afd2abf5116068deace10e420f.tar.xz
linux-de32ec4cfeb3b3afd2abf5116068deace10e420f.zip
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++;