Changeset 31719 in vbox
- Timestamp:
- Aug 17, 2010 11:22:15 AM (14 years ago)
- Location:
- trunk/src/VBox/Additions/linux/sharedfolders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/utils.c
r30187 r31719 386 386 uint16_t p_len; 387 387 uint8_t *p_name; 388 uint8_t *dst;389 388 int fRoot = 0; 390 389 -
trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c
r30175 r31719 340 340 /* this is called when vfs is about to destroy the [inode]. all 341 341 resources associated with this [inode] must be cleared here */ 342 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36) 342 343 static void sf_clear_inode(struct inode *inode) 343 344 { … … 354 355 SET_INODE_INFO(inode, NULL); 355 356 } 357 #else 358 static 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 356 376 357 377 /* this is called by vfs when it wants to populate [inode] with data. … … 398 418 static struct super_operations sf_super_ops = 399 419 { 420 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36) 400 421 .clear_inode = sf_clear_inode, 422 #else 423 .evict_inode = sf_evict_inode, 424 #endif 401 425 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) 402 426 .read_inode = sf_read_inode,
Note:
See TracChangeset
for help on using the changeset viewer.