From: Artem Bityutskiy Date: Wed, 4 Aug 2010 07:14:47 +0000 (+0300) Subject: UBIFS: switch to RO mode after synchronizing X-Git-Tag: v2.6.37-rc1~170^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ffef88ffeb730e1bf2da56a39a55e03d57a66c9;p=pandora-kernel.git UBIFS: switch to RO mode after synchronizing In 'ubifs_garbage_collect()' on error path, we first switch to R/O mode, and then synchronize write-buffers (to make sure no data are lost). But the GC write-buffer synchronization will fail, because we are already in R/O mode. This patch re-orders this and makes sure we first synchronize the write-buffer, and then switch to R/O mode. Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed