Received: by 10.223.185.116 with SMTP id b49csp6729068wrg; Wed, 28 Feb 2018 14:33:57 -0800 (PST) X-Google-Smtp-Source: AH8x225IH5LNJEenvpeZP0Y2w3dThpr6g6ZZmJKZXcwvwqnHKtBffHCS00UXl7AjmMIVMgfBQBDn X-Received: by 2002:a17:902:b2c6:: with SMTP id x6-v6mr19383187plw.285.1519857237459; Wed, 28 Feb 2018 14:33:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519857237; cv=none; d=google.com; s=arc-20160816; b=WqrpzlnX7ECjus+6yokppQgTudAIpWqFgyLI4jJxP+/uADdGeqmW15P2DU27l2Pp0y XswPfFRw6A4z8BT9m9qoc/cmic9LRbgyTj2TSsLoVMELPG8cwlSMn5WMP4+z5jxUvDye l7ZdEKwORTWs4PV/rTjQzI7spM5v8ds3hvB6rWf7W2sx5gOCfb+6Bppi/yyHfmfAoeI+ c1CcLXh3BfH2+ICKaeWqJDJha4uCgKDVPSWMsB1Be4sM0/p4DPNdCt2vFDJ0uLDdUugF Id/C1oCFBlBRfQx3cHfaOcfloXEFYumRy9DmU+4bwEw9rSs7oghEJRQoTlNB2f18wOtW 8/0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=gpESWuNlkhbpppJ7Nxo+WRhKoluiHTpsP94Hdt/brOE=; b=GO25BAQgYgJ6YWWOkJhk3H5bGSsl1IdjswJUL3U4qH4RLb+aBm+1F1+PjQU3WuMHX5 r4VEmoNiNRN3s26JmR1jGoPcG13YC0SAB+qVxcGtzpWKaJq1pIEGghhmyeBkxVQ1fMmh BwBTIRknI1zp6IGPTb9vWV+Pe8l5tWQ200ZbgSLXmq5HoiDapFj5mzgJCh7D2udiBsze I0uResDASGH8QsaodtUYOc1GClXQO0IjpOKqvVgKIYWYNFFGAhiHCpHWYWBTIuAS+uS9 h7Lrdnkjq27+MIqKU3d2RpaIwBvq/bYCUJA08UP3/EsE6MAcBOD2loHwusw7pSdvi5e8 gL3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=SwdUsKLC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7-v6si1930501ple.514.2018.02.28.14.33.43; Wed, 28 Feb 2018 14:33:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=SwdUsKLC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935480AbeB1WcL (ORCPT + 99 others); Wed, 28 Feb 2018 17:32:11 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:44376 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935151AbeB1WcI (ORCPT ); Wed, 28 Feb 2018 17:32:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=gpESWuNlkhbpppJ7Nxo+WRhKoluiHTpsP94Hdt/brOE=; b=SwdUsKLCGfwLiOGixgMsak2iK 2iUeWZUaJ0fl6DF4l2OeYB7XBeNbjCc6o5jmo6QEOZTmhBjUyrH9BEi7vFTts99+YIxjNpR9zesrU +LBhhVlHICgSkmscWzgaZnueyo9bCiw+mCbanlR4irTUNwLNCHSqPUcCFCuSZDprGwmMlj7LvCwe9 +WuPu5/ORq8bq4bYKxiRX8FgckUOHcQi9uo7Au6NWb9o3kq1L++YBCNKriIn9wvySFp0HHtzIv3ag N44UgVHXRvATwuwo9qGGkn6mvvyLfwamIJTq3BqwxpX19kpZwNzu4nRLLvrCQ5uzJK6hUuaDMkMcn TYPezBn+Q==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1erAGb-0002Yy-Vs; Wed, 28 Feb 2018 22:32:05 +0000 From: Matthew Wilcox To: linux-mm@kvack.org Cc: Matthew Wilcox , Martin Schwidefsky , linux-kernel@vger.kernel.org Subject: [PATCH v3 0/4] Split page_type out from mapcount Date: Wed, 28 Feb 2018 14:31:53 -0800 Message-Id: <20180228223157.9281-1-willy@infradead.org> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox I want to use the _mapcount field to record what a page is in use as. This can help with debugging and we can also expose that information to userspace through /proc/kpageflags to help diagnose memory usage (not included as part of this patch set). First, we need s390 to stop using _mapcount for its own purposes; Martin, I hope you have time to look at this patch. I must confess I don't quite understand what the different bits are used for in the upper nybble of the _mapcount, but I tried to replicate what you were doing faithfully. Matthew Wilcox (4): s390: Use _refcount for pgtables mm: Split page_type out from _map_count mm: Mark pages allocated through vmalloc mm: Mark pages in use for page tables arch/s390/mm/pgalloc.c | 21 +++++++++-------- fs/proc/page.c | 2 +- include/linux/mm.h | 2 ++ include/linux/mm_types.h | 13 +++++++---- include/linux/page-flags.h | 57 ++++++++++++++++++++++++++++++---------------- kernel/crash_core.c | 1 + mm/page_alloc.c | 13 ++++------- mm/vmalloc.c | 2 ++ scripts/tags.sh | 6 ++--- 9 files changed, 72 insertions(+), 45 deletions(-) -- 2.16.1