Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4875498rwb; Tue, 8 Aug 2023 15:44:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcQu8rnqCeEzArnpA0vnmpDlHXdcBensFAVnjnXCxCoHNaCGei8tdUKMXmO/qnNXI/EjJ/ X-Received: by 2002:a05:6830:14c:b0:6bc:f6d0:87d2 with SMTP id j12-20020a056830014c00b006bcf6d087d2mr959247otp.38.1691534648661; Tue, 08 Aug 2023 15:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691534648; cv=none; d=google.com; s=arc-20160816; b=cs9IAWwgcGHD5YITbhKgx5zhoQgfehYuL0YXOSZXPTC9/iKocDLui0bPkVED4JtM5g QC+vPE2GFAvT3mPoAJr1NIxb68AG0vGoV5akJWQq7TQZZJCtlNjGA0ZU81zXpC4Yg/HJ vrN3bP1ocTGJ+6L6Iw0yoiQrpRp2FhJLZUYjqK4TvrNBLyGMabUBD9FTX+4u82WTFUbI gTb74Br/xb0wpO1GZJ486TD474qtkckcU9eIReu6VBtkOCUrPiSise8oXCrctXvZCvRv gkq+p3YCoiUKJe06t2q40DojhxDLDqQDEYhRTrd25D9VHXOuIa+y9V+FGepeHRV4wg+W IZXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=4qu8DsXzJEWOLf19QHJhbRU0BX8VweH67rlHSUdngy4=; fh=RzDnOBy7rfMZ/j5vRV0NGeJ6dTCSpbX/Tw8rEBU5gOY=; b=J/wnXZQ1NelPd3NPyGKV2Ye8LNKbH0PL0CUTidXqo1oB89FUmppmERm714ndWa2F4+ 94ZTYfvQJb4BM7M77jcjdfJyPsgdnI+Yjmdb/yvwQpzPz/nc7fHY4KRFy1Au6kMUyXp/ DGS1zbCL7SproUnkUjXNppPFqKwRnUuoucGJ4GTAe7q6Kj3bdLgYMP/VsSt+XsD4LJE7 c1iHvuPB98MFyIdoHQJqfmnQT6E84UfjgqJ7qI10q+Fe3em96vSkcFub9qhZBFiaEKqg QnFiADYmKhsVWy7orb7Gn0v6mLB5ku7GbW6pXsBITuuJejQITDKBiMkYVXJM0YZz/jrl XMxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=qWQRZcnX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 134-20020a63028c000000b0055e48c43ab7si7782787pgc.470.2023.08.08.15.43.55; Tue, 08 Aug 2023 15:44:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=qWQRZcnX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232988AbjHHVBq (ORCPT + 99 others); Tue, 8 Aug 2023 17:01:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234589AbjHHVBa (ORCPT ); Tue, 8 Aug 2023 17:01:30 -0400 Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43FC961B6; Tue, 8 Aug 2023 14:00:54 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:281:8300:73::5f6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id E6946734; Tue, 8 Aug 2023 21:00:52 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net E6946734 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1691528453; bh=4qu8DsXzJEWOLf19QHJhbRU0BX8VweH67rlHSUdngy4=; h=From:To:Cc:Subject:Date:From; b=qWQRZcnXARK7vKJq0hckl7/qctvnNRDtj5Vuo2plijP/oO1fJar9sxFJpsgzYrNw8 ZKhQ9eylUYp4O+x9io7rUec8LV7rjswGY/xsXUz4dVe7z+RSfBFAv+J4pePoqY6f7c 61lmIyWKdlZPjH3YGEvJsUSgXxefmvgETPnxxgoCvJV6fLWJCSG9XfbieY96yzTD/A MK33IDRb7nLKy8ZPq0XAIgrGRnQuYrEFixtQ+jtK7K0guOO7AfGNyAs1DgB0Q3xxNj uy80GQWtQiFUT57HVARx4S+63h+omQPhNwFzoMLOZrJbsh4P/MhK2TMZnV7kC+GdIB 5mlh3x6EVmtZQ== From: Jonathan Corbet To: Linus Torvalds , Christian Brauner Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH] docs: vfs: clean up after the iterate() removal Date: Tue, 08 Aug 2023 15:00:52 -0600 Message-ID: <874jl945bv.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 3e3271549670 ("vfs: get rid of old '->iterate' directory operation") removed the iterate() file_operations member, but neglected to clean up the associated documentation. Get rid of the leftovers. Signed-off-by: Jonathan Corbet --- If nobody objects (or beats me to it) I'll drop this into docs-next shortly. Documentation/filesystems/locking.rst | 1 - Documentation/filesystems/vfs.rst | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Documentation/filesystems/locking.rst b/Documentation/filesystems/locking.rst index 0ca479dbb1cd..aeed0a5a80eb 100644 --- a/Documentation/filesystems/locking.rst +++ b/Documentation/filesystems/locking.rst @@ -509,7 +509,6 @@ prototypes:: ssize_t (*read_iter) (struct kiocb *, struct iov_iter *); ssize_t (*write_iter) (struct kiocb *, struct iov_iter *); int (*iopoll) (struct kiocb *kiocb, bool spin); - int (*iterate) (struct file *, struct dir_context *); int (*iterate_shared) (struct file *, struct dir_context *); __poll_t (*poll) (struct file *, struct poll_table_struct *); long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long); diff --git a/Documentation/filesystems/vfs.rst b/Documentation/filesystems/vfs.rst index cb2a97e49872..a751f6d01eb2 100644 --- a/Documentation/filesystems/vfs.rst +++ b/Documentation/filesystems/vfs.rst @@ -1074,7 +1074,6 @@ This describes how the VFS can manipulate an open file. As of kernel ssize_t (*read_iter) (struct kiocb *, struct iov_iter *); ssize_t (*write_iter) (struct kiocb *, struct iov_iter *); int (*iopoll)(struct kiocb *kiocb, bool spin); - int (*iterate) (struct file *, struct dir_context *); int (*iterate_shared) (struct file *, struct dir_context *); __poll_t (*poll) (struct file *, struct poll_table_struct *); long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long); @@ -1126,12 +1125,8 @@ otherwise noted. ``iopoll`` called when aio wants to poll for completions on HIPRI iocbs -``iterate`` - called when the VFS needs to read the directory contents - ``iterate_shared`` - called when the VFS needs to read the directory contents when - filesystem supports concurrent dir iterators + called when the VFS needs to read the directory contents ``poll`` called by the VFS when a process wants to check if there is -- 2.41.0