[PATCH 3/3] Reiser4: use vmalloc instead of kmalloc to alloacte zhash table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Edward Shishkin <edward.shishkin@xxxxxxxxx>

Signed-off-by: Edward Shishkin <edward.shishkin@xxxxxxxxx>
---
 znode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/znode.c b/znode.c
index 2581a0a..f7c77ef 100644
--- a/znode.c
+++ b/znode.c
@@ -188,8 +188,8 @@ blknrhashfn(z_hash_table * table, const reiser4_block_nr * b)
 }
 
 /* The hash table definition */
-#define KMALLOC(size) kmalloc((size), reiser4_ctx_gfp_mask_get())
-#define KFREE(ptr, size) kfree(ptr)
+#define KMALLOC(size) reiser4_vmalloc(size)
+#define KFREE(ptr, size) vfree(ptr)
 TYPE_SAFE_HASH_DEFINE(z, znode, reiser4_block_nr, zjnode.key.z, zjnode.link.z,
 		      blknrhashfn, blknreq);
 #undef KFREE
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux