btrfs: factor out a btrfs_queue_ordered_fn helper
authorChristoph Hellwig <hch@lst.de>
Wed, 31 May 2023 07:54:05 +0000 (09:54 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:37 +0000 (13:59 +0200)
commit2d6f107ea6875792607fbc40313a990fe3ea522b
tree97df0118d0f65fe1186a359a5e94b19de5ee54e7
parent53df25869a5659506cb35185997176eed49e125e
btrfs: factor out a btrfs_queue_ordered_fn helper

Factor out a helper to queue up an ordered_extent completion in a work
queue.  This new helper will later be used complete an ordered_extent
without first doing a lookup.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.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