diff options
author | Christoph Hellwig <hch@lst.de> | 2021-07-22 09:53:59 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-07-22 15:50:15 +0200 |
commit | c7c3a6dcb1efd52949acc1e640be9aad1206a13a (patch) | |
tree | 1675d80febf2d3baff01d6182f9074eda926f558 /fs/btrfs/inode.c | |
parent | 8949b9a114019b03fbd0d03d65b8647cba4feef3 (diff) |
btrfs: store a block_device in struct btrfs_ordered_extent
Store the block device instead of the gendisk in the btrfs_ordered_extent
structure instead of acquiring a reference to it later.
Note: this is from series removing bdgrab/bdput, btrfs is one of the
last users.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 8f60314c36c5..0117d867ecf8 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2992,7 +2992,7 @@ static int btrfs_finish_ordered_io(struct btrfs_ordered_extent *ordered_extent) goto out; } - if (ordered_extent->disk) + if (ordered_extent->bdev) btrfs_rewrite_logical_zoned(ordered_extent); btrfs_free_io_failure_record(inode, start, end); |