From: Jan Kara Date: Thu, 22 Dec 2011 15:49:05 +0000 (+0100) Subject: ext3: Don't warn from writepage when readonly inode is spotted after error X-Git-Tag: v3.3-rc1~149^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33c104d415e92a51aaf638dc3d93920cfa601e5c;p=pandora-kernel.git ext3: Don't warn from writepage when readonly inode is spotted after error 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. CC: stable@kernel.org Signed-off-by: Jan Kara --- Reading git-diff-tree failed