Author: markj
Date: Sun Jun 25 19:20:12 2017
New Revision: 320333
URL: https://svnweb.freebsd.org/changeset/base/320333

Log:
  Add noop_lseek() to the LinuxKPI.
  
  MFC after:    1 week

Modified:
  head/sys/compat/linuxkpi/common/include/linux/fs.h

Modified: head/sys/compat/linuxkpi/common/include/linux/fs.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/fs.h  Sun Jun 25 18:40:59 
2017        (r320332)
+++ head/sys/compat/linuxkpi/common/include/linux/fs.h  Sun Jun 25 19:20:12 
2017        (r320333)
@@ -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_ */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to