Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3873677pxt; Tue, 10 Aug 2021 13:30:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEKIGQBOw9Q0bVDzyZ2gUzkU3PWIAF+KSwGBrkzKdospbYuQC2TRqzet7Cc5NhIUloc+aL X-Received: by 2002:a05:6638:95:: with SMTP id v21mr29241883jao.80.1628627429616; Tue, 10 Aug 2021 13:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628627429; cv=none; d=google.com; s=arc-20160816; b=b1o+tdZxDJlZDvB7ZW3tvfch8VyIBGZUddxWppo2ZBlZW2hsbNRTViK3wsVa8+g3YL 6H093ar3QfYFYZlYMBrcuRNRZlPSS8tIREnv4Qb9PPbSTCvLL+VGgrJMPLwHXhon9SF2 Ga19xQB1TXM5ND+GIGvlVEnEf68rbRhcWzMNU/LrYbrTVh/a3GZfa8knThKgA0P/vNnc Xn92T2PCkeFTClWrgdFQzHCCO8UcW2jraw2y2/5hGZgGkFP5h6pIoxP0nJoQKIURjpSd UFeip9G7X7Mm/CQrjlCMQYdqGZ3S7lqJZ2HoCxnpy3iEm2y7iF5KTtvSnS/xeaR1MYGD hwkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=GDPhmoVx2vCnSG0qG6Q26w8x0PkAworRMKK+FXNiReY=; b=0dMY8aX9a6oUrArKBFwPxGgX+kngnSI5x1gW/nXHQRgAQ3KR75n/13+eJb/iXQvnrf AF4FGO6+mQUREDlaoyoc5nPFuLP6jNxPc/yfcWgyMyS3N+f/KlmByJ2cOe0oRbJOPelA iHB/OtmZ1xttGhNkW/Z9RUE2fKKwRfDRCjg+W9Dp0XsIsYVNkK74Y6yGl1NygsqHCafH 3dnsxEbe0VJATNAHOUtACrHSGKq67xJj5/7UV2t8ztBjdBDchA9XzcY0EOawbPYYgGbP mkpDyjtEfMYcYmN06rFB4+tgJTt6Ad1xBG+/EBmM76MNfGhd2y/2iAHnQIGTIB+Sof74 HirQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Rlh2Q1cs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o15si21953504ilf.79.2021.08.10.13.30.18; Tue, 10 Aug 2021 13:30:29 -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=@redhat.com header.s=mimecast20190719 header.b=Rlh2Q1cs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232968AbhHJU3U (ORCPT + 99 others); Tue, 10 Aug 2021 16:29:20 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:42079 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229764AbhHJU3T (ORCPT ); Tue, 10 Aug 2021 16:29:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628627337; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GDPhmoVx2vCnSG0qG6Q26w8x0PkAworRMKK+FXNiReY=; b=Rlh2Q1csekykottCDyyVz1JIkvvmQljAKqxu1qymSvYSA20UXsy0JvUpZOe7jEoFAYxRVB sS5jZsD0xokZZfrAI2VAdjKf6EXPGUbxqD+vCTz6oDxttRPnHo0ysYS1WSX2kFFGOKbGF3 rz0eAyGmIxDGvPAjkvfi1PeZWWrw8gI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-398-RdFyykJoNgKDmF-72fLxpQ-1; Tue, 10 Aug 2021 16:28:51 -0400 X-MC-Unique: RdFyykJoNgKDmF-72fLxpQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B06B5CC626; Tue, 10 Aug 2021 20:28:49 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.22.32.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 89B0627C5F; Tue, 10 Aug 2021 20:28:48 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20210715033704.692967-46-willy@infradead.org> References: <20210715033704.692967-46-willy@infradead.org> <20210715033704.692967-1-willy@infradead.org> To: "Matthew Wilcox (Oracle)" Cc: dhowells@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v14 045/138] mm/memcg: Add folio_memcg_lock() and folio_memcg_unlock() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1810622.1628627327.1@warthog.procyon.org.uk> Date: Tue, 10 Aug 2021 21:28:47 +0100 Message-ID: <1810623.1628627327@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matthew Wilcox (Oracle) wrote: > These are the folio equivalents of lock_page_memcg() and > unlock_page_memcg(). > > lock_page_memcg() and unlock_page_memcg() have too many callers to be > easily replaced in a single patch, so reimplement them as wrappers for > now to be cleaned up later when enough callers have been converted to > use folios. > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Christoph Hellwig Reviewed-by: David Howells