Root/
| 1 | --- a/fs/yaffs2/yaffs_vfs_glue.c |
| 2 | +++ b/fs/yaffs2/yaffs_vfs_glue.c |
| 3 | @@ -3119,7 +3119,11 @@ static struct super_block *yaffs_interna |
| 4 | |
| 5 | T(YAFFS_TRACE_OS, (TSTR("yaffs_read_super: got root inode\n"))); |
| 6 | |
| 7 | +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0)) |
| 8 | + root = d_make_root(inode); |
| 9 | +#else |
| 10 | root = d_alloc_root(inode); |
| 11 | +#endif |
| 12 | |
| 13 | T(YAFFS_TRACE_OS, (TSTR("yaffs_read_super: d_alloc_root done\n"))); |
| 14 | |
| 15 |
