xfs
[Top] [All Lists]

Re: [PATCH] xfs: remove spurious shutdown type check from xfs_bmap_finis

To: xfs@xxxxxxxxxxx
Subject: Re: [PATCH] xfs: remove spurious shutdown type check from xfs_bmap_finish()
From: Carlos Maiolino <cmaiolino@xxxxxxxxxx>
Date: Wed, 18 May 2016 15:28:31 +0200
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1463573052-29336-1-git-send-email-bfoster@xxxxxxxxxx>
Mail-followup-to: xfs@xxxxxxxxxxx
References: <1463573052-29336-1-git-send-email-bfoster@xxxxxxxxxx>
User-agent: Mutt/1.5.24 (2015-08-30)
On Wed, May 18, 2016 at 08:04:12AM -0400, Brian Foster wrote:
> The static checker reports that after commit 8d99fe92fed0 ("xfs: fix
> efi/efd error handling to avoid fs shutdown hangs"), the code has been
> reworked such that error == -EFSCORRUPTED is not possible in this
> codepath.
> 
> Remove the spurious error check and just use SHUTDOWN_META_IO_ERROR
> unconditionally.
> 
> Signed-off-by: Brian Foster <bfoster@xxxxxxxxxx>

Reviewed-by: Carlos Maiolino <cmaiolino@xxxxxxxxxx>

> ---
>  fs/xfs/xfs_bmap_util.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c
> index 3246ebc..918a25a 100644
> --- a/fs/xfs/xfs_bmap_util.c
> +++ b/fs/xfs/xfs_bmap_util.c
> @@ -132,9 +132,7 @@ xfs_bmap_finish(
>               if (committed) {
>                       xfs_efi_release(efi);
>                       xfs_force_shutdown((*tp)->t_mountp,
> -                             (error == -EFSCORRUPTED) ?
> -                                     SHUTDOWN_CORRUPT_INCORE :
> -                                     SHUTDOWN_META_IO_ERROR);
> +                                        SHUTDOWN_META_IO_ERROR);
>               }
>               return error;
>       }
> -- 
> 2.4.11
> 
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs

-- 
Carlos

<Prev in Thread] Current Thread [Next in Thread>