Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp519065lqg; Fri, 1 Mar 2024 12:05:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUoOsTTvbOCQCzM2ugQcZo2kCkoZZM2AQBn587OFkvGGPEsOZ5QalpBxx0ZIoQNOz/JVEfKkjhLbEeIXyc70nTXCQkZapYALcY56XfM6w== X-Google-Smtp-Source: AGHT+IGjuYfPEGWXAQG8h0P1ozaglEeP+17uMSbryCwW8RTd9BYbf66GP1Q71Wd/YS1gvg9xaAUM X-Received: by 2002:a0c:ee8c:0:b0:68d:1347:77dc with SMTP id u12-20020a0cee8c000000b0068d134777dcmr2688843qvr.65.1709323507642; Fri, 01 Mar 2024 12:05:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709323507; cv=pass; d=google.com; s=arc-20160816; b=ExJ5c4GLX+6zSEEIIG59lgJMpVv/u1xaH/mX6AdBiUpkAtf1RvXETj+mI37QT4YF+d mLwcs6c4ysWOGVzUtEt6nhzUkbN/Rcxb6lDY4wFSR5DLq1faX3UcbwmWv7qBVOjNjZG0 Nk1bMxGSrJyXzP38U38r5oGeXwfCSis61/D7DY254rJLSaRMk/MdwOvUbIdzJIAFvlNU TCqMmgNY3/N+J/Qjk3kmbi/ZisJBgcd4Kr4aLRLpcLy+y/efpke/KsrFW7a90vlxD7ZL 1G/h/0jpIPEHt2nVCrOiWIBWK1ivmxTZa4Sm+0JPvHTckC/r9As7EpdkC+L/7Y+/qiw8 eQ2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=Ul6pAsiH3Cf2VNyIM/Eaw82KrFx/wNv6iML+Aou3/Pg=; fh=sGJmlOk9P6kBW+eS/w9lalaDBaGQo646WwEcd21J4SM=; b=jEDbgeoBsFxdNvwOQC9m/HnSiZ+fNLS/bCifUoRiI9bKEuPaX41vpOovQbLCU6Wpy1 babsdTOXmBToZtQJhl1AdEJ/836pfiCd6gbhGNmN/KNKW/fcNYp+zPQ7UDHXGjuUDeWW fc8R5IMBgy04HXKl45OxHbgbRCNjdgARAHcU+FE1o+4fE05OfylROdtPf8uOfpiKAhjO 4LpZX3DPb6xfluIG8CllfPKEweUbkiwT0LVUdqcBIPNZ7IEYljjxW9NFkofII4SMMw/2 AqYoPe0YBsqLyxhtpnKbNbPysn12cvMOyXZzab+uyjm/hc5YmkIHYtaRGARcyVBgm+fu pmrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=A3CNMZt8; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-89057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id k4-20020ad45be4000000b00690197c48f0si4357140qvc.28.2024.03.01.12.05.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 12:05:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=A3CNMZt8; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-89057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5494F1C23976 for ; Fri, 1 Mar 2024 20:05:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 389503C497; Fri, 1 Mar 2024 20:04:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="A3CNMZt8" Received: from out-180.mta1.migadu.com (out-180.mta1.migadu.com [95.215.58.180]) (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 8A7E23BB51 for ; Fri, 1 Mar 2024 20:04:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709323482; cv=none; b=fntGbDFNCmIHOuORz9FdMbLftALFxZCSxtNqcWImo7GSKzB9q4HgAYHB7LHgofqHSc7lyVJE1D4uYK1HD1r81VqsERiraOn/sIDxURs4m2V+Lw1TTFQSDG796rdAooMJSWlTzCniTomeN3VSec2eN1bX5TKy0Wz82lbRHeoscv8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709323482; c=relaxed/simple; bh=f14nCfAkRhWaq3IBXlAwLE7i8TCJBeF4+IGty/g53bQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KlFPn71WTBLWcmXtrAEm41YdTLKpTp/5hAysk3YhK013ZYXViUsxExWSumIchQMclu/N847KNMgFTNrSzIFi8tO3pvEijodf9ADhZlaQH32OSo0TR9Dxy/tKTZSHXWzjLIAh2jsx8aC7SmBqTLid7Ezn3MLPJFUo5eykiQBCWvM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=A3CNMZt8; arc=none smtp.client-ip=95.215.58.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Fri, 1 Mar 2024 15:04:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1709323478; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ul6pAsiH3Cf2VNyIM/Eaw82KrFx/wNv6iML+Aou3/Pg=; b=A3CNMZt8ut4JztwS+Y5BGVeJ949fLchBZBLX+LjjOB9qhCB37l3Kv4Ia1etW8FyEJCLtbY FJSRMeGGOUTJ7Aicne+l2al3woE36zN1vkYYx6T/1gep55J7tlVJOzBCBgCtnG9kQWE6CI d6DCw1va/+qdTPCdgDZyZryyqthecmE= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Matthew Wilcox Cc: "Pankaj Raghav (Samsung)" , linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, djwong@kernel.org, mcgrof@kernel.org, linux-mm@kvack.org, hare@suse.de, david@fromorbit.com, akpm@linux-foundation.org, gost.dev@samsung.com, linux-kernel@vger.kernel.org, chandan.babu@oracle.com, Pankaj Raghav Subject: Re: [PATCH v2 03/13] filemap: align the index to mapping_min_order in the page cache Message-ID: References: <20240301164444.3799288-1-kernel@pankajraghav.com> <20240301164444.3799288-4-kernel@pankajraghav.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT On Fri, Mar 01, 2024 at 07:26:55PM +0000, Matthew Wilcox wrote: > On Fri, Mar 01, 2024 at 05:44:34PM +0100, Pankaj Raghav (Samsung) wrote: > > +#define DEFINE_READAHEAD_ALIGNED(ractl, f, r, m, i) \ > > + struct readahead_control ractl = { \ > > + .file = f, \ > > + .mapping = m, \ > > + .ra = r, \ > > + ._index = mapping_align_start_index(m, i), \ > > + } > > My point was that you didn't need to do any of this. > > Look, I've tried to give constructive review, but I feel like I'm going > to have to be blunt. There is no evidence of design or understanding > in these patches or their commit messages. You don't have a coherent > message about "These things have to be aligned; these things can be at > arbitrary alignment". If you have thought about it, it doesn't show. Don't you think you might be going off a bit much? I looked over these patches after we talked privately, and they looked pretty sensible to me... Yes, we _always_ want more thorough commit messages that properly explain the motivations for changes, but in my experience that's the thing that takes the longest to learn how to do well as an engineer... ease up abit. > So, let's start off: Is the index in ractl aligned or not, and why do > you believe that's the right approach? And review each of the patches > in this series with the answer to that question in mind because you are > currently inconsistent. ^ this is a real point though, DEFINE_READAHEAD_ALIGNED() feels off to me.