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/ordered-data.h | |
parent | 8949b9a114019b03fbd0d03d65b8647cba4feef3 (diff) | |
download | lwn-c7c3a6dcb1efd52949acc1e640be9aad1206a13a.tar.gz lwn-c7c3a6dcb1efd52949acc1e640be9aad1206a13a.zip |
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/ordered-data.h')
-rw-r--r-- | fs/btrfs/ordered-data.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ordered-data.h b/fs/btrfs/ordered-data.h index 566472004edd..b2d88aba8420 100644 --- a/fs/btrfs/ordered-data.h +++ b/fs/btrfs/ordered-data.h @@ -145,8 +145,7 @@ struct btrfs_ordered_extent { * command in a workqueue context */ u64 physical; - struct gendisk *disk; - u8 partno; + struct block_device *bdev; }; /* |