Roland Dreier 628ff7c1d8 anonfd: Allow making anon files read-only
It seems a couple places such as arch/ia64/kernel/perfmon.c and
drivers/infiniband/core/uverbs_main.c could use anon_inode_getfile()
instead of a private pseudo-fs + alloc_file(), if only there were a way
to get a read-only file.  So provide this by having anon_inode_getfile()
create a read-only file if we pass O_RDONLY in flags.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2009-12-22 12:27:34 -05:00
..
2009-12-10 15:02:50 +01:00
2009-12-10 09:59:23 +02:00
2009-12-16 12:16:49 -05:00
2009-12-15 08:53:10 -08:00
2009-12-16 07:20:06 -08:00
2009-12-17 11:03:25 -05:00
2009-12-20 20:19:51 -08:00
2009-12-17 11:03:25 -05:00
2009-12-16 07:20:18 -08:00
2009-12-17 11:03:25 -05:00
2009-12-14 21:40:04 +01:00
2009-12-16 07:20:06 -08:00
2009-12-17 11:03:25 -05:00
2009-12-16 07:20:13 -08:00
2009-09-24 08:41:47 -04:00
2009-09-24 07:21:03 -07:00
2009-12-17 04:52:13 -05:00
2009-12-17 11:03:25 -05:00
2009-12-14 18:12:11 -05:00
2009-12-17 10:51:40 -05:00
2009-10-04 15:05:10 -07:00
2009-12-16 12:16:49 -05:00