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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E7DFC433F5 for ; Thu, 7 Oct 2021 14:49:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 837D561245 for ; Thu, 7 Oct 2021 14:49:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242123AbhJGOve (ORCPT ); Thu, 7 Oct 2021 10:51:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233341AbhJGOvd (ORCPT ); Thu, 7 Oct 2021 10:51:33 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7744C061570 for ; Thu, 7 Oct 2021 07:49:39 -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=ZaIfgTqAECN8YQ33y/H4ix8XO1DsmTwgYAAz8mNepJ4=; b=UWLTO4OYqlkhtknN3F38R9qZPa 9jUTnzWFNyLxIivdRQFEtrB0Kqt156B/4BYk1JecPqj1DIwoWz67JNuNnsBlIO3Vx6dwhXrUzfSNm c8AjDfYa3h2JW18/puPFnqLd3xS6hYvAjarYajk2xaiGvRI9I46YyRYRL1i4yU3m1bn8O4y4845sD juKN3MXr+xCk/v5kQWaiYkuziW2yHba/Bo4alFGnnIcUGIqSE5FtU+afLHLj7VB3cp82aMkgHWeBx DIixh912OAw5KPUnU4p2IfapNz2GDw5vynxGtHVD25xCobRoPRMx42bFtDnG3TtAVpLaFN413PVA7 qAe9z50w==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mYUhA-001wgg-0z; Thu, 07 Oct 2021 14:48:38 +0000 Date: Thu, 7 Oct 2021 15:48:28 +0100 From: Matthew Wilcox To: Vlastimil Babka Cc: linux-mm@kvack.org, David Hildenbrand , Kent Overstreet , Johannes Weiner , linux-fsdevel@vger.kernel.org Subject: Re: [RFC] pgflags_t Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Thu, Oct 07, 2021 at 04:37:08PM +0200, Vlastimil Babka wrote: > > - pr_warn("%sflags: %#lx(%pGp)%s\n", type, head->flags, &head->flags, > > + pr_warn("%sflags: %#lx(%pGp)%s\n", type, head->flags.f, &head->flags.f, > > The %pGp case (here and elsewhere) could perhaps take the new type, no? > Would need to change format_page_flags() and flags_string() in lib/vsprintf.c Oh, good point. I don't think format_page_flags() would _need_ to change, but we might _want_ to change it. Particularly if we go with Al Viro's suggestion of using __bitwise to create a new type that's checked with sparse.