]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
docs: vfs: clean up after the iterate() removal
authorJonathan Corbet <corbet@lwn.net>
Tue, 8 Aug 2023 21:00:52 +0000 (15:00 -0600)
committerJonathan Corbet <corbet@lwn.net>
Fri, 18 Aug 2023 17:03:52 +0000 (11:03 -0600)
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.

Link: https://lore.kernel.org/r/874jl945bv.fsf@meer.lwn.net
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/filesystems/locking.rst
Documentation/filesystems/vfs.rst

index ed148919e11ad5e49ecd569110f8cabf7541607e..3479be0935c6105354648b6067d3522cce6cd652 100644 (file)
@@ -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);
index cb2a97e498726536c7dcc14cafd035bd468882af..a751f6d01eb24df33cb9137a5649910212ce2503 100644 (file)
@@ -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