linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] md/linear: Get rid of md-linear.h
@ 2024-02-01 22:45 Marc Zyngier
  2024-02-02  1:08 ` Yu Kuai
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Zyngier @ 2024-02-01 22:45 UTC (permalink / raw)
  To: linux-kernel, linux-raid; +Cc: Song Liu, Yu Kuai

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!

Cc: Song Liu <song@kernel.org>
Cc: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
---
 drivers/md/md-linear.h | 17 -----------------
 1 file changed, 17 deletions(-)
 delete mode 100644 drivers/md/md-linear.h

diff --git a/drivers/md/md-linear.h b/drivers/md/md-linear.h
deleted file mode 100644
index 5587eeedb882..000000000000
--- a/drivers/md/md-linear.h
+++ /dev/null
@@ -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
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] md/linear: Get rid of md-linear.h
  2024-02-01 22:45 [PATCH] md/linear: Get rid of md-linear.h Marc Zyngier
@ 2024-02-02  1:08 ` Yu Kuai
  2024-02-05 23:41   ` Song Liu
  0 siblings, 1 reply; 3+ messages in thread
From: Yu Kuai @ 2024-02-02  1:08 UTC (permalink / raw)
  To: Marc Zyngier, linux-kernel, linux-raid; +Cc: Song Liu, yukuai (C)

在 2024/02/02 6:45, 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!
> 
> Cc: Song Liu <song@kernel.org>
> Cc: Yu Kuai <yukuai3@huawei.com>
> Signed-off-by: Marc Zyngier <maz@kernel.org>

LGTM
Reviewed-by: Yu Kuai <yukuai3@huawei.com>

> ---
>   drivers/md/md-linear.h | 17 -----------------
>   1 file changed, 17 deletions(-)
>   delete mode 100644 drivers/md/md-linear.h
> 
> diff --git a/drivers/md/md-linear.h b/drivers/md/md-linear.h
> deleted file mode 100644
> index 5587eeedb882..000000000000
> --- a/drivers/md/md-linear.h
> +++ /dev/null
> @@ -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
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] md/linear: Get rid of md-linear.h
  2024-02-02  1:08 ` Yu Kuai
@ 2024-02-05 23:41   ` Song Liu
  0 siblings, 0 replies; 3+ messages in thread
From: Song Liu @ 2024-02-05 23:41 UTC (permalink / raw)
  To: Yu Kuai; +Cc: Marc Zyngier, linux-kernel, linux-raid, yukuai (C)

On Thu, Feb 1, 2024 at 5:08 PM Yu Kuai <yukuai1@huaweicloud.com> wrote:
>
> 在 2024/02/02 6:45, 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!
> >
> > Cc: Song Liu <song@kernel.org>
> > Cc: Yu Kuai <yukuai3@huawei.com>
> > Signed-off-by: Marc Zyngier <maz@kernel.org>
>
> LGTM
> Reviewed-by: Yu Kuai <yukuai3@huawei.com>

Applied to md-6.9. Thanks!

Song

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-02-05 23:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-01 22:45 [PATCH] md/linear: Get rid of md-linear.h Marc Zyngier
2024-02-02  1:08 ` Yu Kuai
2024-02-05 23:41   ` Song Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).