Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp225520pxb; Fri, 16 Apr 2021 04:12:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcjDi3RQ9tWeKrSD50Ag8oKjhr/Ufj2wexyd+kkasUqy8uKDdgvE6pvJ4nKeeuWhv+IVBU X-Received: by 2002:a17:906:1d0e:: with SMTP id n14mr7847044ejh.97.1618571540027; Fri, 16 Apr 2021 04:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618571540; cv=none; d=google.com; s=arc-20160816; b=AQ6/7FAx/gdjy2hPe1ZwhCk37WA60F06kF6h9G7SKZFJbRuA4TXaJFCZgPvYbunJ1S KfovFVo1LcmTBP6J6R0snWZq4U1eFChvKiN+h2+ypCLqO71z7fqH1euQn/05R7JuIbWh regFSpr5qCV1jXSK2hkP7bUMVD/+bbEylmakvrUrycjLZxnM/PrBagLYH7AewO+T1riW mIQBa6XhBPPDcSP+OUy22HFjRYIeKXlPXxptTGz0TxScEEuV20TY+EV0HONDS14+LbQo hI520yX2pGV4f48c9SY5z8v3OIxd55MyCCCj147IW6OeJxsGMjLm9tNFgMoX6T042caA /2GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wricDXbRsfuITNqF2TYSCApfJgf/TrNtRqhvMhFAZJs=; b=CF1AqNhCwZVruK/OKY/pISyBzDn2KqnVVRhIHWz8CqULNlQGRCo9nrPY83mual8CRr 28iDa7fxs5bgCOx/e7eJN0bFU8Dkhh1MUZrhoqt3u4BHM1mKk/DLVi0vU7v7SfXz3rYp 2PlP3VLUKJrci11KxJ5blJ+39o2aomNkQv1FDf3AG2kKqVExCvE3B1HfLSPITgavglKw ZwuSKzgN4t/g3ScS89cD8pqKtt1Q2RFu5mexAGRH92JHHM+V6P2ytnWdc2iSO1tr5NQ9 h3oQdIxh5dnnZXby7Hsz/nWrt7EQVgGnX1dwTp3yrxf5n3XxkMqtQsOZJ/1o9nUKb5pm WKKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Y26Meg6Y; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw23si5037706edb.433.2021.04.16.04.11.56; Fri, 16 Apr 2021 04:12:20 -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=@infradead.org header.s=casper.20170209 header.b=Y26Meg6Y; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239137AbhDPLJt (ORCPT + 99 others); Fri, 16 Apr 2021 07:09:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235011AbhDPLJs (ORCPT ); Fri, 16 Apr 2021 07:09:48 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DEC5C061574; Fri, 16 Apr 2021 04:09:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=wricDXbRsfuITNqF2TYSCApfJgf/TrNtRqhvMhFAZJs=; b=Y26Meg6YAb9XQNiI4oEZ9AFQuy wWYeKyW7C8HS2jwil4L54VgZ33G3sI1oaIR7z8ndqNXOo2388OcOr6TTZCjNFkcJ2m+ytYNdxpb7E YwQgab6tdRx2Q02tudGG62J7NUz4fzFm+2Q2OMzUhiGofWME4QtAVudHl3QpPG4jClPZLPzaLSAqE bhVhHnQDYbGu1sqBqxrgJxy4Dr0zOOPeosynVnO0Uj33kcCQ3tyg91sUGnlxgg1z1CudTO/kri5LE h/etKdNOg4QTmPIhRJyi/XN5u7l0YvkwsvkMAp86iH2jLCcYgrldJnXbqQnev78jJOiDvmCBIIh0X zb00LSVw==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lXMLY-009rOM-P1; Fri, 16 Apr 2021 11:09:13 +0000 Date: Fri, 16 Apr 2021 12:09:12 +0100 From: Matthew Wilcox To: Peter Enderborg Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= , Alexey Dobriyan , Andrew Morton , Muchun Song , Roman Gushchin , Shakeel Butt , Michal Hocko , NeilBrown , Sami Tolvanen , Mike Rapoport , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org Subject: Re: [PATCH] dma-buf: Add DmaBufTotal counter in meminfo Message-ID: <20210416110912.GI2531743@casper.infradead.org> References: <20210416093719.6197-1-peter.enderborg@sony.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210416093719.6197-1-peter.enderborg@sony.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 16, 2021 at 11:37:19AM +0200, Peter Enderborg wrote: > diff --git a/fs/proc/meminfo.c b/fs/proc/meminfo.c > index 6fa761c9cc78..3c1a82b51a6f 100644 > --- a/fs/proc/meminfo.c > +++ b/fs/proc/meminfo.c > @@ -16,6 +16,7 @@ > #ifdef CONFIG_CMA > #include > #endif > +#include > #include > #include "internal.h" > > @@ -145,6 +146,7 @@ static int meminfo_proc_show(struct seq_file *m, void *v) > show_val_kb(m, "CmaFree: ", > global_zone_page_state(NR_FREE_CMA_PAGES)); > #endif > + show_val_kb(m, "DmaBufTotal: ", dma_buf_get_size()); > > hugetlb_report_meminfo(m); > ... and if CONFIG_DMA_SHARED_BUFFER is not set ...?