Skip to contentSkip to conversation

md/linear: Get rid of md-linear.h

PATCH Applied Marc Zyngier 3 participants 3 messages Feb 1, 2024 – Feb 5, 2024 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 md/linear: Get rid of md-linear.h

Given that 849d18e27be9 ("md: Remove deprecated CONFIG_MD_LINEAR") killed the linear flavour of MD, it seems only logical to drop the leftover include file that used to come with it.

I also feel that it should be my own privilege to remove my 30 year old attempt at writing kernel code ;-). RIP!

---
 drivers/md/md-linear.h | 17 -----------------
 1 file changed, 17 deletions(-)
 delete mode 100644 drivers/md/md-linear.h
drivers/md/md-linear.h deleted +0 -17
deleted file mode 100644
index 5587eeedb882..000000000000
@@ -1,17 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _LINEAR_H
-#define _LINEAR_H
-
-struct dev_info {
-	struct md_rdev	*rdev;
-	sector_t	end_sector;
-};
-
-struct linear_conf
-{
-	struct rcu_head		rcu;
-	sector_t		array_sectors;
-	int			raid_disks; /* a copy of mddev->raid_disks */
-	struct dev_info		disks[] __counted_by(raid_disks);
-};
-#endif
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Marc Zyngier

Given that 849d18e27be9 ("md: Remove deprecated CONFIG_MD_LINEAR") killed the linear flavour of MD, it seems only logical to drop the leftover include file that used to come with it.

I also feel that it should be my own privilege to remove my 30 year old attempt at writing kernel code ;-). RIP!

LGTM

Quoted 29 lines
---
  drivers/md/md-linear.h | 17 -----------------
  1 file changed, 17 deletions(-)

delete mode 100644 drivers/md/md-linear.h

drivers/md/md-linear.h deleted +0 -17
deleted file mode 100644
index 5587eeedb882..000000000000
@@ -1,17 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _LINEAR_H
-#define _LINEAR_H
-
-struct dev_info {
-	struct md_rdev	*rdev;
-	sector_t	end_sector;
-};
-
-struct linear_conf
-{
-	struct rcu_head		rcu;
-	sector_t		array_sectors;
-	int			raid_disks; /* a copy of mddev->raid_disks */
-	struct dev_info		disks[] __counted_by(raid_disks);
-};
-#endif
maintainer Applied
#2 lore raw
Quoted 9 lines · Yu Kuai
Quoted 7 lines · Marc Zyngier

Given that 849d18e27be9 ("md: Remove deprecated CONFIG_MD_LINEAR") killed the linear flavour of MD, it seems only logical to drop the leftover include file that used to come with it.

I also feel that it should be my own privilege to remove my 30 year old attempt at writing kernel code ;-). RIP!

Quoted 6 lines
Quoted 3 lines

LGTM

Applied to md-6.9. Thanks!

Song