Add noop_lseek() to the LinuxKPI.

MFC after:	1 week
This commit is contained in:
Mark Johnston 2017-06-25 19:20:12 +00:00
parent f141ed73a2
commit 4eb1bcfc62

View File

@ -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_ */