Author: hselasky
Date: Sun Feb 25 10:31:27 2018
New Revision: 329967
URL: https://svnweb.freebsd.org/changeset/base/329967

Log:
  MFC r329511:
  Implement file_inode() and call_mmap() helper functions in the LinuxKPI.
  
  Submitted by: Johannes Lundberg <johal...@gmail.com>
  Sponsored by: Mellanox Technologies
  Sponsored by: Limelight Networks

Modified:
  stable/11/sys/compat/linuxkpi/common/include/linux/fs.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/include/linux/fs.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/fs.h     Sun Feb 25 
10:30:36 2018        (r329966)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/fs.h     Sun Feb 25 
10:31:27 2018        (r329967)
@@ -284,6 +284,20 @@ noop_llseek(struct linux_file *file, loff_t offset, in
        return (file->_file->f_offset);
 }
 
+static inline struct vnode *
+file_inode(const struct linux_file *file)
+{
+
+       return (file->f_vnode);
+}
+
+static inline int
+call_mmap(struct linux_file *file, struct vm_area_struct *vma)
+{
+
+       return (file->f_op->mmap(file, vma));
+}
+
 /* Shared memory support */
 unsigned long linux_invalidate_mapping_pages(vm_object_t, pgoff_t, pgoff_t);
 struct page *linux_shmem_read_mapping_page_gfp(vm_object_t, int, gfp_t);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to