From: Younger Liu Date: Mon, 10 Feb 2014 22:25:44 +0000 (-0800) Subject: ocfs2: fix ocfs2_sync_file() if filesystem is readonly X-Git-Tag: v3.14-rc3~37^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a987c7ca7fc9225a587b1dc59d7d4ad2d9e2e08e;p=pandora-kernel.git ocfs2: fix ocfs2_sync_file() if filesystem is readonly If filesystem is readonly, there is no need to flush drive's caches or force any uncommitted transactions. [akpm@linux-foundation.org: return -EROFS, not 0] Signed-off-by: Younger Liu Cc: Joel Becker Cc: Mark Fasheh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed