Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp10866246ybl; Fri, 27 Dec 2019 03:40:33 -0800 (PST) X-Google-Smtp-Source: APXvYqwmCW01vhugpWGM8rRJu+CMzdmq7fv8Ogn4QTQUZewdKRtYXa9yluW9AGaqQLBzRcCausW3 X-Received: by 2002:a9d:7519:: with SMTP id r25mr46995714otk.284.1577446833202; Fri, 27 Dec 2019 03:40:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577446833; cv=none; d=google.com; s=arc-20160816; b=vgz0UXDaihAm/Mps/lAwpFqTpPxPGyZSzHJZDUW0me89v0RU1TT3O6CZRLihsNcmPj N7pmWEeCNvdblXSJWwb04BWPCXMvG+4Ru3HzLVkIxM/Kqs1/IfO4Li4JAobkiSfqciTc uHEtI7abqtHwqcbszTUOPcgIq8KtlwZGgcU7X57SF4DMzDTAhntO5P0Z0/z1WBZv+MM1 PHZzcIjbkg1QeRL0aU3mQu98olb3YN/FB0/9MGElg6xYODndGUeYA7T3DkmPnuUQiRHM 3lPONC3xwbPcYhWyaA3yPQHR8jxjgmKSAVOdcrXIXv0owFws1U79/O/+o7VuRqII/lcs FHBw== 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=bpIiCK5WqIgrEaa234cHRdees/ayR1lDtho4HV6gLnw=; b=dVNDnf0y7MrqWdikhjmvPngTIKB4gtMPhtjaI3q5y516oF6lvDMyzScdyan0nM3KWU A0y4JNhPVhCsEtx1DA3uPsWAmY5DEGRX15RiJKnHPvxU4K7BcIG2ZCPgSCbmhaorR41w T5Zuo/q7bkSW+4vKEtEM5f0a8e6qVG8c8o4ihSAiBZ7OrKEWaUHbSLjX6lqeg0y72MeQ xz/78zKltxfrfxV8Z+pgeXdU+tR70BWOattr13W3nthYRiTiH83llPgRmhFBi8wQ2QjM Za2r8gZe5Sjr2KKgguQZy+hMIug9HLTR4+XU2uae1fCSD2dej+abPq65nrgrfwyH1jxb pyuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b="Y/fnMhtm"; 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 g9si17091966otq.68.2019.12.27.03.40.20; Fri, 27 Dec 2019 03:40:33 -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="Y/fnMhtm"; 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 S1727166AbfL0Lhi (ORCPT + 99 others); Fri, 27 Dec 2019 06:37:38 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35307 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727144AbfL0Lhg (ORCPT ); Fri, 27 Dec 2019 06:37:36 -0500 Received: by mail-wr1-f68.google.com with SMTP id g17so25841808wro.2 for ; Fri, 27 Dec 2019 03:37:35 -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=bpIiCK5WqIgrEaa234cHRdees/ayR1lDtho4HV6gLnw=; b=Y/fnMhtmNh8pgB10eb6arwxjSyLM5+I+paY7YL2IY/MObHLoX8vbJpouoENflytyaM WqU+HtXQz4r16r9lvNxZKbTRaCliJrULZE9RAjeLemCG2ImoRtxfc7X+bp7ZCtPIIzbE fkXql1aoW++4m07KH7nGnnx+kQqDJSCp1fHag= 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=bpIiCK5WqIgrEaa234cHRdees/ayR1lDtho4HV6gLnw=; b=QlsiznDsgl0FdAIi2AIKvllbL5CRSBQHNRgRMZKnIMBM+xaDVYcDe4e5ttSKXYhlTB mJ0nGnrT5r5bTPB3BPIXZIk4rb0YSP4WpFkjFIBjYvofs/d1kEoP4GyPdr0fR27iGtdY RB32oDfl/s/D6z9ByAkt6qolkn9rPitu9SoMdvp1YjW7NughVcc9K+RXboeCkgalB4mW 0SrUfJAQ8/cRngIuwqG0kSpnc+X4FQZyjBdNDQMp65SBf74pgG0oC8D1HJwQ315xLNJl fy9Zvh3arodqdRn7WWWjgsTJa/+Qgr4evjPt8b+ze/d8jnT/HvUqB5bxk5sn3V5LYXSK nq9A== X-Gm-Message-State: APjAAAXcUj0e4S3qnuLDR2KLMBKPL6wBqUA643RUkbKXxsBJB685pWix R9uKI8hUEIABcABR436kZhzFkQ== X-Received: by 2002:a05:6000:160d:: with SMTP id u13mr51720244wrb.22.1577446654952; Fri, 27 Dec 2019 03:37:34 -0800 (PST) Received: from localhost (host-92-23-123-10.as13285.net. [92.23.123.10]) by smtp.gmail.com with ESMTPSA id r15sm10972362wmh.21.2019.12.27.03.37.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2019 03:37:34 -0800 (PST) Date: Fri, 27 Dec 2019 11:37:32 +0000 From: Chris Down To: "zhengbin (A)" Cc: Amir Goldstein , linux-fsdevel , Al Viro , Matthew Wilcox , Jeff Layton , Johannes Weiner , Tejun Heo , linux-kernel , kernel-team@fb.com Subject: Re: [PATCH] fs: inode: Recycle inodenum from volatile inode slabs Message-ID: <20191227113732.GB442424@chrisdown.name> References: <20191226154808.GA418948@chrisdown.name> <88698fed-528b-85b2-1d07-e00051d6db60@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <88698fed-528b-85b2-1d07-e00051d6db60@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org zhengbin (A) writes: >How about tmpfs and hugetlbfs use their own get_next_ino? like > >static DEFINE_PER_CPU(unsigned int, tmpfs_last_ino), > >which can reduce the risk of 32 bit wraparound further. This won't help by itself, because in the case presented the wraparound almost solely comes from shmem alone.