Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2162881ybh; Sun, 15 Mar 2020 20:44:06 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs7W2/qP99T1LW9TgCS1ARUcgtol62Ym06QpzMMeBKuHXU79nmJ8qQVPR6TUZFcN5FsjSuQ X-Received: by 2002:a05:6808:10b:: with SMTP id b11mr9506903oie.99.1584330245965; Sun, 15 Mar 2020 20:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584330245; cv=none; d=google.com; s=arc-20160816; b=bjYsJh4Sc5tq5GiBBUeWxWQ1F65aP7VGCryWezkjRRjLMnhom2U9oifF1BUIR+iBok /G4v+Mv3yqa7tg5934HBa1WViqRFf3BWP9YTht/X98v9uZIhJg8CSnsRUBdiHkHl9Iu3 AFnbTnn3AEFpABeDnCtrd8myjqaLOsGs5KPcIz63Vm3JYKCFXI1Fi/40FgoxwlqCx631 u0o/wxT47hzXwinZmJdlDdoYcyozrpKGdEW4y1GJw2KZmBmMOUythsxrsNowqsz24Iun 98MXmbkSdE0+lqnMZ30mhHZb9CqNkAIUpVhgjT7ktuaQEJ8MO9l0TMmgYOYbYYf+Nlh2 KfQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=PwYq+A1nBUiHCamHP77xjqJcKLDZlCT05cW3CB3WdrU=; b=MX3oY7YT+U80K0LDENYU9m1WDB+M3aDO6yQTx6pGEppZRtD9+WJ1T2BcbqAE7say9t 7e/MCaRazDnMlz2zrJiPARYPTjlrPuNV+h1hS38uvvujwNOKZ2hhEKxJCT05XN4DJdx+ ee2pIhAoNPkB8p8XjT7NZUBvw3wCLSgkmccqkjzWmq6IWfg+WNSFaqZMQwtHiofgB9LA jb9TKHA10nuCEmPJYziayG0puZW+FHficMhxptqh3jKy2OwyDI2DsCpFdf65a+cCJHLs GpQSCGzjI28PsT4BFNfrpx/cQWYjroRVYdD/8UrMRXeyBMpwStwJBAkO4yrETXsD6IpW JdKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GJP4e9ib; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8si9648452oti.306.2020.03.15.20.43.54; Sun, 15 Mar 2020 20:44:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GJP4e9ib; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729529AbgCPDCY (ORCPT + 99 others); Sun, 15 Mar 2020 23:02:24 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:38341 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729384AbgCPDCY (ORCPT ); Sun, 15 Mar 2020 23:02:24 -0400 Received: by mail-pf1-f196.google.com with SMTP id z5so9111737pfn.5 for ; Sun, 15 Mar 2020 20:02:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=PwYq+A1nBUiHCamHP77xjqJcKLDZlCT05cW3CB3WdrU=; b=GJP4e9ibvDaiUCeFZmTsWbbCaZixvjDfN5VAd4upMaukROlyyWrodnB18XnnD5h0Wd WjBVh/PUI0m1/UGm3XnE0VUUg+2zROSJcelavaqY2B2BzT3MxT2hiykXvbdvE5PAQzER tE+02pJ+3kQ2NuIiGI+FmRsP9+cFbyzDLDmksFYiPkkYe9HULELQ5Rlok7AzFBZf3fCc bfQQlNW9LoVWQRWt8+MODdgPz5Y9wcHu0HQNznfz1P+mR7Al80DRa7lQxQOXnIJVMd7J vImuHsul8Ctxc2h8dGX1Z05SjVkPeenys7AVgyCEa/TuPs3VfCBaWGuCLbjqVVgP4AGI R6rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=PwYq+A1nBUiHCamHP77xjqJcKLDZlCT05cW3CB3WdrU=; b=W92wg4fmEsLl2moiqu4YEaqkItorXu6cTyLKrm1h0NEPSR9ZD7mFcWHlh0Q9CXaiJS KgKOA8BmbhD6L7nvQbaZ/pRMeSdhbyi8txBWrUK25He4TGlR0HmW3LEOFu+m0trkgFkD 1E8oph75CUISZhjfSfEpFEqKd3aUN+QZcu5PUMpOm3L8ZM3KgT75i3UGCZlspYzkUx9q s7bEMewYE2Yrb6xY11qKsYl/uJIp1N8OPlSH56vMod1vFbMzKcaw08hZM5jkppO70CQh v09d/wGUT33C+0+PAiNWLF9g4LlikDOv+17xEe4Umu7jIQ5aR1QaMH+SEddsQaBcOiUh mwaA== X-Gm-Message-State: ANhLgQ3g+CmJK5cJ+3IpGSDtaN0Vx6JgifII6jVAok7XKR7FYTWnjRvE V/hXodzc5uoJbe7y7zwLZNQ= X-Received: by 2002:aa7:8f36:: with SMTP id y22mr25918957pfr.162.1584327741784; Sun, 15 Mar 2020 20:02:21 -0700 (PDT) Received: from VM_0_35_centos.localdomain ([150.109.62.251]) by smtp.gmail.com with ESMTPSA id e26sm56422pfj.61.2020.03.15.20.02.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Mar 2020 20:02:21 -0700 (PDT) From: Qiujun Huang To: willy@infradead.org, gregkh@linuxfoundation.org Cc: tglx@linutronix.de, rfontana@redhat.com, armijn@tjaldur.nl, linux-kernel@vger.kernel.org, Qiujun Huang Subject: [PATCH] radix-tree: update the description for radix_tree_find_next_bit Date: Mon, 16 Mar 2020 11:02:16 +0800 Message-Id: <1584327736-11492-1-git-send-email-hqjagain@gmail.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function changed at some point, but the description was not updated. Signed-off-by: Qiujun Huang --- lib/radix-tree.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/radix-tree.c b/lib/radix-tree.c index c8fa1d2..3791378 100644 --- a/lib/radix-tree.c +++ b/lib/radix-tree.c @@ -178,12 +178,11 @@ static inline void all_tag_set(struct radix_tree_node *node, unsigned int tag) * radix_tree_find_next_bit - find the next set bit in a memory region * * @addr: The address to base the search on - * @size: The bitmap size in bits + * @tag: The tag index (< RADIX_TREE_MAX_TAGS) * @offset: The bitnumber to start searching at * * Unrollable variant of find_next_bit() for constant size arrays. - * Tail bits starting from size to roundup(size, BITS_PER_LONG) must be zero. - * Returns next bit offset, or size if nothing found. + * Returns next bit offset, or RADIX_TREE_MAP_SIZE if nothing found. */ static __always_inline unsigned long radix_tree_find_next_bit(struct radix_tree_node *node, unsigned int tag, -- 1.8.3.1