From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 4 Jun 2018 06:49:03 -0700 From: Matthew Wilcox To: Souptick Joarder Cc: Al Viro , Hugh Dickins , Andrew Morton , Michal Hocko , Ross Zwisler , zi.yan@cs.rutgers.edu, "Kirill A. Shutemov" , Dan Williams , Greg KH , Mark Rutland , riel@redhat.com, pasha.tatashin@oracle.com, jschoenh@amazon.de, Kate Stewart , David Rientjes , tglx@linutronix.de, Peter Zijlstra , Mel Gorman , yang.s@alibaba-inc.com, Minchan Kim , linux-fsdevel , linux-kernel@vger.kernel.org, Linux-MM Subject: Re: [PATCH v2] mm: Change return type int to vm_fault_t for fault handlers Message-ID: <20180604134903.GA2526@bombadil.infradead.org> References: <20180602200407.GA15200@jordon-HP-15-Notebook-PC> <20180602220136.GA14810@bombadil.infradead.org> 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: On Mon, Jun 04, 2018 at 10:07:16AM +0530, Souptick Joarder wrote: > On Sun, Jun 3, 2018 at 3:31 AM, Matthew Wilcox wrote: > > On Sun, Jun 03, 2018 at 01:34:07AM +0530, Souptick Joarder wrote: > >> @@ -3570,9 +3571,8 @@ static int hugetlb_cow(struct mm_struct *mm, struct vm_area_struct *vma, > >> return 0; > >> } > >> > >> - ret = (PTR_ERR(new_page) == -ENOMEM) ? > >> - VM_FAULT_OOM : VM_FAULT_SIGBUS; > >> - goto out_release_old; > >> + ret = vmf_error(PTR_ERR(new_page)); > >> + goto out_release_old; > >> } > >> > >> /* > > > > Something weird happened to the goto here > > Didn't get it ? Do you refer to wrong indent in goto ? Yes.