shithub: lwext4

Download patch

ref: a48f2f6fecddd54a5830d6b61cfc608fb3f364c3
parent: 2c61a24dfa6b65ae4292915c7ede68f01005bfa5
author: gkostka <kostka.grzegorz@gmail.com>
date: Sun Oct 27 10:57:55 EDT 2013

Disable linux caches.

--- a/blockdev/filedev/ext4_filedev.c
+++ b/blockdev/filedev/ext4_filedev.c
@@ -42,7 +42,7 @@
 /**@brief	Image file descriptor.*/
 static FILE	*dev_file;
 
-#define DROP_LINUXCACHE_BUFFERS 0
+#define DROP_LINUXCACHE_BUFFERS 1
 
 
 /**********************BLOCKDEV INTERFACE**************************************/
@@ -103,7 +103,7 @@
 
 static void drop_cache(void)
 {
-#if defined(LINUX) && DROP_LINUXCACHE_BUFFERS
+#if defined(__linux__) && DROP_LINUXCACHE_BUFFERS
     int fd;
     char* data = "3";