- 時間撮記:
- 2015-1-7 上午10:23:32 (10 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
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;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器