Changeset 65992 in vbox for trunk/src/VBox/Additions/linux/sharedfolders
- Timestamp:
- Mar 8, 2017 11:24:53 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 113831
- Location:
- trunk/src/VBox/Additions/linux/sharedfolders
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/regops.c
r65200 r65992 445 445 } 446 446 447 #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 25) 447 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 448 static int sf_reg_fault(struct vm_fault *vmf) 449 #elif LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 25) 448 450 static int sf_reg_fault(struct vm_area_struct *vma, struct vm_fault *vmf) 449 451 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) … … 460 462 uint32_t nread = PAGE_SIZE; 461 463 int err; 464 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 465 struct vm_area_struct *vma = vmf->vma; 466 #endif 462 467 struct file *file = vma->vm_file; 463 468 struct inode *inode = GET_F_DENTRY(file)->d_inode; … … 540 545 .fault = sf_reg_fault 541 546 #else 542 547 .nopage = sf_reg_nopage 543 548 #endif 544 549 }; -
trunk/src/VBox/Additions/linux/sharedfolders/utils.c
r62527 r65992 291 291 [generic_fillattr] */ 292 292 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) 293 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 294 int sf_getattr(const struct path *path, struct kstat *kstat, u32 request_mask, unsigned int flags) 295 # else 293 296 int sf_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *kstat) 297 # endif 294 298 { 295 299 int err; 300 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 301 struct dentry *dentry = path->dentry; 302 # endif 296 303 297 304 TRACE(); -
trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.h
r62527 r65992 101 101 extern int sf_inode_revalidate(struct dentry *dentry); 102 102 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) 103 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 104 extern int sf_getattr(const struct path *path, struct kstat *kstat, 105 u32 request_mask, unsigned int query_flags); 106 # else 103 107 extern int sf_getattr(struct vfsmount *mnt, struct dentry *dentry, 104 108 struct kstat *kstat); 109 #endif 105 110 extern int sf_setattr(struct dentry *dentry, struct iattr *iattr); 106 111 #endif
Note:
See TracChangeset
for help on using the changeset viewer.