diff mbox series

[01/10] btrfs: remove unused members from struct btrfs_encoded_read_private

Message ID 20230301134244.1378533-2-hch@lst.de (mailing list archive)
State New, archived
Headers show
Series [01/10] btrfs: remove unused members from struct btrfs_encoded_read_private | expand

Commit Message

Christoph Hellwig March 1, 2023, 1:42 p.m. UTC
The inode and file_offset members in truct btrfs_encoded_read_private
are unused, so remove them.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 fs/btrfs/inode.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Johannes Thumshirn March 2, 2023, 12:10 p.m. UTC | #1
On 01.03.23 14:42, Christoph Hellwig wrote:
> The inode and file_offset members in truct btrfs_encoded_read_private
                               struct ~^

Otherwise
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Qu Wenruo March 2, 2023, 11:19 p.m. UTC | #2
On 2023/3/1 21:42, Christoph Hellwig wrote:
> The inode and file_offset members in truct btrfs_encoded_read_private
> are unused, so remove them.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Reviewed-by: Qu Wenruo <wqu@suse.com>

Thanks,
Qu
> ---
>   fs/btrfs/inode.c | 4 ----
>   1 file changed, 4 deletions(-)
> 
> diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
> index ecd0aa83927949..9ad0d181c7082a 100644
> --- a/fs/btrfs/inode.c
> +++ b/fs/btrfs/inode.c
> @@ -9926,8 +9926,6 @@ static ssize_t btrfs_encoded_read_inline(
>   }
>   
>   struct btrfs_encoded_read_private {
> -	struct btrfs_inode *inode;
> -	u64 file_offset;
>   	wait_queue_head_t wait;
>   	atomic_t pending;
>   	blk_status_t status;
> @@ -9958,8 +9956,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;
Anand Jain March 3, 2023, 9:14 a.m. UTC | #3
On 01/03/2023 21:42, Christoph Hellwig wrote:
> The inode and file_offset members in truct btrfs_encoded_read_private
> are unused, so remove them.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Looks like commits 7959bd441176 and 7609afac6775 and removed their use.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
diff mbox series

Patch

diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index ecd0aa83927949..9ad0d181c7082a 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -9926,8 +9926,6 @@  static ssize_t btrfs_encoded_read_inline(
 }
 
 struct btrfs_encoded_read_private {
-	struct btrfs_inode *inode;
-	u64 file_offset;
 	wait_queue_head_t wait;
 	atomic_t pending;
 	blk_status_t status;
@@ -9958,8 +9956,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;