commit | cb0942b81249798e15c3f04eee2946ef543e8115 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Mon Aug 27 14:48:26 2012 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Wed Sep 26 21:10:25 2012 -0400 |
tree | 7d494c580a847342577661782c5173f76178aa81 | |
parent | cecb46f194460d23cacf3b13593f9f5a4f7a0fed [diff] [blame] |
make get_file() return its argument simplifies a bunch of callers... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/mm/mmap.c b/mm/mmap.c index ae18a48..872441e 100644 --- a/mm/mmap.c +++ b/mm/mmap.c
@@ -1301,8 +1301,7 @@ goto free_vma; correct_wcount = 1; } - vma->vm_file = file; - get_file(file); + vma->vm_file = get_file(file); error = file->f_op->mmap(file, vma); if (error) goto unmap_and_free_vma;