]> git.baikalelectronics.ru Git - kernel.git/commit
locks: remove LOCK_MAND flock lock support
authorJeff Layton <jlayton@kernel.org>
Fri, 10 Sep 2021 19:36:29 +0000 (15:36 -0400)
committerJeff Layton <jlayton@kernel.org>
Fri, 10 Sep 2021 20:21:44 +0000 (16:21 -0400)
commita76a5dbf6f3a3b81910103f19bfc285e49f2607e
tree45d9848be89c64360b82aa49fbb19af46eb46164
parent3a8db5be4877180b6a90aa92e437c60d9951172e
locks: remove LOCK_MAND flock lock support

As best I can tell, the logic for these has been broken for a long time
(at least before the move to git), such that they never conflict with
anything. Also, nothing checks for these flags and prevented opens or
read/write behavior on the files. They don't seem to do anything.

Given that, we can rip these symbols out of the kernel, and just make
flock(2) return 0 when LOCK_MAND is set in order to preserve existing
behavior.

Cc: Matthew Wilcox <willy@infradead.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/locks.c
fs/gfs2/file.c
fs/locks.c
fs/nfs/file.c
include/uapi/asm-generic/fcntl.h