Btrfs: Fix variables set but not read (bugs found by gcc 4.6)
commit411fc6bcef54f828a5458f4730c68abdf13c6bf0
authorAndi Kleen <andi@firstfloor.org>
Fri, 29 Oct 2010 19:14:31 +0000 (29 15:14 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 29 Oct 2010 19:14:31 +0000 (29 15:14 -0400)
tree89b91cd7e0d7633e9d6e386e388bd0493165f66c
parentd0b678cb0a26783ab7238784f1e7e608e5caafa3
Btrfs: Fix variables set but not read (bugs found by gcc 4.6)

These are all the cases where a variable is set, but not
read which are really bugs.

- Couple of incorrect error handling fixed.
- One incorrect use of a allocation policy
- Some other things

Still needs more review.

Found by gcc 4.6's new warnings.

[akpm@linux-foundation.org: fix build.  Might have been bitrot]
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/dir-item.c
fs/btrfs/extent_io.c
fs/btrfs/inode.c
fs/btrfs/relocation.c
fs/btrfs/tree-log.c