Changeset 15390


Ignore:
Timestamp:
2009-04-24T16:49:35+02:00 (9 years ago)
Author:
juhosg
Message:

[kernel] generic/2.6.28: update yaffs code

Location:
trunk/target/linux/generic-2.6/patches-2.6.28
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic-2.6/patches-2.6.28/512-yaffs-2.6.28.1-fix.patch

    r14250 r15390  
    11--- a/fs/yaffs2/yaffs_fs.c 
    22+++ 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")); 
     3@@ -746,7 +746,7 @@ static int yaffs_write_begin(struct file 
     4  
     5        T(YAFFS_TRACE_OS, ("start yaffs_write_begin\n")); 
    66        /* 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; 
     7-#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 28) 
     8+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 28) 
     9        pg = grab_cache_page_write_begin(mapping, index, flags); 
     10 #else 
     11        pg = __grab_cache_page(mapping, index); 
Note: See TracChangeset for help on using the changeset viewer.