android_kernel_google_msm/arch
Jeff Layton 059e6ee3a1 locks: rename file-private locks to "open file description locks"
File-private locks have been merged into Linux for v3.15, and *now*
people are commenting that the name and macro definitions for the new
file-private locks suck.

...and I can't even disagree. The names and command macros do suck.

We're going to have to live with these for a long time, so it's
important that we be happy with the names before we're stuck with them.
The consensus on the lists so far is that they should be rechristened as
"open file description locks".

The name isn't a big deal for the kernel, but the command macros are not
visually distinct enough from the traditional POSIX lock macros. The
glibc and documentation folks are recommending that we change them to
look like F_OFD_{GETLK|SETLK|SETLKW}. That lessens the chance that a
programmer will typo one of the commands wrong, and also makes it easier
to spot this difference when reading code.

This patch makes the following changes that I think are necessary before
v3.15 ships:

1) rename the command macros to their new names. These end up in the uapi
   headers and so are part of the external-facing API. It turns out that
   glibc doesn't actually use the fcntl.h uapi header, but it's hard to
   be sure that something else won't. Changing it now is safest.

2) make the the /proc/locks output display these as type "OFDLCK"

Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Carlos O'Donell <carlos@redhat.com>
Cc: Stefan Metzmacher <metze@samba.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Frank Filz <ffilzlnx@mindspring.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Change-Id: Ia975197281d4c80a4ad420d7621896d2f369cef6
2021-01-24 09:56:22 +00:00
..
alpha net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
arm locks: rename file-private locks to "open file description locks" 2021-01-24 09:56:22 +00:00
avr32 net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
blackfin vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
c6x C6x: time: Ensure consistency in __init 2015-09-18 09:20:25 +08:00
cris net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
frv net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
h8300 net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
hexagon vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
ia64 net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
m32r net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
m68k net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
microblaze vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
mips net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
mn10300 net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
openrisc vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
parisc net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
powerpc net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
s390 net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
score vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
sh vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
sparc net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
tile vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
um Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
unicore32 vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
x86 BACKPORT: FROMLIST: mm: ASLR: use get_random_long() 2017-12-27 22:50:17 +03:00
xtensa net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
.gitignore
Kconfig FROMLIST: mm: mmap: Add new /proc tunable for mmap_base ASLR. 2016-10-29 23:12:40 +08:00