Btrfs: add a new "type" field into the block reservation structure
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 6 Sep 2012 10:02:28 +0000 (04:02 -0600)
committerChris Mason <chris.mason@fusionio.com>
Mon, 1 Oct 2012 19:19:11 +0000 (15:19 -0400)
commit66d8f3dd1c87813d7f1cf8b774cb03e9b8d7e87e
tree74d18d716f42e15958a9723ece4cd98dfdfd6a74
parent6352b91da1a2108bb8cc5115e8714f90d706f15f
Btrfs: add a new "type" field into the block reservation structure

Sometimes we need choose the method of the reservation according to the type
of the block reservation, such as the reservation for the delayed inode update.
Now we identify the type just by comparing the address of the reservation
variants, it is very ugly if it is a temporary one because we need compare it
with all the common reservation variants. So we add a new "type" field to keep
the type the reservation variants.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
fs/btrfs/ctree.h
fs/btrfs/delayed-inode.c
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/relocation.c