OSDN Git Service

Btrfs: [PATCH] extent_map: add writepage_end_io hook
authorChristoph Hellwig <hch@lst.de>
Tue, 11 Sep 2007 00:02:33 +0000 (20:02 -0400)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Tue, 11 Sep 2007 00:02:33 +0000 (20:02 -0400)
commit0e2752a72cb37075b24899f01e9bc6a589de3b6c
tree63bd02f3ba81018ffa0178f6f0982defd33b1d99
parentb06355f0fe04a62d08238438654ec453e05304ba
Btrfs: [PATCH] extent_map: add writepage_end_io hook

XFS updates the ondisk inode size only after the data I/O has finished,
so it needs a hook when the writepage end_bio handler has finished.

Might not be worth applying as-is as the per-page callback is very
ineffcient.  What XFS really wants is a callback when writeout of a
whole extent has completed.  This delayed i_size updates scheme might
be worthwile for btrfs aswell, btw.

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