patch-2.4.20 linux-2.4.20/fs/intermezzo/kml_utils.c

Next file: linux-2.4.20/fs/intermezzo/methods.c
Previous file: linux-2.4.20/fs/intermezzo/kml_unpack.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/fs/intermezzo/kml_utils.c linux-2.4.20/fs/intermezzo/kml_utils.c
@@ -1,44 +0,0 @@
-#include <linux/list.h>
-#include <linux/mm.h>
-#include <linux/smp_lock.h>
-#include <linux/slab.h>
-#include <linux/vmalloc.h>
-
-#include <linux/intermezzo_fs.h>
-#include <linux/intermezzo_kml.h>
-
-
-// dlogit -- oppsite to logit ()
-//         return the sbuf + size;
-char *dlogit (void *tbuf, const void *sbuf, int size)
-{
-        char *ptr = (char *)sbuf;
-        memcpy(tbuf, ptr, size);
-        ptr += size;
-        return ptr;
-}
-
-static spinlock_t kml_lock = SPIN_LOCK_UNLOCKED;
-static char  buf[1024];
-char * bdup_printf (char *format, ...)
-{
-        va_list args;
-        int  i;
-        char *path;
-        long flags;
-
-        spin_lock_irqsave(&kml_lock, flags);
-        va_start(args, format);
-        i = vsprintf(buf, format, args); /* hopefully i < sizeof(buf) */
-        va_end(args);
-
-        PRESTO_ALLOC (path, char *, i + 1);
-        if (path == NULL)
-                return NULL;
-        strcpy (path, buf);
-
-        spin_unlock_irqrestore(&kml_lock, flags);
-        return path;
-}
-
-

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