fs: add a VALID_OPEN_FLAGS
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Apr 2017 07:42:24 +0000 (09:42 +0200)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 03:07:39 +0000 (03:07 +0000)
commite39cf356b77b5648b19db1addc364fcc65e25b17
tree563d33bdb12c42f2e3efbf27e9ec2ba820da86a7
parentcbe2d4e6da4819dd6a55ae437f445fffe84266e6
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