]> www.infradead.org Git - users/jedix/linux-maple.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>
Tue, 28 Feb 2012 17:42:44 +0000 (12:42 -0500)
commitc6286063e4356c5c68ed48ed20d09061a8fdd7f2
treeb743c5535f45597b3e73862c7ffdaebb94c8b06f
parent7af58126d1d373d44f56428b2bdcfeb2533c4df7
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