+2004-02-09 Miklos Szeredi <mszeredi@inf.bme.hu>
+
+ * On 2.4 kernels if CONFIG_PREEMPT is defined use
+ i_size_read/write
+
2004-02-06 Miklos Szeredi <mszeredi@inf.bme.hu>
* Fixed writing >= 2G files
#include <linux/list.h>
#include <linux/spinlock.h>
-#ifndef KERNEL_2_6
+/* Some 2.4 kernels may have with the preemptible kernel patch */
+#if !defined(KERNEL_2_6) && !defined(CONFIG_PREEMPT)
#define i_size_read(inode) ((inode)->i_size)
#define i_size_write(inode, size) do { (inode)->i_size = size; } while(0)
#endif