mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
8949b9a114
commit
c7c3a6dcb1
4 changed files with 6 additions and 13 deletions
|
@ -190,8 +190,6 @@ static int __btrfs_add_ordered_extent(struct btrfs_inode *inode, u64 file_offset
|
|||
entry->truncated_len = (u64)-1;
|
||||
entry->qgroup_rsv = ret;
|
||||
entry->physical = (u64)-1;
|
||||
entry->disk = NULL;
|
||||
entry->partno = (u8)-1;
|
||||
|
||||
ASSERT(type == BTRFS_ORDERED_REGULAR ||
|
||||
type == BTRFS_ORDERED_NOCOW ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue