VirtualBox

Changeset 31719 in vbox


Ignore:
Timestamp:
Aug 17, 2010 11:22:15 AM (14 years ago)
Author:
vboxsync
Message:

Linux additions: Linux 2.6.36 compile fixes

Location:
trunk/src/VBox/Additions/linux/sharedfolders
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/utils.c

    r30187 r31719  
    386386    uint16_t p_len;
    387387    uint8_t *p_name;
    388     uint8_t *dst;
    389388    int fRoot = 0;
    390389
  • trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c

    r30175 r31719  
    340340/* this is called when vfs is about to destroy the [inode]. all
    341341   resources associated with this [inode] must be cleared here */
     342#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36)
    342343static void sf_clear_inode(struct inode *inode)
    343344{
     
    354355    SET_INODE_INFO(inode, NULL);
    355356}
     357#else
     358static void sf_evict_inode(struct inode *inode)
     359{
     360    struct sf_inode_info *sf_i;
     361
     362    TRACE();
     363    truncate_inode_pages(&inode->i_data, 0);
     364    end_writeback(inode);
     365
     366    sf_i = GET_INODE_INFO(inode);
     367    if (!sf_i)
     368        return;
     369
     370    BUG_ON(!sf_i->path);
     371    kfree(sf_i->path);
     372    kfree(sf_i);
     373    SET_INODE_INFO(inode, NULL);
     374}
     375#endif
    356376
    357377/* this is called by vfs when it wants to populate [inode] with data.
     
    398418static struct super_operations sf_super_ops =
    399419{
     420#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36)
    400421    .clear_inode = sf_clear_inode,
     422#else
     423    .evict_inode = sf_evict_inode,
     424#endif
    401425#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
    402426    .read_inode  = sf_read_inode,
Note: See TracChangeset for help on using the changeset viewer.

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