From patchwork Mon Feb 26 14:13:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 13572237 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A824DC54E41 for ; Mon, 26 Feb 2024 14:13:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2801D44016C; Mon, 26 Feb 2024 09:13:34 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 23018440147; Mon, 26 Feb 2024 09:13:34 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 11F7144016C; Mon, 26 Feb 2024 09:13:34 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 02C3C440147 for ; Mon, 26 Feb 2024 09:13:34 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id C2D7C1C09A1 for ; Mon, 26 Feb 2024 14:13:33 +0000 (UTC) X-FDA: 81834147906.09.61A6AA5 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf18.hostedemail.com (Postfix) with ESMTP id 1415E1C0012 for ; Mon, 26 Feb 2024 14:13:31 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=N6JZhZHD; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf18.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708956812; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=9l7/KyH7FSkqjGNyaxNZdzpo1PhHKtJHQ16wAurIa8s=; b=1AR85wzltsbe87+SlYVPA72YbIsJy4WJDmqpG3zSDb9OGleCwsj5da53kFaE8korZozMn+ C+UZAQ7GnvUkpO+7b0a77+nIK2uskjOFXpyxs/bHKUJyr8mC1Gyrc4EVx9ka6KusXax8Ov 2H85hrfSIXND1FYs8PFbeI1Oam8F2O0= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=N6JZhZHD; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf18.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708956812; a=rsa-sha256; cv=none; b=BW0kbaJ7UsrVfDBiGb3KcJMt8tfkfLj3y9e7gXhnzMKPwK67v4HR2pFFnAt3vk8v+FJGsy MiFs1wAI2aRq+0w/dTTLGanQS85Un3gV38GcbhF3J3iGvKVdmj82lG8GqBy304DbHHiGNz DyR0hlG7ko7gRh3SmF36ff31XtMi/Zc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708956811; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=9l7/KyH7FSkqjGNyaxNZdzpo1PhHKtJHQ16wAurIa8s=; b=N6JZhZHDYELhU5MIHVpdfYxFhXqIg2f3QoAWi7Dd1NBUrZc5KJcal9kzllWXqohj4WWX7e 49yCnqOhVamm7+XzBcgWYjq5Vy+cu4jbJkDRyBIZR/kL2b4uNPRvHl8sQx5W9S+2OmuDmA Djx3XI/SmOqqH3TDp9KFPp6OKXuoAA8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-475-r3rwLlA3P2ii8TZDvNd-Yw-1; Mon, 26 Feb 2024 09:13:28 -0500 X-MC-Unique: r3rwLlA3P2ii8TZDvNd-Yw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A5F1910B7AB1; Mon, 26 Feb 2024 14:13:27 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.39.192.224]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6F9041C06714; Mon, 26 Feb 2024 14:13:25 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand , Andrew Morton , Matthew Wilcox Subject: [PATCH v2 0/2] mm: remove total_mapcount() Date: Mon, 26 Feb 2024 15:13:22 +0100 Message-ID: <20240226141324.278526-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Rspamd-Queue-Id: 1415E1C0012 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: 5ndunxzhz6i1q8isme8tj6hd1em7rmd6 X-HE-Tag: 1708956811-415095 X-HE-Meta: U2FsdGVkX19N07PcMbKyJJJYQkFB3OFAKOO7Ix+sT8g7p6nfHTy9bMrTB+3T5B+yHOJYEkSe4PhVfrUS55l+3UReg8Yz2MYRyIxJ9flXpN9To8GpYyCbutDrK+Lq7z3xUZ7gz4Ltdgp0OKi9M2u6nya1tng97yHVjMTbAzH2e/hajrZULV3BTEBMDYPUrND7X8cQ7wGX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APBzWKky2JF65fPKAbPwInnyqT+VnJJQ 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: List-Subscribe: List-Unsubscribe: Let's remove the remaining user from mm/memfd.c so we can get rid of total_mapcount(). v1 -> v2: * Adjust mm/memfd.c separately, and as suggested by Willy, clean it up properly. Cc: Andrew Morton Cc: Matthew Wilcox (Oracle) David Hildenbrand (2): mm/memfd: refactor memfd_tag_pins() and memfd_wait_for_pins() mm: remove total_mapcount() include/linux/mm.h | 9 +-------- mm/memfd.c | 47 ++++++++++++++++++---------------------------- 2 files changed, 19 insertions(+), 37 deletions(-)