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>
Showing
- fs/btrfs/btrfs_inode.h 1 addition, 1 deletionfs/btrfs/btrfs_inode.h
- fs/btrfs/ctree.h 6 additions, 13 deletionsfs/btrfs/ctree.h
- fs/btrfs/extent-tree.c 121 additions, 240 deletionsfs/btrfs/extent-tree.c
- fs/btrfs/extent_io.c 30 additions, 33 deletionsfs/btrfs/extent_io.c
- fs/btrfs/extent_io.h 5 additions, 3 deletionsfs/btrfs/extent_io.h
- fs/btrfs/file.c 6 additions, 21 deletionsfs/btrfs/file.c
- fs/btrfs/inode.c 53 additions, 78 deletionsfs/btrfs/inode.c
- fs/btrfs/ioctl.c 10 additions, 19 deletionsfs/btrfs/ioctl.c
- fs/btrfs/ordered-data.c 0 additions, 7 deletionsfs/btrfs/ordered-data.c
Loading
Please register or sign in to comment