Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21470632ybl; Mon, 6 Jan 2020 05:18:29 -0800 (PST) X-Google-Smtp-Source: APXvYqxGycSDCmj2C0X/TRxPAu8gL8bM1g48XRJnTkLek5WeVt3uR3VKn2ckAGVONDtNOdcLxgKP X-Received: by 2002:a9d:74d8:: with SMTP id a24mr121577324otl.100.1578316709044; Mon, 06 Jan 2020 05:18:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578316709; cv=none; d=google.com; s=arc-20160816; b=zag7581jWggCMW6viBrp0wY2S1T8zHun97ZVRr1W+X8NpfvpfP+kFkXC8mSUNqXlf+ Gk6JDU7qwTgk6nn0W+WYTHkfFMlcnDRFj3a7ltST4qwmyWlIpT63Be8uWW1PpZGGPOAt znUauWUE74OZ8M7Bxvz+tnAdZ/WOnPxqKNEIABCpWq+2E7L8+ziuxiNW/Tf9JjIhrieI gHV5Lej6iNstwP4DWXWlNPglMwvgzxXlI/QQ7hgcDWc9Arck7eLKTgz9prLT3sVDbM3j 35J+fphDvd3/2qrI2b7NPW85lq+j9U8hjXRsiFke+jDpqeUaDP+KnDFbL9Lgf3gNNdgH z2+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=FR/KySs86ffBpbHH+kpMl4ePalFaMSRboiPIel9rYrI=; b=slmxBYWebJ+5SEtKaAy+Bv8MIBU+TaPTVNjwiC1jLUe4SUnBQZvs5/7OVGuGPM78/a uUEJ0afWD+SmDv6QsjTIPvqtCdZImCCGbaQOobT8hh4thZB9j9FeXphvKK1cCc4qG3RX zeVUrhwnsDlUZg0kFTUTL/5j8rOOzf9eadei4gmvsN+0f8y6m3KcXdWFjknqMuWib00O KTJX238b4j2OMOg/rHqN1hFWX5UN5O49MFi5shNr3mjc9vwyUeqFECqW69rj/zMnrMg7 bBwAxZL+idrfQrtHjomyI7x4cvfZ07vtuYVad0RP/A65x93E1JQAjXspDNbOzJl/RaXl ufQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=w0ppQOyx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f194si33309430oig.243.2020.01.06.05.18.17; Mon, 06 Jan 2020 05:18:29 -0800 (PST) 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=@chrisdown.name header.s=google header.b=w0ppQOyx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726524AbgAFNRW (ORCPT + 99 others); Mon, 6 Jan 2020 08:17:22 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40021 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726340AbgAFNRW (ORCPT ); Mon, 6 Jan 2020 08:17:22 -0500 Received: by mail-wr1-f68.google.com with SMTP id c14so49542088wrn.7 for ; Mon, 06 Jan 2020 05:17:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=FR/KySs86ffBpbHH+kpMl4ePalFaMSRboiPIel9rYrI=; b=w0ppQOyxa9BpzzUmN9s31SbUIxxKvXZjxngFTwTH+s32uOaLCPYjI/iHVnLLcWlMSj yyjUqXbbtGQxjoFWSn+ep7gJJ1grJgq/J5VOaiPeHf+usEwXYKp9d0xdtjoloz777RY+ MUWECSR/Oz2K/azWLZm6hQla6gYy/D4RHlOo0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FR/KySs86ffBpbHH+kpMl4ePalFaMSRboiPIel9rYrI=; b=j2WBaRClKe2ZcndAEN9Mxv70obfBcEAopQ2toBFBowRRCUiQrs2+cWzUxDuoTOewhM z3Q4Z/ArOILjiPmm5y0TLzrlqVOegAj401qWFrQHCnZGtEvmqfPlpKoIsEYNOETlTEM2 j6J6mJkMiowbYJw170Bn3S7OEG2orrAcTdBbQJVOO264SgkuBpeKokpsN86day4h6tOr 1BdY3bz40ntY5Vx1Oc2dqR8DE9umbKCwPOgtsGIND90ygZuQN87wqsj9VX0IzMMMa5aM WNPVDOeyGxdB4ESWMyfv4LHfNBH5sEk+D2SoWcM0PUPGU7hJUiKdipQIzF+r3h1dBBSY Ol8w== X-Gm-Message-State: APjAAAVPrLqkkDaTwlUA8kV18xL+/0qQh5FnMScgYV6X2Oz5HTv0a7Fw Vn+6hSwexMTgkjaPugmKlJWsRA== X-Received: by 2002:a5d:6441:: with SMTP id d1mr103180769wrw.93.1578316640253; Mon, 06 Jan 2020 05:17:20 -0800 (PST) Received: from localhost ([2a01:4b00:8432:8a00:63de:dd93:20be:f460]) by smtp.gmail.com with ESMTPSA id o4sm70942309wrx.25.2020.01.06.05.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 05:17:19 -0800 (PST) Date: Mon, 6 Jan 2020 13:17:19 +0000 From: Chris Down To: "zhengbin (A)" Cc: linux-mm@kvack.org, Hugh Dickins , Andrew Morton , Al Viro , Matthew Wilcox , Amir Goldstein , Jeff Layton , Johannes Weiner , Tejun Heo , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH v5 1/2] tmpfs: Add per-superblock i_ino support Message-ID: <20200106131719.GB361303@chrisdown.name> References: <91b4ed6727712cb6d426cf60c740fe2f473f7638.1578225806.git.chris@chrisdown.name> <4106bf3f-5c99-77a4-717e-10a0ffa6a3fa@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <4106bf3f-5c99-77a4-717e-10a0ffa6a3fa@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org zhengbin (A) writes: >Use spin_lock will affect performance "Performance" isn't a binary. In discussions, you should avoid invoking the performance boogeyman without presenting any real-world data. :-) We already have to take this spin lock before when setting the free inode count. The two sites can be merged, but it seems unnecessary to conflate their purpose at this time.