Home
last modified time | relevance | path

Searched hist:"6 de94002" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/mtd/
H A Dmtdsuper.c6de94002 Thu Apr 22 07:11:43 CDT 2010 Jörn Engel <joern@logfs.org> 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 <joern@logfs.org>
Acked-By: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
6de94002 Thu Apr 22 07:11:43 CDT 2010 Jörn Engel <joern@logfs.org> 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 <joern@logfs.org>
Acked-By: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>