mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 02:16:45 +07:00
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>
This commit is contained in:
parent
454eedb890
commit
06b1e104b7
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user