summaryrefslogtreecommitdiffstats
path: root/mm/truncate.c
diff options
context:
space:
mode:
authorhujianyang <hujianyang@huawei.com>2014-07-30 10:37:53 +0800
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2014-07-31 15:52:51 +0300
commit25601a3c9737fed554169759582c690b98ead5d4 (patch)
treecd49fa96238af388ba347590b37a439fe7cc0c87 /mm/truncate.c
parent6390e991776ec2519b4505d48dd82b0e88d359d2 (diff)
downloadlinux-25601a3c9737fed554169759582c690b98ead5d4.tar.bz2
UBIFS: Add log overlap assertions
We use a circle area to record the log nodes in ubifs. This log area should not be overlapped. But after researching the code, I found some conditions may lead log head wraps log ltail. Although we've fixed the problems discovered, there may be some other issues still left. This patch adds assertions where lhead changes to next leb to make sure ltail is not wrapped. Signed-off-by: hujianyang <hujianyang@huawei.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'mm/truncate.c')
0 files changed, 0 insertions, 0 deletions