Btrfs: fiemap support
commit1506fcc8189cdd4b95e06df7845a09f18b4526a6
authorYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 21 Jan 2009 19:39:14 +0000 (21 14:39 -0500)
committerChris Mason <chris.mason@oracle.com>
Wed, 21 Jan 2009 19:39:14 +0000 (21 14:39 -0500)
treebf737082390c26c517d7449135045e3f6d4ba055
parent35054394c4b3cecd52577c2662c84da1f3e73525
Btrfs: fiemap support

Now that bmap support is gone, this is the only way to get extent
mappings for userland.  These are still not valid for IO, but they
can tell us if a file has holes or how much fragmentation there is.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c