Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp58315lqp; Fri, 12 Apr 2024 10:21:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVw0Ci0fcwDi6g6kQn4gj4aDh8RcQchYXBWlJNn1ncATSJ07ux3hT8vfFBhXO4jwYZOPs7c8ttYLT6UBFkIzKVguaPsyJxKfOpQYrG8w== X-Google-Smtp-Source: AGHT+IH6RDEbMtUTy1rKPebIYxZhNIDx/Haat1I/2JzOL/a8kVslZaWIOgEhOEpbTncVqqTGNyjz X-Received: by 2002:a17:906:aecf:b0:a52:3ebe:c83 with SMTP id me15-20020a170906aecf00b00a523ebe0c83mr798056ejb.15.1712942498386; Fri, 12 Apr 2024 10:21:38 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id me16-20020a170906aed000b00a51d8a3a631si1950040ejb.618.2024.04.12.10.21.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 10:21:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZJ4IgyJZ; arc=fail (signature failed); spf=pass (google.com: domain of linux-ext4+bounces-2068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2068-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 634BE1F22311 for ; Fri, 12 Apr 2024 17:21:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA45314D2BD; Fri, 12 Apr 2024 17:21:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZJ4IgyJZ" X-Original-To: linux-ext4@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EAE8B14BF8B; Fri, 12 Apr 2024 17:21:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.13 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712942484; cv=fail; b=aZ31KoXB61eOMtyPPaLt7CkvpQOve0F+Ka1N5mhoUaPjW/2/FbTWJRWkG9pVin10xHSKslzNWqcTqwnoU0cTn2vaSc6wOPM0il6psWzgtNw6MzazgDBxBKjU7a2l3+Ae0l/WiKS3L6l/5qNkeY/+DFqZf6xwY4D6g/brr9LI/o4= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712942484; c=relaxed/simple; bh=L2WyTDRGYpcd+oHQ9ExJTLxPrX9sTYfycf09VRkq+/A=; h=Date:From:To:CC:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=pNC7Ac6+0mAUMO1Ir6cAToYkUTH1BFOhddsVhqRLlAAaZ6HdWOpvRbN75Ud1iFDftUcJVk2theePj6JPHDrcI5cLuCSsmS0Qvf4cxPkViFAkarNt6PGE4phs55y3uRWigKafMk3RnAk2Mv9nb6Pc1Zz5E3u9I0DnoISrWG4UtmM= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ZJ4IgyJZ; arc=fail smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712942483; x=1744478483; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=L2WyTDRGYpcd+oHQ9ExJTLxPrX9sTYfycf09VRkq+/A=; b=ZJ4IgyJZd3TLCkUlK1aZDIFUJ+byRJX+m9YArHWCSTYCxlUrDCbldRRd WIzKXgvgccMdItQApuwZi4pzcASwqosFXPLTyp2Ww2omtkeEAS7wlZ6Lp fCfLA7aarWHDybBkmelUpAFwFAsfiA4LodwFskJi1uEB+LzhNwbuegJ// qr7rzECEGj5SyJVyfgl6kWiWC8pVGLnS0DP5r85T7BLUtUQutxiydEFEk amu+xQ97NqcM2UReBBRkOleEkZBaYtzZfHjTGILLn96GDkbC/YCqx5i+V OR13VI/mY6Ao+2rCmXhZtUCaOttx3rqXUgdolc99MIrVJ7Tls1JH5jUO7 Q==; X-CSE-ConnectionGUID: EdjWxxfETX+oWlMcPEu5SA== X-CSE-MsgGUID: poVyKwXXQxCsWX92/Oap6A== X-IronPort-AV: E=McAfee;i="6600,9927,11042"; a="11364775" X-IronPort-AV: E=Sophos;i="6.07,196,1708416000"; d="scan'208";a="11364775" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2024 10:21:17 -0700 X-CSE-ConnectionGUID: Pb6zgj+HTgeOW/nIt+zZXQ== X-CSE-MsgGUID: 1+vaz158T5eRSmdcQdJCVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,196,1708416000"; d="scan'208";a="21779502" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orviesa007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 12 Apr 2024 10:21:16 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 12 Apr 2024 10:21:15 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Fri, 12 Apr 2024 10:21:15 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.101) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 12 Apr 2024 10:21:15 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cys6GgPxWibjvxRuQwX4+kDZBYpXE9Ka4hhT9s47FreE0DoMwQUD89NLi9sw2p9bGSSRl0B0gGhWTOkzhrKopiiozV7D0cg52qXlqjXan8bph78BxltsVrzYCBLpBRTEo9kF4Hqr7MFiJ+X5X5ugbOhvr34L29hOpHfPIqZ+sm2ZDegVhsVXkVYTcLLQLxAEItHaW7/1VIF66eymzl1kqtMOLr/t1JNlPvqoiVk/oT+JIwjbZ21QfWMm0Pe3q/SyNAUCyfeH5cI0ylRvl/6OTJUVyOMt5WCKQyvicGfcY9ghJiUit/h2bo8H5x4cNmsVEI5zopMIElo8HuUgOum9lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1m/D3OOmBTC7hhZf42KUQ/BTUQR706oYGXI8BZpcI5A=; b=enAHFw1qeLrAgTLdceWrjqeBx5i54OWOAUnLo8nH4I8KwGfcscZ3iNk5rrDzQfGloN2LO7GZWOtmCfDTP81+g2XPQuNgLgqdUUNbox5pQ35tUmNEAgqTj7A8bSHFt5RYL9bBMbCzsA2ur6nh90zpb1UbPFezoXJm2BmBnyjCZ8Aj4r+e8TGcrDrSHaLvwCllimoza/PRdHxzcjRlpYMNUes6X44uiSL4CphnjICZeGZpn718NHwO3Sao7xL4/PTQGS1R8tJOpVoq6SgYRhCEQ3A8T/oW/P8xnsjzKfE7HLmmUnZ8R1ziENCdzbEKJWCj6LX8UrYVLuy2UC5UpUF9Qg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH8PR11MB8107.namprd11.prod.outlook.com (2603:10b6:510:256::6) by PH0PR11MB4967.namprd11.prod.outlook.com (2603:10b6:510:41::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.26; Fri, 12 Apr 2024 17:21:12 +0000 Received: from PH8PR11MB8107.namprd11.prod.outlook.com ([fe80::82fd:75df:40d7:ed71]) by PH8PR11MB8107.namprd11.prod.outlook.com ([fe80::82fd:75df:40d7:ed71%4]) with mapi id 15.20.7430.045; Fri, 12 Apr 2024 17:21:12 +0000 Date: Fri, 12 Apr 2024 10:21:10 -0700 From: Dan Williams To: Alistair Popple , CC: , , , , , , , , , , , , , , , , Alistair Popple Subject: RE: [RFC 04/10] fs/dax: Don't track page mapping/index Message-ID: <66196d85f3a16_36222e29490@dwillia2-xfh.jf.intel.com.notmuch> References: <322065d373bb6571b700dba4450f1759b304644a.1712796818.git-series.apopple@nvidia.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <322065d373bb6571b700dba4450f1759b304644a.1712796818.git-series.apopple@nvidia.com> X-ClientProxiedBy: MW4PR03CA0011.namprd03.prod.outlook.com (2603:10b6:303:8f::16) To PH8PR11MB8107.namprd11.prod.outlook.com (2603:10b6:510:256::6) Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH8PR11MB8107:EE_|PH0PR11MB4967:EE_ X-MS-Office365-Filtering-Correlation-Id: 83f02e8e-c505-41e5-2e36-08dc5b14f3a1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Z5IARUgMpa5ONfMIB6ZSiBY+sblZMpiqgK773pLtLCjJqZFDAD+IumUuQo6EX+AI/NHOxxeVJTYK+0LcWG+noCPDO3CXvfUWGvk9VMGIZuVKFaKA+LPRrWxFAi0AgxE4TeNTHhDY2JWOdbLNgXJNus5MHhGdMzeFJMtfeRGxUqLG7on5rAJYhH/dERiZxQ1smLTNE/tru4Pxic6GbH5Y4TubrDOMuqwAnnmTGhhgL6uDP+zmZaPSmYHvVqKI1kEI9fPwtqUcijeDiTGRxPSqoafptSohpf5FvsHlhfTinCP5kkCeJ8uZbNgUNJ1Pmpe12YoJUKxFzYO7I2s88opXILujy3wKJ63QYEciJdyoyFwDmddffRzgczhhLIh1jY6n7Hwt4tkVvCa45/N0P+eIiBst5B+T056JaqJjI2ymW1iep+J1IOoU8TqBCu93YBgUu6IZ6sNRuDJ4/fgZDbfbMSHWiIyOYiYyeGTE46uAlFHvwjLMZvSDBcTvS7cNJ+HOmgcK5p5p771ZYqDkSkQjDYzjl+WwFjVI79FZmVnuigE3H4iQ9Tvjt8tntgHxkYMtwDMwS0/f6ndRfbwtyKcMqIw1Eg1NeJz4P+4nt2ih1OWC86M8c2b9voq4TvlS09ajUEBJ5RX4CXmKJ78Gw0bDRpQGWPRURSlXccgDoZJt3bg= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH8PR11MB8107.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(7416005)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?oHyIUdm6GatV1dSXltO0sj60PO1sLSmX4ESqNrruGARhdu5UFUHU2PLwWS/3?= =?us-ascii?Q?cmElsGoLdmGqOjIjXY8OZDdiaogvIbnYa6Cgq5OwGrFhN9T0Msq8++Mhbn7i?= =?us-ascii?Q?Rpslv5AIzgW/FAGcDl+dfGccgud0/lHnq6jTah0gSKwzQ/t10oMxg3yM1nWn?= =?us-ascii?Q?/LbLeORaBDeAD5v6yhZZyA2FcZGLia9M/7MOcU62g0NO5OFzhwUwYUO+PE+Q?= =?us-ascii?Q?1zkJI0vBE6MeU/TM4M1r62r1slRpYzYbsPhaw6TE0rLqlBbXOCGJjrssOm9X?= =?us-ascii?Q?6G+OBA6Wd9DafKLymDsB9q743GN+rWFD3CJjc+Ql1qUxzrMK8mCFDuuFjgKQ?= =?us-ascii?Q?9Ikc8cgM03vRPgGyZsi0LRDdQx2qgsy2ifR2y1H+iUbZqJ+ki9b5nfkgU949?= =?us-ascii?Q?JFRbbA3OloIJuxQOdH1gBSUM5hn+Bf5yylmkUzk8gS0zZjfF4KfNzZ1lioro?= =?us-ascii?Q?zdGljAvoPtDYO1OwSzrrPwxQ5bht9mmtEeLIdgU3D/dK/QOh0SNkC6gHbd2u?= =?us-ascii?Q?OwRCHBIaSriHn07FSAK5G0h3EW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?= =?us-ascii?Q?IUl+ygrqJR4Cx3tqwWVxojWIS3xI1Tf7McochpxeNA9PKrJvdBqayY2heN8h?= =?us-ascii?Q?GM0lzzxqwhHnONhUpHOyvkDoJ/y33F7z6u0gsSlnUfY2/CRcdcJuO294HATl?= =?us-ascii?Q?x2USrHcopXmnxPftusYrXouyFdNjkYJU64RGXY7HHBOdKqoPUXZuCGbMDjTL?= =?us-ascii?Q?8g=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 83f02e8e-c505-41e5-2e36-08dc5b14f3a1 X-MS-Exchange-CrossTenant-AuthSource: PH8PR11MB8107.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2024 17:21:12.5809 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zGGSDJPQ+qVmRfibAfaSjkmRzL3l41Ei3lFAzovgK/4IM9qXVKliPeBq09D7i/PIzF7GcLjoRRQLGdGnoz2uW0zj2649lXWPXGUdrLpP/IY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4967 X-OriginatorOrg: intel.com Alistair Popple wrote: > The page->mapping and page->index fields are normally used by the > pagecache and rmap for looking up virtual mappings of pages. FS DAX > implements it's own kind of page cache and rmap look ups so these > fields are unnecessary. They are currently only used to detect > error/warning conditions which should never occur. > > A future change will change the way shared mappings are detected by > doing normal page reference counting instead, so remove the > unnecessary checks. Ignore my comment on patch3, I fumble fingered the reply, it was meant to for this patch. I.e. that "future change" should just be present before removing old logic.