Changeset 53757 in vbox for trunk/src/VBox/Additions/linux/sharedfolders
- Timestamp:
- Jan 7, 2015 10:23:32 AM (10 years ago)
- Location:
- trunk/src/VBox/Additions/linux/sharedfolders
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/dirops.c
r48529 r53757 127 127 TRACE(); 128 128 129 sf_g = GET_GLOB_INFO(dir->f_dentry->d_inode->i_sb); 129 inode = GET_F_DENTRY(dir)->d_inode; 130 sf_i = GET_INODE_INFO(inode); 131 sf_g = GET_GLOB_INFO(inode->i_sb); 130 132 sf_d = dir->private_data; 131 133 132 134 BUG_ON(!sf_g); 133 135 BUG_ON(!sf_d); 134 135 inode = dir->f_dentry->d_inode;136 sf_i = GET_INODE_INFO(inode);137 138 136 BUG_ON(!sf_i); 139 137 -
trunk/src/VBox/Additions/linux/sharedfolders/regops.c
r51622 r53757 109 109 size_t left = size; 110 110 ssize_t total_bytes_read = 0; 111 struct inode *inode = file->f_dentry->d_inode;111 struct inode *inode = GET_F_DENTRY(file)->d_inode; 112 112 struct sf_glob_info *sf_g = GET_GLOB_INFO(inode->i_sb); 113 113 struct sf_reg_info *sf_r = file->private_data; … … 184 184 size_t left = size; 185 185 ssize_t total_bytes_written = 0; 186 struct inode *inode = file->f_dentry->d_inode;186 struct inode *inode = GET_F_DENTRY(file)->d_inode; 187 187 struct sf_inode_info *sf_i = GET_INODE_INFO(inode); 188 188 struct sf_glob_info *sf_g = GET_GLOB_INFO(inode->i_sb); … … 455 455 static struct page *sf_reg_nopage(struct vm_area_struct *vma, unsigned long vaddr, int *type) 456 456 # define SET_TYPE(t) *type = (t) 457 #else /* LINUX_VERSION_CODE < KERNEL_VERSION 457 #else /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) */ 458 458 static struct page *sf_reg_nopage(struct vm_area_struct *vma, unsigned long vaddr, int unused) 459 459 # define SET_TYPE(t) … … 466 466 int err; 467 467 struct file *file = vma->vm_file; 468 struct inode *inode = file->f_dentry->d_inode;468 struct inode *inode = GET_F_DENTRY(file)->d_inode; 469 469 struct sf_glob_info *sf_g = GET_GLOB_INFO(inode->i_sb); 470 470 struct sf_reg_info *sf_r = file->private_data; … … 606 606 static int sf_readpage(struct file *file, struct page *page) 607 607 { 608 struct inode *inode = file->f_dentry->d_inode;608 struct inode *inode = GET_F_DENTRY(file)->d_inode; 609 609 struct sf_glob_info *sf_g = GET_GLOB_INFO(inode->i_sb); 610 610 struct sf_reg_info *sf_r = file->private_data; -
trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.h
r38811 r53757 146 146 #endif 147 147 148 #if LINUX_VERSION_CODE >= KERNEL_VERSION 148 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19) || defined(KERNEL_FC6) 149 149 /* FC6 kernel 2.6.18, vanilla kernel 2.6.19+ */ 150 150 # define GET_INODE_INFO(i) ((struct sf_inode_info *) (i)->i_private) … … 156 156 #endif 157 157 158 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0) 159 # define GET_F_DENTRY(f) (f->f_path.dentry) 160 #else 161 # define GET_F_DENTRY(f) (f->f_dentry) 158 162 #endif 159 163 164 #endif 165
Note:
See TracChangeset
for help on using the changeset viewer.