Changeset 76744 in vbox for trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c
- Timestamp:
- Jan 9, 2019 4:29:03 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c
r76733 r76744 279 279 * correct limit but MAX_LFS_FILESIZE (8TB-1 on 32-bit boxes) takes the 280 280 * page cache into account and is the suggested limit. */ 281 # if defined MAX_LFS_FILESIZE281 # if defined MAX_LFS_FILESIZE 282 282 sb->s_maxbytes = MAX_LFS_FILESIZE; 283 # else283 # else 284 284 sb->s_maxbytes = 0x7fffffffffffffffULL; 285 # endif285 # endif 286 286 #endif 287 287 sb->s_op = &sf_super_ops; … … 384 384 SET_INODE_INFO(inode, NULL); 385 385 } 386 #else 386 #else /* LINUX_VERSION_CODE >= 2.6.36 */ 387 387 static void sf_evict_inode(struct inode *inode) 388 388 { … … 391 391 TRACE(); 392 392 truncate_inode_pages(&inode->i_data, 0); 393 # if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0)393 # if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0) 394 394 clear_inode(inode); 395 # else395 # else 396 396 end_writeback(inode); 397 # endif397 # endif 398 398 399 399 sf_i = GET_INODE_INFO(inode); … … 406 406 SET_INODE_INFO(inode, NULL); 407 407 } 408 #endif 408 #endif /* LINUX_VERSION_CODE >= 2.6.36 */ 409 409 410 410 /* this is called by vfs when it wants to populate [inode] with data. … … 492 492 /*unlock_new_inode(iroot); */ 493 493 return 0; 494 #else 494 #else /* LINUX_VERSION_CODE < 2.4.23 */ 495 495 return -ENOSYS; 496 #endif 496 #endif /* LINUX_VERSION_CODE < 2.4.23 */ 497 497 } 498 498 … … 552 552 } 553 553 554 # if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18)554 # if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18) 555 555 static struct super_block *sf_get_sb(struct file_system_type *fs_type, 556 556 int flags, const char *dev_name, … … 560 560 return get_sb_nodev(fs_type, flags, data, sf_read_super_26); 561 561 } 562 # elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)562 # elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) 563 563 static int sf_get_sb(struct file_system_type *fs_type, int flags, 564 564 const char *dev_name, void *data, struct vfsmount *mnt) … … 567 567 return get_sb_nodev(fs_type, flags, data, sf_read_super_26, mnt); 568 568 } 569 # else569 # else /* LINUX_VERSION_CODE >= 2.6.39 */ 570 570 static struct dentry *sf_mount(struct file_system_type *fs_type, int flags, 571 571 const char *dev_name, void *data) … … 574 574 return mount_nodev(fs_type, flags, data, sf_read_super_26); 575 575 } 576 # endif576 # endif /* LINUX_VERSION_CODE >= 2.6.39 */ 577 577 578 578 static struct file_system_type vboxsf_fs_type = { 579 579 .owner = THIS_MODULE, 580 580 .name = "vboxsf", 581 # if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)581 # if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) 582 582 .get_sb = sf_get_sb, 583 # else583 # else 584 584 .mount = sf_mount, 585 # endif585 # endif 586 586 .kill_sb = kill_anon_super 587 587 }; 588 #endif 588 589 #endif /* LINUX_VERSION_CODE >= 2.6.0 */ 589 590 590 591 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
Note:
See TracChangeset
for help on using the changeset viewer.