Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4377690yba; Mon, 29 Apr 2019 19:28:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzthGV1QaywkCQaF6/uBfc49g2Hyw8oT63oKUR0QtMtMRY9T8rxkMLcgD0yYGUuyLjanscV X-Received: by 2002:a17:902:54c:: with SMTP id 70mr67130409plf.210.1556591314031; Mon, 29 Apr 2019 19:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556591314; cv=none; d=google.com; s=arc-20160816; b=T4jg/1QSTrTlEoUoEQR+bCsZjkidzFxaxKLmF3dv2BDrTxIPGpusbLKunxj3k7McfM 7ijnP+TxrxiXx7fD/AH+QYn40UYn2ubrSjJaVIidGJdGA4YW+SrtwYsur9fliocWDrz3 6NZPNtsuEk0Nr17lmaV6H9RUZ62VumUblvu9bK4u4i4i8byJMZcrLAWhkOm8Udoo4Box aYSwI38vJPFROY3+Gx/5mPdujn5XD/b5sUwAFebfHLwW4MeIGkOn0FxVBuirsLxUIw4R YPmSpbxeG5IldEUfxWtkhFH+rnTrjcnd40JpoOJ/ejncib+pSQHVFkgu5NMXbX39W8wm K5DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=gXFsgHzPD6J7UQ9KSqF9iz7GNYGix/DEVgHu32cVH5g=; b=gfMJrC1mlHxfZpBqT9PfZvVAs0jMlAyMYPqZXhYDxyH9zCtpXbX800sEAJ766dr1kf thKJx/BoaLFCmowx4hi7s2SDiWywaLMrBBPSp/Sc62+Eo/bIONyjITR+rmj1BD4JgG63 q7/02BX5GYmWGDTKZzQ3eQPamwIS2dPp64sxJWpWgtJhxMW+4PmsT0mTH0UH8kVs7IgS dGYTaTyL+g2MNf1VT2/CgGQqo5lpq5LFgTNK+ALUCzBwFzcKpaxIqsE39X5F635sGKyK yjr1cndBqGdrpYmr0xcBGmGf/6xAYKFgl1cBDInNt0govhkvEw52Z180CxnyyijTudJj pPTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ecObLWPT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15si9821110plo.310.2019.04.29.19.28.18; Mon, 29 Apr 2019 19:28:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ecObLWPT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729909AbfD3C13 (ORCPT + 99 others); Mon, 29 Apr 2019 22:27:29 -0400 Received: from mout.gmx.net ([212.227.15.18]:58017 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729803AbfD3C13 (ORCPT ); Mon, 29 Apr 2019 22:27:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1556591240; bh=gXFsgHzPD6J7UQ9KSqF9iz7GNYGix/DEVgHu32cVH5g=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=ecObLWPThGzTkZT2MRHMPOnQP171R05kW8fSRKMrzTbi/ZyW+mX9CJDmnQMJuGFRX xj0A5BzfmiMVgPjjvSPvNXjC3IjsLI+647jxkYauqsQ4uEB+GyDRBj25mOII40mn+2 OLhToYtIKurmDZjCF931t+7JXDGE3H9GFavPY1RU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.189.147] ([218.18.229.179]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MZkpR-1hEzex1hFn-00WmUJ; Tue, 30 Apr 2019 04:27:20 +0200 Subject: Re: [PATCH] quota: set init_needed flag only when successfully getting dquot To: Jan Kara Cc: jack@suse.com, linux-kernel@vger.kernel.org References: <20190428053921.5984-1-cgxu519@gmx.com> <20190429214956.GA6740@quack2.suse.cz> From: cgxu519 Message-ID: <5d005f7a-0e5b-57a5-44d4-83b12fdfa9e9@gmx.com> Date: Tue, 30 Apr 2019 10:27:15 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190429214956.GA6740@quack2.suse.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Provags-ID: V03:K1:zWtgcCT0QM3/aVAXP0ltgTAFWSo7O9XnzuXZJPCBCtcv0h0lCNQ qCjiccIdXUSij1gwbSf97s5xhBaTG5JjKBKdoyqpa/IUgcsAA7IRaxYdzHcq4BlZZ0IuOXD mWQpEo9pPFlgbv/iM/l7bCzONE9q2lKBwK9RIwzQdCOHsfWT/AYk9FixfJW3dSHc6ShsriC 4ptWZn6Qb3rDX12cxg4BQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:LOiZKh1A8Us=:DVKf3QwjlBgSquh2ha0Lt0 t7KuyZORXRIuYtVnDKB5ab/hpBF5MVH7pUcqgxrCLumelwTLUlgxfEMjiXseNzQairj4glrU1 PnYGHJtLf2Ix7O/L3EPDYahNk8OEDTyOEs1m2Wilui/jWrb6Cwqp6YhwDKQJ9Sk//+cX8Mp6V LaDuUNNx8+pXfRMs9lIxQIzPS44y3J6za2RYQtPCgXqOA3L8Tcc3cGCCBs6BP6Dtj2cr2D4Zl TFD5EdMQf8YHXDrhMC2OZyFU6hfYovB95WE5aSduiXx5hl5eseSk3ayhASNAeehnHtC/GkpNi DJbnVOWP9Kn9YZYPgyhNT4z0ynf5HALtPuJUxWAmIBzqCXZOyovnaO0zxcHPpQREMGZSw6r3y Bk0/PwBwUXphsWREseIyRr3q55bVCr4xfiKc7Vi2V7ebS0ScXb03Iu3A5lxWxWUFAH/3MmeVd +sQNcTwIzt8PLpsCBjZ7EGL3BsWB5ZHtR0TBinkR3lnStKlYr2GC0ZGTVO8Qm8ScAjIV/KRZk nU5eVyDBjRX6rZwqilLZaQXkKQYVi7nV7KP9egVZbXIcK0s/u7WWK0m8FIs7+57svk77x2JcZ k0p4BdR2XYrcYiUjtrCkJxPvKK30xEym/7Sc/EH9fYCkEqlWREUttGmf4aWIrEYkYAHHVsafr F59cPbMplUW7cQgS3NadEh7H+popF9wKkqwbTaX5M5VbLRD+LnBAIXbJowJ2ZtLB86rRk+H1v S3Qdnw8iIZHqGtrLZdW25ezUDZ2UL7zpye1hrhjb6lWkIksTHQxj4conD98pUtI2ReMZkA0Yy jrKUW1XnfzXwArebCakN7skKeV3J6CfK4znnDcupmd72VgtKU2wnITGnImG2jiVXARw7yXdT9 mfz7CkrS3/FxQ78HPTv+69gVCO983YgbWywB4NJssSPNoFoJnNg358Pf9ib2L7utxQ3K808JH Pxx7MnztQeQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/30/19 5:49 AM, Jan Kara wrote: > On Sun 28-04-19 13:39:21, Chengguang Xu wrote: >> Set init_needed flag only when successfully getting dquot, >> so that we can skip unnecessary subsequent operation. >> >> Signed-off-by: Chengguang Xu > Thanks for the patch but I don't think it's really useful. It will be very > rare that we race with quotaoff of dqget() fails due to error. So the > additional overhead of iterating over dquots doesn't really matter in that > case. Hi Jan, Thanks for the comment, I got it. Chengguang.