btrfs: Fix set/clear_extent_bit for 'end == (u64)-1'
authorYan Zheng <zheng.yan@oracle.com>
Wed, 27 May 2009 13:16:03 +0000 (09:16 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 10 Jun 2009 15:29:46 +0000 (11:29 -0400)
commit5c939df56c3ea018b58e5aa76181284c2053d699
tree6d97449faa69c96998833fcb56a3b65050d34354
parent07a2039b8eb0af4ff464efd3dfd95de5c02648c6
btrfs: Fix set/clear_extent_bit for 'end == (u64)-1'

There are some 'start = state->end + 1;' like code in set_extent_bit
and clear_extent_bit. They overflow when end == (u64)-1.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_io.c