Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp194455pxf; Wed, 17 Mar 2021 19:54:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzliB6WlDm/xhoOM0NuSBZWNVdvnTeIKcMfvac9p/26phL2S5g16QStXpKa3pb3CEax2mBe X-Received: by 2002:aa7:d4cb:: with SMTP id t11mr898892edr.202.1616036080198; Wed, 17 Mar 2021 19:54:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616036080; cv=none; d=google.com; s=arc-20160816; b=iiCaJqMQkkVOIsD74+EWbUKSOM5tc43uM0IVT6G2NRdkjSUBT5KhszXItUON1ciRx/ KErArEg+xkLByom/8nmLcDWD0l1cWuGjCMs1QiEYAMNMEFUdbs+/mNBljU13tooUlVG+ jngLbzuGfmYe3S4niDp/nC6v+DIAZjdCZNTO1NNdJ9HmA+WlB8inYxAJonAVBcY7bXsE nD6Da8Gz6hEBhgIleqgIp/GyoQx5XjFoAJ6fCcGqGuEWE7uFanlTTUS5AhEpcah4TQyx mLUyIn9+V/FgJBl2ZTw0Lu019vGENgMxU+Z9lAp+xxvxBMXNMDf7fwjJx05cG3riJZYb RP4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/Xme+FpO6M8DVIBymGV9zFrkHimaGzjIL5qitTnVrBs=; b=acK6Ju4yslo/T0Ob+0YpcBJv/Fs+RHeVvLxnpLhg4r/F6c1V/gNtz054DzyWxefv8g D/Wj0LAQr0xT18HG8GZnqacit3jUDTu9d957yYDCiVAHuFLv8ntZS7nYiMBjJkMxH+R2 EY9yqFPjuaZR7KUoNnGcL2Pg0ZfK1Jn8zBGOHZ1ETnaD0TQ9uH6YPPGxpZofW5+aKNu4 IJH9B5Ds5A43nEZHMnFSVIxZY8CPC/Jejnm+ChdqBGEWUv3K5e+WWAtsy+lU6TAiv75l Uqx16GRLXiNkAjCfTY0j32A2CKdBgVWCLT4pQlk3Mo+oWRSKUHBjt08uebdFLN9ML44Q hogw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=phFFX3xK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si523196edq.268.2021.03.17.19.54.17; Wed, 17 Mar 2021 19:54:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=phFFX3xK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231162AbhCRCw7 (ORCPT + 99 others); Wed, 17 Mar 2021 22:52:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230341AbhCRCwp (ORCPT ); Wed, 17 Mar 2021 22:52:45 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 011FBC06174A; Wed, 17 Mar 2021 19:52:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=/Xme+FpO6M8DVIBymGV9zFrkHimaGzjIL5qitTnVrBs=; b=phFFX3xK64viv27lmuMzEDly7w 5WJuEuRZTfNZYXWHlN/druBjuQ8mofPJS+LLtSCtRkMAr+xRx/CcqLy05Va4GtgAQjqoAhwZrg5Pg WXgodTUCWYe+v/Z9wxrasmJxncsLBC5Ol3FPHJBDITSP0V0G90BZAkkDPyWcsQpvs4VMlsQztUqvR LVPo9rh+PovUl9XjUdFB9461DqMKF7IqlVsO5jRtnfMeVqe9g89oodbgAUIqZCeqAi0WlM3NSvVbK 8QSGo6FAmY/xhVkUASABlHv+LH/b9hMXir871RFYTodqkYL8d7kx61Cx+2u+0q6sGYUa9dWABvWay hoENtiDg==; Received: from [2601:1c0:6280:3f0::9757] (helo=smtpauth.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lMilz-002Rj4-4W; Thu, 18 Mar 2021 02:52:36 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Al Viro , Jonathan Corbet , linux-doc@vger.kernel.org Subject: [PATCH 1/2] fs/namespace: corrent/improve kernel-doc notation Date: Wed, 17 Mar 2021 19:52:25 -0700 Message-Id: <20210318025227.4162-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix kernel-doc warnings in fs/namespace.c: ./fs/namespace.c:1379: warning: Function parameter or member 'm' not described in 'may_umount_tree' ./fs/namespace.c:1379: warning: Excess function parameter 'mnt' description in 'may_umount_tree' ./fs/namespace.c:1950: warning: Function parameter or member 'path' not described in 'clone_private_mount' Also convert path_is_mountpoint() comments to kernel-doc. Signed-off-by: Randy Dunlap Cc: Al Viro Cc: Jonathan Corbet Cc: linux-doc@vger.kernel.org --- Jon, Al has OK-ed you to merge this patch (and the next one, please). fs/namespace.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) --- linux-next-20210317.orig/fs/namespace.c +++ linux-next-20210317/fs/namespace.c @@ -1242,8 +1242,9 @@ struct vfsmount *mntget(struct vfsmount } EXPORT_SYMBOL(mntget); -/* path_is_mountpoint() - Check if path is a mount in the current - * namespace. +/** + * path_is_mountpoint() - Check if path is a mount in the current namespace. + * @path: path to check * * d_mountpoint() can only be used reliably to establish if a dentry is * not mounted in any namespace and that common case is handled inline. @@ -1369,7 +1370,7 @@ void mnt_cursor_del(struct mnt_namespace /** * may_umount_tree - check if a mount tree is busy - * @mnt: root of mount tree + * @m: root of mount tree * * This is called to check if a tree of mounts has any * open files, pwds, chroots or sub mounts that are @@ -1939,10 +1940,11 @@ void drop_collected_mounts(struct vfsmou /** * clone_private_mount - create a private clone of a path + * @path: path to clone * - * This creates a new vfsmount, which will be the clone of @path. The new will - * not be attached anywhere in the namespace and will be private (i.e. changes - * to the originating mount won't be propagated into this). + * This creates a new vfsmount, which will be the clone of @path. The new mount + * will not be attached anywhere in the namespace and will be private (i.e. + * changes to the originating mount won't be propagated into this). * * Release with mntput(). */