[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <14336F5B-D8D2-4B73-A60C-3B63997F0827@dilger.ca>
Date: Sun, 8 Dec 2019 21:14:08 -0700
From: Andreas Dilger <adilger@...ger.ca>
To: Theodore Ts'o <tytso@....edu>
Cc: Ext4 Developers List <linux-ext4@...r.kernel.org>
Subject: Re: [PATCH -v3] ext4: simulate various I/O and checksum errors when
reading metadata
On Dec 8, 2019, at 6:23 PM, Theodore Ts'o <tytso@....edu> wrote:
>
> This allows us to test various error handling code paths
>
> Previous-Version-Link: https://lore.kernel.org/r/20191204032335.7683-2-tytso@mit.edu
> Signed-off-by: Theodore Ts'o <tytso@....edu>
> ---
>
> +
> +static inline bool ext4_simulate_fail(struct super_block *sb,
> + unsigned long code)
> +{
> +#ifdef CONFIG_EXT4_DEBUG
> + struct ext4_sb_info *sbi = EXT4_SB(sb);
> +
> + if (sbi->s_simulate_fail != code)
This should be marked unlikely(), as it is definitely one of the places
that is legitimately rarely true. Sorry for not pointing this out on
the previous version of the patch.
Cheers, Andreas
Download attachment "signature.asc" of type "application/pgp-signature" (874 bytes)
Powered by blists - more mailing lists