projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
454eedb
)
vfs: clarify that nonseekable_open() will never fail
author
Dmitry Torokhov
<
[email protected]
>
Wed, 11 Aug 2010 01:01:33 +0000
(18:01 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Aug 2010 15:59:02 +0000
(08:59 -0700)
Signed-off-by: Dmitry Torokhov <
[email protected]
>
Acked-by: Arnd Bergmann <
[email protected]
>
Acked-by: John Kacur <
[email protected]
>
Cc: Al Viro <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/open.c
patch
|
blob
|
history
diff --git
a/fs/open.c
b/fs/open.c
index b715d06fbe3646c2449db8ae177af42ced0bb12c..630715f9f73d0e9ae4370a339eb5163a8bb55ca0 100644
(file)
--- a/
fs/open.c
+++ b/
fs/open.c
@@
-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)
{