Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1759829pxp; Thu, 17 Mar 2022 16:32:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhJQyaN2FfO/3U2HGxMLwC6ILArFifHnbRA2qusElabTW67QxMAKWqyt9P/7ePaeo83xgx X-Received: by 2002:a17:907:2ce6:b0:6df:a489:d2e1 with SMTP id hz6-20020a1709072ce600b006dfa489d2e1mr3563802ejc.264.1647559962895; Thu, 17 Mar 2022 16:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647559962; cv=none; d=google.com; s=arc-20160816; b=ViEGOnXWdXz315eeOE5qtlohYdqREDEhQ6Vum7JNKwMb98rMBOAkWs9UXdYoTURQ16 TNzmMuX+45PU9khTPFL9vAMICBmrhOiRgnqgSDp3BOvLWk8FdfaB84niqvKT5/nwCFPn DJWvZVx3tLGLVQo3tR52IGETH6DDW5Y8RSThxd1e3Uc1Al6gxyt/m6BBE1edUcSgBonm sYWtT3PV5nOfzg8ZCb3/X1dY9TQBWyXLZRSldfKh2wL47yp2OqQTcX1w+YTrJSWB2wvD n4FM/6QiErP/SdDUSltrBPLyDVcK0Xms+Xf4nGmcsDQg3EFg9uYSODmL35aUoOui72Qy nYwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=ogaADyW29Nzv955suSIK2Wp3zr1XkdoV+aZgc3znH7Y=; b=Eh/qfivSjwo7BB4JrsJzXaK65kWTglSAGl2leC8B5qbAZ7/ZsxaJlrIeNcXOZTc+1R QFglCKyryIHYIVeg1T4F5/+i2pZ2hAa92dlwRp4A/X+xatGTIKJVKwpe8839omVH9Pgd 6De4wc1DuU7A9gun7BI6z15Aqf6ByB8TNukZwza4P9LKQvssVrwWDhgdNUtqZBo7ThuA hybWi9pxIUohqqg9qmk8N9aKUu28MOTbYZBupBDLwdWP0BfuGqWACfQ1JLGhlc86c7ob icJYn6S1VdzkA4BpjNjDka2kgxoauaI5IlU7wDcX0Iq37VKNBTVqdLyk21mXxARmfiti WZsQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb2-20020a1709071c8200b006df833f1b93si334939ejc.405.2022.03.17.16.32.17; Thu, 17 Mar 2022 16:32:42 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbiCQWgX convert rfc822-to-8bit (ORCPT + 99 others); Thu, 17 Mar 2022 18:36:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiCQWgW (ORCPT ); Thu, 17 Mar 2022 18:36:22 -0400 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA3ACE885E for ; Thu, 17 Mar 2022 15:35:03 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 9F3756081112; Thu, 17 Mar 2022 23:35:01 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id nVRRisT8TJYL; Thu, 17 Mar 2022 23:35:01 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 3C6A56081110; Thu, 17 Mar 2022 23:35:01 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id r1KNl6A7pLtB; Thu, 17 Mar 2022 23:35:01 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 180AA6089354; Thu, 17 Mar 2022 23:35:01 +0100 (CET) Date: Thu, 17 Mar 2022 23:35:00 +0100 (CET) From: Richard Weinberger To: libaokun Cc: linux-mtd , linux-kernel , yukuai3 , chengzhihao1 Message-ID: <2008739324.156347.1647556500875.JavaMail.zimbra@nod.at> In-Reply-To: References: <20220215040736.2839939-1-libaokun1@huawei.com> <157336576.152785.1647468012272.JavaMail.zimbra@nod.at> Subject: Re: [PATCH -next] ubifs: rename_whiteout: correct old_dir size computing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: ubifs: rename_whiteout: correct old_dir size computing Thread-Index: CY5uA77SPI4VOph1RsZDxVqHFhcrLg== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,T_SPF_PERMERROR 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 ----- Ursprüngliche Mail ----- > Von: "libaokun" >>>> + >>>> + /* Add the old_dentry size to the old_dir size. */ >>>> + old_sz -= CALC_DENT_SIZE(fname_len(&old_nm)); >> So you basically reset old_sz back to 0? > Yes, reset old_sz to 0 here. Okay, makes sense. Patch applied. Thanks, //richard