# HG changeset patch # User charles # Date 1253234361 -3600 # Node ID 03e453bfb3f1001cc71d9dc1f7f84ad8a4df68aa # Parent 1e8f7df58d5e393327f164b617cfb19c0515c3ec More recent 2.6.8 versions need this change too diff --git a/yaffs_fs.c b/yaffs_fs.c --- a/yaffs_fs.c +++ b/yaffs_fs.c @@ -751,7 +751,7 @@ static int yaffs_write_begin(struct file T(YAFFS_TRACE_OS, ("start yaffs_write_begin\n")); /* Get a page */ -#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 28) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 28) pg = grab_cache_page_write_begin(mapping, index, flags); #else pg = __grab_cache_page(mapping, index);