1 --- a/fs/mini_fo/inode.c
2 +++ b/fs/mini_fo/inode.c
5 dentry_t *hidden_sto_dentry;
6 dentry_t *hidden_sto_dir_dentry;
7 -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
8 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27))
13 down(&hidden_sto_dir_dentry->d_inode->i_sem);
16 -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
17 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27))
19 err = vfs_symlink(hidden_sto_dir_dentry->d_inode,
20 hidden_sto_dentry, symname, mode);
25 -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
26 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27))
27 mini_fo_permission(inode_t *inode, int mask, struct nameidata *nd)
29 mini_fo_permission(inode_t *inode, int mask)
35 -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
36 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
37 + err = inode_permission(hidden_inode, mask);
38 +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
39 err = permission(hidden_inode, mask, nd);
41 err = permission(hidden_inode, mask);