ext3: Don't warn from writepage when readonly inode is spotted after error
commit0558681f027b24a134e24fee2d96a0a1c6174c76
authorJan Kara <jack@suse.cz>
Thu, 22 Dec 2011 15:49:05 +0000 (22 16:49 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jan 2012 19:29:32 +0000 (12 11:29 -0800)
tree4ec8083230a6f0f157a0f2dd4be0389e8f236c57
parent04e06ee56d4667deb90a3bb2952cfcffb051ff65
ext3: Don't warn from writepage when readonly inode is spotted after error

commit 33c104d415e92a51aaf638dc3d93920cfa601e5c upstream.

WARN_ON_ONCE(IS_RDONLY(inode)) tends to trip when filesystem hits error and is
remounted read-only. This unnecessarily scares users (well, they should be
scared because of filesystem error, but the stack trace distracts them from the
right source of their fear ;-). We could as well just remove the WARN_ON but
it's not hard to fix it to not trip on filesystem with errors and not use more
cycles in the common case so that's what we do.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext3/inode.c