fs: add a VALID_OPEN_FLAGS
commitccb973e681d8f9fedb398b87a115b48ed96a6214
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Apr 2017 07:42:24 +0000 (27 09:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Jul 2017 09:57:44 +0000 (15 11:57 +0200)
treec3e2f0368b03006e276bb239ab6548fcb9925966
parent4282d39575bf17daedc18f2fe01ca349830a6e99
fs: add a VALID_OPEN_FLAGS

commit 80f18379a7c350c011d30332658aa15fe49a8fa5 upstream.

Add a central define for all valid open flags, and use it in the uniqueness
check.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/fcntl.c
include/linux/fcntl.h