[kernel] fix yaffs build failure on 2.6.28.2 (thanks to Alexandros C. Couloumbis...
[openwrt-10.03/.git] / target / linux / generic-2.6 / patches-2.6.28 / 512-yaffs-2.6.28.1-fix.patch
1 --- a/fs/yaffs2/yaffs_fs.c
2 +++ b/fs/yaffs2/yaffs_fs.c
3 @@ -745,7 +745,7 @@ static int yaffs_write_begin(struct file
4          
5         T(YAFFS_TRACE_OS, (KERN_DEBUG "start yaffs_write_begin\n"));
6         /* Get a page */
7 -       pg = __grab_cache_page(mapping,index);
8 +       pg = grab_cache_page_write_begin(mapping, index, flags);
9         *pagep = pg;    
10         if(!pg){
11                 ret =  -ENOMEM;