Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4076317imm; Mon, 25 Jun 2018 09:18:38 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL328oAgLxfZNMGviWKAjCXidiRyEaOYdBLlNol/lnM5fS02dc95uAGrhfttBbjnU4xD56I X-Received: by 2002:a62:9896:: with SMTP id d22-v6mr2009964pfk.21.1529943518430; Mon, 25 Jun 2018 09:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529943518; cv=none; d=google.com; s=arc-20160816; b=HhqSqZYOoRCVnD2/eMMO/p5fhC3cMdi2ifDsHkeweAvxjKjugz2Cre+6iTsXdW2EPX EhaScyfP5KBbgaWC64QrNy9ob38lw2pq/s8MkZEpPUMpnrGDrNstuittgh7iLpbrBMq5 48LStIMsVckLrV9m0dJDK6hqW8AXMWEZS63Pwgr+5lyXhOh/6YgqRiua9PHfKraIqryu buY0Ft6nzW+ZYRopcGCfT7xbIlPv2jYnLtHXwUDRMxEjpt+GvLYsva4lfh54EwxlZWCJ Rmd9vzye/yZkBl3rX0p0KLAiHM66RYQY0jyv1G5FP7qSkDeMV+c7vY1PNrAC78+E/E+h 6LeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=YlqUJssjDb8lzobufeprd8vdQx/JcXvZ1MP3br1OLIQ=; b=Ruis8ZWwP7pbzQfGK2fMYYUySkTO3X2CRln7Nlle7R8h9jT3k387+7mvmuR2lqpLK9 Yo1qVy1ozE30rOFbRI9F/im38ISkC9VZhqWWhMDziTcOBROmJ2OtklB8CC88Q9So1T70 2NC4yG1rsz/FYOJuAzAf53GlZMNMk9VXfn08Nss3oW6CbBdIL26xG3o7hDT64+TuoKvW yCNxgncBi4MT2GcpkIYPnF4W7FfTMR8EmpZtdbIrE3YGEmJ/npqBp10G1667KHqkKHAA 5oUL1rONkLUAJ7fv/wyu9agkx+SI2xMi+S+fAisXf9+BuRgd/fiVbxHcV6pFCjilC2XC PJuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZQ3DCVgi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5-v6si14990825pfb.244.2018.06.25.09.18.23; Mon, 25 Jun 2018 09:18:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZQ3DCVgi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755306AbeFYQPy (ORCPT + 99 others); Mon, 25 Jun 2018 12:15:54 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:33252 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752514AbeFYQPw (ORCPT ); Mon, 25 Jun 2018 12:15:52 -0400 Received: by mail-lf0-f67.google.com with SMTP id b7-v6so4074674lfa.0 for ; Mon, 25 Jun 2018 09:15:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YlqUJssjDb8lzobufeprd8vdQx/JcXvZ1MP3br1OLIQ=; b=ZQ3DCVgiW9okNbnmw4D+boHZ1AeC31PEJLKnNGS5iGdbkK3nU8UIU1joLUu1XN9FFn nKU2fkEYvFvDuNiMC5eT4FQ97kO/7+FqsmpuzIbF6olhbGdpqZXy/zRwu3M30xuOZEYH XHFxizWLsv46i/VnIk6OxygA9QyASI9/uojZyUr2YLp6Zo/sNRQRYmEpatvDosoITqE0 iDJxQEBqXtAFhh0nbRH2W1mOJVVPrK6T3+981WckpndaJh+ZRPwZh3RseerDPoUqvXk1 5hc1Yh/3SEmtlmbiIDqtA5ZyXf/5u5+sIpWvArnZvCz+GxTCab2AeQe6i+U9pqSECGT+ XecQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YlqUJssjDb8lzobufeprd8vdQx/JcXvZ1MP3br1OLIQ=; b=SP+9PRuQz7WNX5AIyjL9jPyFIsFnBlMRnX4GwwJ2tcyQIW+iaoErof2ZPW6dxKsPxT Ugohv8K1VbNfzyADbth1LtG8tJES+1m0HEiM3258Qv9rBB7mAAeYR2DpvBGnoqc3kqY5 7YA1d4fPwRU64JQWVUsagAAduF2H7cnE1xM4bpATDLDws9QsQDTitTVO3dZzvR8vohr2 tZBOcSXI9AnPxcyirAGDO3vIs5O5oalZwtSbybhtAnjBLyJ1HZnAC5xgYhu8HdAcobp5 9rYRLhkgldxrTXNFQ2BVRBx25Wyx/fdjTvKS6SqqOCNvWKJV6o2pRSvYtEuBKYKoAlUq S5oQ== X-Gm-Message-State: APt69E3rD9v2sdBx6D05E9kB4RQEv7OpulMYDzy4UtoCqtO3tl1iNLBr VgT9pzNUPAVIpr91hw1VQxUiQlTbSQB0hpqltk8= X-Received: by 2002:a19:20c1:: with SMTP id g184-v6mr6580813lfg.96.1529943351117; Mon, 25 Jun 2018 09:15:51 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:2b43:0:0:0:0:0 with HTTP; Mon, 25 Jun 2018 09:15:50 -0700 (PDT) In-Reply-To: References: <20180625155750.GA14306@jordon-HP-15-Notebook-PC> From: Souptick Joarder Date: Mon, 25 Jun 2018 21:45:50 +0530 Message-ID: Subject: Re: [PATCH] x86/vdso: Change return type to vm_fault_t for fault handlers To: Andy Lutomirski Cc: Matthew Wilcox , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , X86 ML , LKML , brajeswar.linux@gmail.com, Sabyasachi Gupta Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 25, 2018 at 9:41 PM, Andy Lutomirski wrote: > On Mon, Jun 25, 2018 at 8:55 AM Souptick Joarder wrote: >> >> Use new return type vm_fault_t for fault handler. For >> now, this is just documenting that the function returns >> a VM_FAULT value rather than an errno. Once all instances >> are converted, vm_fault_t will become a distinct type. > > Whoa there.. Your commit message makes it sound like you're just > changing the return type, but: > >> if (tsc_pg && vclock_was_used(VCLOCK_HVCLOCK)) >> - ret = vm_insert_pfn(vma, vmf->address, >> + ret = vmf_insert_pfn(vma, vmf->address, >> vmalloc_to_pfn(tsc_pg)); >> } >> >> - if (ret == 0 || ret == -EBUSY) >> - return VM_FAULT_NOPAGE; >> - >> - return VM_FAULT_SIGBUS; >> + return ret; > > You're refactoring the code, too. > > Please fix your changelog. I have mentioned it. ******************** Ref-> commit 1c8f422059ae ("mm: change return type to vm_fault_t") Previously vm_insert_pfn() returns err which has to mapped into VM_FAULT_* type. The new function vmf_insert_pfn() will replace this inefficiency by returning VM_FAULT_* type. *********************