introduce FMODE_OPENED
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Jul 2018 06:35:08 +0000 (02:35 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 12 Jul 2018 14:04:16 +0000 (10:04 -0400)
commitf5d11409e61dadf1f9af91b22bbedc28a60a2e2c
tree5d965549f3a50f712e6b6fc3e2e908dda385493d
parent9481769208b5e39b871ae4e89f5328c776ec38dc
introduce FMODE_OPENED

basically, "is that instance set up enough for regular fput(), or
do we want put_filp() for that one".

NOTE: the only alloc_file() caller that could be followed by put_filp()
is in arch/ia64/kernel/perfmon.c, which is (Kconfig-level) broken.

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/file_table.c
fs/open.c
include/linux/fs.h