]> git.baikalelectronics.ru Git - kernel.git/commit
Fix JFFS2 sync silent failure
authorJörn Engel <joern@logfs.org>
Thu, 22 Apr 2010 12:11:43 +0000 (14:11 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 22 Apr 2010 12:11:43 +0000 (14:11 +0200)
commite342a6cf08a2bad375bdc5ec6ff896c218287d43
tree6125f79cda585842162096ded41c8ce859593144
parent4a63d8d56d12df1be1e96f815f72916176bb86ba
Fix JFFS2 sync silent failure

JFFS2 does not appear to set s_bdi anywhere.  And as of a263f791,
__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 <joern@logfs.org>
Acked-By: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/mtd/mtdsuper.c