diff options
author | Anatolij Gustschin <agust@denx.de> | 2010-12-16 23:42:19 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2011-01-06 15:36:00 +0000 |
commit | a121f643993474548fe98144514c50dd4f3dbe76 (patch) | |
tree | 184d54ebdbd62977ed4d672058293638fe2e0b2a /security/apparmor | |
parent | 7fa33ac0a7e24a1b8bd71be5c47a17423c62fbda (diff) | |
download | op-kernel-dev-a121f643993474548fe98144514c50dd4f3dbe76.zip op-kernel-dev-a121f643993474548fe98144514c50dd4f3dbe76.tar.gz |
UBI: use mtd->writebufsize to set minimal I/O unit size
Previously we used mtd->writesize field to set UBI's minimal
I/O unit size. This sometimes caused UBIFS recovery issues
when mounting an uncleanly unmounted UBIFS partition on NOR
flash since mtd->writesize is 1 byte for NOR flash. The
MTD CFI driver however often performs writing multiple
bytes in one programming operation using the chip's write
buffer. We have to use the size of this write buffer as
a minimal I/O unit size for UBI on NOR flash to fix the
observed UBIFS recovery issues.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'security/apparmor')
0 files changed, 0 insertions, 0 deletions