Commit 06b1e104 authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Linus Torvalds

vfs: clarify that nonseekable_open() will never fail

Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarJohn Kacur <jkacur@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 454eedb8
...@@ -1031,7 +1031,9 @@ EXPORT_SYMBOL(generic_file_open); ...@@ -1031,7 +1031,9 @@ EXPORT_SYMBOL(generic_file_open);
/* /*
* This is used by subsystems that don't want seekable * This is used by subsystems that don't want seekable
* file descriptors * file descriptors. The function is not supposed to ever fail, the only
* reason it returns an 'int' and not 'void' is so that it can be plugged
* directly into file_operations structure.
*/ */
int nonseekable_open(struct inode *inode, struct file *filp) int nonseekable_open(struct inode *inode, struct file *filp)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment