Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1118030ybh; Mon, 13 Jul 2020 09:46:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGCq/j0MmZCGr83i2ag1GRU3dzQ0VOjcGhWBWX78cstspNYmjqPWGFGLEceCS19CRtVV3S X-Received: by 2002:a50:fc88:: with SMTP id f8mr300302edq.314.1594658770404; Mon, 13 Jul 2020 09:46:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594658770; cv=none; d=google.com; s=arc-20160816; b=O9eeYCpRIf1aEJP47bX5KngCupMppx5pOS1QeqE+wkFe5Wi9NMQzzKW57SqWU6HD0x JK2v/VCbY9cIHS2OOBP/Q3SMqhQv3GNB6+HuDf6J83pOLjqi0CYp8PUQEkEUeIddUSYB 4QcjsQREMqdu5MTBDkhmGZQnT6Pbf7bHJm1hpmZma7dUAixokbs/YMjN6eLyAmOATDqN px4nGQgOL8Xe5q5kJRm1kSSKOz/9QLrzMTwO/RLcc+BYwf+xqHjH/o0jc6P0G6e36nhf IZnEjseSN2wb5QkCkRRokHIRlYxnyABf4RtIbK+42+2O7tBYf4jasYAb2bUqE+1KTdv4 XXaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YWJmchy5NBOUhyK5SwRwLbF2VzgzDqorZLs7Z4tlH84=; b=eoBvVxzWPPHXRDLu0aPg7Th6znTek6h4Sc/b6G4+6OmjDTXF/IGnI6fuaU/Tr4w5CO xU8ljdpfIGTGcbLo3xeN8N0fCckmSVhPr4luikeWVVHmKRGZuZtc4InmwIMQMjJp2erW HUD7by7bQhRJjYbh4iYa2LnYqbSzoB/hC0BJdH2iOxtae1bnqRczuE+INaxSIFaMXMRU 31vwr2fa4G2g8zwcP1IW/GzzAq1nDjDrVar5ur/Up87k+eFWJ/4yhoydjqCCILV97ms0 XEUVYYRD6RD7To5AjdL0IwAfdWIW+Bm952QYUGNAaQIESQx0pjTUsfeExvP3GYG20i2V 18Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=YauW5eu+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw28si9922079edb.424.2020.07.13.09.45.44; Mon, 13 Jul 2020 09:46:10 -0700 (PDT) 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; dkim=pass header.i=@chrisdown.name header.s=google header.b=YauW5eu+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729703AbgGMQpd (ORCPT + 99 others); Mon, 13 Jul 2020 12:45:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729593AbgGMQpd (ORCPT ); Mon, 13 Jul 2020 12:45:33 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 119D1C061755 for ; Mon, 13 Jul 2020 09:45:33 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id n2so14247419edr.5 for ; Mon, 13 Jul 2020 09:45:32 -0700 (PDT) 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:user-agent; bh=YWJmchy5NBOUhyK5SwRwLbF2VzgzDqorZLs7Z4tlH84=; b=YauW5eu+U1WcnMWUhCH6USIo4RRa/4DjiT3BOcbbsGW0KeXV1YoHALoYmdaAuDYylQ xW3zY6dlDd+ktaWQENSLYYleqAJBN1mwxzFTHYSZhqqCbzDPkHsybQCD9Ue2e1XZtlDx VqnuSpVjTEL1T5Bs9LKIoi7gvVEmFp1gABikk= 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:user-agent; bh=YWJmchy5NBOUhyK5SwRwLbF2VzgzDqorZLs7Z4tlH84=; b=tYbz+Kh9ObKOkXfvv5pTYUJ4CItYjkPltPFT9koxl16g4BvYvUCt71m67Oa7Lsl6Ec yYgpg3E1XUJ2qTLXtvisKjqt1fnp/Mke+4deLOGndgXwiGCSaq6Hzx1Wk/m8CmuW/C6f Q5hmbMqsrTyvxxtyUJidnfgutQn1WTiRI54RvOZiXVPM5xIXz/B+on2HQ8oJaVHJDvcq O9OQiGnLI8E37+HsgnTqrsq98RL0l/ansRG0NFUg9Ek3gRnL69Ijw8B1R26IDQS5RijI YGcdY9yNtoz12a3vKbb3E5hBaPQZ8DfHVFEWQtcn48IIhDdEfl5oIJx05SG5RCy2SN8J 8V2A== X-Gm-Message-State: AOAM5337N2mQry5q9LY3wM7aE6NJT2wtGN//lKVmeAn2SQCwPoVzeYlN JAj0JZKakWzCJK9u37Uv3OxrWw== X-Received: by 2002:a50:fd12:: with SMTP id i18mr256850eds.371.1594658731595; Mon, 13 Jul 2020 09:45:31 -0700 (PDT) Received: from localhost ([2620:10d:c093:400::5:ef88]) by smtp.gmail.com with ESMTPSA id s7sm12186223edr.57.2020.07.13.09.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 09:45:31 -0700 (PDT) Date: Mon, 13 Jul 2020 17:45:30 +0100 From: Chris Down To: Matthew Wilcox Cc: Andrew Morton , Hugh Dickins , Al Viro , Amir Goldstein , Jeff Layton , Johannes Weiner , Tejun Heo , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH v6 1/2] tmpfs: Per-superblock i_ino support Message-ID: <20200713164530.GB1065134@chrisdown.name> References: <2cddd4498ba1db1c7a3831d47b9db0d063746a3b.1594656618.git.chris@chrisdown.name> <20200713164145.GY12769@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200713164145.GY12769@casper.infradead.org> User-Agent: Mutt/1.14.5 (2020-06-23) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matthew Wilcox writes: >I don't think that works. I think you meant to write ~(SHMEM_INO_BATCH - 1). >Or just ino % SHMEM_INO_BATCH which works even for non-power-of-two. Er, right. I now wonder why I didn't just write `ino % SHMEM_INO_BATCH` :-) I'll send again with that fix.