Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4619629pxb; Thu, 14 Oct 2021 08:42:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqCyUkyJHXajBQWxegNqg+HEp4J8xifVvRq3/ZXvhBZOhZdgWKa7DKyXcoHmvHsTzITVwd X-Received: by 2002:aa7:9103:0:b0:44d:4d1d:6f36 with SMTP id 3-20020aa79103000000b0044d4d1d6f36mr6170339pfh.72.1634226137056; Thu, 14 Oct 2021 08:42:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634226137; cv=none; d=google.com; s=arc-20160816; b=dA2PEcZ990OieC8bBfF9mZ2vn3YFyY4lTyJinUitu2Dh1i+EAGQftqxXHhUwKPP6dT JmM1C/AJUX00LPKqzlrOgyFzy2qGPgiYUihjzl5sC181tzb1biJ/kL94REKkis6Gazt6 kMQGsQ5C7Ly7dVwlSktGwu6FTECEBxhzzzj3N7uGY+jLC6U0gzQXTtWPGO7EigtBrhxo QQVnmNlJQZy5oK5DZhtDg2yfsr6oeyHAT9nyb6oQtkqlVhaY+yqRgTjZ6FUX7faX66ol nTVyRdSIxD5AJ023UftTnE0hcsqxa50AGqdfimyIwzy15ndEHEhIsicb4m1aXFTNcV8E KHnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=saaEW/JUFx/dk1YX0uUtbSq9f1ztgQrV+3IzEx5+zBk=; b=iy0ByEHkASFcKZ2mKUlqrF2Natu6IV2H1QuXZOpe2iOu6Q0/4dt4bKQCQLnqGBkHoH Rk9piG4SvfLaZFNK8d6QvxJUl4kfJFx9qtAyHR7NhJjNCayoIEHAwmLojV3E29WMZjQq FmgmTTxp5n4Pdteac19OAuwJshUc/apSBdtBdsLKT4T9xJ8BkOhViIweoTL7Y8hK9vbY 8L3YA7lDflegOd0xuTuUckMbw8bZjMWfARa+4XnTz4/Ftg0gl+g3937/ldCHNQjQXqbx WncK8PPx+DwjDsfnmZAwtUlcXKQme+PvK128JfVoVySaA0PVm7cnqftTrYZ7GRVbk5/g lDEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=YjxHhm2C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si3725372pgk.422.2021.10.14.08.41.59; Thu, 14 Oct 2021 08:42:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=YjxHhm2C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231656AbhJNOab (ORCPT + 99 others); Thu, 14 Oct 2021 10:30:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231206AbhJNOab (ORCPT ); Thu, 14 Oct 2021 10:30:31 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FC38C061570; Thu, 14 Oct 2021 07:28:26 -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=saaEW/JUFx/dk1YX0uUtbSq9f1ztgQrV+3IzEx5+zBk=; b=YjxHhm2CUacKiivFVXlfDu1ixl dVuuZ5o97RrcceD7vr5kSFWTJue0bY6DNifIMDJ8HPvkjG1F7FekDTEEwRnbdrd3/j1rIqOsAj2IW yu/x2PBKn9vMSbiDp/hvq4aDonwpnflmCSJ6oAE0AZQQIiuE1ZcFJlrxYmKlpoYxS3ALLGIfhoCnj bbJiJJjX5xfg6R+f3F3tI9NUuXNP3zH5jmWfnfw0q627gjrVeYYkiGfyNwzyegVdJS1Lqtc0z5jja QXaSG0E0rwB2tIKBBcsOs9M1T85StaLkJfUySiXZ/mZvs+N1KHXGsyd6HeBnJt32xY2IyCvtYu4Tl RDOaEIBA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mb1hl-008OOe-41; Thu, 14 Oct 2021 14:27:48 +0000 Date: Thu, 14 Oct 2021 15:27:33 +0100 From: Matthew Wilcox To: Kent Overstreet Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, linux-raid@vger.kernel.org, linux-block@vger.kernel.org, axboe@kernel.dk, alexander.h.duyck@linux.intel.com Subject: Re: [PATCH 5/5] brd: Kill usage of page->index Message-ID: References: <20211013160034.3472923-1-kent.overstreet@gmail.com> <20211013160034.3472923-6-kent.overstreet@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211013160034.3472923-6-kent.overstreet@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 13, 2021 at 12:00:34PM -0400, Kent Overstreet wrote: > As part of the struct page cleanups underway, we want to remove as much > usage of page->mapping and page->index as possible, as frequently they > are known from context. > > In the brd code, we're never actually reading from page->index except in > assertions, so references to it can be safely deleted. > > Signed-off-by: Kent Overstreet More than that ... this is essentially asserting that the radix tree code works, and we have a test suite to ensure that. Reviewed-by: Matthew Wilcox (Oracle)