]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix casting error in scrub reada code
authorChris Mason <chris.mason@oracle.com>
Tue, 28 Feb 2012 17:42:44 +0000 (12:42 -0500)
committerChris Mason <chris.mason@oracle.com>
Sat, 3 Mar 2012 12:42:35 +0000 (07:42 -0500)
commita4e73b04a08e2b5a494a1ed160cb06697dd06d24
tree742ca97279da69c981008620a3d2f0c48acdf6f4
parent4d3918a3c94327acb8331d132018d2fb9045df4e
Btrfs: fix casting error in scrub reada code

The reada code from scrub was casting down a u64 to
an unsigned long so it could insert it into a radix tree.

What it really wanted to do was cast down the result of a shift, instead
of casting down the u64.  The bug resulted in trying to insert our
reada struct into the wrong place, which caused soft lockups and other
problems.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/reada.c