svn commit: r320333 - head/sys/compat/linuxkpi/common/include/linux

Mark Johnston markj at FreeBSD.org
Sun Jun 25 19:20:14 UTC 2017


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


More information about the svn-src-head mailing list