Btrfs: Reorder tests in set_extent_bit to properly find holes
authorChris Mason <chris.mason@oracle.com>
Tue, 11 Sep 2007 00:00:27 +0000 (20:00 -0400)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Tue, 11 Sep 2007 00:00:27 +0000 (20:00 -0400)
commita8c450b211c010ac55190da23ceb6b39b393f411
tree0582abbf328a9635fd49b8165e102715e8f9c470
parent011410bd859a481a335d7db1fb559542c5663fd5
Btrfs: Reorder tests in set_extent_bit to properly find holes

Yan Zheng noticed that set_extent_bit was exiting too early when there
was a hole in the map.  The fix is to reorder the tests to check for the
hole first.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_map.c