From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99386C47404 for ; Fri, 11 Oct 2019 10:42:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5F06B2084C for ; Fri, 11 Oct 2019 10:42:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="gWaodQzt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5F06B2084C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 0C5A28E0005; Fri, 11 Oct 2019 06:42:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 074A48E0001; Fri, 11 Oct 2019 06:42:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ECBF68E0005; Fri, 11 Oct 2019 06:42:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0145.hostedemail.com [216.40.44.145]) by kanga.kvack.org (Postfix) with ESMTP id C534F8E0001 for ; Fri, 11 Oct 2019 06:42:07 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id 70A40824CA3F for ; Fri, 11 Oct 2019 10:42:07 +0000 (UTC) X-FDA: 76031163894.19.shelf24_4cb66bddae443 X-HE-Tag: shelf24_4cb66bddae443 X-Filterd-Recvd-Size: 2480 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf08.hostedemail.com (Postfix) with ESMTP for ; Fri, 11 Oct 2019 10:42:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6MPGx8ztZUSpNezxLbEEgHnbQ79k7SdA33nvNtLhz1E=; b=gWaodQztqNrlA4Xy2ysX7usz+ /ZlmkFFqQ0nBJJhzcIuKHGWukFs4hQlFxV1SbmB85n9oRfYdtm2gwQlLrEIbMg9RBrRLhxGKehkjE K1A65zvvKCjCg/08RkkU6ZfYYV4kSoolEMQD0PiLBJ3cYKRSNDBUPq0xIfu3sLqDdqdMTyLzStWMA v3ONYVsJsXAi5id/ZOtnGte65bmVubIrSUQCqWrfPLi510YXXwo1ci0t1AlcnqsPZEQMVi881StmZ xQEaWzzokjv+eVw3Jx0GU7BGiLHu4R1narSy024BLpqB4nz8oER462aYWqAiTM2MDF20f99v80c97 gValx/WJA==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1iIsN3-00072B-RN; Fri, 11 Oct 2019 10:42:05 +0000 Date: Fri, 11 Oct 2019 03:42:05 -0700 From: Christoph Hellwig To: Dave Chinner Cc: linux-xfs@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 22/26] xfs: track reclaimable inodes using a LRU list Message-ID: <20191011104205.GD12811@infradead.org> References: <20191009032124.10541-1-david@fromorbit.com> <20191009032124.10541-23-david@fromorbit.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191009032124.10541-23-david@fromorbit.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: > @@ -1542,6 +1545,15 @@ xfs_mount_alloc( > if (!mp) > return NULL; > > + /* > + * The inode lru needs to be associated with the superblock shrinker, > + * and like the rest of the superblock shrinker, it's memcg aware. > + */ > + if (list_lru_init_memcg(&mp->m_inode_lru, &sb->s_shrink)) { > + kfree(mp); > + return NULL; > + } This collides with the mount API work from Ian, where xfs_mount_alloc doesn't get passed an sb anymore. It might make sense to move this to fill_super instead.