[Btrfs-devel][PATCH]Add delay allocation accounting

Chris Mason chris.mason at oracle.com
Fri Nov 16 12:44:12 PST 2007


On Mon, 12 Nov 2007 11:04:09 +0800
"Yan Zheng" <yanzheng at 21cn.com> wrote:

> Hello,
> 
> This patch adds two hooks to 'extent_map_ops'. 'set_extent_bit' and
> 'set_extent_bit' call the hook functions before they modify
> 'extent_state->state'. The last parameter of the hook functions
> indicates bits that will be inverted.  By using these hooks, do delay
> allocation accounting is easy.

I have all of your other patches queued here, but I think it would be
better to do the delayed allocation accounting inside the core FS
functions instead of via an extent_map hook..  So, I'll hold off on this
one for now.

Thanks for all of these fixes

-chris



More information about the Btrfs-devel mailing list