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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D37DC433EF for ; Mon, 2 May 2022 05:17:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383308AbiEBFUQ (ORCPT ); Mon, 2 May 2022 01:20:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350281AbiEBFUM (ORCPT ); Mon, 2 May 2022 01:20:12 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11F1FBE0F; Sun, 1 May 2022 22:16:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=ayeIMCinTpq/u7MVfmi42xJboKkMgnstySy0kRIQl3s=; b=hE19F/9qpxsWERpk9uKU5lMSdb fFFl/GJlFvXMcluxy2hKTlEMRhcx9RA1bD1Xn5arLRbKr0NyNNpfoQR00PPIvdXGbKQU6P+SsRNNE RFoXnFNWswiqIHACvfLLjkBOuxQ8C3eIALXSoImHt6A7Ownp6obV3gNvtLBzUgmi7R2DG1iyvNKwg C5zZytgiS154RSSr6+EcdY10LxDp+MMVMWH+UBDawTqWiR6+MNC5/zptn7S6EjLFk2TY3vGxUIQqo QdLYpwUJIjR9rpEJhUoJMPiuCjqjTzZVSwdKvsXK+9fnavbuQpjNBQfCMb3h5L9DyG7WRU9HAZW7R TUv8cwDA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlOQA-00EY9O-54; Mon, 02 May 2022 05:16:30 +0000 Date: Mon, 2 May 2022 06:16:30 +0100 From: Matthew Wilcox To: NeilBrown Cc: Miaohe Lin , Andrew Morton , Geert Uytterhoeven , Christoph Hellwig , linux-nfs@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MM: handle THP in swap_*page_fs() - count_vm_events() Message-ID: References: <165146746627.24404.2324091720943354711@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <165146746627.24404.2324091720943354711@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 02, 2022 at 02:57:46PM +1000, NeilBrown wrote: > @@ -390,9 +392,9 @@ static void sio_read_complete(struct kiocb *iocb, long ret) > struct page *page = sio->bvec[p].bv_page; > > SetPageUptodate(page); > + count_swpout_vm_event(page); > unlock_page(page); > } > - count_vm_events(PSWPIN, sio->pages); Surely that should be count_swpIN_vm_event?