summaryrefslogtreecommitdiffstats
path: root/MAINTAINERS
diff options
context:
space:
mode:
authorHidehiro Kawai <hidehiro.kawai.ez@hitachi.com>2008-10-11 02:29:31 +0200
committerTheodore Ts'o <tytso@mit.edu>2008-10-11 02:29:31 +0200
commit7ad7445f60fe4d46c4c9d2a9463db180d2a3b270 (patch)
treecd4e0f69f90664e5ca4185271fbacbb7b4f59491 /MAINTAINERS
parentext4: add checks for errors from jbd2 (diff)
downloadlinux-7ad7445f60fe4d46c4c9d2a9463db180d2a3b270.tar.xz
linux-7ad7445f60fe4d46c4c9d2a9463db180d2a3b270.zip
jbd2: don't dirty original metadata buffer on abort
Currently, original metadata buffers are dirtied when they are unfiled whether the journal has aborted or not. Eventually these buffers will be written-back to the filesystem by pdflush. This means some metadata buffers are written to the filesystem without journaling if the journal aborts. So if both journal abort and system crash happen at the same time, the filesystem would become inconsistent state. Additionally, replaying journaled metadata can overwrite the latest metadata on the filesystem partly. Because, if the journal gets aborted, journaled metadata are preserved and replayed during the next mount not to lose uncheckpointed metadata. This would also break the consistency of the filesystem. This patch prevents original metadata buffers from being dirtied on abort by clearing BH_JBDDirty flag from those buffers. Thus, no metadata buffers are written to the filesystem without journaling. Signed-off-by: Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions