Btrfs: [PATCH] extent_map: provide generic bmap
authorChristoph Hellwig <hch@lst.de>
Tue, 11 Sep 2007 00:02:30 +0000 (20:02 -0400)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Tue, 11 Sep 2007 00:02:30 +0000 (20:02 -0400)
commitd396c6f554d182b7bce4e2bb2acb47f80430c05f
tree2bc7b567310474ed4562d4e1246efd69a868f8cd
parent90f1c19a9fd2a943adc69d2b9b8c83bcc4bba6f9
Btrfs: [PATCH] extent_map: provide generic bmap

generic_bmap is completely trivial, while the extent to bh mapping in
btrfs is rather complex.  So provide a extent_bmap instead that takes
a get_extent callback and can be used by filesystem using the extent_map
code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_map.c
fs/btrfs/extent_map.h
fs/btrfs/inode.c