From nobody Wed Apr 12 04:21:27 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Px8fd0J7Mz45CLY; Wed, 12 Apr 2023 04:21:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Px8fb6xzTz40N8; Wed, 12 Apr 2023 04:21:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681273288; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dnqhUFKltR/HMSkvUJZLdeTBxGKr1qDV0GvjPqq4Fk8=; b=fJ0iuYtWyBcShUIpt2YiagppvUhoCXFL7ITaeXfjNz4O7VeJkPkif8mw5fY59Slrvdoqd+ FDVqc3ado2zqW1t7lzJfovi9lWdMMQFFlP1HV1CNie/k+w8Oby7vnrse/JtCoQGTEKlmSb VpLxDmgH00cGTZEjo9ifH4qzS0OKNgQ2dDa2Y0dfI0hhSD/2OOqjYukAe4JgkIBwEEcyyb QAYGDeN3Se9dzO83EN+EG8MHPXHW2nfCtEbewQpH5WgoCZ59WvN3dr3PEt4f8TlLY4za/V JZj/ygg1RO/vTkdJ1spQMqjuXt6bVGUmO34mU44h7YW7gMA6/Wsgx6GH1a/lLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681273288; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dnqhUFKltR/HMSkvUJZLdeTBxGKr1qDV0GvjPqq4Fk8=; b=an7+dxFJ+Jhi9d3wt6G6bOys12Rqa9Nr/pPtLDrC85+lVLZFYhngliNcA5LBMw2J27gDmo INvcvIRIGMKaC89z5GjW3fCJYaFdqWA8Ewc+Bx0pBiet+jk9U33GzaGiZPz4ajlhN5NbQz 0TLGMI0TTMxZpQ8wIUb9BOHRYrW+cst7OX7nFEmmjkfuHCStZeD1k3PrfrbotvJLslQUga 0OtHJdZGQqCTNjq29Y9Mc40H2JWkC3/TllDB25b7F5f4eo46VtuLuFnzr8lCiglbFKM/OW EaVnJdfCSDAaPTHTplOJ4I4OvGdlBJDIiF+CgrVHgL1vA1bpdJMd7ghUxisHUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681273288; a=rsa-sha256; cv=none; b=TiwWP7rbe2TFxFDay2lWeZG4gn1HS8Wskp53fY0d0ioPDEVzZvrjBZzLw1gHmc/AU8fb82 NbDC0H2nWnGosakXQ6TcoHtswtKiJJu6fOjKr+tIlUaZprI5j/rJnsRS66Skd9IiNeE1tf j29HYbVrmSa/zQnfK+rhtz9GSUwOweigyDFjOPAWt6CcvvMC/KQq9DPvSILG4jSfET5d3E vGRnLlntUpoUF8qRDdyl02fcUsOXZu09h9qTZnr7rKA8aSVyjvV/8LYKKHBfeNPcOWzftU DF3LImlOPcAobrSDQvsySBW8FfQ/7DTkg48WD2aYxwraFtY5Ew85UUwGkLNsAQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Px8fb4h2GzlRN; Wed, 12 Apr 2023 04:21:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33C4LRT8092005; Wed, 12 Apr 2023 04:21:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33C4LRe5092004; Wed, 12 Apr 2023 04:21:27 GMT (envelope-from git) Date: Wed, 12 Apr 2023 04:21:27 GMT Message-Id: <202304120421.33C4LRe5092004@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: c3c5e6c3e6c4 - main - tarfs: Use the existing CTLFLAG_RWTUN flag definition List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c3c5e6c3e6c459839efa5184e67928c25384d246 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=c3c5e6c3e6c459839efa5184e67928c25384d246 commit c3c5e6c3e6c459839efa5184e67928c25384d246 Author: Zhenlei Huang AuthorDate: 2023-04-12 04:20:38 +0000 Commit: Zhenlei Huang CommitDate: 2023-04-12 04:20:38 +0000 tarfs: Use the existing CTLFLAG_RWTUN flag definition Use it when possible, instead of separated flags. No functional change intended. Reviewed by: hselasky, erj MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D39466 --- sys/fs/tarfs/tarfs_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/fs/tarfs/tarfs_subr.c b/sys/fs/tarfs/tarfs_subr.c index 6aa7eaedb773..a0077c611f25 100644 --- a/sys/fs/tarfs/tarfs_subr.c +++ b/sys/fs/tarfs/tarfs_subr.c @@ -79,13 +79,13 @@ tarfs_sysctl_handle_ioshift(SYSCTL_HANDLER_ARGS) } SYSCTL_PROC(_vfs_tarfs, OID_AUTO, ioshift, - CTLTYPE_UINT | CTLFLAG_MPSAFE | CTLFLAG_RW | CTLFLAG_TUN, + CTLTYPE_UINT | CTLFLAG_MPSAFE | CTLFLAG_RWTUN, &tarfs_ioshift, 0, tarfs_sysctl_handle_ioshift, "IU", "Tar filesystem preferred I/O size (log 2)"); #ifdef TARFS_DEBUG int tarfs_debug; -SYSCTL_INT(_vfs_tarfs, OID_AUTO, debug, CTLFLAG_RW | CTLFLAG_TUN, +SYSCTL_INT(_vfs_tarfs, OID_AUTO, debug, CTLFLAG_RWTUN, &tarfs_debug, 0, "Tar filesystem debug mask"); #endif /* TARFS_DEBUG */