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=-2.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 9E40EC3A59F for ; Thu, 29 Aug 2019 18:58:29 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1E41C2166E for ; Thu, 29 Aug 2019 18:58:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.ozlabs.org header.i=@lists.ozlabs.org header.b="e+spoxkM"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=aol.com header.i=@aol.com header.b="DAagERDO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E41C2166E Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=lists.ozlabs.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46KBhf1yBHzDrdT for ; Fri, 30 Aug 2019 04:58:26 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.ozlabs.org; s=201707; t=1567105106; bh=OEZh/ctsesBRc/QtTLGBmAr/R4BSWdaJ9oRK1r9HLZw=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=e+spoxkMXOpZXP2XdI28U5yiGnDVTQsqiajuNlGmF+umK41j8U7Zpyfw/piRIRV2w meyyZJfXFPW4kfYX8nmk8hM9kaUssmUXVjxrO/IaLSi/4s90yngKgsW2pirnG0zO0e U6POVV72wmfi0+TIAJqHywzy5cTy3YsJl5AZ5JS2ja0hUk5zewAzm/DPigy0LGSpfL QvL3VN1g8slrKVvWPX+anDTXMcU1zP6LBcSFdfU9FAnm2eof2Woey+lgToIX7xgxn9 EDxxGG9NfclK3XewVcFUo1D44b+UzZQ76YXK5jNxxkXILcvYl/EifKn2jz5V0gXToR yCh1jTZUZJugw== Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=aol.com (client-ip=77.238.178.146; helo=sonic308-18.consmr.mail.ir2.yahoo.com; envelope-from=hsiangkao@aol.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=reject dis=none) header.from=aol.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aol.com header.i=@aol.com header.b="DAagERDO"; dkim-atps=neutral Received: from sonic308-18.consmr.mail.ir2.yahoo.com (sonic308-18.consmr.mail.ir2.yahoo.com [77.238.178.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46KBgZ4170zDrfP for ; Fri, 30 Aug 2019 04:57:26 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1567105041; bh=xvUFAFsLiQVngerBLgBQpnYPOm7q0BCalX6FGZiM+Ww=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=DAagERDOXrHhMUC8zEcq68gmd0VDfcWX0hbLUvkchU472lelQqvE4xGhRwcIap1gw1U7VWAR9tN4oLe510R1614jkaT6rG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MX_uf QiTcIKR3pwowCSS09aEYNDXEm.BA8V9I91JG2QBT7LzTDckKnCXetPrYODIM2koS.IvIc6TrRQ0i 1bzZddGjdYGYbna.J5RPgR1eI_3.KJ3dEYRkg66pt7WKQ6tni0aSI4PH5ORjw0S8tvs_gznpRF3M ..KXIQ5oLUiqx6PiuJfo9kh7gM1DrRvUK.JtJ9zQNSzwV_n29q.TM6OimUke0_RM7c0aWUAKXyEG kuITRnwu0rilVIdI8_JKJ_ST5FUsL4FwiFomxNprLcG_p9liTFrFmdQczOgMJooq8XEO_VHFVXub 20YYGxWAzbfsMm9DMmpHcWW7g72zDzaB_HB3dwdEvWOrdY2JqDkYi_qA07_r694OAerHM5w0QmFt W5ukpVPVVZ3MMtbiBSShmgC37M6K_dgcOBo51qBX3uI7XdA36PhFHBpvG.7ty_FB962Oj3E8eaFV HcmWgpPqn.ncxdFxqlHsKL.Y- Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ir2.yahoo.com with HTTP; Thu, 29 Aug 2019 18:57:21 +0000 Received: by smtp420.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 82b6ee7c086d1bafb8e1884cc30d4767; Thu, 29 Aug 2019 18:57:18 +0000 (UTC) Date: Fri, 30 Aug 2019 02:57:10 +0800 To: Dan Carpenter Subject: Re: [PATCH] staging: erofs: using switch-case while checking the inode type. Message-ID: <20190829185706.GA21327@hsiangkao-HP-ZHAN-66-Pro-G1> References: <20190829130813.11721-1-pratikshinde320@gmail.com> <20190829135607.GA195010@architecture4> <20190829141522.GA15562@architecture4> <20190829150436.GI23584@kadam> <20190829151352.GA100055@architecture4> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190829151352.GA100055@architecture4> User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Gao Xiang via Linux-erofs Reply-To: Gao Xiang Cc: devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, linux-erofs@lists.ozlabs.org Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" Hi Dan, On Thu, Aug 29, 2019 at 11:13:53PM +0800, Gao Xiang wrote: > Hi Dan, > > On Thu, Aug 29, 2019 at 06:04:36PM +0300, Dan Carpenter wrote: > > On Thu, Aug 29, 2019 at 10:15:22PM +0800, Gao Xiang wrote: > > > I am very happy that you send a patch about this, but we have > > > to take care of handling "fall through" properly at least, > > > and I don't want to introduce some extra compile warnings > > > instead at this time. > > > > I can't apply the patch so I maybe missed something. I don't see > > a fall through issue. We have the code so you could use ^^^^^^^^ to > > indicate which lines have a fall through problem. > > > > > > > > EROFS is sensitive for now and I have no idea what the "real" > > > point is. > > > > What does "sensitive" mean here? Now that it's out of staging we > > aren't applying clean up patches? Again, due to language obstacle, I have to give a detailed explanation of what "sensitive" meant here. I meant it seems all topic had no relationship with EROFS at all, but someone mentioned erofs in different topics, I have no idea what is wrong with EROFS, and I have no idea where it is like POS. As your unlikely/likely concern, I think I discussed with you earlier, in fact, most of EROFS unlikely is due to error handling paths, which are meaningful in my thought. If you argue that it has little performance difference, I think unlikely in IS_ERR can also be killed as well since for most use cases in Linux it is true that they are little performance difference at all. But I think totally it will have some impact. Anyway, I didn't find some formal standard about this, and I remove all of these as you like. Thanks, Gao Xiang > > Of course not, I mean we should avoid "fall through" problem > but I have no time to verify this patch since I am fixing what > hch said as well. > > Thanks, > Gao Xiang > > > > > regards, > > dan carpenter > >