Skip to content

Commit acb8b52

Browse files
Christoph Hellwigkdave
authored andcommitted
btrfs: remove the disk_bytenr in struct btrfs_dio_private
This field is never used, so remove it. Last use was probably in 23ea8e5 ("Btrfs: load checksum data once when submitting a direct read io"). Reviewed-by: Nikolay Borisov <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 491a6d0 commit acb8b52

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

fs/btrfs/btrfs_inode.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,6 @@ struct btrfs_dio_private {
403403
* grab the file offset, thus need a dedicated member for file offset.
404404
*/
405405
u64 file_offset;
406-
u64 disk_bytenr;
407406
/* Used for bio::bi_size */
408407
u32 bytes;
409408

fs/btrfs/inode.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8002,7 +8002,6 @@ static struct btrfs_dio_private *btrfs_create_dio_private(struct bio *dio_bio,
80028002
dip->inode = inode;
80038003
dip->file_offset = file_offset;
80048004
dip->bytes = dio_bio->bi_iter.bi_size;
8005-
dip->disk_bytenr = dio_bio->bi_iter.bi_sector << 9;
80068005
dip->dio_bio = dio_bio;
80078006
refcount_set(&dip->refs, 1);
80088007
return dip;

0 commit comments

Comments
 (0)