Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp967954rwi; Wed, 19 Oct 2022 05:17:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6fgMnOvNscH5TBo4FkPtd+LW+WUTPZDACM/yZgFkKoy0N6HPHPMX8jgKTU5h+O5FjJEiAj X-Received: by 2002:a17:907:1b1f:b0:72f:56db:cce9 with SMTP id mp31-20020a1709071b1f00b0072f56dbcce9mr6192043ejc.605.1666181870991; Wed, 19 Oct 2022 05:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666181870; cv=none; d=google.com; s=arc-20160816; b=xt75cke2rddGQrYyejBhewdmM9ca9XdSVCxrYnqWYT/P7C9H+BExD2Wo5duuXReayG D2aE+vEROH8JwbQpvby4+SKMWtylEnOwyNuBLzgyZnF1HlR3ZAjdUUE8TLd6KZGU3S5P S2QWQMGIoo/FnQdC92VW2MhCkv988AkLBc/Mb/KvDJthjSdDrCkCyN502BdTTDf2DMM/ HUjz7+Oh7sIW/l/prOWaKP+3yPmiu4++CY/fpMIJfvtyPvbAKSTeReGDU/loxFa0NKdU hGAMuvhKkaCXdinHQ5jPRg3z3cbyWKvXJ+5MvMDj7CXzwmjkjwt/FxSTSL8+GwYhiBRt 3ciQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=GjBwKBFhSfpea4acgA05YoTMbnyS9dt3lQhmZ4rO6zQ=; b=n5kpIknYQiYSrdI47qqjJhNanPDDflTIvy+aXa9scNvhOZDe7VsaE2vrRpm3LTq83L +phRgihyG5JQGb5aZsHwr9N+jYtnnTShbrM1bgRdGUrFJ+SbNFpitsVsh/NsacmIZWfV YoPEf+UgXkS8cjRHWo3kPs5U4yPXSQYR6OBDLMGp2bqb2J+zOmKUHxvjfQ/FpbLRpABB dEk7fhrzxg0iL5RsL1a5LTwvEyPEqpTkh8xJz4mwPQn5qoJxPqfUzZILSw+T9gvwSHpH f6+ZFbTFeB8gzNHrShRZ4NHAH/bxLbVgsiia57Gd3QNYyxk9Rn+mk0jdFCZuGqWDkp2U +s6A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p19-20020a05640210d300b00451d5c11293si11999968edu.496.2022.10.19.05.17.20; Wed, 19 Oct 2022 05:17:50 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232545AbiJSMKm (ORCPT + 99 others); Wed, 19 Oct 2022 08:10:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233219AbiJSMJf (ORCPT ); Wed, 19 Oct 2022 08:09:35 -0400 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF74645F6D for ; Wed, 19 Oct 2022 04:45:31 -0700 (PDT) Received: from dev011.ch-qa.sw.ru ([172.29.1.16]) by relay.virtuozzo.com with esmtp (Exim 4.95) (envelope-from ) id 1ol5lf-00B8K8-EO; Wed, 19 Oct 2022 11:56:33 +0200 From: Alexander Atanasov To: Nadav Amit , VMware PV-Drivers Reviewers , Arnd Bergmann , Greg Kroah-Hartman Cc: kernel@openvz.org, Alexander Atanasov , linux-kernel@vger.kernel.org Subject: [RFC PATCH v5 6/8] drivers: vmware: balloon - report inflated memory Date: Wed, 19 Oct 2022 12:56:18 +0300 Message-Id: <20221019095620.124909-7-alexander.atanasov@virtuozzo.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20221019095620.124909-1-alexander.atanasov@virtuozzo.com> References: <20221019095620.124909-1-alexander.atanasov@virtuozzo.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 Update the inflated memory in the mm core on change. Signed-off-by: Alexander Atanasov --- drivers/misc/vmw_balloon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c index 91d4d2a285c5..3bfd845898f5 100644 --- a/drivers/misc/vmw_balloon.c +++ b/drivers/misc/vmw_balloon.c @@ -1507,6 +1507,7 @@ static void vmballoon_work(struct work_struct *work) queue_delayed_work(system_freezable_wq, dwork, round_jiffies_relative(HZ)); + balloon_set_inflated_free(atomic64_read(&b->size) << 2); } /** -- 2.31.1