Re: [merged mm-hotfixes-stable] filemap-fix-the-conditional-folio_put-in-filemap_fault.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 05, 2023 at 04:37:27PM -0700, Andrew Morton wrote:
> On Sat, 6 May 2023 00:05:57 +0100 Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote:
> 
> > On Fri, May 05, 2023 at 03:43:05PM -0700, Andrew Morton wrote:
> > > 
> > > The quilt patch titled
> > >      Subject: filemap: fix the conditional folio_put in filemap_fault
> > > has been removed from the -mm tree.  Its filename was
> > >      filemap-fix-the-conditional-folio_put-in-filemap_fault.patch
> > > 
> > > This patch was dropped because it was merged into the mm-hotfixes-stable branch
> > > of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
> > 
> > I thought i nacked this?
> 
> This? https://lkml.kernel.org/r/ZFMn0zGC58KtQw6N@xxxxxxxxxxxxxxxxxxxx
> 
> I interpret that as "doh, never mind"?

This patch is what I want to see merged:

diff --git a/mm/filemap.c b/mm/filemap.c
index a34abfe8c654..b4c9bd368b7e 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -3378,7 +3378,7 @@ vm_fault_t filemap_fault(struct vm_fault *vmf)
 	 * re-find the vma and come back and find our hopefully still populated
 	 * page.
 	 */
-	if (folio)
+	if (!IS_ERR(folio))
 		folio_put(folio);
 	if (mapping_locked)
 		filemap_invalidate_unlock_shared(mapping);



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux