Re: 2.4 bug: fifo-write causes diskwrites to read-only fs !

From: Christoph Hellwig (hch@infradead.org)
Date: Fri May 30 2003 - 10:02:14 EST


On Fri, May 30, 2003 at 02:21:12PM +0100, Stephen C. Tweedie wrote:
> +void update_mctime (struct inode *inode)
> +{
> + if (inode->i_mtime == CURRENT_TIME && inode->i_ctime == CURRENT_TIME)
> + return;
> + if ( IS_RDONLY (inode) ) return;
> + inode->i_ctime = inode->i_mtime = CURRENT_TIME;
> + mark_inode_dirty (inode);
> +} /* End Function update_mctime */
> +

Yikes, this looks like devfs code! Please try to use proper kernel style..

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