Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp47133pxf; Wed, 24 Mar 2021 20:32:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqhy+ntX/U8MVI3JnpG87TIWZZ9uwTt5FXf3oCtpKiwzKdTQEB3kj+1vmk4srBtD9pjV1O X-Received: by 2002:aa7:c0c7:: with SMTP id j7mr6750658edp.298.1616643155536; Wed, 24 Mar 2021 20:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616643155; cv=none; d=google.com; s=arc-20160816; b=cttF+ayOb75ykelBgsItGJ7bE1v5z14dc/hNLlFOwNRzq9XjoJRXAYBOFBr8sYmXDe qB7gupuKrjyI5Lyfeun7JXkVkwJXavCnjJR8Byh1Rl6qT5hHZ8jlmhrfRbcryGEiGxOn mvJMJSlTvJOZ9u3Pl4zQ+k30z+wWnhuMkNGn/R991Q3mDT0Sd4WmyGMJUuFOq2OhySYP VTDP45Awi3OyT/4x3bV8RonXOjmUQFaAfHe3WpSAh4MxgCnf4me+XPAeqJH4SQArodum HEbTh8dvGMuolvCvBqhNsu/rE7tTcznpmBN0EV4S9Zl9I9300h7pAAo/faJspc8RV6Nx 6fLg== 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=4D/l2+6KHDLLWR4B5U/x02N6vRyCwEwFRlTNp/wGF4o=; b=zfTayCfFIU4BgrJAzHHEsNFPQfgpUjPCMFKQOsfTroZHPUt3f6XK+z5Ltmf9pt75pA nelilsUoWs8pSQo00ybYeDcd0S4aIZk46TUvw1f0auUZsbk439N1iwA2hbJz4C4/cCDl OxNUs3n35xepYyoRbVMIDQ5q27ciya7HjY2cZhFbcJ8nwiOP1sOAwbiLoQfU5U520fn8 KvrP86G1EKGUMCkXlpzcIcgM14DsDhqi08YuUwMxhokIhh+iI7A/ImwdkeNudDjmxXw/ vhdDGYzjDQWbbXL9EeINSlub9FJtc91Zg9dbl/uVBYZtO4UZa00LG9DInyhlTA3Tteo8 IcAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hAFDLHj6; 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 be3si3232576edb.294.2021.03.24.20.32.13; Wed, 24 Mar 2021 20:32:35 -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=hAFDLHj6; 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 S232263AbhCXWQq (ORCPT + 99 others); Wed, 24 Mar 2021 18:16:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231854AbhCXWQZ (ORCPT ); Wed, 24 Mar 2021 18:16:25 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCD3FC06174A for ; Wed, 24 Mar 2021 15:16:22 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id i26so18432200lfl.1 for ; Wed, 24 Mar 2021 15:16:22 -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=4D/l2+6KHDLLWR4B5U/x02N6vRyCwEwFRlTNp/wGF4o=; b=hAFDLHj6fjyaz0CpQe/wXAhQdPZckXiCaly/4AYL3Dkx1KVFOPLy4FRdE1mDiYCTpF yfW0W9jRDl2zTI22o9I5dHPuagw96xyQp+zTVWkBTytBNS8TQNXNgUlwQkoceqeQILVR P5ClI8+EZkN5tviNLnEJ4lhm6jQUfYpmKdKEBHQcl//djc6qPej2uFNG+nDsFxYWBW01 2fx5txdgB1E34M2U0XMCIk/Sc7BNqjD8OJXAaxkKlrp7ESUJTxAhgind5phCWk4veEow D3Syzgg0W914P2swEoOaKJ0LQ3DJABKOzBgG6sIXH+3575llrzivPjZTuK4sMTc6afgp XJPA== 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=4D/l2+6KHDLLWR4B5U/x02N6vRyCwEwFRlTNp/wGF4o=; b=TU6huWZlR7GKyn/wXwYvWffJgQrKmdYxRBLIQcMfS7vhHjHS3E0OgMMeKNFWAOHZQE nAHLT1+6Y3l0vUcGw2O5faynk0egyARX95mNbGVvDK0HaNfdLilf0we6m0haNUCTnUUP hZ78W7bCdFmGu7GAfnoZaukFTg93DzI2jEAittWqHG1aOcQ+754lAf0pIFRWy35QJRkn HHlNAlm2oyBnLKHKDUBPbXjAWJdNA9Yu903LynlQFhxzW46MVOVuGJCJ+7ATxiTwrbYH JvQczyUDrvbGU8piv20iMOh5VOqshQ81Ekg1ARHzTEYs/thRXmeQ0cL1QCXVwJLTqezr W79A== X-Gm-Message-State: AOAM533+9PoRb+tCTMb0Kh3tXB5HVqDlirnS51PzTCAp6TnMjCtI5B3/ XiP+gkWov8Nlf9Cf5rMkc1Y= X-Received: by 2002:ac2:4ac1:: with SMTP id m1mr3192377lfp.446.1616624181470; Wed, 24 Mar 2021 15:16:21 -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 t5sm421099ljc.78.2021.03.24.15.16.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Mar 2021 15:16:21 -0700 (PDT) Subject: Re: [PATCH v7] mm: cma: support sysfs To: Minchan Kim Cc: Andrew Morton , linux-mm , LKML , gregkh@linuxfoundation.org, surenb@google.com, joaodias@google.com, jhubbard@nvidia.com, willy@infradead.org, Colin Ian King References: <20210324205503.2132082-1-minchan@kernel.org> <65840bfd-4471-7c8d-ce71-c4705baf3bfe@gmail.com> From: Dmitry Osipenko Message-ID: <2f0ef658-9848-b655-f7c0-fee6aadb9846@gmail.com> Date: Thu, 25 Mar 2021 01:16:20 +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: 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 25.03.2021 00:55, Minchan Kim пишет: >>> +static ssize_t alloc_pages_success_show(struct kobject *kobj, >>> + struct kobj_attribute *attr, char *buf) >>> +{ >>> + struct cma *cma = cma_from_kobj(kobj); >>> + >>> + return sysfs_emit(buf, "%llu\n", >>> + atomic64_read(&cma->nr_pages_succeeded)); >> nit: Algnment isn't right, should be better to write it as single line, IMO. > Let me make it align rather than single line since I know someone > who keep asking us to not overflow 80 columns unless it's special. > I'm actually one of those guys who complains about 80 chars (where necessary), but in this particular case it only hurts readability of the code, IMO.