From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758801AbcIWJZb (ORCPT ); Fri, 23 Sep 2016 05:25:31 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:34426 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757961AbcIWJZ1 (ORCPT ); Fri, 23 Sep 2016 05:25:27 -0400 Date: Fri, 23 Sep 2016 12:25:23 +0300 From: "Kirill A. Shutemov" To: Hugh Dickins Cc: Andrew Morton , "Kirill A. Shutemov" , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] huge tmpfs: fix Committed_AS leak Message-ID: <20160923092523.GA29313@node.shutemov.name> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 22, 2016 at 10:37:03AM -0700, Hugh Dickins wrote: > Under swapping load on huge tmpfs, /proc/meminfo's Committed_AS grows > bigger and bigger: just a cosmetic issue for most users, but disabling > for those who run without overcommit (/proc/sys/vm/overcommit_memory 2). > > shmem_uncharge() was forgetting to unaccount __vm_enough_memory's charge, > and shmem_charge() was forgetting it on the filesystem-full error path. > > Fixes: 800d8c63b2e9 ("shmem: add huge pages support") > Signed-off-by: Hugh Dickins Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov