Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp807508rwi; Mon, 31 Oct 2022 07:48:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Dlcr4wmhby73SiS1vvxAoDHLVty3+dJGsJiyuBIbWnxyyxsUVUN6qSgmCCcds96k1Kfn0 X-Received: by 2002:a05:6a00:b89:b0:56d:2a21:a6b3 with SMTP id g9-20020a056a000b8900b0056d2a21a6b3mr11260646pfj.56.1667227712045; Mon, 31 Oct 2022 07:48:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667227712; cv=none; d=google.com; s=arc-20160816; b=rmsrjwcj+nqG/0QDBWONjue3jFum5OryRdAxTMCN8h5/4C6Qu7VM8xUyk+4VgnNirO uJNBMzImobwAtUcnrfyANKJal66Zu2l4qze4JmXE0Jk0dsOVDaZf3a33mi3MU8P/wbEN i4HivfOXEADC2MChXyq29GWfg9RTJXgn2oeMWM2xZQD7Ff4beeD6sguQ7TR/ukTgj9Ta 4hK2Ic60KdKfqCz6V3/QKlRimkf7VPc8hAQL2thb4x3OYCyIvel2zMkuDSeDl7MHAAQk PYw+SwaokHrkCePn0mQfKXiTq5qe+NRdJaUvYK/ZxfIijjPe67nFvcpHw9sxxdZq1gVs gu4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=M6mAyfhElTb7yAjGb9lxqUIIlk5fpVC/VeidTBIkdlU=; b=F2dqE1KdAujUNKC1DYVUyKq3BKprfk7g3Mmo2H+5B/5oPDIJMeDW2Ozl+775tz+sZk h1E5LX7JpjCxNZMWLWSTdndYiL5tDWv2T26r7KTeqBC5K1tu7+05kej1X/KIxQ7aEgdD bzWku6rIOOlj9J/YlkouusxZ93CddAXovy5B+fo5dxHDs7xblmtW+kxS9fPQpNu4op/d 9kLiXA7AB2cUyhGc/O1c8D8WTNkZAI7D1ZRC+bzlt63npSQleuVx+IR24NZhfLM4Uvio W+Us8HFK0gioBh32hm/uUkqpo1YfA7nxvfs5H8Z6rqcchG8/7H7ZTEHmU0HWSqC4qgjc t/tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oj12-20020a17090b4d8c00b0020d4f2e056csi9888871pjb.151.2022.10.31.07.48.18; Mon, 31 Oct 2022 07:48:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231403AbiJaN5F (ORCPT + 98 others); Mon, 31 Oct 2022 09:57:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231366AbiJaN5D (ORCPT ); Mon, 31 Oct 2022 09:57:03 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 025D110561; Mon, 31 Oct 2022 06:57:02 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4N1F4c2S2fzJnPk; Mon, 31 Oct 2022 21:54:08 +0800 (CST) Received: from [10.67.110.176] (10.67.110.176) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 31 Oct 2022 21:57:00 +0800 Subject: Re: [PATCH] fs: fix undefined behavior in bit shift for SB_NOUSER To: Christoph Hellwig CC: , , , References: <20221029071745.2836665-1-cuigaosheng1@huawei.com> From: cuigaosheng Message-ID: <80107081-1c24-19d3-9a34-0ee61ac7c99d@huawei.com> Date: Mon, 31 Oct 2022 21:56:59 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.110.176] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Let's mark all of the flags as unsigned instead of just one so that > we don't mix types. s_flags is already unsigned (although for some > reason long) already. > > And while you touch this please add the proper whitespaces around the > shift operator everywhere. Thanks for taking time to review this patch, I have made patch v2 and submit it. On 2022/10/31 21:15, Christoph Hellwig wrote: > Let's mark all of the flags as unsigned instead of just one so that > we don't mix types. s_flags is already unsigned (although for some > reason long) already. > > And while you touch this please add the proper whitespaces around the > shift operator everywhere.