Skip to contentSkip to conversation

ext2: remove unused pointer bdi

PATCH In review Colin Ian King 3 participants 3 messages Feb 7, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext2: remove unused pointer bdi

The call to bdi_congested has been removed and so the bdi pointer is no longer required. Remove it.

Fixes 9bbab3a63d49 ("mm/fs: remove bdi_congested() and wb_congested() and related functions")
---
 fs/ext2/ialloc.c | 3 ---
 1 file changed, 3 deletions(-)
fs/ext2/ialloc.c +0 -3
index d632764da240..998dd2ac8008 100644
@@ -170,9 +170,6 @@ static void ext2_preread_inode(struct inode *inode)
 	unsigned long offset;
 	unsigned long block;
 	struct ext2_group_desc * gdp;
-	struct backing_dev_info *bdi;
-
-	bdi = inode_to_bdi(inode);
 
 	block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb);
 	gdp = ext2_get_group_desc(inode->i_sb, block_group, NULL);
Signature · 1 line
2.34.1
#1 lore raw
Quoted 5 lines · Colin Ian King

The call to bdi_congested has been removed and so the bdi pointer is no longer required. Remove it.

Fixes 9bbab3a63d49 ("mm/fs: remove bdi_congested() and wb_congested() and related functions")

I guess this change is in mm tree? So probably it is best if Andrew picks it up.

Honza

Quoted 21 lines
---
 fs/ext2/ialloc.c | 3 ---
 1 file changed, 3 deletions(-)
fs/ext2/ialloc.c +0 -3
index d632764da240..998dd2ac8008 100644
@@ -170,9 +170,6 @@ static void ext2_preread_inode(struct inode *inode)
 	unsigned long offset;
 	unsigned long block;
 	struct ext2_group_desc * gdp;
-	struct backing_dev_info *bdi;
-
-	bdi = inode_to_bdi(inode);
 
 	block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb);
 	gdp = ext2_get_group_desc(inode->i_sb, block_group, NULL);
Signature · 1 line
2.34.1
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
#2 lore raw
Quoted 9 lines · Jan Kara
Quoted 5 lines · Colin Ian King

The call to bdi_congested has been removed and so the bdi pointer is no longer required. Remove it.

Fixes 9bbab3a63d49 ("mm/fs: remove bdi_congested() and wb_congested() and related functions")

I guess this change is in mm tree? So probably it is best if Andrew picks it up.

I have to refresh the whole series - hopefully later this week. I'll make sure to fix this bit.

Thanks,
NeilBrown

Quoted 29 lines

Honza

Quoted 21 lines
---
 fs/ext2/ialloc.c | 3 ---
 1 file changed, 3 deletions(-)
fs/ext2/ialloc.c +0 -3
index d632764da240..998dd2ac8008 100644
@@ -170,9 +170,6 @@ static void ext2_preread_inode(struct inode *inode)
 	unsigned long offset;
 	unsigned long block;
 	struct ext2_group_desc * gdp;
-	struct backing_dev_info *bdi;
-
-	bdi = inode_to_bdi(inode);
 
 	block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb);
 	gdp = ext2_get_group_desc(inode->i_sb, block_group, NULL);
Signature · 1 line
2.34.1
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR