Commit e2b315c2 authored by Jiri Slaby's avatar Jiri Slaby Committed by james toy

Change !X & Y to !(X & Y) to avoid compiler confusion and fix a bug.

Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Cc: Edward Shishkin <edward.shishkin@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 16685f7b
...@@ -79,7 +79,7 @@ static carry_node *find_left_neighbor(carry_op * op /* node to find left ...@@ -79,7 +79,7 @@ static carry_node *find_left_neighbor(carry_op * op /* node to find left
left->free = 1; left->free = 1;
flags = GN_TRY_LOCK; flags = GN_TRY_LOCK;
if (!op->u.insert.flags & COPI_LOAD_LEFT) if (!(op->u.insert.flags & COPI_LOAD_LEFT))
flags |= GN_NO_ALLOC; flags |= GN_NO_ALLOC;
/* then, feeling lucky, peek left neighbor in the cache. */ /* then, feeling lucky, peek left neighbor in the cache. */
...@@ -203,7 +203,7 @@ static carry_node *find_right_neighbor(carry_op * op /* node to find right ...@@ -203,7 +203,7 @@ static carry_node *find_right_neighbor(carry_op * op /* node to find right
read_unlock_tree(tree); read_unlock_tree(tree);
flags = GN_CAN_USE_UPPER_LEVELS; flags = GN_CAN_USE_UPPER_LEVELS;
if (!op->u.insert.flags & COPI_LOAD_RIGHT) if (!(op->u.insert.flags & COPI_LOAD_RIGHT))
flags = GN_NO_ALLOC; flags = GN_NO_ALLOC;
/* then, try to lock right neighbor */ /* then, try to lock right neighbor */
......
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