Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2632595lqp; Mon, 25 Mar 2024 05:10:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVU/JqyQWs8Kk3ulkMqfOWpMAZa/D2yKrrqeK8Wz6lDMul3Ad37X87IQhGJ/OMidxggQ/TJhQCSuVKwEquV18gZKWKsi2ghzoBDdn8OzQ== X-Google-Smtp-Source: AGHT+IF4uo6mF1VedVJiVeVQYr9+b++YEmWgiTeCeZHi15T64wDBkFEEuGzQNw9QeN8p6Zz7OAbv X-Received: by 2002:a17:906:90b:b0:a47:3573:b7a3 with SMTP id i11-20020a170906090b00b00a473573b7a3mr5098294ejd.11.1711368635356; Mon, 25 Mar 2024 05:10:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711368635; cv=pass; d=google.com; s=arc-20160816; b=EMZ+TG1Wewjn3D8nhhtsIHzfQszHsbnX9tiQPauvkvp7NWzatvWwE8+1iFh5Gy/ZE9 FivdF7V7yIRtiVZ68lIKg2GQoscwdu+ZAzM+nsMnDmtK6IacK5hE0ky72JS7cppqE56C JzizOe7H1VZ2YxTz8/Xk7B3XtBZhiRTpyBn2AHZLNjyS9xvJcOP9bal+0Rdc9GfQVhaX Sl+bC86EN/ORK2bi+IimMp6Os0gbPkX2YHx+MxbEYQ6F+aSsomSuvJOY59YtI5fqY5OA E71WI+ahE9dWGZRQLVpwWyNeueTHRgyWgSvJxDcAAF9+zwHLEw3vyLP+P7HyLHM69XuD uNOQ== ARC-Message-Signature: i=2; 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:message-id:date:subject:cc:to :from:dkim-signature; bh=hnj6QhXlwaft/coqoLJDZBScFt5gj/F5ruc7EbRseQw=; fh=FOvkxspWbZWUV3HLrjl6xb8SoB1P9iskf736cA03Kj4=; b=JZidbB9XP2YC5OcNpirQ4H0EgcB+2iYSg19UNoTrpDuBl8vQupCfJLIfrKYG1U8L5g ZVeTsH0pwYeETeGXx8ZRAIo+FqOvajlwgyFf/CqRsa9wbX98uIZQhec8PImYoGGHgVGw 1awDyuFkF8UWMahDa140hiAp4SpL1NhrQ9YFaLYKV1d1IFSK5PN/s3Mc781I940hx9gh nZYKLEqGzJrXmIz8zuXEtUcoK0e8qbl2ij2qW668gHDRpDSFqGI9FpnzyX8sUwpsh5nB Mk9oYEEuwHhxeSLBwLkGlRLImMH5M2Bzbg9bvj2+F4/TY2EmleAmBn4ZiS6zGXArfnTd 6HSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=CoxGe+7G; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-116442-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116442-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ht17-20020a170907609100b00a4747d80d6esi1995315ejc.649.2024.03.25.05.10.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 05:10:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116442-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=CoxGe+7G; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-116442-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116442-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.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 am.mirrors.kernel.org (Postfix) with ESMTPS id D02AE1F37A82 for ; Mon, 25 Mar 2024 12:10:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 684D386AE9; Mon, 25 Mar 2024 07:31:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="CoxGe+7G" Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) (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 0EF61158D93; Mon, 25 Mar 2024 02:46:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.119 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711334797; cv=none; b=Gse2TUToqSgCeXJs8cQXnDgoxWqYOx2n+c2SxjtXsebMT5Df0Y3L08SJ18vZEoJNVFMHSh1Tt9RA7BmjgNV1pfMxKfRG7xIXp62wcu/5oGesS9vqiaYIdFuxQqGBsdIhcypVvUw51pbeQwOhfiWLyL4G8kIq466oM6NFaYk5CVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711334797; c=relaxed/simple; bh=kvnYbAJYV+BV1WgQH3dwyoDwk6yHIMypMOMBm0WlAlU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=jIAK8x3Dmu05oOs8BRFT7GZgSe+IGhjE0evNyedoQVi6DzUwpupFP7AgIpSt8EHv8b6ZyCdwtlkOxVTKFIexSOCXQwm2D4ohLCynxwvbuPUqXyGHCCtVSt6Y1B342aOZ3NOeeaO6odcrxLko7jp/LCsf98EgKhvdXKVJ5e5CYL0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=CoxGe+7G; arc=none smtp.client-ip=115.124.30.119 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1711334790; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=hnj6QhXlwaft/coqoLJDZBScFt5gj/F5ruc7EbRseQw=; b=CoxGe+7GO/repfGhTS6yPtCJ2TmcFS7a+LkcQoO96rax2jpdrQj1keUnqi7jBFm/i3vqbRhFaccbHaxOTxJzz1R3XSVx7Qd5Cws77xezpCR/TPErhjBulptpxYdQPjREoSc3upy8dwde8/0F5WBEgMcnaDG91vMG3QGzS13EA5k= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R661e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0W38I3D-_1711334789; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0W38I3D-_1711334789) by smtp.aliyun-inc.com; Mon, 25 Mar 2024 10:46:30 +0800 From: Yang Li To: konishi.ryusuke@gmail.com Cc: linux-nilfs@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next 2/3 v2] fs: Add kernel-doc comments to nilfs_btree_convert_and_insert() Date: Mon, 25 Mar 2024 10:46:28 +0800 Message-Id: <20240325024628.101296-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This commit adds kernel-doc style comments with complete parameter descriptions for the function nilfs_btree_convert_and_insert. Signed-off-by: Yang Li --- fs/nilfs2/btree.c | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/fs/nilfs2/btree.c b/fs/nilfs2/btree.c index 65659fa0372e..de38012fd87c 100644 --- a/fs/nilfs2/btree.c +++ b/fs/nilfs2/btree.c @@ -1857,13 +1857,21 @@ nilfs_btree_commit_convert_and_insert(struct nilfs_bmap *btree, } /** - * nilfs_btree_convert_and_insert - - * @bmap: - * @key: - * @ptr: - * @keys: - * @ptrs: - * @n: + * nilfs_btree_convert_and_insert - Convert and insert entries into a B-tree + * @btree: NILFS B-tree structure + * @key: Key of the new entry to be inserted + * @ptr: Pointer (block number) associated with the key to be inserted + * @keys: Array of keys to be inserted in addition to @key + * @ptrs: Array of pointers associated with @keys + * @n: Number of keys and pointers in @keys and @ptrs + * + * This function is used to insert a new entry specified by @key and @ptr, along + * with additional entries specified by @keys and @ptrs arrays, into a NILFS B-tree. + * It prepares the necessary changes by allocating the required blocks and any + * necessary intermediate nodes. It converts configurations from other forms of block + * mapping (the one that currently exists is direct mapping) to a B-tree. + * + * Return: 0 on success or a negative error code on failure. */ int nilfs_btree_convert_and_insert(struct nilfs_bmap *btree, __u64 key, __u64 ptr, -- 2.20.1.7.g153144c