From: Jörn Engel Date: Thu, 22 Apr 2010 12:11:43 +0000 (+0200) Subject: Fix JFFS2 sync silent failure X-Git-Tag: v2.6.34-rc6~15^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6de9400250f95f82da432c28b9b43823f4154c58;p=pandora-kernel.git Fix JFFS2 sync silent failure JFFS2 does not appear to set s_bdi anywhere. And as of 32a88aa1, __sync_filesystem() will return 0 if s_bdi is not set. As a result, sync_fs() is never called for jffs2 and whatever remains in the wbuf will not make it to the device. Fix that up by assigning the mtd bdi. Signed-off-by: Jörn Engel Acked-By: David Woodhouse Signed-off-by: Jens Axboe --- Reading git-diff-tree failed