Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp925431lqs; Fri, 14 Jun 2024 09:23:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVrOv8wvKoN/BHpXhzZqjnmaSNHOevKIdsl3QZobba8mVUyKtLZ/NdFgMudJEptPGECf6jIrCvrkQk9OVRWolOOE3XSjUCKXDESDdcIRw== X-Google-Smtp-Source: AGHT+IFZfvs+HcIvy2x4tjuKQEyWYcXQw831MhDoXSpAfGLEwsBMllE0R0tvfgOeKpBzKlJIkhhW X-Received: by 2002:a17:90a:fd13:b0:2c3:38f5:b3c4 with SMTP id 98e67ed59e1d1-2c4dbd440b7mr3732715a91.42.1718382208829; Fri, 14 Jun 2024 09:23:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718382208; cv=pass; d=google.com; s=arc-20160816; b=T4megmI7ZM6PJLvcqRpnpzzsNaHAgy35Q8GLHBXHdGgEQ460UaKtMhb+m8C0WKN++f n6EBWJaFgS5DRJ0ffb223BRGk5z3IRa0XcpHAeH7K9Kwv2iwEpy8rkKVoaOx3+QySA9h grHIUpSrGYt9tUC7D9XcUeGV/Xpt2Kkm7Csfc4HBA5NKqbubPoJvJ+iwq9U0mP+4PEp6 +/F3E+cL/ZQBjsX+1K3y552TD/9d75hb9kEvUApUHjvHUARDKnvBOb8sRwNL6TIWkIkm x2ETywKRlBEGH3P0eN57A7pEt8i2s7Fyd1wRgl0F0c2ixCCgR1E45B+r9DveJA2k/9zz 1Ljg== 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:date:dkim-signature; bh=o4kmNllycobnJxPSc+JrUUAyzHlN3JuewkPkueoOCrQ=; fh=V3D1wClYF5zZM1IJDKpHFrYnoHQS5rOqwPMj254gZS8=; b=bvrIdEe+LxQF71Z9jEEDxnkd9KyC/DgOSTMJoUMaZn4GM9UPO8/yVVfgf3azxko3rH dskII0XEQsQu4JDrrBwPBh9+TbVJdf3OSSlhtiOOHmIeLbMOlIs8FEtpMInwUpho2WKr pl98rZNXzJ8Zu79zF/7lUB7YOeTQJBYqX+7jcKE4VRWv3v41OY8PwdmPiB3YBLAxUhJe y4aJ+3ivL1Bt38prkqejtH4B1TBZhuT6IRNt1XdGe9D/h2oBoIMOHSNjjYGv9y4jENon +WHGsYf5rMBtvW01SyECARZ4rg1siByptwlETTLxPIl/Lqhiah9GK5nGkFC+5X+un5RA TKaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@pankajraghav.com header.s=MBO0001 header.b=VwKhLnNI; arc=pass (i=1 spf=pass spfdomain=pankajraghav.com dkim=pass dkdomain=pankajraghav.com dmarc=pass fromdomain=pankajraghav.com); spf=pass (google.com: domain of linux-kernel+bounces-215231-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215231-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pankajraghav.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4d47a7de3si2884908a91.72.2024.06.14.09.23.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 09:23:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215231-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@pankajraghav.com header.s=MBO0001 header.b=VwKhLnNI; arc=pass (i=1 spf=pass spfdomain=pankajraghav.com dkim=pass dkdomain=pankajraghav.com dmarc=pass fromdomain=pankajraghav.com); spf=pass (google.com: domain of linux-kernel+bounces-215231-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215231-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pankajraghav.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 62DA52880E3 for ; Fri, 14 Jun 2024 16:23:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70FDA171E71; Fri, 14 Jun 2024 16:23:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pankajraghav.com header.i=@pankajraghav.com header.b="VwKhLnNI" Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [80.241.56.161]) (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 9AEB016F0EA; Fri, 14 Jun 2024 16:23:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.161 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718382183; cv=none; b=ZkFEZjepLIWZgo2TfJjwrjLbXqpit1RvdTO1qiblumR0AQxKcU3EUmSywYwEUQC7QzpbNsfTElBnhuMyTQ33rrpTgPkfiBDzHhuPBQQeVLCbEC2sqDojkxI4UbPi+ef3CosqLJMuMchnF9W9JOR10pXeoJ/lJl2tB23EOL6oIjs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718382183; c=relaxed/simple; bh=9xVj2HYRLM1Bn9KcJv/C/fPJ9SREflQWxolwgh3d9DE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kPWSF3loIIPvJuuBv0WJAZ6ABcHpBoOSf4KyvnagIioR9JGn93Ewagux4u3z+MBx51os3R5Ardp+KWb3SMzO5VuEiJsC4CH5xYGltLrAYwbnq/nxTPKYHIJ//PUZlkrBxkGNYQjcqBpEOkXqlV48BHRFPzW7shsoWxO18a3KC8o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pankajraghav.com; spf=pass smtp.mailfrom=pankajraghav.com; dkim=pass (2048-bit key) header.d=pankajraghav.com header.i=@pankajraghav.com header.b=VwKhLnNI; arc=none smtp.client-ip=80.241.56.161 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pankajraghav.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pankajraghav.com Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4W14M55CTXz9syZ; Fri, 14 Jun 2024 18:22:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pankajraghav.com; s=MBO0001; t=1718382177; 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=o4kmNllycobnJxPSc+JrUUAyzHlN3JuewkPkueoOCrQ=; b=VwKhLnNIcoz0lhgP5s9Dt41KUzMS3nCkiikd6WnFm31u+xsqgcNudNVsj4mLs2hL3Qtu7+ LVrxuT2v/f+Fweo6AMqI2r76xJTXs4pYg5LaRPAsX0F54HbV6lLv1qOMeGu3IJre5Mc5c/ bFLE0Ty0nZ+f3nFBVuUoVYiynvcy4818IZxxcSGPlx75ElOEHEBuh6zdXho+jz+m4j1wDZ YQ8Y4C7pnhjGka0ckIrJV8Z4UzHYzwKVvLhOVd4M7DOAhYm0HH+pN7Yd/sTsfj9cd16tlI Afi89iaRp/qS9FgYI7669RBHxgoGBnvBio0/youFmba1UXsETdqfR5kDaHRiaw== Date: Fri, 14 Jun 2024 16:22:54 +0000 From: "Pankaj Raghav (Samsung)" To: Matthew Wilcox Cc: Brian Foster , Kent Overstreet , linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, Pankaj Raghav Subject: Re: [PATCH 1/2] bcachefs: use FGP_WRITEBEGIN instead of combining individual flags Message-ID: <20240614162254.wwuoftv6cbm5x5t7@quentin> References: <20240614105031.57032-1-kernel@pankajraghav.com> <20240614105031.57032-2-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: On Fri, Jun 14, 2024 at 03:36:22PM +0100, Matthew Wilcox wrote: > On Fri, Jun 14, 2024 at 10:50:30AM +0000, Pankaj Raghav (Samsung) wrote: > > ret = bch2_filemap_get_contig_folios_d(mapping, pos, end, > > - FGP_LOCK|FGP_WRITE|FGP_STABLE|FGP_CREAT, > > - mapping_gfp_mask(mapping), > > - &fs); > > + FGP_WRITEBEGIN, > > + mapping_gfp_mask(mapping), &fs); > > Don't change the indentation here. In the next patch it makes the > lines too long. I used clangd to do the formatting. I will probably stick without changing the format in this patch Thanks. > > In general, don't change the indentation. It's been one of the biggest > pains of the folio conversion. "Oh, you changed the name of this > function and now the arguments don't line up". Don't line up the > arguments with the opening paren.