From patchwork Sat Sep 23 19:51:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 144027 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp442740vqu; Sat, 23 Sep 2023 18:18:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFSuC1FrpjAxeVpCSjjXYKfVIbbKhrl1bgkOPoaH8AOkNo0TdrCSrDyPoi49bWng6He7g0R X-Received: by 2002:a17:90a:7a87:b0:267:ffcf:e9e3 with SMTP id q7-20020a17090a7a8700b00267ffcfe9e3mr3196393pjf.46.1695518287038; Sat, 23 Sep 2023 18:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695518287; cv=none; d=google.com; s=arc-20160816; b=KE6BA/xdOYyFw1JKcYpXlyeVzVaOO7N8W1k6rsKrhD/47Sl+DvaQBLGPjvYiABEHjg qq7LIcj8R1WhFtE/GdqF5sVBca+i2HcMJDRxCtOqt2kmcXNV+TTh2H9D5CPjDdgwIoZQ KaPcNW0661+YexMHRPbQRijbCJH1XfjnFXdE/SfpIYIJ6MSFleE/EnmCceP/TMMEi/M/ mZxZGF/2KSpTHnt+hYMm/OnD/cRoKxN2hMV+ngHRSJZM97Tlv/C3AU+Cdih1jezD1Pqa jVrn52+RUc5WisL5zcfUPc88cvWzgJf3m45nppjL1Z9Z4EEnZ0emlJK31qbaWSSZwbUO xxcA== 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=V8TjP83fX1t1uCCFMjF07+NfXsno1RWfHesTfIPCgz4=; fh=Aj6DHTDWjAVnoL78ioSLt40zkrKAzu4Vg56YGMPBcW8=; b=Nlg8PQdU3EKQsR0FhcNmvHhLJkGkZtApDUhOiOUY4jhNCdRnSRe3iwopV8bKkP4XRF aRm+tpxgKwbjzcCuKx1835Os41BC4KcGbblQ7H0CQPRic9UI0+0Bid/1ehIPAWsL+xCn qg3lhPaYuOY87vhwuv+XgchkbE6zBj16q8fsbrEnyb5WfZ2CC9UQnbSBiJZlJw5SkL0L kcQ9y8Tj0kJSXw4VScZGt0hwsm6r08/xP5P900pzSdJbNJ5hPg483Ofs4pulO5naTg0t BvxHVlriVEvFDbfrIgkfTnyxdJ/juzPIhOi/z8/BkuhzM9mcgOt89oN4uLRf6reCtx9X bVQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=nOdhIhQ2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id j20-20020a17090aeb1400b002748ce438b3si8963660pjz.143.2023.09.23.18.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 18:18:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=nOdhIhQ2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 34577820C362; Sat, 23 Sep 2023 12:52:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229623AbjIWTv4 (ORCPT + 30 others); Sat, 23 Sep 2023 15:51:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjIWTvy (ORCPT ); Sat, 23 Sep 2023 15:51:54 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6B7DAB; Sat, 23 Sep 2023 12:51:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=V8TjP83fX1t1uCCFMjF07+NfXsno1RWfHesTfIPCgz4=; b=nOdhIhQ2vQFZ8T+nshOQ6XbE+V GYpo0CgkU954FFwbBWsJfFyXHslWVTv0D7aPvHaOFh2RvPlicq3XSGm9nwmY63hSgWVKCY32CVaHC 5g0d2nNDqzDiv9eYDYpafiZ+N1R3XYhT3DuSpBtg50146FSRLp6+KxME61t5iLlAnwz7B3+y9T6id cFZqEQnU1nLniqjeENqGmczaDeXo2umK7yVfb/30chyokpCW3UPDKu0ePx40COfCyWn9AipyWjkdV NR9sM3IpFC22Wl0bJeKXM95kESENKb/N0UbCxeRDfWAe9r3+DbE8vwd0U3SW28JYGo7EOEZrnmd97 tZIzJxJA==; Received: from [2601:1c2:980:9ec0::9fed] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qk8fK-00BPAS-02; Sat, 23 Sep 2023 19:51:46 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Jonathan Corbet , linux-doc@vger.kernel.org, Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, Luis Chamberlain , Arnd Bergmann , Glauber Costa Subject: [PATCH] docs: admin-guide: sysctl: fix details of struct dentry_stat_t Date: Sat, 23 Sep 2023 12:51:44 -0700 Message-ID: <20230923195144.26043-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 23 Sep 2023 12:52:21 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777879783263243885 X-GMAIL-MSGID: 1777879783263243885 Commit c8c0c239d5ab moved struct dentry_stat_t to fs/dcache.c but did not update its location in Documentation, so update that now. Also change each struct member from int to long as done in commit 3942c07ccf98. Fixes: c8c0c239d5ab ("fs: move dcache sysctls to its own file") Fixes: 3942c07ccf98 ("fs: bump inode and dentry counters to long") Signed-off-by: Randy Dunlap Cc: Jonathan Corbet Cc: linux-doc@vger.kernel.org Cc: Alexander Viro Cc: Christian Brauner Cc: linux-fsdevel@vger.kernel.org Cc: Luis Chamberlain Cc: Arnd Bergmann Cc: Glauber Costa Acked-by: Christian Brauner --- Documentation/admin-guide/sysctl/fs.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff -- a/Documentation/admin-guide/sysctl/fs.rst b/Documentation/admin-guide/sysctl/fs.rst --- a/Documentation/admin-guide/sysctl/fs.rst +++ b/Documentation/admin-guide/sysctl/fs.rst @@ -42,16 +42,16 @@ pre-allocation or re-sizing of any kerne dentry-state ------------ -This file shows the values in ``struct dentry_stat``, as defined in -``linux/include/linux/dcache.h``:: +This file shows the values in ``struct dentry_stat_t``, as defined in +``fs/dcache.c``:: struct dentry_stat_t dentry_stat { - int nr_dentry; - int nr_unused; - int age_limit; /* age in seconds */ - int want_pages; /* pages requested by system */ - int nr_negative; /* # of unused negative dentries */ - int dummy; /* Reserved for future use */ + long nr_dentry; + long nr_unused; + long age_limit; /* age in seconds */ + long want_pages; /* pages requested by system */ + long nr_negative; /* # of unused negative dentries */ + long dummy; /* Reserved for future use */ }; Dentries are dynamically allocated and deallocated.