From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from SHSQR01.spreadtrum.com (mx1.unisoc.com [222.66.158.135]) (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 AD68E3A7F6E for ; Thu, 14 May 2026 03:58:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=222.66.158.135 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778731131; cv=none; b=R8H1a2hZgh6TEwlVpMR7YO7LsQdUxElM5BC68ZpQPqd3LC+mUlRtbp0Z36A+TllFFcEUvKAHE0Df/vX6GrUsCHOBlfys9fKSxafqrtTjJk1UQzJVi+VvH4VhNZvqmxlz2ew32DgwRCA8zDGBiXmeR8TIZVykkY07dK8TV4WE+aY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778731131; c=relaxed/simple; bh=6cGwcT0RS6JYdd9mR6zmfWZy9X1EZQtbYMmm/h0Ap7g=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=MfZOKF3vrVE8vy+jSlkjeIQ1Oktxdb/H8iDWSW+IZrcHhCYpMNlF4XdiM/HYz0F9WOokOJqw0+SFLrBWyFrpyE4qQ5WA0EL169oAFcB1ZPYrvQ3iD/vDdzRy9w3El+mxQRRJcy9kEj1fponZHvOhFZC2FliBl3VJ6LuHiqtULZY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=unisoc.com; spf=pass smtp.mailfrom=unisoc.com; dkim=pass (2048-bit key) header.d=unisoc.com header.i=@unisoc.com header.b=herCyD++; arc=none smtp.client-ip=222.66.158.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=unisoc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=unisoc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=unisoc.com header.i=@unisoc.com header.b="herCyD++" Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 64E3umSZ044154; Thu, 14 May 2026 11:56:48 +0800 (+08) (envelope-from Yi.Sun@unisoc.com) Received: from SHDLP.spreadtrum.com (BJMBX02.spreadtrum.com [10.0.64.8]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4gGGdZ5kKSz2K66XY; Thu, 14 May 2026 11:53:22 +0800 (CST) Received: from localhost.localdomain (10.5.32.15) by BJMBX02.spreadtrum.com (10.0.64.8) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 14 May 2026 11:56:45 +0800 From: Yi Sun To: , CC: , , , , Subject: [PATCH v2 0/1] Improve the performance of bitmap_find_next_zero_area_off() Date: Thu, 14 May 2026 11:56:43 +0800 Message-ID: <20260514035644.4118050-1-yi.sun@unisoc.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SHCAS01.spreadtrum.com (10.0.1.201) To BJMBX02.spreadtrum.com (10.0.64.8) X-MAIL:SHSQR01.spreadtrum.com 64E3umSZ044154 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unisoc.com; s=default; t=1778731017; bh=/VYjeXaMPXmH1249oRLCM+5q14x1KM7+faxcYDhWLVw=; h=From:To:CC:Subject:Date; b=herCyD++XF8xCh4keltppUwZwy/Upv4DHryoeUk/do2PaEmGniJ4QdGExf6lDkkxD cxKvb9ltYrJevVp3Jwrmoox3qWgUwb1Jqd8hcYpDmzbrv0VJ+BeHuvSkmw4P57YWAt MziJcTNLDnMf8g2zykxMl98Y///KakoSkY23FzWp5h9RNM+wUAv97sEAenNXhCLpgN cmu+5ZArkMrnJ2Rauv/CCL5714sep2Y/wWY8GNfTfPMhMNyLYOY2TL6akP0gYSyewT BHQOmUf0Yfeh6tB4xMl5CMyPifin6Jtttz0nGF5dN27MxM4qsL0GMYVrrbjVpt5tU2 xWEpFWlL0yJvQ== Instead of introducing new function like find_last_bit_range/off/from(), the existing find_last_bit() is used, achieving the same effect as PATCH v1. --- v1: https://lore.kernel.org/all/20260512040659.2992142-1-yi.sun@unisoc.com Yi Sun (1): lib: bitmap: reduce the number of goto again in bitmap_find_next_zero_area_off() lib/bitmap.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) -- 2.34.1