Btrfs: Update metadata reservation for delayed allocation
authorYan, Zheng <zheng.yan@oracle.com>
Sun, 16 May 2010 14:48:47 +0000 (10:48 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 25 May 2010 14:34:51 +0000 (10:34 -0400)
commit0ca1f7ceb1991099ed5273885ebcf4323948c72e
tree10758d6a55c529aced177da3f6bf45cf26361913
parenta22285a6a32390195235171b89d157ed1a1fe932
Btrfs: Update metadata reservation for delayed allocation

Introduce metadata reservation context for delayed allocation
and update various related functions.

This patch also introduces EXTENT_FIRST_DELALLOC control bit for
set/clear_extent_bit. It tells set/clear_bit_hook whether they
are processing the first extent_state with EXTENT_DELALLOC bit
set. This change is important if set/clear_extent_bit involves
multiple extent_state.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/ordered-data.c