Sanitize f_flags helpers
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 19 Dec 2009 15:15:07 +0000 (10:15 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 22 Dec 2009 17:27:34 +0000 (12:27 -0500)
commit5300990c0370e804e49d9a59d928c5d53fb73487
tree08ed922afd172662039c082ec9e9410070f4afe8
parent482928d59db668b8d82a48717f78986d8cea72e9
Sanitize f_flags helpers

* pull ACC_MODE to fs.h; we have several copies all over the place
* nightmarish expression calculating f_mode by f_flags deserves a helper
too (OPEN_FMODE(flags))

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/anon_inodes.c
fs/namei.c
fs/open.c
include/linux/fs.h
kernel/auditsc.c
security/tomoyo/file.c