Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4445346pxt; Wed, 11 Aug 2021 06:19:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvRExVjNHsE45QqORcI1DOWA+t+NLks8zUbybbkuBbM/DDjR3C+ptJO6Dw4UHNXeo51MnS X-Received: by 2002:a17:906:a018:: with SMTP id p24mr3585035ejy.349.1628687972392; Wed, 11 Aug 2021 06:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628687972; cv=none; d=google.com; s=arc-20160816; b=xoNjq7Xcxauz7b5ftW0C0qSYhe215EAvM3YPTBa4FB9gVCWUwpr0UkqD2gC71N7eKp 6o4rHkvJk0+Qzhw0pC9Gr8NclFT4D0XxFwZbm9gncwRD405EpFSmWADNVks0UjRsSFnK Nxrwpzw0uEgSZCwYTqmQ2SrPQ1nY9x7MrZDNnoycWHH2htPwG2BiZm0zlj0JkS0IptyQ gTMyT3gnY1qHB9fePIfd/bDoYiCSBtgfCIDrJwmsggzTlWjgxlDFWNBy3qkdOD6SRYKQ 8JTdxoOZuB8PRG7SUAwRU6sxZIv0xCTcDYk6OUfgoAhapSxtCLKsPBWQsc3mLEmIDbgI owCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=gVCLfCFvwJauS930PmgecQwLOMOK/vjNwnwDUMr16AE=; b=BXbocFuian53Kig1sHbvY9/kkWB5sH8R06my8lmUH1B7rNZKtXKIamSf+Tq+u98+f0 LZHpVagxcwM9jbNoToknGxcqCDfHXAgQDf//xl1MCYdk4KaG9BdlipjVHzmxQIiqz59C w6cCgpCwJk+cLzm8op68depD5VNYLor6wyElR6UZN8vegCz/wfEkPiDJm4aVUDuGo9wR PMB9VpMZiRv0kIPsCkeIwZdpmSbilwzTWHgvjU3b0Put4oWOc2eNQQsTWCGEWHT/0p7o kzyupFrkphwRN2ECQgz8jeTWq+pnZuKWJEKhf7HQf+93hes2+gtnIa41+83fvkFYYLs3 LR/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=odE9maep; dkim=neutral (no key) header.i=@suse.cz; 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 f14si2321306ejx.716.2021.08.11.06.19.07; Wed, 11 Aug 2021 06:19:32 -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=@suse.cz header.s=susede2_rsa header.b=odE9maep; dkim=neutral (no key) header.i=@suse.cz; 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 S231312AbhHKNRy (ORCPT + 99 others); Wed, 11 Aug 2021 09:17:54 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:56278 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbhHKNRy (ORCPT ); Wed, 11 Aug 2021 09:17:54 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B4AC020178; Wed, 11 Aug 2021 13:17:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1628687849; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gVCLfCFvwJauS930PmgecQwLOMOK/vjNwnwDUMr16AE=; b=odE9maepLGWkNwngSUKZhRC60CXLr8GnRmDdHjc9uU4MAWYUefYWdj9JXQPQDqowGsbMz8 gGxg7PhpIKE8Ys90EEAtKmX1xcZICsSppPs8HcpyzvCt+QeoqEX3vwMPSJRN9HF1t1Cdb/ KBACuyNAXkYBS/Wcf+KGgrzwV9iINLg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1628687849; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gVCLfCFvwJauS930PmgecQwLOMOK/vjNwnwDUMr16AE=; b=GyVBEWsfFC33uvoW9povXLXWMKdv3VptMn3pXiY62/uDYlSt2XOAg9RxVwoco5khpjQe02 lGRlSkoIR6tl2SAA== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 96D5A136D9; Wed, 11 Aug 2021 13:17:29 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id vDfJI+nNE2FBOQAAGKfGzw (envelope-from ); Wed, 11 Aug 2021 13:17:29 +0000 Subject: Re: [PATCH v14 045/138] mm/memcg: Add folio_memcg_lock() and folio_memcg_unlock() To: "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-46-willy@infradead.org> From: Vlastimil Babka Message-ID: <7a08539d-6a07-02b7-a9b0-a374aa6c88a0@suse.cz> Date: Wed, 11 Aug 2021 15:17:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210715033704.692967-46-willy@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/15/21 5:35 AM, 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 Acked-by: Vlastimil Babka