summaryrefslogtreecommitdiff
path: root/include/math-emu
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2007-10-16 08:25:00 (GMT)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 16:42:55 (GMT)
commit637aff46f94a754207c80c8c64bf1b74f24b967d (patch)
tree837fb3196236998c3c3ae44762ed3167ef0256f4 /include/math-emu
parent2f718ffc16c43a435d12919c75dbfad518abd056 (diff)
downloadlinux-fsl-qoriq-637aff46f94a754207c80c8c64bf1b74f24b967d.tar.xz
fs: fix data-loss on error
New buffers against uptodate pages are simply be marked uptodate, while the buffer_new bit remains set. This causes error-case code to zero out parts of those buffers because it thinks they contain stale data: wrong, they are actually uptodate so this is a data loss situation. Fix this by actually clearning buffer_new and marking the buffer dirty. It makes sense to always clear buffer_new before setting a buffer uptodate. Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/math-emu')
0 files changed, 0 insertions, 0 deletions