new wrapper: alloc_file_pseudo()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 Jun 2018 13:40:05 +0000 (09:40 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 12 Jul 2018 14:04:23 +0000 (10:04 -0400)
commitd93aa9d82aea80b80f225dbf9c7986df444d8106
tree887b5626f375e6745e034e227eb0c583fbefad99
parentdbae8f2ca2f0586f4b80201c78ff0aed2a012ab5
new wrapper: alloc_file_pseudo()

takes inode, vfsmount, name, O_... flags and file_operations and
either returns a new struct file (in which case inode reference we
held is consumed) or returns ERR_PTR(), in which case no refcounts
are altered.

converted aio_private_file() and sock_alloc_file() to it

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