diff options
| author | Jan Kara <[email protected]> | 2009-12-16 00:46:49 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-12-16 15:20:06 +0000 |
| commit | 48bde86df0acb9f53c4fd0908d023ecae962762f (patch) | |
| tree | 267f26b2f4945f8c03c12ddcbb9cd26c6e3e0ad0 /Documentation/DocBook/procfs_example.c | |
| parent | ext2: avoid WARN() messages when failing to write to the superblock (diff) | |
| download | kernel-48bde86df0acb9f53c4fd0908d023ecae962762f.tar.gz kernel-48bde86df0acb9f53c4fd0908d023ecae962762f.zip | |
ext2: report metadata errors during fsync
When an IO error happens while writing metadata buffers, we should better
report it and call ext2_error since the filesystem is probably no longer
consistent. Sometimes such IO errors happen while flushing thread does
background writeback, the buffer gets later evicted from memory, and thus
the only trace of the error remains as AS_EIO bit set in blockdevice's
mapping. So we check this bit in ext2_fsync and report the error although
we cannot be really sure which buffer we failed to write.
Signed-off-by: Jan Kara <[email protected]>
Cc: Chris Mason <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'Documentation/DocBook/procfs_example.c')
0 files changed, 0 insertions, 0 deletions
