Btrfs-progs: check all slots in leaves
authorJosef Bacik <jbacik@fb.com>
Tue, 30 Sep 2014 20:56:05 +0000 (16:56 -0400)
committerDavid Sterba <dsterba@suse.cz>
Wed, 1 Oct 2014 14:59:10 +0000 (16:59 +0200)
commite22ffdf94bea073e2f12cf198dc17116ac4b3a46
tree449b2f73ad91c8f1e91110b529e2eef0a1f5408c
parent2c1b155988a9263bb5e4dc81c6a48c699f649789
Btrfs-progs: check all slots in leaves

There's an off by one error in btrfs_check_leaf, we should be going to nritems -
1, not nritems - 2, we were missing problems with items in the very last slot.
Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
ctree.c