diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-21 16:16:56 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-09 20:13:00 +0200 |
commit | de32ec4cfeb3b3afd2abf5116068deace10e420f (patch) | |
tree | 5f9dc308ed075f8de192a2288cf9f083a9b28a5a /fs/coredump.c | |
parent | pipe: don't use ->i_mutex (diff) | |
download | linux-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.c | 4 |
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++; |