Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp909264rwl; Wed, 5 Apr 2023 09:13:15 -0700 (PDT) X-Google-Smtp-Source: AKy350asBCalULbOTgUjhW//QSmH7Ieeu8Pqv5AKb6ZwEPkFgTgUVzZ/S9oaM6OFx8XRMA8uKIrM X-Received: by 2002:a62:1cc6:0:b0:62e:11:2e57 with SMTP id c189-20020a621cc6000000b0062e00112e57mr5777606pfc.22.1680711195476; Wed, 05 Apr 2023 09:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680711195; cv=none; d=google.com; s=arc-20160816; b=y97IHzzefssHSveMgVGhxu5yyLNMjjitaaYD+HawmNEJB5cVWdBxYLznu1DwMrNST+ 0UQd/Ma161MlkfQJ3mDqXnlGdQYBKXroeEe4iEk0hJAqUZD2bGGkpCo7DRekEe/BDoIr +r0YXTt32Rdpsk1N1wy6wWHgn++p9Lh35zvAaeDxsZv1kPoc1X3BlZ/sI87uTAb4OXOf 9rjOjFjrwkXN68vzqpe60I7fLavYHvHI/0z+r73LysWv+JVWnKRrXOICZn2kxYuNrit9 ZFaWyciyf+Lixuck79HFySWMBZIXYDilfUiqzSc1lC6RZEfE4LAH7QDHS76nPoTSQj8G y+pg== 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=qldM/7DycK2kXcPvoSTAVSBVXOLKfEWimS0mzWEN0PA=; b=Yt2pRjmgiDjwGzoQ53JVeh72Dj2W67imfBi4aKm0wmeywWOxlrEbx/M1NRxgxxfica 7b1uhXcb1bCUP/6Ym28HG30UumTu0d4UnuzUgEQJL35WttpQ1gpisq9jXqd+PW6tiK7b t28LYkA9gnkW56VEyCJJW2rpVBENfQmw7k9dzU3Sq6j+kwIMh3WHdNI0cuB3t4TGwRmr rybYHd6cBPm+gKQ0+25fZ3X+j67pzZoahJDfR7A3ReU9fwfQrn82+hfJ4cb9VOMHBBpe MU9zwGl6ULAtPQramhe51YS6BnLHSWwiM1UufMIT6z0CgYp0d/bVtw6GsBNGhm5k8jXb yKTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=uKSk6Om2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t71-20020a635f4a000000b005138fd7f1cesi12774707pgb.89.2023.04.05.09.13.01; Wed, 05 Apr 2023 09:13:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=uKSk6Om2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233852AbjDEQL7 (ORCPT + 99 others); Wed, 5 Apr 2023 12:11:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231967AbjDEQLw (ORCPT ); Wed, 5 Apr 2023 12:11:52 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C46D110D8; Wed, 5 Apr 2023 09:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=qldM/7DycK2kXcPvoSTAVSBVXOLKfEWimS0mzWEN0PA=; b=uKSk6Om2/NU3maf33acFrtO6gu OIv1XCwY94g5GkoS4nSdVHO+fLQ8yoVy+2oEIJb6Eo3G0IvV88q4ayMvjqIwIkhy9jUo/dDncVRnx u+FDJHTdt+0wDUVbp1CNAZyEQnlWJtPf53hY9zehTgyAL2CL1aYzhjezH39+RWlYzuamcLYNkzBMR gyC0cepCL3opJ5+N7WaQJlrqWASdTKBDzl5KN8gAS6OZC7+lIVrO3jC7sJmUwBmsmKsBcwZiQGM9M CK7UY2ggk7Q+b5T6z26zL9N5SsI2Z+tj3aiNuFML+3zLB2VD092PdAZgb5UWTSfuvpyP5ogr+yYpg FLUeMU/w==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pk5jQ-0054uI-1P; Wed, 05 Apr 2023 16:11:32 +0000 Date: Wed, 5 Apr 2023 09:11:32 -0700 From: Luis Chamberlain To: Linus Torvalds Cc: david@redhat.com, patches@lists.linux.dev, linux-modules@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, pmladek@suse.com, petr.pavlu@suse.com, prarit@redhat.com, gregkh@linuxfoundation.org, rafael@kernel.org, christophe.leroy@csgroup.eu, tglx@linutronix.de, peterz@infradead.org, song@kernel.org, rppt@kernel.org, dave@stgolabs.net, willy@infradead.org, vbabka@suse.cz, mhocko@suse.com, dave.hansen@linux.intel.com, colin.i.king@gmail.com, jim.cromie@gmail.com, catalin.marinas@arm.com, jbaron@akamai.com, rick.p.edgecombe@intel.com Subject: Re: [PATCH v2 5/6] debugfs: add debugfs_create_atomic64_t for atomic64_t Message-ID: References: <20230405022702.753323-1-mcgrof@kernel.org> <20230405022702.753323-6-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 05, 2023 at 09:04:27AM -0700, Luis Chamberlain wrote: > On Wed, Apr 05, 2023 at 08:26:18AM -0700, Linus Torvalds wrote: > > So I realize why you use atomic64, but I really suspect you'd be > > better off with just the regular "atomic_long". > > <-- snip --> > > > So something like > > > > debugfs_create_ulong(... &val->counter ..); > > > > instead of > > > > debugfs_create_atomic64(... &val ..); > > > > Hmm? > > We already have debugfs_create_ulong(), it just uses unsigned long > with no atomic_long. I can just use that then. Oh but I don't get the atomic incs, so we'd need debugfs_create_atomic_long_t(). Luis