kernel/3.1[02]: move MTD root device setup code to mtdcore
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-3.10 / 511-yaffs-3.5-use-clear_inode.patch
1 --- a/fs/yaffs2/yaffs_vfs_glue.c
2 +++ b/fs/yaffs2/yaffs_vfs_glue.c
3 @@ -924,7 +924,11 @@ static void yaffs_evict_inode( struct in
4 if (!inode->i_nlink && !is_bad_inode(inode))
5 deleteme = 1;
6 truncate_inode_pages(&inode->i_data,0);
7 - end_writeback(inode);
8 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0)
9 + clear_inode(inode);
10 +#else
11 + end_writeback(inode);
12 +#endif
13
14 if(deleteme && obj){
15 dev = obj->my_dev;