]> www.infradead.org Git - users/hch/block.git/commitdiff
ubd: remove commented out code in ubd_open
authorChristoph Hellwig <hch@lst.de>
Sun, 4 Jun 2023 09:16:10 +0000 (11:16 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 8 Jun 2023 11:00:50 +0000 (13:00 +0200)
This code has been dead forever, make sure it doesn't show up in code
searches.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Christian Brauner <brauner@kernel.org>
Acked-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/ubd_kern.c

index 8b79554968addb4885f9ab8ed414dd4153a9d6bf..20c1a16199c5038c23c3a0029339c3781188ef82 100644 (file)
@@ -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 == 0) ubd_close_dev(ubd_dev);
-               err = -EROFS;
-       }*/
 out:
        mutex_unlock(&ubd_mutex);
        return err;