From: Dmitry Torokhov Date: Wed, 11 Aug 2010 01:01:33 +0000 (-0700) Subject: vfs: clarify that nonseekable_open() will never fail X-Git-Tag: v2.6.36-rc1~250 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06b1e104b7ea1bf5145643de5a3fce28b831ca4c;p=platform%2Fkernel%2Flinux-exynos.git vfs: clarify that nonseekable_open() will never fail Signed-off-by: Dmitry Torokhov Acked-by: Arnd Bergmann Acked-by: John Kacur Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/open.c b/fs/open.c index b715d06..630715f 100644 --- 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) {