btrfs: Fix BUG_ON condition in scrub_setup_recheck_block()
authorAshish Samant <ashish.samant@oracle.com>
Sat, 30 Apr 2016 01:33:59 +0000 (18:33 -0700)
committerDavid Sterba <dsterba@suse.com>
Fri, 6 May 2016 13:22:49 +0000 (15:22 +0200)
commit2473114981a36b4f0f57cf6e9548037d547a71b7
treed74e2a20b84d865a59f33beecacaa3b5d1869257
parente042d1ec4417981dfe9331e47b76f17929bc2ffe
btrfs: Fix BUG_ON condition in scrub_setup_recheck_block()

pagev array in scrub_block{} is of size SCRUB_MAX_PAGES_PER_BLOCK.
page_index should be checked with the same to trigger BUG_ON().

Signed-off-by: Ashish Samant <ashish.samant@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c