From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Weinberger Subject: Re: [PATCH 25/31] ubd: remove commented out code in ubd_open Date: Tue, 6 Jun 2023 10:20:46 +0200 (CEST) Message-ID: <766259639.3687124.1686039646763.JavaMail.zimbra@nod.at> References: <20230606073950.225178-1-hch@lst.de> <20230606073950.225178-26-hch@lst.de> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20230606073950.225178-26-hch@lst.de> List-ID: Content-Type: text/plain; charset="iso-8859-1" To: hch Cc: Jens Axboe , Josef Bacik , "Md. Haris Iqbal" , Jack Wang , Phillip Potter , Coly Li , Miquel Raynal , Vignesh Raghavendra , "Martin K. Petersen" , Chris Mason , David Sterba , Al Viro , Christian Brauner , "Rafael J. Wysocki" , Pavel Machek , dm-devel , linux-block , linux-um , linux-scsi@vger.kernel.org, linux-bcache@vger.kernel.org, linux-mtd ----- Urspr=C3=BCngliche Mail ----- > Von: "hch" > This code has been dead forever, make sure it doesn't show up in code > searches. >=20 > Signed-off-by: Christoph Hellwig > --- > arch/um/drivers/ubd_kern.c | 7 ------- > 1 file changed, 7 deletions(-) >=20 > diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c > index 8b79554968addb..20c1a16199c503 100644 > --- a/arch/um/drivers/ubd_kern.c > +++ b/arch/um/drivers/ubd_kern.c > @@ -1170,13 +1170,6 @@ static int ubd_open(struct gendisk *disk, fmode_t = mode) > } > ubd_dev->count++; > set_disk_ro(disk, !ubd_dev->openflags.w); > - > - /* This should no more be needed. And it didn't work anyway to exclude > - * read-write remounting of filesystems.*/ > - /*if((mode & FMODE_WRITE) && !ubd_dev->openflags.w){ > - if(--ubd_dev->count =3D=3D 0) ubd_close_dev(ubd_dev); > - err =3D -EROFS; > - }*/ Acked-by: Richard Weinberger Thanks, //richard