VirtualBox

忽略:
時間撮記:
2015-1-7 上午10:23:32 (10 年 以前)
作者:
vboxsync
訊息:

Linux Additions / sharedfolders: Linux 3.19 adaptions

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/linux/sharedfolders/regops.c

    r51622 r53757  
    109109    size_t left = size;
    110110    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;
    112112    struct sf_glob_info *sf_g = GET_GLOB_INFO(inode->i_sb);
    113113    struct sf_reg_info *sf_r = file->private_data;
     
    184184    size_t left = size;
    185185    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;
    187187    struct sf_inode_info *sf_i = GET_INODE_INFO(inode);
    188188    struct sf_glob_info *sf_g = GET_GLOB_INFO(inode->i_sb);
     
    455455static struct page *sf_reg_nopage(struct vm_area_struct *vma, unsigned long vaddr, int *type)
    456456# define SET_TYPE(t) *type = (t)
    457 #else /* LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 0) */
     457#else /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) */
    458458static struct page *sf_reg_nopage(struct vm_area_struct *vma, unsigned long vaddr, int unused)
    459459# define SET_TYPE(t)
     
    466466    int err;
    467467    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;
    469469    struct sf_glob_info *sf_g = GET_GLOB_INFO(inode->i_sb);
    470470    struct sf_reg_info *sf_r = file->private_data;
     
    606606static int sf_readpage(struct file *file, struct page *page)
    607607{
    608     struct inode *inode = file->f_dentry->d_inode;
     608    struct inode *inode = GET_F_DENTRY(file)->d_inode;
    609609    struct sf_glob_info *sf_g = GET_GLOB_INFO(inode->i_sb);
    610610    struct sf_reg_info *sf_r = file->private_data;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette