Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp10864549ybl; Fri, 27 Dec 2019 03:38:32 -0800 (PST) X-Google-Smtp-Source: APXvYqx1tLXDjuYvXoYYjQbJxjNr6RoISnBza79SOgU1a3heocdLwtXvBqqnzSI/3o3oHKEjWj85 X-Received: by 2002:a9d:7ada:: with SMTP id m26mr57976987otn.111.1577446711952; Fri, 27 Dec 2019 03:38:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577446711; cv=none; d=google.com; s=arc-20160816; b=e+z8NkzGUFqkmCxUHfhPD6CcdG32ySyzaz7StAIOTzLCj4vG2a2VJaWiRrjy9qkO3l 7gpQWhBqPyVQLrmOr54LLtBMuLW/Vp8GYPnw7Cn8mcL0GkxDWB8/FKRgOSQ4MmrUx3RP PxGQxBBLqo2o7n8EOseZxC7XdUom/VlCi2SvDK073kOCBWjTZSG7Iact3dX0PDllzZs2 4Rr90E/nrg80vF8TJJjBx5AbnwhzeQ5ZGJAnRdYdmNzViP4hbB33OYk+gsP8CJO3jmCy 4VOwCCPH2wcsuqHeJB6Xfq6iBoC1q0clHLJ1txXUhZ/JE62StHilJ1hHOoTDdSXgBOUT ZD/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=vYLFB/uLWChvEa1SjgamsZ5n2OMiY1NO7RNKVGxv64I=; b=e2DYDHGIoQjnmk5NHOkWN8gRSNnJqVKCuFcjuIbUNWF6ai3hh7TqGTq+3R3TpNNSnE 6GhgdYwTfBpZeMk0BxGeEwheARPbMltPqLjYeGpvMzFcTQ2GwkPqdqxWjPhCDF9BDPTU 40TM4qYxBpz20zzQMOCrKk6qF+51z+Pk18j8hOMhg7i6rIRAQzz45wzbSibg3aS84Rti W21etm0rMW78FZxtE8Xh9giOp6fH4cDMKTt157hIaXka92vq11GQmQUxENkhtqKOfdH0 n81A83PwO0+X/ECFz15vCWwHISUOgcujbmrCQvDvQs1GcJq3zk7IHIAs2ItImMUNBVlm 2qsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=wA9y8xWm; 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 f81si16668012oig.110.2019.12.27.03.38.18; Fri, 27 Dec 2019 03:38:31 -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=wA9y8xWm; 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 S1727092AbfL0LhB (ORCPT + 99 others); Fri, 27 Dec 2019 06:37:01 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38528 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727002AbfL0LhA (ORCPT ); Fri, 27 Dec 2019 06:37:00 -0500 Received: by mail-wm1-f67.google.com with SMTP id u2so8046524wmc.3 for ; Fri, 27 Dec 2019 03:36:59 -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=vYLFB/uLWChvEa1SjgamsZ5n2OMiY1NO7RNKVGxv64I=; b=wA9y8xWm9ulX0jcjr/Q4fMa+CIjLe1WNOnrKOG6FQ86CpFV+mqxMkBOftKML0d6v/J rCxUMWOO2JA/WJCAQuwBzCkWnauR8fPiOuXQXFeuR40G4SNS0oPJPgZ1GxcPUloGPyoc rTAqTUplNF/TJVhhOC3Qn9Zo61xTe4hukSBt4= 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=vYLFB/uLWChvEa1SjgamsZ5n2OMiY1NO7RNKVGxv64I=; b=QgOlz2GeibYonCVHnf0I0gfmS0oMx8yP4Off5KQm3FBf28uod8HMprwxxyzGC1Db/7 WenUkaLj7Qo1ZLIILPWykmhih9m6yPqNHGki4iYDnO+WhHjO6KFfnvp12NtzvrkcpMqR bLQ6GPtFcax8KSsmPrp/ajiKAzaHksmynsPF0YTOfeKCMChwIVpwgZVULnnuufZitkBS B4JZc04uQpaRVJpf4VvGhEwlcK6EHKbdVudocJEhoLbVd8lRYrHlo/vVtX0WkRIKcLD1 yv4CRRTYzW3Mra9aQCHp+qs7oztcq80Si4sX2o0dhPjqdypKWfLB2s0+pZdrp42nrIau vcQA== X-Gm-Message-State: APjAAAVE6oZYo5tg2Nh5OT+kKg1v+fn9YZpUuWxr2GWLf+URHZdas7L4 18QLQomYfyTBxDSl4kjRFi8YEQ== X-Received: by 2002:a1c:8095:: with SMTP id b143mr18803322wmd.7.1577446618889; Fri, 27 Dec 2019 03:36:58 -0800 (PST) Received: from localhost (host-92-23-123-10.as13285.net. [92.23.123.10]) by smtp.gmail.com with ESMTPSA id v83sm11119135wmg.16.2019.12.27.03.36.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2019 03:36:58 -0800 (PST) Date: Fri, 27 Dec 2019 11:36:56 +0000 From: Chris Down To: Amir Goldstein Cc: linux-fsdevel , Al Viro , Matthew Wilcox , Jeff Layton , Johannes Weiner , Tejun Heo , linux-kernel , kernel-team@fb.com, "zhengbin (A)" Subject: Re: [PATCH] fs: inode: Recycle inodenum from volatile inode slabs Message-ID: <20191227113656.GA442424@chrisdown.name> References: <20191226154808.GA418948@chrisdown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Amir Goldstein writes: >> - bpffs >> - configfs >> - debugfs >> - efivarfs >> - hugetlbfs >> - ramfs >> - tmpfs >> > >I'm confused about this list. >I suggested to convert tmpfs and hugetlbfs because they use a private >inode cache pool, therefore, you can know for sure that a recycled i_ino >was allocated by get_next_ino(). Oh, right. I mistakenly thought alloc_inode was somehow sb-specific and missed that these don't have any super_operations->alloc_inode :-) I'll reduce it just to those with this explicitly set. >I'd go even further to say that introducing a generic helper for this sort >of thing is asking for trouble. It is best to keep the recycle logic well within >the bounds of the specific filesystem driver, which is the owner of the >private inode cache and the responsible for allocating ino numbers in >this pool. Thanks, considering that alloc_inode isn't sb-dependent like I thought, that definitely sounds reasonable. I'll do that and send v3 then. Thanks, Chris