# Re: \[PATCH v3 18/23\] fs: remove a comment pointing to the removed mandatory-locking file

- From: Jeff Layton \<jlayton@kernel.org\>
- Date: 2021-10-19 10:50:26 
- List: linux-doc
- Page: https://ratatoskr.run/linux-doc/2021/10/216441
- Thread: https://ratatoskr.run/linux-doc/2021/10/216427/t.md

```text
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 <mchehab+huawei@kernel.org>
> ---
> 
> 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.
-- 
Jeff Layton [ref]

```
