Changeset 54391 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Feb 23, 2015 5:07:55 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/utils.c
r45300 r54391 99 99 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) 100 100 inode->i_mapping->a_ops = &sf_reg_aops; 101 # if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 19, 0) 102 /* XXX Was this ever necessary? */ 101 103 inode->i_mapping->backing_dev_info = &sf_g->bdi; 104 # endif 102 105 #endif 103 106 … … 864 867 { 865 868 int rc = 0; 869 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) && LINUX_VERSION_CODE <= KERNEL_VERSION(3, 19, 0) 866 870 /* Each new shared folder map gets a new uint64_t identifier, 867 871 * allocated in sequence. We ASSUME the sequence will not wrap. */ … … 869 873 uint64_t u64CurrentSequence = ASMAtomicIncU64(&s_u64Sequence); 870 874 871 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)872 875 sf_g->bdi.ra_pages = 0; /* No readahead */ 873 876 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 12) … … 886 889 # endif /* >= 2.6.26 */ 887 890 # endif /* >= 2.6.24 */ 888 #endif /* >= 2.6.0 */891 #endif /* >= 2.6.0 && <= 3.19.0 */ 889 892 return rc; 890 893 } … … 892 895 void sf_done_backing_dev(struct sf_glob_info *sf_g) 893 896 { 894 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24) 897 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24) && LINUX_VERSION_CODE <= KERNEL_VERSION(3, 19, 0) 895 898 bdi_destroy(&sf_g->bdi); /* includes bdi_unregister() */ 896 899 #endif
Note:
See TracChangeset
for help on using the changeset viewer.