Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp941828lqp; Thu, 21 Mar 2024 23:55:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX8bRe3rYDcofIxZSJbOh9R3jNICrBadyIPRRU3Ei5QAtK3IRvizec7JM/1YQ6G27/h9k20A/skVh/yJxkF58bkWUZ/jXlO44qNbqXMvQ== X-Google-Smtp-Source: AGHT+IE8QegYI1v+vAEc6j8ZBoAVAAqjxtXr4wWIljbjuZ5TNZxpIdNuM+1gCTvXMslSN9QM87eJ X-Received: by 2002:a19:5e1b:0:b0:513:b8c0:faa8 with SMTP id s27-20020a195e1b000000b00513b8c0faa8mr906118lfb.65.1711090556165; Thu, 21 Mar 2024 23:55:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711090556; cv=pass; d=google.com; s=arc-20160816; b=g77rtgmQwdfPFbDXSDc79ugTnfBiWROkh+TkbiUhtseNaRaGAks2DZLumVtZz3Z/+9 /bziooiMwXQ6VgQiqwWfZ9SrsZp1O5WQhwrACEdX8Gk4CIcxlgrl143KcpkMB6jstWpe w/2B0Tusdmrc0m/EvxqsYSTp5b8C1/04WXJahAvCsHmu+fKVNIEEvID2+ZHcFenODGvS NDtEYXc87wsDYfTIo/GhiK72bHYfzeSmU+iu7l/uq57mYod40GHZd0v4AzB3qYgeXa2z sGdf98P2aXViCZdP2w2Zau8EBQzPXsRJJ8KSzrgbt7C7roOtGPL736O9RcFcufaKDnPA Yumg== 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=LVabKYwSmk14tjRnmAAv7y5xHKFF5PGMC+FrZ1XHhPY=; fh=YrGcGNWkrBiMWqTtROshwAD2uKCCTgOKUJ5ubvc7RXM=; b=crzhqJ7lhhNWZ8OUFlfwWYAF+QRHWlO9T679U/bkuHxZzF5fVe4faE2scjxBxXnafl qqq5ZJ2jI4F/HYcnk0Nb2AqVKgKn93toTQR7suAIxWKVSxZRe6MN/7R92n2w5BahO3nR HyOI79B0UO6G3EXz30lZqPHMGOJH6U7xFuY1k/odCJ9GDdUiZv4TevaAb9nw8YOJsdp9 oyrHDpib4pPqm4ISnrg0SM+KKGR35Qcud8Y1pEt4AiwAfpI0106391aAbkTGE0uqdqFU BXkvLIa+Fe6xJxf02sL3HgSiXEqryjFA+oqLXu19GoMH0qDZUEJOT3TfxyoZEoWGdSfq 3N1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=YQKZCPPI; 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-111037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111037-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 ek23-20020a056402371700b0056be8a2f3fasi73916edb.397.2024.03.21.23.55.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 23:55:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111037-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=YQKZCPPI; 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-111037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111037-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 DB0D51F2296E for ; Fri, 22 Mar 2024 06:55:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D37410A1F; Fri, 22 Mar 2024 06:55:50 +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="YQKZCPPI" Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) (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 922738C11 for ; Fri, 22 Mar 2024 06:55:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.113 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711090549; cv=none; b=rWjF6FnQG18Jjxoe5i6vsYLj97dXfFF1UNSxcTpJGR8Nw3CmZuCj+8MnLW7R9LMYA6snB3BhKWn1niU+cYYPCLhpQltwYrRb4VVCoh3CGPO5czPHfASDECtSOftNl1Q1oZlQfu99T+YZEPl18VHSn8l0koE34hWqjfzWr/cq+Ow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711090549; c=relaxed/simple; bh=JRIxEKRHhp7NCyWHS1coKlGd5hjec0w//YZZ+2jMasM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=MqRYlZIZF0O/9heR3NeJ+xAUcfQoPsLSDt6nGnf6DhTZou8mz0DUqbRS8804Mr+kyOD+2geykJAJQaQscdflPg8FMxCCukiFOk4SMjfF/Lz0aXlFNUswG9WWKkRop6sn6EOj+XMGItB/uFoYGULQpBlQIr7nhaYaVK998gtPJTQ= 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=YQKZCPPI; arc=none smtp.client-ip=115.124.30.113 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=1711090544; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=LVabKYwSmk14tjRnmAAv7y5xHKFF5PGMC+FrZ1XHhPY=; b=YQKZCPPIOW+R6zwOQgIMJYwLoNFUDYDL7gcWsc4xBPv/lO09JvfkfZU9hn8lt0J1qG7hBIi800R//0KasYbdop772Q3LCtVuDHrE7JuMGYbuvNBOCQmYSLcD56vlB8j1XTKPF3Z6hQZQ2fAmydeuJ6lyFG6BktaxxP5Bz3UjFEo= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R751e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_---0W319pCd_1711090543; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0W319pCd_1711090543) by smtp.aliyun-inc.com; Fri, 22 Mar 2024 14:55:44 +0800 From: Yang Li To: dushistov@mail.ru Cc: linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] fs: Add kernel-doc comments to ufs_getfrag_block() Date: Fri, 22 Mar 2024 14:55:42 +0800 Message-Id: <20240322065542.5588-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 ufs_getfrag_block. Signed-off-by: Yang Li --- fs/ufs/inode.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index a7bb2e63cdde..4a36feff043f 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c @@ -392,6 +392,20 @@ ufs_inode_getblock(struct inode *inode, u64 ind_block, /** * ufs_getfrag_block() - `get_block_t' function, interface between UFS and * read_folio, writepages and so on + * @inode: Inode of the file for which the block is being fetched. + * @fragment: Logical block number within the file. + * @bh_result: The buffer_head to fill in with the block's information. + * @create: Flag indicating if the block should be allocated if it doesn't exist. + * + * This function is responsible for translating a file's logical block number + * into its physical block number on disk. If necessary, it can also allocate + * blocks to the file, when the 'create' argument is non-zero. It fills the + * buffer_head @bh_result with the mapping information. + * + * Return: 0 on success or if the block is already allocated and @create is zero. + * In case of an error, a negative error code is returned. If a new block is + * allocated and @create is non-zero, the function also sets the buffer_new + * flag on @bh_result. */ static int ufs_getfrag_block(struct inode *inode, sector_t fragment, struct buffer_head *bh_result, int create) -- 2.20.1.7.g153144c