patch-2.1.77 linux/fs/ntfs/support.c

Next file: linux/fs/ntfs/support.h
Previous file: linux/fs/ntfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.76/linux/fs/ntfs/support.c linux/fs/ntfs/support.c
@@ -43,6 +43,7 @@
 	}
 }
 
+#ifndef ntfs_malloc
 /* Verbose kmalloc */
 void *ntfs_malloc(int size)
 {
@@ -53,27 +54,34 @@
 
 	return ret;
 }
+#endif
 
+#ifndef ntfs_free
 /* Verbose kfree() */
 void ntfs_free(void *block)
 {
         ntfs_debug(DEBUG_MALLOC, "Freeing memory at %p\n", block);
 	kfree(block);
 }
+#endif
 #else
 void ntfs_debug(int mask, const char *fmt, ...)
 {
 }
 
+#ifndef ntfs_malloc
 void *ntfs_malloc(int size)
 {
 	return kmalloc(size, GFP_KERNEL);
 }
+#endif
 
+#ifndef ntfs_free
 void ntfs_free(void *block)
 {
 	kfree(block);
 }
+#endif
 #endif /* DEBUG */
 
 void ntfs_bzero(void *s, int n)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov