Add noop_lseek() to the LinuxKPI.
MFC after: 1 week
This commit is contained in:
parent
f141ed73a2
commit
4eb1bcfc62
@ -261,7 +261,15 @@ iput(struct inode *inode)
|
||||
static inline loff_t
|
||||
no_llseek(struct file *file, loff_t offset, int whence)
|
||||
{
|
||||
return -ESPIPE;
|
||||
|
||||
return (-ESPIPE);
|
||||
}
|
||||
|
||||
static inline loff_t
|
||||
noop_llseek(struct linux_file *file, loff_t offset, int whence)
|
||||
{
|
||||
|
||||
return (file->_file->f_offset);
|
||||
}
|
||||
|
||||
#endif /* _LINUX_FS_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user