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)
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

Simple merge