Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp81770rdd; Mon, 8 Jan 2024 18:55:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9AtWpXH7OOuxm1urzJY9ODyXoRZfHyF/+3h+5ws1z3UWuFMhOydiu3gFMD0JvK0GuZvpk X-Received: by 2002:a17:906:e94:b0:a28:b8b1:afbd with SMTP id p20-20020a1709060e9400b00a28b8b1afbdmr181128ejf.35.1704768922102; Mon, 08 Jan 2024 18:55:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704768922; cv=none; d=google.com; s=arc-20160816; b=eUbzVTOMu71YFEVMVBOr2UmDAZxtRKJGkk/IBbkNSDWmeaBBSxIJksjz+HDEIImix0 7qL2TEMTVSD/PR7eG0X+vBV8khwVRUW60BhX6EE4Lfw4fbLdk9A9jcQyAKWlRnlPKHm8 z6yMShyREx+0qO2aug07SZI7PyNJjwjPdt8mI3R2JRsHZ4TxE8tOqoLIVpwUEpD8lKRw lpQmG4bN+sc3aLQeNpuhNAiM5qXaL+2WcdtEQC31E9zZYwpQJGfqbjDMN8NA6vcSULGB dQfiUjko3HFIkRLDfV9l6cQifC4XqLqoFvhMA5Z6fRmrA0GKy8dfqnWewD/v3Mq1meGP tNpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xxCiXh6+90OQQa6h13ZMbbjv8glnSyW3gmHzwsuWjrA=; fh=4yCsl3ZMA8EuI8gG25eDIVnXlM/zBXajS1WARHTD21M=; b=rmCI4mSERHRp9gD1rlrXf2M5o5epd4EBjBhPuFa0ZqRSqPtvEP8Vr0IFZhf4ItSyJf FNF0s/LLSpV5pGLJc/wSO1yp7vYMD82/piYuvpPKQ6yAEhSH+M5X7SZP5nFEqwn/oCe1 kT5Z2KoHLLOPRS7k5deCnnghh3eeSRbMMdk5+PRI5Q+TSwro39TruAB23cJ16WgxrbMe GZYSwGoldWJ8hI4Aqut4WvBT+8EIvwKQWvXIACdH1Dge5KQRBCEq4/kogQJQSQfs5IeY OyrBt4ETn2wUpzC6YeJCpZot0MIs3qg3SIi8KotcOCwqB+L6XEy+UF4gaEH3+1eDC5ug BgbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b=S8ASTDJw; spf=pass (google.com: domain of linux-ext4+bounces-747-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-747-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dv17-20020a170906b81100b00a2a360dbd0asi419198ejb.26.2024.01.08.18.55.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 18:55:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-747-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=@mit.edu header.s=outgoing header.b=S8ASTDJw; spf=pass (google.com: domain of linux-ext4+bounces-747-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-747-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu 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 D577F1F2443E for ; Tue, 9 Jan 2024 02:55:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5105C4422; Tue, 9 Jan 2024 02:53:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu header.b="S8ASTDJw" X-Original-To: linux-ext4@vger.kernel.org Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (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 7567528E15 for ; Tue, 9 Jan 2024 02:53:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mit.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mit.edu Received: from cwcc.thunk.org (pool-173-48-82-211.bstnma.fios.verizon.net [173.48.82.211]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 4092rS4A010559 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 8 Jan 2024 21:53:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1704768811; bh=xxCiXh6+90OQQa6h13ZMbbjv8glnSyW3gmHzwsuWjrA=; h=From:Subject:Date:Message-ID:MIME-Version:Content-Type; b=S8ASTDJwQWTcL3DYvkPT1fXbJ50omnZmme8y4bVjs+BGDDOew2ZO5b7kL7UnrH3dO d1DeVsi7SxTh2+WzjUB9D+oqGK1PpPADLPa6yksk0lEOcMJzWlSADHCHsIa11u3MgB eGQRoHhaArt8xRb5SrTQvI7d45tv+fScdmhr7iUaPnjz2fjxI3jQ87/JjM3Zi2U3Kr cOXnPYUEJVYbGs+bJyfUT8YOq4UYrp8cmp3HVOdiFaJJpKsE8X51r9ph9jvCW98zRm ouh9j+RphumPDyyv/MKs6f9Z4k54ybjRatKvXpZ94+wd++osyWzzReyYx+QbUAJJdz GR/j/UiEoP8+A== Received: by cwcc.thunk.org (Postfix, from userid 15806) id 1AF7B15C0278; Mon, 8 Jan 2024 21:53:28 -0500 (EST) From: "Theodore Ts'o" To: adilger.kernel@dilger.ca, jack@suse.cz, alex@clusterfs.com, linux-ext4@vger.kernel.org, Gou Hao Cc: "Theodore Ts'o" , linux-kernel@vger.kernel.org, gouhaojake@163.com Subject: Re: [PATCH] ext4: improving calculation of 'fe_{len|start}' in mb_find_extent() Date: Mon, 8 Jan 2024 21:53:15 -0500 Message-ID: <170476879011.637731.10342594755395696779.b4-ty@mit.edu> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231113082617.11258-1-gouhao@uniontech.com> References: <20231113082617.11258-1-gouhao@uniontech.com> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Mon, 13 Nov 2023 16:26:17 +0800, Gou Hao wrote: > After first execution of mb_find_order_for_block(): > > 'fe_start' is the value of 'block' passed in mb_find_extent(). > > 'fe_len' is the difference between the length of order-chunk and > remainder of the block divided by order-chunk. > > [...] Applied, thanks! [1/1] ext4: improving calculation of 'fe_{len|start}' in mb_find_extent() commit: 2bf5eb2a7c22fc3dd011fda2722fd369b1c4608b Best regards, -- Theodore Ts'o