Commit 39ef4295 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Suppress reiserfs page allocation wanring

From: Nikita Danilov <Nikita@Namesys.COM>

Some stage in reiserfs balancing (fix_nodes() function) has to be performed
without ever scheduling.  If it schedules, it has to be restarted.  As we
don't want to restart often, we first try to do atomic allocation, and if
it fails, GFP_NOFS allocation is done, and fix_nodes() restarted.
parent e0fc5036
......@@ -2037,7 +2037,7 @@ static int get_mem_for_virtual_node (struct tree_balance * tb)
tb->vn_buf_size = size;
/* get memory for virtual item */
buf = reiserfs_kmalloc(size, GFP_ATOMIC, tb->tb_sb);
buf = reiserfs_kmalloc(size, GFP_ATOMIC | __GFP_NOWARN, tb->tb_sb);
if ( ! buf ) {
/* getting memory with GFP_KERNEL priority may involve
balancing now (due to indirect_to_direct conversion on
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment