summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/ubifs.h
diff options
context:
space:
mode:
authorAdrian Hunter <ext-adrian.hunter@nokia.com>2008-11-05 15:09:04 +0100
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-11-07 11:11:52 +0100
commit7e2d9bfa4eabee3e1919a40f20d2ef8b569bd07e (patch)
treee79bfe087b5eea815bd584637fab1b14d357c9b1 /fs/ubifs/ubifs.h
parentUBIFS: fix compilation warnings (diff)
downloadlinux-7e2d9bfa4eabee3e1919a40f20d2ef8b569bd07e.tar.xz
linux-7e2d9bfa4eabee3e1919a40f20d2ef8b569bd07e.zip
UBIFS: allow for gaps when dirtying the LPT
The LPT may have gaps in it because initially empty LEBs are not added by mkfs.ubifs - because it does not know how many there are. Then UBIFS allocates empty LEBs in the reverse order that they are discovered i.e. they are added to, and removed from, the front of a list. That creates a gap in the middle of the LPT. The function dirtying the LPT tree (for the purpose of small model garbage collection) assumed that a gap could only occur at the very end of the LPT and stopped dirtying prematurely, which in turn resulted in the LPT running out of space - something that is designed to be impossible. Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Diffstat (limited to 'fs/ubifs/ubifs.h')
0 files changed, 0 insertions, 0 deletions