VirtualBox

Ignore:
Timestamp:
Mar 4, 2019 7:56:32 PM (6 years ago)
Author:
vboxsync
Message:

linux/vboxsf: Rewrote vbsf_inode_setattr() to use open file/dir handles when possible and avoid the extra stat() call at the end. Good speedups for chsize, fchmod and futimes. Let 2.4.x kernel change attributes too. bugref:9172

File:
1 edited

Legend:

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

    r77559 r77561  
    11171117#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 18)
    11181118    .getattr = vbsf_inode_getattr,
     1119#else
     1120    .revalidate = vbsf_inode_revalidate,
     1121#endif
    11191122    .setattr = vbsf_inode_setattr,
    1120 #else
    1121     .revalidate = vbsf_inode_revalidate
    1122 #endif
    11231123#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
    1124     .symlink = vbsf_ino_symlink
     1124    .symlink = vbsf_ino_symlink,
    11251125#endif
    11261126};
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