Skip to content

Commit

Permalink
vfs: clarify that nonseekable_open() will never fail
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: John Kacur <jkacur@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Dmitry Torokhov authored and Linus Torvalds committed Aug 11, 2010
1 parent 454eedb commit 06b1e10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/open.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 06b1e10

Please sign in to comment.