Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: vfs: clean up after the iterate() removal

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>

+1 -7
-1
Documentation/filesystems/locking.rst
··· 509 509 ssize_t (*read_iter) (struct kiocb *, struct iov_iter *); 510 510 ssize_t (*write_iter) (struct kiocb *, struct iov_iter *); 511 511 int (*iopoll) (struct kiocb *kiocb, bool spin); 512 - int (*iterate) (struct file *, struct dir_context *); 513 512 int (*iterate_shared) (struct file *, struct dir_context *); 514 513 __poll_t (*poll) (struct file *, struct poll_table_struct *); 515 514 long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
+1 -6
Documentation/filesystems/vfs.rst
··· 1074 1074 ssize_t (*read_iter) (struct kiocb *, struct iov_iter *); 1075 1075 ssize_t (*write_iter) (struct kiocb *, struct iov_iter *); 1076 1076 int (*iopoll)(struct kiocb *kiocb, bool spin); 1077 - int (*iterate) (struct file *, struct dir_context *); 1078 1077 int (*iterate_shared) (struct file *, struct dir_context *); 1079 1078 __poll_t (*poll) (struct file *, struct poll_table_struct *); 1080 1079 long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long); ··· 1125 1126 ``iopoll`` 1126 1127 called when aio wants to poll for completions on HIPRI iocbs 1127 1128 1128 - ``iterate`` 1129 - called when the VFS needs to read the directory contents 1130 - 1131 1129 ``iterate_shared`` 1132 - called when the VFS needs to read the directory contents when 1133 - filesystem supports concurrent dir iterators 1130 + called when the VFS needs to read the directory contents 1134 1131 1135 1132 ``poll`` 1136 1133 called by the VFS when a process wants to check if there is