Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4591740pxf; Tue, 23 Mar 2021 14:47:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz08L/0wqh0JV3fUXsY2DF6GWvAY8cYrMt/uV09fvQbbQxsNaUyRUrdY5UBiuQOmrwKVeHb X-Received: by 2002:a17:906:8a65:: with SMTP id hy5mr285611ejc.250.1616536040604; Tue, 23 Mar 2021 14:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616536040; cv=none; d=google.com; s=arc-20160816; b=gokvJuVsgfGriwTqMvUQ5xX7IKNKbI3R9w/VK3m3WDN9D/qnkUxBIAA/EXO1LtdeYL q+ocl7TfYqscHcrB7hs+sxJROhgYO/+g64kIowrjRG/ml+6TWSkdoYlDp5+JNL8jDypk RPyzUyuTcf78oJTiIiTLIA8S21Wv3pIqexmncM09OYJePRHY0YrmW4m7HpV2zfGYnXYe lbgvDFiMtcuFAai/kK5aoRFQAoymgaVzNyoLyxR4+MyskY7lFQSk+LOu63v93Nilsxmu 0MffGhIF/iT8TzGJGbiVtFi08Uf+ZvDF0yJ/i2m1mO0qXuC4ZHPtXCgMrXZbgWFSnj9x jNNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=K+Vy/OTllIvHIVln9G3YJVAy6ekqqDZ8CuhvmaqTkx0=; b=EiyGD0fdHfCrmrOUCVSuLYJ8chCut+C3rYbhoBRKCYzPEI78iGzmkemRxpAFPFmOHz 49uh+/7FDIr1Sm8T5etTN8mfcv0HvOUf8nhDGGtqh4p5Fro4oQQ24c4Xt9/Yf0hhWf1P +sPpYdGJR9+1Oob7x2dnVjLoWm1wzULTfIi7yKbGIyWHzrTMn86tBkli8b9VUR8k8HGO fnhxceN13H9dHQmkCd66viB9z4xvnEW3TsvpOq+vVZyE8yJ2+1yA2XYiJC1T9o+A5MgM o/TF3Rh+58Y7gquA6AGtLi1W42i/pnajhOfqxmaBGYwJX5mSBcXpQdzHgq9wbLZBctAF ShCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ghDamRh9; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci1si175230ejb.3.2021.03.23.14.46.53; Tue, 23 Mar 2021 14:47: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=@gmail.com header.s=20161025 header.b=ghDamRh9; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233615AbhCWVof (ORCPT + 99 others); Tue, 23 Mar 2021 17:44:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233659AbhCWVoJ (ORCPT ); Tue, 23 Mar 2021 17:44:09 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96268C061574 for ; Tue, 23 Mar 2021 14:44:08 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id b4so4918723lfi.6 for ; Tue, 23 Mar 2021 14:44:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=K+Vy/OTllIvHIVln9G3YJVAy6ekqqDZ8CuhvmaqTkx0=; b=ghDamRh9+co6qwZ/IJEaS7romSP7nKOFh7yTaf34FxmI5+Ebgpq/VgV01b5F8qTeyr Psuhv0YKetPEY4Z5djEtvis38ayXGklxc+sAkhkNvPJOr39fJoqILtvpjBWXVpDwvTuz Rzv4AxL3Sg6cTKWge9PKRUYfJfFLrx7UcPMu9UrgQoQRkG4Hgo15cGRrKUxZ57q1G5LU GQs/Br2oP5s1tLpi6XbgLm0rheHCCWI37j7MbLa4ahHp7F7wP6JQ8JV/ouUi3JTQ/0wf 1qZJU49hpqvXFidmbAi/Hhumerb1LQfuLjORbGsqiNhPlBEe3ikXjeXAcBnJpr1a9p4+ lnlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=K+Vy/OTllIvHIVln9G3YJVAy6ekqqDZ8CuhvmaqTkx0=; b=o0on2pgVl6cAOlkjkeU2Jp7/GO/RcxUd5w9tDsAFZHEbwp007pn1Euh0tephKFZupb 3r/o9cFuE8wrsxLsRfCcjeCDHRbZ8eBlmizwdFHGWH3CzBoGqDd1STZNIly6/vI4Ozv2 Kvk/XAZMcWJO6OwBwRZZdkI3Qo6n8doF4HP6CUy8/tHzV1MNgA8ObVvaoJDiksh2F6qQ 1jUt9Aoooqp3s+vZCS7gwliSTn8SWGM1sf4GjGO3T544cL890TJq1w8gVnrQuEJaJ/6p WD1tDM4dk5yjRhvBEXOzd/ebbVsO5u7WxzbAFpjw+l11jRCzwI5/XWiMVE5INs5ZE/TG rtug== X-Gm-Message-State: AOAM530ZCMAOIk1L6Tlsj5M7g1ZbfTH2vCDNZ6jIrM5jSIbvnA8l1tGg xa/2bHDhh0ZZRyPFhCumumU= X-Received: by 2002:a19:c14f:: with SMTP id r76mr53127lff.218.1616535847130; Tue, 23 Mar 2021 14:44:07 -0700 (PDT) Received: from [192.168.2.145] (109-252-193-60.dynamic.spd-mgts.ru. [109.252.193.60]) by smtp.googlemail.com with ESMTPSA id r123sm29569lff.27.2021.03.23.14.44.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Mar 2021 14:44:06 -0700 (PDT) Subject: Re: [PATCH v5] mm: cma: support sysfs To: Minchan Kim , Andrew Morton Cc: linux-mm , LKML , gregkh@linuxfoundation.org, surenb@google.com, joaodias@google.com, jhubbard@nvidia.com, willy@infradead.org References: <20210323195050.2577017-1-minchan@kernel.org> From: Dmitry Osipenko Message-ID: Date: Wed, 24 Mar 2021 00:44:06 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210323195050.2577017-1-minchan@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 23.03.2021 22:50, Minchan Kim пишет: > +#ifdef CONFIG_CMA_SYSFS > +void cma_sysfs_alloc_pages_count(struct cma *cma, size_t count); > +void cma_sysfs_fail_pages_count(struct cma *cma, size_t count); I'd also rename cma_sysfs_alloc_pages_count to cma_sysfs_account_success_pages and cma_sysfs_fail_pages_count to cma_sysfs_account_fail_pages.