Btrfs: check return value of btrfs_search_slot properly
authorJosef Bacik <josef@redhat.com>
Wed, 16 Mar 2011 17:59:32 +0000 (13:59 -0400)
committerJosef Bacik <josef@redhat.com>
Thu, 17 Mar 2011 18:21:39 +0000 (14:21 -0400)
commit41415730a1050499fbd63b3f7dd59b3a4c3bb91a
treef379a75ded5241e303fd78bcfe5d6ca257058dc1
parenta826d6dcb32d811b4c81df57a5ef1367516586b0
Btrfs: check return value of btrfs_search_slot properly

Doing an audit of where we use btrfs_search_slot only showed one place where we
don't check the return value of btrfs_search_slot properly.  Just fix
mark_extent_written to see if btrfs_search_slot failed and act accordingly.
Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/file.c