Btrfs: [PATCH] extent_map: make the writepage_io hook optional
authorChristoph Hellwig <hch@lst.de>
Tue, 11 Sep 2007 00:02:32 +0000 (20:02 -0400)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Tue, 11 Sep 2007 00:02:32 +0000 (20:02 -0400)
commitb06355f0fe04a62d08238438654ec453e05304ba
tree03256315e789dc21d2721fb5484ef50b199c9b17
parentd396c6f554d182b7bce4e2bb2acb47f80430c05f
Btrfs: [PATCH] extent_map: make the writepage_io hook optional

The writepage_io is not mandatory, e.g. my port of xfs to the extent_map
code does not have one for now.  So handle a NULL pointer gracefully
here.

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