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>
This commit is contained in:
Al Viro
2013-03-21 11:16:56 -04:00
부모 72b0d9aacb
커밋 de32ec4cfe
2개의 변경된 파일10개의 추가작업 그리고 11개의 파일을 삭제

파일 보기

@@ -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++;