From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3FF2C43613 for ; Fri, 21 Jun 2019 11:01:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 93630208CA for ; Fri, 21 Jun 2019 11:01:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726681AbfFULBL (ORCPT ); Fri, 21 Jun 2019 07:01:11 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:51994 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726229AbfFULBK (ORCPT ); Fri, 21 Jun 2019 07:01:10 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 7C7F28057B; Fri, 21 Jun 2019 13:00:58 +0200 (CEST) Date: Fri, 21 Jun 2019 13:00:55 +0200 From: Pavel Machek To: Chao Yu Cc: jaegeuk@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, chao@kernel.org Subject: Re: [PATCH 1/2] f2fs: use generic EFSBADCRC/EFSCORRUPTED Message-ID: <20190621110055.GC24145@amd> References: <20190620033615.32284-1-yuchao0@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XMCwj5IQnwKtuyBG" Content-Disposition: inline In-Reply-To: <20190620033615.32284-1-yuchao0@huawei.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --XMCwj5IQnwKtuyBG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2019-06-20 11:36:14, Chao Yu wrote: > f2fs uses EFAULT as error number to indicate filesystem is corrupted > all the time, but generic filesystems use EUCLEAN for such condition, > we need to change to follow others. >=20 > This patch adds two new macros as below to wrap more generic error > code macros, and spread them in code. >=20 > EFSBADCRC EBADMSG /* Bad CRC detected */ > EFSCORRUPTED EUCLEAN /* Filesystem is corrupted */ >=20 > Reported-by: Pavel Machek > Signed-off-by: Chao Yu Acked-by: Pavel Machek --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --XMCwj5IQnwKtuyBG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl0MuOcACgkQMOfwapXb+vJkywCgvirSevUuEB2LNBfOcjGRh0UC 8SoAoK/GfYo7jR5ee7+epqSdXILguN0w =l+QU -----END PGP SIGNATURE----- --XMCwj5IQnwKtuyBG--