Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755421Ab3JRBRJ (ORCPT ); Thu, 17 Oct 2013 21:17:09 -0400 Received: from mail-ve0-f175.google.com ([209.85.128.175]:65250 "EHLO mail-ve0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752316Ab3JRBRE (ORCPT ); Thu, 17 Oct 2013 21:17:04 -0400 MIME-Version: 1.0 In-Reply-To: <1382057438-3306-4-git-send-email-davidlohr@hp.com> References: <1382057438-3306-1-git-send-email-davidlohr@hp.com> <1382057438-3306-4-git-send-email-davidlohr@hp.com> Date: Thu, 17 Oct 2013 18:17:02 -0700 X-Google-Sender-Auth: h6ldCpeK5ylhYTNvxIt1AnKd4dA Message-ID: Subject: Re: [PATCH 3/3] vdso: preallocate new vmas From: Linus Torvalds To: Davidlohr Bueso Cc: Andrew Morton , Ingo Molnar , Michel Lespinasse , Peter Zijlstra , Rik van Riel , Tim Chen , "Chandramouleeswaran, Aswin" , linux-mm , Linux Kernel Mailing List , Russell King , Catalin Marinas , Will Deacon , Richard Kuo , Ralf Baechle , Benjamin Herrenschmidt , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , Paul Mundt , Chris Metcalf , Jeff Dike , Richard Weinberger , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1138 Lines: 27 This seems somewhat insane: int install_special_mapping(struct mm_struct *mm, unsigned long addr, unsigned long len, + unsigned long vm_flags, struct page **pages, + struct vm_area_struct **vma_prealloc) { + int ret = 0; + struct vm_area_struct *vma = *vma_prealloc; (removed the "old" lines to make it more readable). Why pass in "struct vm_area_struct **vma_prealloc" when you could just pass in a plain and more readable "struct vm_area_struct *vma"? My *guess* is that you originally cleared the vma_prealloc thing if you used it, but in the patch you sent out you definitely don't (the _only_ use of that "vma_prealloc" is the line that loads the content into "vma", so this interface looks like it is some remnant of an earlier and more complicated patch? Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/