Received: by 10.223.176.5 with SMTP id f5csp1078759wra; Wed, 31 Jan 2018 00:43:28 -0800 (PST) X-Google-Smtp-Source: AH8x227agvlsDLwFagLy8J8ZUTRkesZIJ6VXOCW45b4EEyLmK54WmTsERBGu+POPEkypN/1copUR X-Received: by 10.98.157.26 with SMTP id i26mr32790484pfd.12.1517388208855; Wed, 31 Jan 2018 00:43:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517388208; cv=none; d=google.com; s=arc-20160816; b=ByS0V1QHD10Q9XSfyRTjTp68LJZV0A7XXGiRmF/Y7cTBQpG4a+zdRz0697ICtb0YIz 637C/w1tptQ71rn95XQEQ3+q0BgK7yaEbB/I5JS/epCXwk79/t00kWHfOBzOldgTooOB jElBVb224T71C6xiskSlrJTtwKux5JsjMmgSqHjbouixb26bL9XF/YD7W7bqCofZF6aa W6K83e4h2oQHU0RDGKsP+U5qeBqoMYhuxBKvcbaPjpUCuGTDW4qLwRIuJ/beyz0cen/q eX1YKRktENzRo3szISWJA6nlQhbdreIK/PJqjyNFTleKzrxT1iGbjLLQmpfvDxpxAbro kJ7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Y2KUxd7vH8MhroO/ZSIHJJYiqkBGOlOXrRb3jsfAh90=; b=F5F9lUJPpmOHOftULCosI2fqx0dP4x5cD/cxyLpVds6vHy3dQuaf3dStlNMGjcZZw5 BR8KoIIU9giID30tnBsOBZkFBMbmRPkjnovUVrzpd+6FbOx2vCVDx1flA8dotC5U6nXe a9XFwQGUguhmeiEgOOMNCHZS8Ww44X3IA61iWYZmQU2Nz9t8TFPwhzw3qeYNr7oy2mDQ YIcx/cMNqX6ZFQhMs9i4z9uR265RbzZFNC/sgUZXeFnyE2lbjwliGK5LtMV1x1Rchh2C rjWfSoOpAPvi9Zdc+BLV40KN+jkFSfR6AQx9TtRoaNmZc36K5fZAgJxy1Fm+zWoW0HCp wEPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=5LhOuiJG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11si3214099pgp.751.2018.01.31.00.43.13; Wed, 31 Jan 2018 00:43:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=5LhOuiJG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752427AbeAaIIU (ORCPT + 99 others); Wed, 31 Jan 2018 03:08:20 -0500 Received: from mail-bl2nam02on0072.outbound.protection.outlook.com ([104.47.38.72]:16288 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751678AbeAaIIS (ORCPT ); Wed, 31 Jan 2018 03:08:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Y2KUxd7vH8MhroO/ZSIHJJYiqkBGOlOXrRb3jsfAh90=; b=5LhOuiJGQMVtM3cIE3UfjNnce7NA7VNf1nQq5xoid1a78D6vH38dyFwVScCj1pmS9MOZ8sgt6YwbOPTLskKm+0GJzPoutOfnpCsp06xoO9Xx0S/ItXP4U/Fqj+53efqO6UEODacC0apxPsbTai1+BVqpKg2PtFrzxo+yrPDVr5g= Received: from MWHPR1201MB0127.namprd12.prod.outlook.com (10.174.98.142) by MWHPR1201MB0111.namprd12.prod.outlook.com (10.174.98.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Wed, 31 Jan 2018 08:08:16 +0000 Received: from MWHPR1201MB0127.namprd12.prod.outlook.com ([10.174.98.142]) by MWHPR1201MB0127.namprd12.prod.outlook.com ([10.174.98.142]) with mapi id 15.20.0444.016; Wed, 31 Jan 2018 08:08:15 +0000 From: "He, Roger" To: "Zhou, David(ChunMing)" , "dri-devel@lists.freedesktop.org" CC: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "Koenig, Christian" Subject: RE: [PATCH] mm/swap: add function get_total_swap_pages to expose total_swap_pages Thread-Topic: [PATCH] mm/swap: add function get_total_swap_pages to expose total_swap_pages Thread-Index: AQHTmNtYoBUw/9kRPkGbswRNbnupYaONlMmAgAANf7A= Date: Wed, 31 Jan 2018 08:08:15 +0000 Message-ID: References: <1517214582-30880-1-git-send-email-Hongbo.He@amd.com> <9ecba5f4-3d4c-0179-bf03-f89c436cff6b@amd.com> In-Reply-To: <9ecba5f4-3d4c-0179-bf03-f89c436cff6b@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Hongbo.He@amd.com; x-originating-ip: [116.228.147.241] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR1201MB0111;7:SpCROZkyEuUrClByRVLRC2VtrFiGzaMluroMGcoJQkfcytL/kOg9ArkmJR81HsFOnWVAzDyzfsyw0lg0QZ7L/zDzMn+NjmdxDrXfoAugCehLwv7LtYotY1yBzMgEbb4NFLX5sWny9mmA28xvvG2WR52tkjH3PSBfe4HZEZwafaleEd8iLWQpjNqjWQ6o911/w8VUGf8bULhSlCx1wHRZTVPVj42r8YcMwbGKdpXpNwbXP5Je58WUVbwhl3h7BSjY;20:n6nwY2/RA7Ns7aT8vMwLesOYuoP/juKKCng6pPaZ/jz65OrPrHhKdu+cVnMA5uCIk/uUaePohHSjvpl0+D0/OKLBWDamc9lKEo5yn2pq+BIzOYO1+ea7rbki5tCRIMX8NSyJG/Cvbg5FZ8OIQn1hG52GoZanCwtwy2ptm6/oNQ9ELIW/iqoX2RDtMQd/3OFo47brxEo/S2L/9AViAQEfNYUXYi9+ytlFA7jaEonDUzegIMH4CUnjQTx9SvsMBCmv x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(39860400002)(366004)(39380400002)(376002)(346002)(396003)(13464003)(199004)(189003)(66066001)(26005)(77096007)(9686003)(59450400001)(53546011)(2501003)(97736004)(6506007)(99286004)(25786009)(76176011)(7696005)(81166006)(5660300001)(2900100001)(81156014)(33656002)(6116002)(3846002)(102836004)(8936002)(8676002)(4326008)(316002)(110136005)(68736007)(478600001)(229853002)(6246003)(53936002)(2950100002)(14454004)(966005)(72206003)(7736002)(6436002)(3280700002)(55016002)(74316002)(2906002)(3660700001)(86362001)(105586002)(305945005)(106356001)(6306002)(54906003);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR1201MB0111;H:MWHPR1201MB0127.namprd12.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: d1af1fb6-7820-4647-68c1-08d56881c7ee x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020);SRVR:MWHPR1201MB0111; x-ms-traffictypediagnostic: MWHPR1201MB0111: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(767451399110)(217544274631240); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231101)(2400082)(944501161)(10201501046)(3002001)(6055026)(6041288)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(6072148)(201708071742011);SRVR:MWHPR1201MB0111;BCL:0;PCL:0;RULEID:;SRVR:MWHPR1201MB0111; x-forefront-prvs: 056929CBB8 received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: AuIV96YpjquXnBFhJbrDz9JXih/LALWJaC4P0f2LNwc2ig7QmYWiva3zGFpYdvLsIGtho9b9K/RzaruT3bWNgQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: d1af1fb6-7820-4647-68c1-08d56881c7ee X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jan 2018 08:08:15.5903 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB0111 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CUkgdGhpbmsgdGhpcyBwYXRjaCBpc24ndCBuZWVkIGF0IGFsbC4gWW91IGNhbiBkaXJlY3RseSBy ZWFkIHRvdGFsX3N3YXBfcGFnZXMgdmFyaWFibGUgaW4gVFRNLg0KDQpCZWNhdXNlIHRoZSB2YXJp YWJsZSBpcyBub3QgZXhwb3J0ZWQgYnkgRVhQT1JUX1NZTUJPTF9HUEwuIFNvIGRpcmVjdCB1c2lu ZyB3aWxsIHJlc3Vs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