btrfs: do not read past the end of the disk
authorH. Peter Anvin <hpa@zytor.com>
Sat, 26 Jun 2010 03:10:09 +0000 (20:10 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 26 Jun 2010 03:10:09 +0000 (20:10 -0700)
commit1d166293d94464422ad788c1d57684f69da1c328
tree1a29711d7798c91f7bc94d24da929f02949f3eb7
parentedea66bdff6e7697f4d2ad6f17bb7fc151ed9797
btrfs: do not read past the end of the disk

When looking for the current superblock, don't read past the end of
the disk.  This more or less assumes that the superblocks are
reasonably consistent with regards to the total filesystem size.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/fs/btrfs/btrfs.c