From: Dave Chinner Date: Mon, 8 Oct 2012 10:56:01 +0000 (+1100) Subject: xfs: don't run the sync work if the filesystem is read-only X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~55^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f7bebefba152c5bdfe961cd2e97e8695a32998c;p=pandora-kernel.git xfs: don't run the sync work if the filesystem is read-only If the filesystem is mounted or remounted read-only, stop the sync worker that tries to flush or cover the log if the filesystem is dirty. It's read-only, so it isn't dirty. Restart it on a remount,rw as necessary. This avoids the need for RO checks in the work. Similarly, stop the sync work when the filesystem is frozen, and start it again when the filesysetm is thawed. This avoids the need for special freeze checks in the work. Signed-off-by: Dave Chinner Reviewed-by: Mark Tinguely Reviewed-by: Christoph Hellwig Signed-off-by: Ben Myers --- Reading git-diff-tree failed