diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2009-01-21 22:39:14 +0300 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-01-21 22:39:14 +0300 |
commit | 1506fcc8189cdd4b95e06df7845a09f18b4526a6 (patch) | |
tree | bf737082390c26c517d7449135045e3f6d4ba055 /fs/btrfs/extent_io.h | |
parent | 35054394c4b3cecd52577c2662c84da1f3e73525 (diff) | |
download | linux-1506fcc8189cdd4b95e06df7845a09f18b4526a6.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index c5b483a79137..e80c6d96b318 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h @@ -193,6 +193,8 @@ int extent_commit_write(struct extent_io_tree *tree, unsigned from, unsigned to); sector_t extent_bmap(struct address_space *mapping, sector_t iblock, get_extent_t *get_extent); +int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, + __u64 start, __u64 len, get_extent_t *get_extent); int set_range_dirty(struct extent_io_tree *tree, u64 start, u64 end); int set_state_private(struct extent_io_tree *tree, u64 start, u64 private); int get_state_private(struct extent_io_tree *tree, u64 start, u64 *private); |