[PATCH 2/3] Reiser4: use __GFP_REPEAT flag for costly memory allocation

[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>
---
 tree.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tree.c b/tree.c
index 08574ca..e4712c4 100644
--- a/tree.c
+++ b/tree.c
@@ -1827,6 +1827,12 @@ int reiser4_init_tree(reiser4_tree * tree	/* pointer to structure being
 	assert("nikita-308", height > 0);
 	assert("nikita-309", nplug != NULL);
 	assert("zam-587", tree->super != NULL);
+	assert("edward-171", get_current_context() != NULL);
+	/*
+	 * We'll perform costly memory allocations for znode hash table, etc.
+	 * So, set proper allocation flags
+	 */
+	get_current_context()->gfp_mask |= (__GFP_NOWARN | __GFP_REPEAT);
 
 	tree->root_block = *root_block;
 	tree->height = height;
-- 
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