• Stephen C. Tweedie's avatar
    [PATCH] ext3: cleanup handling of aborted transactions. · 046527de
    Stephen C. Tweedie authored
    This patch improves ext3's error logging when we encounter an on-disk
    corruption.  Previously, a transaction (such as a truncate) which encountered
    many corruptions (eg.  a single highly-corrupt indirect block) would emit
    copious "aborting transaction" errors to the log.
    
    Even worse, encountering an aborted journal can count as such an error,
    leading to a flood of spurious "aborting transaction: Journal has aborted"
    errors.
    
    With the fix, only emit that message on the first error.  The patch also
    restores a missing \n in that printk path.
    Signed-off-by: default avatarStephen Tweedie <sct@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    046527de
super.c 69.5 KB