Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp140492pxb; Thu, 12 Aug 2021 12:44:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSIsHAH/VBAIhC4T3NDYDVs4jtCRRt93lTrnLOKc+jCUq4XoTdW3Y+/RXWPsAKWTJu7dMo X-Received: by 2002:a17:907:2110:: with SMTP id qn16mr5232420ejb.170.1628797486217; Thu, 12 Aug 2021 12:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628797486; cv=none; d=google.com; s=arc-20160816; b=b5uEreVo/gJVBPa6kEfYrLUIoUcIS0ugCeZ+2SdwDnX/8u8fRPKnsxyl0Bv+/rZpSa MSAVNnO9jL+pkOP+q40gwdyKrZkSVe72f34eJmV3+KE+PwxmUQMHxEmaISI0G+dszVQY K998J3EcAkpqAOb4xTkRQcmz4ArYvBAiKH/PjV43jQ3JLiM+t3THyIn1IhUAWOPNnIxc eJagszhGphGxOU92SAXG/iQZnZavA7g6o5HSaX6TbESjpT57f6XpMmtmFSrHxElIw2kc jrc8fWh16aFvl8yzWOOnRrauz0AZL7Phpe1501w/q6mlkzlB1ICei8gE9Pr03QLcOOFR H69g== 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=k93sVlUdvzHgoAb48Di7b3b2yeDtL4uyg3kAIfdc3Tc=; b=qJL/2UVYsMJi6JeQZjiTIsf/WMwvriwquoCx44dC0SJrO4aG0Bm/kXAflUIkc0T69B Letvd2/ERA/nLG+5asm165nU0cw2L/M2+2zcmyXnlI0gKASPuqVZ+Ekd1gCHRCzgn/Gm qRN7lu5NHXsmOsD6aP9JIzY5pVBkgG1Ob28cHLFMQlSTj9/bW5eYNYxWhfcqpj4Z0dsr 758o19aziwz634dKGoe/Nrk1RCsjh/yvyUhAl8FtSPX0rFER3r3w97rvqGRymzzKreC6 x46o7cA2GlAj4BPOG/UTPkI5Cp8+ozTr58NQHhby27yyvW+eM3UflwNdkgft0Nn1AXCn 2EMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=gpSuNaWL; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 n2si3745195edi.122.2021.08.12.12.44.11; Thu, 12 Aug 2021 12:44:46 -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=gpSuNaWL; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 S232437AbhHLQ2Y (ORCPT + 99 others); Thu, 12 Aug 2021 12:28:24 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:43304 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbhHLQ2X (ORCPT ); Thu, 12 Aug 2021 12:28:23 -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-out1.suse.de (Postfix) with ESMTPS id C36E9212B7; Thu, 12 Aug 2021 16:27:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1628785676; 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=k93sVlUdvzHgoAb48Di7b3b2yeDtL4uyg3kAIfdc3Tc=; b=gpSuNaWLIwfLZCdToFJhTEI/Nyl3KJeil0sGyw63bQ3luajDhw+y/WGbvGHHb0xHlAtI6i qVq3De4Puy2dmo5aZ0bJ9MieqWSVwYBFvC7kOXHdePjtwQiEEMTckxKUG+KySw4YdIlxVA 7qOj2M/Q5Y8fhYo04fxg+EvUY2G2Cnk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1628785676; 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=k93sVlUdvzHgoAb48Di7b3b2yeDtL4uyg3kAIfdc3Tc=; b=nQ1kY2yKV+SGzMZDZRMRULKs2fBVnPEa+zovo+52+FMB5Y0DZOeJ5CwJyo9FWqA1WLEdzS 3R6yuwhrkzcyRxBQ== 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 A3DD113ACC; Thu, 12 Aug 2021 16:27:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id 6yKvJgxMFWFxAgAAGKfGzw (envelope-from ); Thu, 12 Aug 2021 16:27:56 +0000 Subject: Re: [PATCH v14 075/138] mm/writeback: Add folio_account_redirty() 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-76-willy@infradead.org> From: Vlastimil Babka Message-ID: Date: Thu, 12 Aug 2021 18:27:56 +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-76-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:36 AM, Matthew Wilcox (Oracle) wrote: > Account the number of pages in the folio that we're redirtying. > Turn account_page_dirty() into a wrapper around it. Also turn > the comment on folio_account_redirty() into kernel-doc and > edit it slightly so it makes sense to its potential callers. > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Christoph Hellwig Acked-by: Vlastimil Babka