android_kernel_google_msm/arch/arm/kernel
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
..
.gitignore
arch_timer.c sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
armksyms.c
arthur.c
asm-offsets.c
atags.c
atags.h
bios32.c
calls.S ARM: wire up memfd_create syscall 2020-10-25 02:37:54 -04:00
compat.c
compat.h
cpuidle.c
crash_dump.c ARM: 8012/1: kdump: Avoid overflow when converting pfn to physaddr 2014-06-07 16:02:02 -07:00
debug.S
devtree.c
dma-isa.c
dma.c
early_printk.c
elf.c
entry-armv.S Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
entry-common.S CHROMIUM: arch/arm: move secure_computing into trace; respect return code 2014-10-31 19:46:21 -07:00
entry-header.S ARM: 8129/1: errata: work around Cortex-A15 erratum 830321 using dummy strex 2014-09-25 11:49:16 +08:00
etm.c
fiq.c
fiqasm.S
ftrace.c
head-common.S
head-nommu.S
head.S Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
hw_breakpoint.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
init_task.c
insn.c
insn.h
io.c
irq.c Revert "arm: irq: Allow for specification of no preallocated irqs" 2013-02-27 18:13:09 -08:00
isa.c
iwmmxt.S
jump_label.c
kgdb.c
kprobes-arm.c
kprobes-common.c
kprobes-test-arm.c
kprobes-test-thumb.c
kprobes-test.c
kprobes-test.h
kprobes-thumb.c
kprobes.c
kprobes.h
leds.c
machine_kexec.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
Makefile sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
module.c
opcodes.c
patch.c arm: patch.c : Allow kernel text section to be written 2013-02-20 02:49:15 -08:00
patch.h
perf_event.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
perf_event_msm.c Perf: Let platforms decide IRQ request methods. 2013-03-15 17:09:06 -07:00
perf_event_msm_krait.c msm: perf: Protect buffer overflow due to malicious user 2016-10-29 23:12:33 +08:00
perf_event_v6.c
perf_event_v7.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
perf_event_xscale.c
pj4-cp0.c
pmu.c
process.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
ptrace.c ARM: 7735/2: Preserve the user r/w register TPIDRURW on context switch and fork 2016-06-03 11:52:03 -07:00
relocate_kernel.S
return_address.c arm: kernel: Drop warning about return_address not using unwind tables 2016-10-29 23:12:12 +08:00
sched_clock.c sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
setup.c ARM: integrate CMA with DMA-mapping subsystem 2013-02-27 18:14:48 -08:00
signal.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
signal.h
sleep.S
smp.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
smp_scu.c
smp_tlb.c
smp_twd.c
stacktrace.c ARM: stacktrace: avoid listing stacktrace functions in stacktrace 2014-06-30 20:01:33 -07:00
suspend.c
swp_emulate.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
sys_arm.c vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
sys_oabi-compat.c locks: rename file-private locks to "open file description locks" 2021-01-24 09:56:22 +00:00
tcm.c
tcm.h
thumbee.c
time.c sched_clock: Squashed revert of the latest updates 2018-02-20 21:56:17 +03:00
topology.c ARM: 7742/1: topology: export cpu_topology 2014-04-14 06:44:20 -07:00
traps.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
unwind.c
vmlinux.lds.S msm: 8974: Add function to reserve memory from device tree 2013-02-27 18:17:06 -08:00
xscale-cp0.c