From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f72.google.com (mail-pg0-f72.google.com [74.125.83.72]) by kanga.kvack.org (Postfix) with ESMTP id 299F76B0003 for ; Mon, 16 Apr 2018 13:47:44 -0400 (EDT) Received: by mail-pg0-f72.google.com with SMTP id t2so2990152pgb.19 for ; Mon, 16 Apr 2018 10:47:44 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id n7si7993738pgu.88.2018.04.16.10.47.43 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Apr 2018 10:47:43 -0700 (PDT) Date: Mon, 16 Apr 2018 10:47:40 -0700 From: Matthew Wilcox Subject: Re: [PATCH] dax: Change return type to vm_fault_t Message-ID: <20180416174740.GA12686@bombadil.infradead.org> References: <20180414155059.GA18015@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Dan Williams Cc: Souptick Joarder , linux-nvdimm , Linux MM , Andrew Morton , Michal Hocko On Mon, Apr 16, 2018 at 09:14:48AM -0700, Dan Williams wrote: > > - rc = vm_insert_mixed(vmf->vma, vmf->address, pfn); > > - > > - if (rc == -ENOMEM) > > - return VM_FAULT_OOM; > > - if (rc < 0 && rc != -EBUSY) > > - return VM_FAULT_SIGBUS; > > - > > - return VM_FAULT_NOPAGE; > > + return vmf_insert_mixed(vmf->vma, vmf->address, pfn); > > Ugh, so this change to vmf_insert_mixed() went upstream without fixing > the users? This changelog is now misleading as it does not mention > that is now an urgent standalone fix. On first read I assumed this was > part of a wider effort for 4.18. You read too quickly. vmf_insert_mixed() is a *new* function which *replaces* vm_insert_mixed() and awful-mangling-of-return-values-done-per-driver. Eventually vm_insert_mixed() will be deleted. But today is not that day.