Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5243191rwb; Wed, 9 Aug 2023 00:30:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEtfZqE4WAV1nwXsmNb2P2rqffUsacN4Qeqk5jhzxXT1+r6KWKlldhcEiTzI5scnGKuPvDe X-Received: by 2002:a17:907:a087:b0:970:c9f:2db6 with SMTP id hu7-20020a170907a08700b009700c9f2db6mr1210904ejc.63.1691566209455; Wed, 09 Aug 2023 00:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691566209; cv=none; d=google.com; s=arc-20160816; b=kE59R/s5dpcqItG5M089CT3SYyRA/MJcr8PtPAz+obARYtaG6XV6zQCWzswZTj1n12 2W/vJqR4NBOFALk926emUbQfCzqCTMWPK3eGa7bIXjKtXploBtaf/Z9Lh3scDYU1iba9 JbBg8LLouPa9nc6j2vej/V+CGr5yRk0x7nNj0f+e4VFHsXfrOxnFO9l3D2jKm66CiTcQ w48EdPYSRkkUXYc1roqIj8+OcVrPQXCQKoH4QM7y1h/nqcqqVWEfHL4PyA67CNNp+AOk W4r26XJgbWSCSQWkVlvjQNtH5yawWWAkZEkePBK3ykW28R6Zklf2CcSJqTy1soA1SwKh QEVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MgY0zQiz4XvDxYGYYtnC6g1npaSVUpsdk9SHZGxu2v8=; fh=LKeEr+HrFRv+Nud+EJ81IIfyBH/J3rB/xY+75Gb7CPw=; b=CMIE0gzsaz1muxUTIf7OIjKkYO4BSuGmTLHqHVoxMyPUFUVM8NgcCVLMTvbxUqh97Q 6cSGs4uXw9H+RvNcRVKne3atAnrByfsbSAe3JCXblSEte1OWw6zZ5jsW9ofMsl+IOuIk rHBqrNe8V4Ajvx0SN1hPnj11sZHtLLwUYof97EW28N0XGjxduvPSjyr6JoYEg8hkIFXY P4R4j9NHXTgLFphGLnisqs2JjwWtbZWfxbubQ7+4GvRRRBnutszczOT3RPGdd48Y6E2G ctebUvYtq+XAp3ePKZJmz7TBPxHDF0D2YbYapuuvO72GU61cQ5Y1MrnqMZ1XKWanu3VG EJSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hSPsTShN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a17090603c600b0099bc830b126si7497262eja.769.2023.08.09.00.29.42; Wed, 09 Aug 2023 00:30:09 -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=@kernel.org header.s=k20201202 header.b=hSPsTShN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230475AbjHIGON (ORCPT + 99 others); Wed, 9 Aug 2023 02:14:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230500AbjHIGOM (ORCPT ); Wed, 9 Aug 2023 02:14:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 774631FCA; Tue, 8 Aug 2023 23:14:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B774262678; Wed, 9 Aug 2023 06:14:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C63CC433C8; Wed, 9 Aug 2023 06:14:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691561650; bh=0zMrZj0u6BSryzx0If7FWJOOBvNEMBrRU8O0nHWkQa0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hSPsTShNQ9GHvAEVs8hKcpm6fmM6ejKuGcT8cPhVoOFdg/gp05NZlaGum91T/UDvG u4E77GJsxVig2VeHJkWYoJ3xOW/nYhpzs66uAFPlw9xd1SbNjUKCFJh85k3T7yg6a/ VTC7Jyh6sb9gHham9O3HsxFgeFucy2Ro/KANwREWNAHIYWQNyDJ/WmEPlBeW6Msodw IoCcefDkd0hWjsvUrCWah9eIz/3VtIFdHqDZZVxMDTzYQTcJv49pKswkaWn8x+6SKB NpYXUUuZOXa9HYVvmsOxiwNZ0s9mzC/5aAN1GreteOoT1CAl/hEanfW1DDfQwHEPBB yXEiDDXmzsJLg== Date: Wed, 9 Aug 2023 08:14:06 +0200 From: Christian Brauner To: Jonathan Corbet Cc: Linus Torvalds , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH] docs: vfs: clean up after the iterate() removal Message-ID: <20230809-apparat-eiszeit-a1d57a1a4155@brauner> References: <874jl945bv.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <874jl945bv.fsf@meer.lwn.net> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 On Tue, Aug 08, 2023 at 03:00:52PM -0600, Jonathan Corbet wrote: > 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. Looks good to me and yes, feel free to take this through docs ofc, Reviewed-by: Christian Brauner > > 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 >