From: Christoph Hellwig Date: Tue, 7 Mar 2023 16:39:36 +0000 (+0100) Subject: btrfs: remove unused members from struct btrfs_encoded_read_private X-Git-Tag: v6.4-rc1~141^2~96 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=b665affe93d8;p=linux-block.git btrfs: remove unused members from struct btrfs_encoded_read_private The inode and file_offset members in struct btrfs_encoded_read_private are unused, so remove them. Last used in commit 7959bd441176 ("btrfs: remove the start argument to check_data_csum and export") and commit 7609afac6775 ("btrfs: handle checksum validation and repair at the storage layer"). Reviewed-by: Anand Jain Reviewed-by: Johannes Thumshirn Reviewed-by: Qu Wenruo Signed-off-by: Christoph Hellwig Signed-off-by: David Sterba --- diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 9145ab72bd0d..c7bb166ebb15 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -9895,8 +9895,6 @@ out: } struct btrfs_encoded_read_private { - struct btrfs_inode *inode; - u64 file_offset; wait_queue_head_t wait; atomic_t pending; blk_status_t status; @@ -9927,8 +9925,6 @@ int btrfs_encoded_read_regular_fill_pages(struct btrfs_inode *inode, u64 disk_io_size, struct page **pages) { struct btrfs_encoded_read_private priv = { - .inode = inode, - .file_offset = file_offset, .pending = ATOMIC_INIT(1), }; unsigned long i = 0;