1 --- a/fs/mini_fo/inode.c
2 +++ b/fs/mini_fo/inode.c
3 @@ -439,7 +439,7 @@ mini_fo_symlink(inode_t *dir, dentry_t *
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))
12 @@ -466,7 +466,7 @@ mini_fo_symlink(inode_t *dir, dentry_t *
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);
21 @@ -1128,7 +1128,7 @@ void mini_fo_put_link(struct dentry *den
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)
30 @@ -1150,8 +1150,9 @@ mini_fo_permission(inode_t *inode, int m
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);