Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp502397pxb; Tue, 19 Oct 2021 07:17:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbjGS6eT3mCN551VoyRON6QLw8gcJ5ax5lLAX01Q4Tu9u55g0DOpS23lUB1s0GV/rvluTn X-Received: by 2002:a17:90a:ccb:: with SMTP id 11mr163391pjt.121.1634653076687; Tue, 19 Oct 2021 07:17:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634653076; cv=none; d=google.com; s=arc-20160816; b=mnTQCmP7SFjS6ywgbvKHdIDaZL0iAwBtR+qW9/mxhKi3XXN0ZAWwwjaqq/04oWspZG c6jpYvcKeiZcjQTXsJlBCqBnA7vCdYTaiDDIJcF6p94qXK2k6NzN25VdaV9n4NxK4v7c 3r271+HMUhSYch7MV3BT9QFHDcn9iORwHeauxvTU3GXo0M7G9VQtt0ay18otSdocQBe+ 0UQFLli/YyLHbllqdS1saCsj5rNL0zrT+ypQ+8X8aBEq6bEman5/mm9sveJDagKwWJeo vwDZPzRV96VXIU5ApCtvM5V2Zoc09v0siFhku5FkOtVxIp8GReWtjZqzckN/0BCys2ai 0HhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=lt8qvOTFKGhiOOshAxcj3oNU5jo8B3ig8SJPket4UkU=; b=bq4IIuiQxmuybM7rvmD6hYlcoxiVvOvdK1mWojOiNo+qIBxdzlk7l0hZjTFIU49+hB yWyCsEEhY5vXQMJ+Avo/qP3QLyfGS+ZJMfbjZFUafwsVez9KSss03TtW6GSFlC7+QD9F VDOnz9thzq/uwSEeI9iQ4tW8xMV6qI8/+geV+GtTLCNM4kZAaJmEiwJ5pOKCVKhajDFd mZrN/+hRfm7wOXrTc7vEyPV+qkAP2K0FbowhxMS6Wj0E2ej5WpPUK78AAjYamZQMeY4Z 2BMiGz3Z/WpEycFcgpqQuErEEwNdjKg0+zpmJCTvpCmXQG+6obEvrQvAgyVB3+bP2TOD Gwmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=Cm3SLPC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cp12si7293503plb.161.2021.10.19.07.17.42; Tue, 19 Oct 2021 07:17:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=Cm3SLPC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231460AbhJSOQq (ORCPT + 99 others); Tue, 19 Oct 2021 10:16:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231758AbhJSOQl (ORCPT ); Tue, 19 Oct 2021 10:16:41 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 566CCC06161C; Tue, 19 Oct 2021 07:14:28 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 9F2FE50D7; Tue, 19 Oct 2021 10:14:27 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 9F2FE50D7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1634652867; bh=lt8qvOTFKGhiOOshAxcj3oNU5jo8B3ig8SJPket4UkU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cm3SLPC0/FfrO0FP4N9LWvMC3i7KEzleNElr3DI7yo0fw/eypo1sOOitpDfEiwCTZ mmz9oybp7k+6nuXiL7n1mphTNW+GEb2/yZYk3CU+nkC0J+rCpgZcD+4IXcacf+d5NB 2Vc5cqZBVAw03H1SnyA6kNOcfub7LkDKnwEN1HEg= Date: Tue, 19 Oct 2021 10:14:27 -0400 From: "J. Bruce Fields" To: Jeff Layton Cc: Mauro Carvalho Chehab , Linux Doc Mailing List , Jonathan Corbet , Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 18/23] fs: remove a comment pointing to the removed mandatory-locking file Message-ID: <20211019141427.GA15063@fieldses.org> References: <887de3a1ecadda3dbfe0adf9df9070f0afa9406c.1634630486.git.mchehab+huawei@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 19, 2021 at 06:50:21AM -0400, Jeff Layton wrote: > On Tue, 2021-10-19 at 09:04 +0100, Mauro Carvalho Chehab wrote: > > The mandatory file locking got removed due to its problems, but > > there's still a comment inside fs/locks.c pointing to the removed > > doc. > > > > Remove it. > > > > Fixes: f7e33bdbd6d1 ("fs: remove mandatory file locking support") > > Signed-off-by: Mauro Carvalho Chehab > > --- > > > > To mailbombing on a large number of people, only mailing lists were C/C on the cover. > > See [PATCH v3 00/23] at: https://lore.kernel.org/all/cover.1634630485.git.mchehab+huawei@kernel.org/ > > > > fs/locks.c | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/fs/locks.c b/fs/locks.c > > index d397394633be..94feadcdab4e 100644 > > --- a/fs/locks.c > > +++ b/fs/locks.c > > @@ -61,7 +61,6 @@ > > * > > * Initial implementation of mandatory locks. SunOS turned out to be > > * a rotten model, so I implemented the "obvious" semantics. > > - * See 'Documentation/filesystems/mandatory-locking.rst' for details. > > * Andy Walker (andy@lysaker.kvaerner.no), April 06, 1996. > > * > > * Don't allow mandatory locks on mmap()'ed files. Added simple functions to > > Thanks Mauro. I'll pick this into my locks branch, so it should make > v5.16 as well. Could we delete the rest too? We don't do those changelog-style comments any more; they're in the git history if you need them. I can sort of get leaving some in out of respect or if they've still provide some useful information. But keeping comments referring to code that doesn't even exist any more just seems confusing. --b. diff --git a/fs/locks.c b/fs/locks.c index 3d6fb4ae847b..2540b7aedeac 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -59,17 +59,6 @@ * once we've checked for blocking and deadlocking. * Andy Walker (andy@lysaker.kvaerner.no), April 03, 1996. * - * Initial implementation of mandatory locks. SunOS turned out to be - * a rotten model, so I implemented the "obvious" semantics. - * See 'Documentation/filesystems/mandatory-locking.rst' for details. - * Andy Walker (andy@lysaker.kvaerner.no), April 06, 1996. - * - * Don't allow mandatory locks on mmap()'ed files. Added simple functions to - * check if a file has mandatory locks, used by mmap(), open() and creat() to - * see if system call should be rejected. Ref. HP-UX/SunOS/Solaris Reference - * Manual, Section 2. - * Andy Walker (andy@lysaker.kvaerner.no), April 09, 1996. - * * Tidied up block list handling. Added '/proc/locks' interface. * Andy Walker (andy@lysaker.kvaerner.no), April 24, 1996. * @@ -95,10 +84,6 @@ * Made the block list a circular list to minimise searching in the list. * Andy Walker (andy@lysaker.kvaerner.no), Sep 25, 1996. * - * Made mandatory locking a mount option. Default is not to allow mandatory - * locking. - * Andy Walker (andy@lysaker.kvaerner.no), Oct 04, 1996. - * * Some adaptations for NFS support. * Olaf Kirch (okir@monad.swb.de), Dec 1996, *