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