]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix fiemap bugs with delalloc
authorChris Mason <chris.mason@oracle.com>
Wed, 23 Feb 2011 21:23:20 +0000 (16:23 -0500)
committerChris Mason <chris.mason@oracle.com>
Wed, 23 Feb 2011 21:23:20 +0000 (16:23 -0500)
commitdb996fa104a359beea80c93bc4e04091f27a8a25
tree19b3c13f15504cf9de116f0bd55045ebcf0d0cfc
parent6ba8de3a14b5406c1a969d3f42ae54efe21e4852
Btrfs: fix fiemap bugs with delalloc

The Btrfs fiemap code wasn't properly returning delalloc extents,
so applications that trust fiemap to decide if there are holes in the
file see holes instead of delalloc.

This reworks the btrfs fiemap code, adding a get_extent helper that
searches for delalloc ranges and also adding a helper for extent_fiemap
that skips past holes in the file.

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