Changeset 57132 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Jul 30, 2015 3:52:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/lnkops.c
r35854 r57132 21 21 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) 22 22 23 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) 24 static const char *sf_follow_link(struct dentry *dentry, void **cookie) 25 # else 23 26 static void *sf_follow_link(struct dentry *dentry, struct nameidata *nd) 27 # endif 24 28 { 25 29 struct inode *inode = dentry->d_inode; … … 41 45 } 42 46 } 47 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) 48 return error ? ERR_PTR(error) : (*cookie = path); 49 # else 43 50 nd_set_link(nd, error ? ERR_PTR(error) : path); 44 51 return NULL; 52 # endif 45 53 } 46 54 55 # if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0) 47 56 static void sf_put_link(struct dentry *dentry, struct nameidata *nd, void *cookie) 48 57 { … … 51 60 free_page((unsigned long)page); 52 61 } 62 #endif 53 63 54 64 struct inode_operations sf_lnk_iops = … … 56 66 .readlink = generic_readlink, 57 67 .follow_link = sf_follow_link, 68 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) 69 .put_link = free_page_put_link, 70 # else 58 71 .put_link = sf_put_link 72 # endif 59 73 }; 60 74
Note:
See TracChangeset
for help on using the changeset viewer.