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,27)
27 + err = generic_permission(hidden_inode, mask, NULL);
28 +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
29 err = permission(hidden_inode, mask, nd);
31 err = permission(hidden_inode, mask);