fix
authorMiklos Szeredi <miklos@szeredi.hu>
Mon, 1 Nov 2004 10:57:41 +0000 (10:57 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Mon, 1 Nov 2004 10:57:41 +0000 (10:57 +0000)
ChangeLog
kernel/fuse_i.h
kernel/inode.c

index 2c9a7effebcfa614b53a000e4f629925c3fe0490..b556dc0bd77ad02c1df336eaba3f0e2b3025e996 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-01  Miklos Szeredi <miklos@szeredi.hu>
+
+       * Fix compile problems with ancient (<=2.4.18) kernels (reported
+       by Jeremy Smith)
+
 2004-10-28  Miklos Szeredi <miklos@szeredi.hu>
 
        * Make xattr functions work under 2.6 (bug found by Vincenzo
index f0b69c2604c1d26be68ee094bf381e1a66006332..5a4d7e7183db62b50b009bd1776b63ce653cba16 100644 (file)
 #include <linux/list.h>
 #include <linux/spinlock.h>
 
+#ifndef BUG_ON
+#define BUG_ON(x)
+#endif
+
 /** Read combining parameters */
 #define FUSE_BLOCK_SHIFT 16
 #define FUSE_BLOCK_SIZE 65536
index 3c43f97b0e6d2d1b34dfa0d102442d111e00a14b..09479e1f7f81ef8a0ad2aa6b675170864178bcca 100644 (file)
@@ -46,6 +46,10 @@ MODULE_PARM_DESC(user_allow_other, "Allow non root user to specify the \"allow_o
 #define FS_SAFE 0
 #endif
 
+#ifndef MAX_LFS_FILESIZE
+#define MAX_LFS_FILESIZE (((u64)PAGE_CACHE_SIZE << (BITS_PER_LONG-1))-1) 
+#endif
+
 struct fuse_mount_data {
        int fd;
        unsigned int rootmode;