Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp902071rdh; Fri, 24 Nov 2023 00:12:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNO9VEVEq9psB+u/Mhk6/jHFiQmUEfsHb1sokAk8WfJvdmXj39ZQIF+sD7Ot3kxxVICzz7 X-Received: by 2002:a05:6602:2814:b0:7b3:71b5:2022 with SMTP id d20-20020a056602281400b007b371b52022mr2156862ioe.17.1700813521641; Fri, 24 Nov 2023 00:12:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700813521; cv=none; d=google.com; s=arc-20160816; b=xq2gGxm8u2HbnNgBe8EyRhKypiqhWELSUDy5/bzBWqSpyvcb5SubW93osMW4wnbZd6 siQZc1v1GNwVa077PaBrC84gLhfL7rRtZNia28vc2zWSw3T2hOfemS9YPFC6bKW+HK+5 eOK3KRnk1Xck3HXCPmHacIp/dnFbZlNBuxOWMtnpzCfzxBgPZZQ2i42oz4om/2hOxA14 YhFDih9v+LMqKPgGWp06CFT09Igl59ged2nHbsXiBUdSraqMBMKU83zoKRQ3AY90jokO //atycUIAnyJPZfOmfmZWxeiK3UQk+DgCyF7p0T1HF4nQJISh2ItoMfhd4r+F5Fs/Wso +WAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=xb0fYDHuEvLn0b5HxDGh3ZwJKEg5iFq21bHRvvsAAys=; fh=hEFaS6pl6/OxHGXHB8EmC3hY/XDtnjGnWcq6w8JnSC8=; b=DpZDvv4zXSC5TZZzBLGekwXilJUtsFZ4Bd3Ri6MO9/RWN8EcETqfVs3mV8TJqD8xnj jd0T7vTZLG7G9yId+xGeyO8JI3SgMepk4Qn83f9C/DRPcEoWOJAwG3WKSAHYd8VxGvdD LvdsF0gxaiM/OlL3TTCM0SrvvKC6QAc7RSfsjjYI9aqBv2ZJ4/zBDabdmLEMzR6/zAUl hdYn6pRfePitbZcVNUf9Sh74IUsFOq9wKNXLiPOyRYRExTaArgDCiZ24tJtSHQ5OQD/8 5vkq5sDS3P1UF84Y7NXg0BCkZBA11JgxejzmS1w8UwnbeU2GWvQ1HayxuzQWjnmy+h9x VAcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b="nUI/LBl7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id h13-20020a63df4d000000b005777bea0b6asi3017876pgj.859.2023.11.24.00.12.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 00:12:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b="nUI/LBl7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 9F5EC8095F75; Fri, 24 Nov 2023 00:11:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344742AbjKXILj (ORCPT + 99 others); Fri, 24 Nov 2023 03:11:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229742AbjKXILh (ORCPT ); Fri, 24 Nov 2023 03:11:37 -0500 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C355A130; Fri, 24 Nov 2023 00:11:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=xb0fYDHuEvLn0b5HxDGh3ZwJKEg5iFq21bHRvvsAAys=; b=nUI/LBl71oIVtey5Ok/FIkn+ob oIP6Pl5zGOpBe6GWBtJP7D5sQ6g66A5bSQkcMqLm4MMC6FSrFz6mcF6AKngwy+DkyTDQr3YvvZjWE ljeXeVIIftu8KCVBDFsutuZVM9wVr9ZovLOhr3HE64jZEZTY1KZJGWP4ZBfJXphiEFY/upF9VvZn5 Awvlq8Ioc0sG3pXZsBcgG6zjmrv4HcXpPaonc8kURrAmM5tBabYqkSnuoAsOxMXTepz169CWKA0q6 mOBC5n4CsznWedcXsaLzoWfjAtXM4ARA7yrs9SEAW7h0sz2LwpbjqlrKdlts+nYSdYB2HRw/nr7F4 zwz2Tsfw==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1r6RHp-002STH-1N; Fri, 24 Nov 2023 08:11:41 +0000 Date: Fri, 24 Nov 2023 08:11:41 +0000 From: Al Viro To: Amir Goldstein Cc: linux-fsdevel@vger.kernel.org, Linus Torvalds , Christian Brauner , linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/20] [software coproarchaeology] dentry.h: kill a mysterious comment Message-ID: <20231124081141.GV38156@ZenIV> References: <20231124060553.GA575483@ZenIV> <20231124060644.576611-1-viro@zeniv.linux.org.uk> <20231124060644.576611-9-viro@zeniv.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Fri, 24 Nov 2023 00:11:58 -0800 (PST) On Fri, Nov 24, 2023 at 09:37:16AM +0200, Amir Goldstein wrote: > Since you like pre-git archeology... > > Mind digging up what this comment in fs.h is about: > > /* needed for stackable file system support */ > extern loff_t default_llseek(struct file *file, loff_t offset, int whence); Umm... I think it was about ecryptfs and its ilk, but it was a long time ago... 2.3.99pre6, along with exporting it: -/* for stackable file systems (lofs, wrapfs, etc.) */ -EXPORT_SYMBOL(add_to_page_cache); +/* for stackable file systems (lofs, wrapfs, cryptfs, etc.) */ +EXPORT_SYMBOL(default_llseek); +EXPORT_SYMBOL(dentry_open); Back then ->llseek == NULL used to mean default_llseek; that had been changed much later. And that was before vfs_llseek() as well, so any layered filesystem had to open-code it - which required default_llseek(). The comment is certainly stale, though - stackable filesystems do *not* need it (vfs_llseek() is there), but every file_operation that used to have NULL ->llseek does. > Or we can just remove it without digging up what the comment used > to refer to ;) Too late - it will have to be removed with that ;-)