[linux-cifs-client] Fix for kernel 2.4

Yehuda Sadeh Weinraub Yehuda.Sadeh at expand.com
Sun Sep 10 12:29:36 GMT 2006


The first change is trivial. The second one is required, since there is
a 18 chars limit on the length of the name string in 2.4. The module
won't load otherwise.

Yehuda Sadeh-Weinraub

diff --git a/fs/cifs/Makefile-24 b/fs/cifs/Makefile-24
index 461feca..594ea5a 100644
--- a/fs/cifs/Makefile-24
+++ b/fs/cifs/Makefile-24
@@ -3,7 +3,7 @@ # Makefile for Linux CIFS VFS client
 #
 O_TARGET := cifs.o

-obj-y := nterr.o md4.o md5.o netmisc.o smbdes.o smbencrypt.o asn1.o
cifs_unicode.o cifsencrypt.o cifs_debug.o sess.o link.o cif
ssmb.o connect.o misc.o dir.o inode.o transport.o cifsfs.o file.o
+obj-y := nterr.o md4.o md5.o netmisc.o smbdes.o smbencrypt.o asn1.o
cifs_unicode.o cifsencrypt.o cifs_debug.o sess.o link.o cif
ssmb.o connect.o misc.o dir.o inode.o transport.o cifsfs24.o file.o
readdir.o ioctl.o

 obj-m := $(O_TARGET)

diff --git a/fs/cifs/cifsfs24.c b/fs/cifs/cifsfs24.c
index 31c053c..66ce833 100644
--- a/fs/cifs/cifsfs24.c
+++ b/fs/cifs/cifsfs24.c
@@ -746,7 +746,7 @@ cifs_init_mids(void)
        if (cifs_mid_cachep == NULL)
                return -ENOMEM;

-       cifs_oplock_cachep = kmem_cache_create("cifs_oplock_structs",
+       cifs_oplock_cachep = kmem_cache_create("cifs_oplock_strcts",
                                sizeof (struct oplock_q_entry), 0,
                                SLAB_HWCACHE_ALIGN, NULL, NULL);
        if (cifs_oplock_cachep == NULL) {



More information about the linux-cifs-client mailing list