Received: by 10.223.164.221 with SMTP id h29csp2581277wrb; Thu, 2 Nov 2017 13:29:12 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QM8G3ayHSB41/unGNJKx/tJSctiON9qLS9iUwS1VF8XRHxxMcbZE2NdKGkshxRNIvM4x55 X-Received: by 10.101.80.3 with SMTP id f3mr4883239pgo.109.1509654552398; Thu, 02 Nov 2017 13:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509654552; cv=none; d=google.com; s=arc-20160816; b=E3g8aiOkox5e8bGFR+TUFhdxuu1R7tyAWAUDG3k2N7HfTy+umhvwg3kDtekF83SkkE mZ4SqUtVi2pumOD+HxyjhYTacktkNFxIhA89sk/uvi6y7Mb0sUPv6zJpvayo/xo4KDpO HhAqpJBNjQCSSgVEJ439r7etE/Ad3rSWGWTpWFff51/JlUml+eGIp4K12ZUxa6TMccLn aGDVs4nRf7a/3wqJ4kYarytlriaHaF8DpUOZiYbKfsVQJ/mAxOmqdoCL3JV2s1byuX+D iVF9fbHCegXP9XJ/+I4dqhAKvjjLjlJbjxaikK+Viehs2ZhjkgkwPovmyScedVG4H7k5 h5TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=hN4pZhryj1NQo5GNDmPMWaE2k/QKktQuPwcv172/TJY=; b=Al+ioT0t/aHTW9UeEFJLSMAja4v2DaLcERrknXywjjTp0La1wFz93nLw0+75y/2iz6 yC+tA5/8y6Djbh1if2m35lVRAUX6b8U1R+6dR8NEz5QDP4iLlLlGaYfk0iv+dwiCBfAS LMz3R2Gvc/mUhjs/pN0w76cbzYbgkM5RRm4rH0Jvban27OiGRbBanVp3fO/oicmRfOVJ MM/RqGFCLDvdtH1kHAxj96ege5/0+5OBbFrueT7duISR+uXKZtjSFpzoRT/1D13Pgtsp 5cz2FhWzzZFizGin8Vj/NeowR/QmvwWxxTcAt3+FesqBBS+MFND0HZUaHjEz9lIUbQrt SccA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=kO0YYpNv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si3005274plk.227.2017.11.02.13.28.58; Thu, 02 Nov 2017 13:29:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=kO0YYpNv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934465AbdKBU1e (ORCPT + 99 others); Thu, 2 Nov 2017 16:27:34 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:46604 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934404AbdKBU1d (ORCPT ); Thu, 2 Nov 2017 16:27:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cmpxchg.org ; s=x; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version: Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=hN4pZhryj1NQo5GNDmPMWaE2k/QKktQuPwcv172/TJY=; b=kO0YYpNv3Sk6m9LqcI4qq1IluU Cv8e4nTUYf45mVPJaLjCsXRswjWd3qVcpLM2I8uS+yCtaTdylyMnHXLom5/duJaSgQiHJpIG6DJpK xotS666Q9yenBqioeR12c8wYfkrDV+OhfdjbqMBHzMQ5xa7lTpthHNtOWJnJgHRZSHcQ=; From: Johannes Weiner To: Andrew Morton Cc: Miklos Szeredi , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: [PATCH] fs: fuse: account fuse_inode slab memory as reclaimable Date: Thu, 2 Nov 2017 16:27:27 -0400 Message-Id: <20171102202727.12539-1-hannes@cmpxchg.org> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fuse inodes are currently included in the unreclaimable slab counts - SUnreclaim in /proc/meminfo, slab_unreclaimable in /proc/vmstat and the per-cgroup memory.stat. But they are reclaimable just like other filesystems' inodes, and /proc/sys/vm/drop_caches frees them easily. Mark the slab cache reclaimable. Signed-off-by: Johannes Weiner --- fs/fuse/inode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 94a745acaef8..5c0f0d689fb2 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -1273,9 +1273,9 @@ static int __init fuse_fs_init(void) int err; fuse_inode_cachep = kmem_cache_create("fuse_inode", - sizeof(struct fuse_inode), 0, - SLAB_HWCACHE_ALIGN|SLAB_ACCOUNT, - fuse_inode_init_once); + sizeof(struct fuse_inode), 0, + SLAB_HWCACHE_ALIGN|SLAB_ACCOUNT|SLAB_RECLAIM_ACCOUNT, + fuse_inode_init_once); err = -ENOMEM; if (!fuse_inode_cachep) goto out; -- 2.15.0 From 1582941706888823459@xxx Thu Nov 02 08:20:50 +0000 2017 X-GM-THRID: 1579712504618634641 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread