fold put_filp() into fput()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Jul 2018 15:14:39 +0000 (11:14 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 12 Jul 2018 14:04:16 +0000 (10:04 -0400)
commit4d27f3266f14e4d1d13125ce32cb49a40f3122c3
treef8563984e4278fc0ddd68c4bdd277f8179014ef5
parentf5d11409e61dadf1f9af91b22bbedc28a60a2e2c
fold put_filp() into fput()

Just check FMODE_OPENED in __fput() and be done with that...

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