android_kernel_google_msm/arch/arm
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
..
boot Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
common sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
configs flox: defconfig: Enable XZ compressed ramdisk 2020-12-23 16:15:33 +03:00
crypto crypto: arm/aes update NEON AES module to latest OpenSSL version 2021-01-05 14:42:14 +03:00
include/asm net: introduce SO_MAX_PACING_RATE 2020-11-30 19:31:32 +03:00
kernel locks: rename file-private locks to "open file description locks" 2021-01-24 09:56:22 +00:00
lib Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
mach-at91 ARM: at91: pm: fix at91rm9200 standby 2015-06-19 11:40:23 +08:00
mach-bcmring
mach-clps711x
mach-cns3xxx
mach-davinci sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
mach-dove
mach-ebsa110
mach-ep93xx
mach-exynos
mach-footbridge
mach-gemini
mach-h720x
mach-highbank
mach-imx
mach-integrator sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
mach-iop13xx
mach-iop32x
mach-iop33x
mach-ixp4xx sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
mach-ixp23xx
mach-ixp2000
mach-kirkwood
mach-ks8695
mach-l7200/include/mach
mach-lpc32xx
mach-mmp sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
mach-msm msm: SSR: Remove useless warning 2020-11-13 15:50:48 +01:00
mach-mv78xx0
mach-mxs
mach-netx
mach-nomadik
mach-omap1 sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
mach-omap2 sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
mach-orion5x
mach-picoxcell
mach-pnx4008
mach-prima2
mach-pxa sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
mach-realview
mach-rpc
mach-s3c24xx
mach-s3c64xx
mach-s3c2410
mach-s3c2412
mach-s3c2440
mach-s5p64x0
mach-s5pc100
mach-s5pv210
mach-sa1100 sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
mach-shark
mach-shmobile
mach-spear3xx
mach-spear6xx
mach-tegra
mach-u300 sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
mach-ux500
mach-versatile
mach-vexpress
mach-vt8500
mach-w90x900
mach-zynq
mm BACKPORT: FROMLIST: mm: ASLR: use get_random_long() 2017-12-27 22:50:17 +03:00
net ARM: Fix incorrect backport of 0b59d8806a31 2015-10-22 09:20:08 +08:00
nwfpe
oprofile
perfmon
plat-iop sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
plat-mxc
plat-nomadik
plat-omap sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
plat-orion sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
plat-pxa
plat-s3c24xx
plat-s5p
plat-samsung
plat-spear
plat-versatile sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
tools
vfp Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
Kconfig ARM: configs: flo: Go back to 100Hz 2018-03-23 18:43:28 +03:00
Kconfig-nommu
Kconfig.debug
Makefile msm8960: Use tuned options when compiling 2020-10-25 02:37:54 -04:00