OSDN Git Service

btrfs: split btrfs_alloc_ordered_extent to allocation and insertion helpers
authorChristoph Hellwig <hch@lst.de>
Wed, 24 May 2023 15:03:13 +0000 (17:03 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:33 +0000 (13:59 +0200)
commit53d9981ca20efcded0f6cf6b480d713f490ca9f1
tree0b2922cb00d433be1897ceb0493f95a513f32238
parentb0307e28642efa3bcc6353b9af213711f6d3848e
btrfs: split btrfs_alloc_ordered_extent to allocation and insertion helpers

Split two low-level helpers out of btrfs_alloc_ordered_extent to allocate
and insert the logic extent.  The pure alloc helper will be used to
improve btrfs_split_ordered_extent.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ordered-data.c