patch-2.4.19 linux-2.4.19/fs/cramfs/inode.c

Next file: linux-2.4.19/fs/dcache.c
Previous file: linux-2.4.19/fs/cramfs/README
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/fs/cramfs/inode.c linux-2.4.19/fs/cramfs/inode.c
@@ -116,7 +116,7 @@
 	unsigned i, blocknr, buffer, unread;
 	unsigned long devsize;
 	int major, minor;
-	
+
 	char *data;
 
 	if (!len)
@@ -186,7 +186,7 @@
 	}
 	return read_buffers[buffer] + offset;
 }
-			
+
 
 static struct super_block * cramfs_read_super(struct super_block *sb, void *data, int silent)
 {
@@ -268,7 +268,7 @@
 	buf->f_bavail = 0;
 	buf->f_files = sb->CRAMFS_SB_FILES;
 	buf->f_ffree = 0;
-	buf->f_namelen = 255;
+	buf->f_namelen = CRAMFS_MAXPATHLEN;
 	return 0;
 }
 
@@ -461,4 +461,3 @@
 module_init(init_cramfs_fs)
 module_exit(exit_cramfs_fs)
 MODULE_LICENSE("GPL");
-

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)