Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1031,7 +1031,9 @@ EXPORT_SYMBOL(generic_file_open);

/*
 * 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)
{