From: Dmitry Monakhov Date: Tue, 28 May 2013 09:19:01 +0000 (+0400) Subject: ext3: Fix fsync error handling after filesystem abort. X-Git-Tag: v3.11-rc1~73^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3df32196519d1556b8851b610ca1aa68c5b673d3;p=pandora-kernel.git ext3: Fix fsync error handling after filesystem abort. If filesystem was aborted we will return success due to (sb->s_flags & MS_RDONLY) which is incorrect and results in data loss. In order to handle fs abort correctly we have to check fs state once we discover that it is in MS_RDONLY state Test case: http://patchwork.ozlabs.org/patch/244297/ Changes from V1: - fix spelling - fix smp_rmb()/debug order Signed-off-by: Dmitry Monakhov Signed-off-by: Jan Kara --- Reading git-diff-tree failed