1 --- a/fs/yaffs2/yaffs_fs.c
2 +++ b/fs/yaffs2/yaffs_fs.c
3 @@ -746,7 +746,7 @@ static int yaffs_write_begin(struct file
5 T(YAFFS_TRACE_OS, ("start yaffs_write_begin\n"));
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);
11 pg = __grab_cache_page(mapping, index);