diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-08-10 21:01:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-11 11:59:02 -0400 |
commit | 06b1e104b7ea1bf5145643de5a3fce28b831ca4c (patch) | |
tree | 198733bb2979bad85682e841ffcfc164b5abe589 /fs/open.c | |
parent | 454eedb8901da895fb602998fa588cd62875d07d (diff) |
vfs: clarify that nonseekable_open() will never fail
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>
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1031,7 +1031,9 @@ EXPORT_SYMBOL(generic_file_open); | |||
1031 | 1031 | ||
1032 | /* | 1032 | /* |
1033 | * This is used by subsystems that don't want seekable | 1033 | * This is used by subsystems that don't want seekable |
1034 | * file descriptors | 1034 | * file descriptors. The function is not supposed to ever fail, the only |
1035 | * reason it returns an 'int' and not 'void' is so that it can be plugged | ||
1036 | * directly into file_operations structure. | ||
1035 | */ | 1037 | */ |
1036 | int nonseekable_open(struct inode *inode, struct file *filp) | 1038 | int nonseekable_open(struct inode *inode, struct file *filp) |
1037 | { | 1039 | { |