Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp776953ybs; Sun, 24 May 2020 21:40:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMhqYAMcQiCYFE0vp34AShIwN804Xo5RSW3Umayriae/imzpUJVksHNaZcG7rZKyD4aepk X-Received: by 2002:aa7:ce17:: with SMTP id d23mr13681446edv.387.1590381657149; Sun, 24 May 2020 21:40:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590381657; cv=none; d=google.com; s=arc-20160816; b=rx1aUaQLtoKGkNAhOH7WV+l95yAJ7PNRu5tJW+MWtDpTMs+gt6D1uvhb+hUdzHCjfi vTAZEZf2FQT0/fhtT7y3NX09fESo0uMioreTzxgejIHkiHyQ86/yoTBoOvmRMFnRnM0l 5dghBXCE4ench0vWU8ixevcg+PUm7Tvigq7fZa5L7qVYf2UAScVbC9omKHk4LoxPSQ8o sm0BvUxQU8RraWDk0UYakWTtjVbWNznJVNghVM6cvhdMe2R1+dQNo0XhMu5YWiOSBsH5 hPPm1wQd9x9D8go2RVs8ADW2B/KZPs9UjM71VoUS4vWFzwdeA4lj+xI/chBfy3/x3A/u C82g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WrUFOLt9W4X7+7Hr4QrlHwXipVvqxmvlL120XbBbrhs=; b=H8XUz2LnhCISj+RgRMNOsad1yZLjqAo59bgpWDEo6ciHy1lgOmu9+UbjDAiGb1WCKb i7bU4L8c9sZ9WciIyTeEtpy0g+xybKZ3vIZEyzT4cDE0vh+sE6u4C7okgw6ZfLdxdfEr TZDUUO28vtQ7nOBzFrivTo6o/CwcMmuRXRhaCg8HogopZRietKXSdiwDpM5fAdBhoqeM 9tAckaXDx9Q2ceklKsyYl1aIqmpJnl/FY8wi8qlXehzbaB7zXi0LSeSmVsOzWDJ88CFS ST5y+laKQ1hc82NaSZ41NCG9KfaDMzC6JC23H0VoU5x1s3T/bmIcOVh/i6SsU6AYkBzS Vtfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=wTKtd1Vj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t19si7754202eds.141.2020.05.24.21.40.34; Sun, 24 May 2020 21:40:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=wTKtd1Vj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726538AbgEYEcq (ORCPT + 99 others); Mon, 25 May 2020 00:32:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725601AbgEYEcq (ORCPT ); Mon, 25 May 2020 00:32:46 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EC30C061A0E for ; Sun, 24 May 2020 21:32:44 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id b6so19314566ljj.1 for ; Sun, 24 May 2020 21:32:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=WrUFOLt9W4X7+7Hr4QrlHwXipVvqxmvlL120XbBbrhs=; b=wTKtd1Vjv/ulJ2FRNbEj/4hKXpRQgfTgnSQqG0fgNLk2kydwySZbE6RNq14Nz3V7mT DRaLDFml1j37ovPWa4B0sMa7yINjDPda6OfVIj/IZN+DNBcp/rVx6TOlCRv64xmYWumE M7NHUOVeEsTkw27kZokfduHNoW6jHGHHX08aczLzJiJv60S0E6ph+pMu7+jor0Y59A4H Ix8vOh6ni0QJnJ69+/JY+ySU/SPP0tPNwyJtqxQuK/GB08xYdHAS/fPsuT2da1gGUumf d6cRP7OtTKN4zBS3Zuh9USel6xHpJ51z8oxXrQmZtqP4gmY9X/RhMRI6KB2U7nKovb5Y OCYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=WrUFOLt9W4X7+7Hr4QrlHwXipVvqxmvlL120XbBbrhs=; b=G3/KqgWu7820HTk+uZUbE0uug0bYFKPq5B5QQncHvOMToNof5n2I4FHBAcqZ6qH11a 638f/TzXRqgh8Gs5HfPsr55VfDmGjh13pnn38GUS3XXd4+18hBwaNKjkg/UMKO1AMb+x XuNwaFgcucTZmjPK/YoROTERqj9GZmfO82rom3QN8bFm/lyYZ4Gd4YHU9Oei7RKJsXUD UznJE5biqDFvM8ETep3F5AcxuI2Ic8pej0p2zFcdjdITkY/GPGNpCwD58LpJIO5o8CBy ZhnZRJium3eJa3SCHYAv8Q/Tb/ZBdLu7W5d9hPlMkMGzZ7ogqOReRueuiUDdo8jcLuWw 13ZA== X-Gm-Message-State: AOAM531Ue7vsZmYmo49tc1gX2AMM5lYFZzHM6tH89aMnsmSvhnrmXXe7 1XimJ/Njn/J06Q56cB47U1M6Tg== X-Received: by 2002:a2e:a586:: with SMTP id m6mr6713031ljp.318.1590381162883; Sun, 24 May 2020 21:32:42 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id f12sm4446255lfp.8.2020.05.24.21.32.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 May 2020 21:32:42 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id D146B1012E6; Mon, 25 May 2020 07:32:42 +0300 (+03) Date: Mon, 25 May 2020 07:32:42 +0300 From: "Kirill A. Shutemov" To: Hugh Dickins Cc: Andrew Morton , Song Liu , "Kirill A. Shutemov" , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm,thp: stop leaking unreleased file pages Message-ID: <20200525043242.ef2uhn2a4w7xazcx@box> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 23, 2020 at 06:50:15PM -0700, Hugh Dickins wrote: > When collapse_file() calls try_to_release_page(), it has already > isolated the page: so if releasing buffers happens to fail (as it > sometimes does), remember to putback_lru_page(): otherwise that page is > left unreclaimable and unfreeable, and the file extent uncollapsible. > > Signed-off-by: Hugh Dickins > Fixes: 99cb0dbd47a1 ("mm,thp: add read-only THP support for (non-shmem) FS") > Cc: stable@vger.kernel.org # v5.4+ Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov