From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796379239; b=zA25HlNLP++I44p58uPx8oFxAZUABQKJvGCLpxN+jO0pQxOY9X55MoxYZ77tpyrdYbDa dwzVYSCH2SfT356P3bJWqYdbpla1c7at2BfyGjWuhJ8iXkAIJ53bciIH549qAROf3SZA1 z+G9yxQS7D0y2MFl/+IIVJ1QghgcHutZ1x8IyxtvSdSl4HOQ832pP/E7hGKHWS2G0tB3e lLisFQQdyiMDm1Z3hx+wk2yyZpRPKVfnq5ikwaWjO979cJBRPsRyi7yyS8NHWVW5i+mky cN8TPYSR1YcgxJzzbNZbE1+MK7treMrGCOAtfqBJPaN53ckvDDbbMEGeEVIR2zhfB0A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379239; h=Received:DKIM-Signature:From:To:Cc:In-Reply-To:References:Subject: Message-Id:Date:MIME-Version:Content-Type:Content-Transfer-Encoding: X-Mailer; bh=D4ydFoOBMgpNpCPi65kZA8qohQNNEBXNmsXUs/aop5I=; b=IJXKKqpy3huO7l+Z1jCOcscuIzLP43gTTRl5iuFc2Q9ohZVh6yC042oDiiaNShYVQQO3 7/H1VNtZxz2wrAVX+cl6jIuG+DVARUfDEprggGJWlyapBEPKI08Z1md0CPetlAnxFB2KK 2adWBW0G6nrad1ZHN3HjaD3qRSv9R7fqz3EmficJqiTnwJgZC2bKaN6Em1AvAu77nNqyo HoJUAQb+z3G1M3tnab3WjOSt4lZiuLti8sG29F2NWdD2PnTyJXWtVnIbj5NdOs1wsleij 6c5KwTsvOxJiZzpYD4RpW9PqnLN0bW66swdE8SySm4txGgj2eAo3deywycUUHAp76Vg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kw5DMTr4; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB07E606A332; Fri, 4 Dec 2026 10:13:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kw5DMTr4 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8FEE1F00934; Fri, 4 Dec 2026 10:13:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796379239; bh=D4ydFoOBMgpNpCPi65kZA8qohQNNEBXNmsXUs/aop5I=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=kw5DMTr4Od6rfx2me/aH8WjBaAwQWr5O8mVppbUIbwVz62yIy2fAkknnurODdKVLK pJ3UWpIM3UDHpT1o4hXKpKSTbUhPobGpnhkzMnd94TJFVN3fUFb8vbFJ3L7xYEnEvZ oeuoYFtIzRtStjuTehpr9A8eHk/wkSiUTzvuEoocgBnPsbaa06NaPDJW3NcuBn1obK +CzaocZ289vSQ484xfSUyJW6ILplv4Kzy5/m7K+0zHVHVKRSyaUtBPzmUmW2cjcFt2 Iw5ptLp5BS7U1kLN5rS5loT8sk6x8cQiqRs3IR4QtbGRJe/n+muqmMyjuHFxRAwaF6 KvU9CBj5JUDhQ== From: Carlos Maiolino To: zhangshida2026@163.com Cc: "Darrick J . Wong" , Christoph Hellwig , linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Shida Zhang In-Reply-To: <20261202012152.3846288-1-zhangshida2026@163.com> References: <20261202012152.3846288-1-zhangshida2026@163.com> Subject: Re: [PATCH v4 0/2] xfs: optimize getfsmap by reusing and advancing the refcount cursor Message-Id: <179637923751.161209.2276907306448103457.b4-ty@kernel.org> Date: Fri, 04 Dec 2026 11:13:57 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.14.3 On Wed, 02 Dec 2026 09:21:50 +0800, zhangshida2026@163.com wrote: > From: Shida Zhang > > GETFSMAP walks the rmap btree in increasing startblock order and asks > the refcount btree whether each record's blocks are shared. Every > record pays a cursor alloc/free and a root-to-leaf btree search, even > though the next query is almost always the next refcount record. > > [...] Applied to for-next, thanks! [1/2] xfs: factor out a xfs_getfsmap_del_cursors helper commit: ba384c4130f617764f5d375fdc006ab4de45e2c8 [2/2] xfs: optimize getfsmap by reusing and advancing the refcount cursor commit: ab1a77ab136c24fdbc81291530963d2be5d482d9 Best regards, -- Carlos Maiolino