Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1681530pxb; Sat, 23 Jan 2021 02:07:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJx69q5JXcWUdSj2H3mhl0CwA+S25R+WHvnV7drstVMAuhhJUJK+vp+e6SGmWi3DddPjkWh3 X-Received: by 2002:aa7:c9cf:: with SMTP id i15mr6292680edt.296.1611396419768; Sat, 23 Jan 2021 02:06:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611396419; cv=none; d=google.com; s=arc-20160816; b=o8bqp5RWiN2ZgHiZNJ8tG7CbvmwKqd20DxBQk6m+wM5d4DMNBVunnN5gt6DhnCTfwl JVwsf8zZi/ZsSHGWjICETi7q+JGo5pcgdqByuyEvW7hjn1tphB+XVS+AWW1n7ua6PWS2 6SkxjYhbjx7q+e0P2L9rY0O3bWMpUnMk7s1kthyMO+QMJs1EXqlThylE8fhLG2ii//K3 9PZ/2BlsJNPMgMsmymjJOOym8hiGGBKUO1COC11fN4n8kxRRTfhupNXzxJOuZdxwwuIr yTrcrxC3UuTwa3Tm4enuXY4k6qNcSOWiK45cA9S9/IOGOaCFPAcMYNdY9K8c4ozDCsbA nq9A== 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=QWM2XSiNMlnsiZoaD05zHg1L8nH+/gvIL/A4Bz7HXt4=; b=exLcd9yKfJTuMB9vK9YU+pxMtzS4q4sFvn8Ye6O1ewzYEwTjDGXW3fTUDFXyzfYOAK M51D8XuYYmDei1ni2mv1t+744jQGTwRK1FtGIDyTEiBi9F1EYK+0ZNplICxbFixBsRJd GU4YUm4k5vXms5UIxYPIFkBoZsnL708YzrnZysKQEeKyfYoq9cQzHoYgSEcmgh1mFNez ydVrefcBK4JjQwCB5NmSpWjqPUWTZJPqvy+ixVr88VkrPHYr+3XXuTDbyh9gqra+Zmbn 6kNGZfd3NsreyWB8rWoW1dQ77rQ/0P9MLsnYeiw8zxJdWwWdl9OwiL0f8ee1qsJnCrSq b3JQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s1si3770871ejq.292.2021.01.23.02.06.33; Sat, 23 Jan 2021 02:06:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726653AbhAWKGG convert rfc822-to-8bit (ORCPT + 99 others); Sat, 23 Jan 2021 05:06:06 -0500 Received: from lithops.sigma-star.at ([195.201.40.130]:43934 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725940AbhAWKGF (ORCPT ); Sat, 23 Jan 2021 05:06:05 -0500 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id B54DA6074007; Sat, 23 Jan 2021 11:05:22 +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 iF0YWO0cr0Iq; Sat, 23 Jan 2021 11:05:21 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 0006C625DE06; Sat, 23 Jan 2021 11:05:20 +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 Artg8sMjyD81; Sat, 23 Jan 2021 11:05:20 +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 CF7986074007; Sat, 23 Jan 2021 11:05:20 +0100 (CET) Date: Sat, 23 Jan 2021 11:05:20 +0100 (CET) From: Richard Weinberger To: chengzhihao1 Cc: linux-mtd , david , linux-kernel , stable Message-ID: <311070065.273732.1611396320672.JavaMail.zimbra@nod.at> In-Reply-To: <5b51ff9c-8f5e-c348-5195-c0a0bf60b746@huawei.com> References: <20210122212229.17072-1-richard@nod.at> <20210122212229.17072-4-richard@nod.at> <5b51ff9c-8f5e-c348-5195-c0a0bf60b746@huawei.com> Subject: Re: [PATCH 3/4] ubifs: Update directory size when creating whiteouts 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 - FF78 (Linux)/8.8.12_GA_3809) Thread-Topic: ubifs: Update directory size when creating whiteouts Thread-Index: lBYr5nCGsjlO2WH9TnqNoD/UEPd7gA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- Ursprüngliche Mail ----- > Von: "chengzhihao1" > An: "richard" , "linux-mtd" > CC: "david" , "linux-kernel" , "stable" > Gesendet: Samstag, 23. Januar 2021 03:45:15 > Betreff: Re: [PATCH 3/4] ubifs: Update directory size when creating whiteouts > 在 2021/1/23 5:22, Richard Weinberger 写道: >> Although whiteouts are unlinked files they will get re-linked later, > I just want to make sure, is this where the count is increased? > do_rename -> inc_nlink(whiteout) Exactly. The logic is a little wicked, I agree. Let me think again whether there isn't a better way to address the problem. Thanks, //richard P.s: Thanks a lot for reviewing!