Re: [patch 1/1] uml ubd: handle readonly status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 25, 2005 at 09:19:49PM +0200, [email protected] wrote:
> +	/* This should no more be needed. And it didn't work anyway to exclude
> +	 * read-write remounting of filesystems.*/
> +	/*if((filp->f_mode & FMODE_WRITE) && !dev->openflags.w){
>  	        if(--dev->count == 0) ubd_close(dev);
>  	        err = -EROFS;
> -	}
> +	}*/

> +	/* This should be impossible now */

> +		/* This should be impossible now */

If code can't run any more because of now-impossible conditions, then just
delete it.

				Jeff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux