mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-08-29 03:09:54 +03:00
[kernel] generic/2.6.28: update yaffs code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15390 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
76dd08861a
commit
c7bcda566c
File diff suppressed because it is too large
Load Diff
12344
target/linux/generic-2.6/patches-2.6.28/511-yaffs-cvs-2009-04-24.patch
Normal file
12344
target/linux/generic-2.6/patches-2.6.28/511-yaffs-cvs-2009-04-24.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,11 +1,11 @@
|
|||||||
--- a/fs/yaffs2/yaffs_fs.c
|
--- a/fs/yaffs2/yaffs_fs.c
|
||||||
+++ b/fs/yaffs2/yaffs_fs.c
|
+++ b/fs/yaffs2/yaffs_fs.c
|
||||||
@@ -745,7 +745,7 @@ static int yaffs_write_begin(struct file
|
@@ -746,7 +746,7 @@ static int yaffs_write_begin(struct file
|
||||||
|
|
||||||
T(YAFFS_TRACE_OS, (KERN_DEBUG "start yaffs_write_begin\n"));
|
T(YAFFS_TRACE_OS, ("start yaffs_write_begin\n"));
|
||||||
/* Get a page */
|
/* Get a page */
|
||||||
- pg = __grab_cache_page(mapping,index);
|
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 28)
|
||||||
+ pg = grab_cache_page_write_begin(mapping, index, flags);
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 28)
|
||||||
*pagep = pg;
|
pg = grab_cache_page_write_begin(mapping, index, flags);
|
||||||
if(!pg){
|
#else
|
||||||
ret = -ENOMEM;
|
pg = __grab_cache_page(mapping, index);
|
||||||
|
Loading…
Reference in New Issue
Block a user