[4/8] ext4: remove unused ext4_allocation_context::ac_groups_considered

Message ID 20231125161143.3945726-5-shikemeng@huaweicloud.com
State New
Headers
Series Some random cleanups to mballoc |

Commit Message

Kemeng Shi Nov. 25, 2023, 4:11 p.m. UTC
  Remove unused ext4_allocation_context::ac_groups_considered

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
---
 fs/ext4/mballoc.h | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Jan Kara Jan. 2, 2024, 1:03 p.m. UTC | #1
On Sun 26-11-23 00:11:39, Kemeng Shi wrote:
> Remove unused ext4_allocation_context::ac_groups_considered
> 
> Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>

Hum, indeed. Feel free to add:

Reviewed-by: Jan Kara <jack@suse.cz>

								Honza

> ---
>  fs/ext4/mballoc.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/fs/ext4/mballoc.h b/fs/ext4/mballoc.h
> index d7aeb5da7..56938532b 100644
> --- a/fs/ext4/mballoc.h
> +++ b/fs/ext4/mballoc.h
> @@ -192,7 +192,6 @@ struct ext4_allocation_context {
>  	 */
>  	ext4_grpblk_t	ac_orig_goal_len;
>  
> -	__u32 ac_groups_considered;
>  	__u32 ac_flags;		/* allocation hints */
>  	__u16 ac_groups_scanned;
>  	__u16 ac_groups_linear_remaining;
> -- 
> 2.30.0
> 
>
  

Patch

diff --git a/fs/ext4/mballoc.h b/fs/ext4/mballoc.h
index d7aeb5da7..56938532b 100644
--- a/fs/ext4/mballoc.h
+++ b/fs/ext4/mballoc.h
@@ -192,7 +192,6 @@  struct ext4_allocation_context {
 	 */
 	ext4_grpblk_t	ac_orig_goal_len;
 
-	__u32 ac_groups_considered;
 	__u32 ac_flags;		/* allocation hints */
 	__u16 ac_groups_scanned;
 	__u16 ac_groups_linear_remaining;