Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3316507imu; Sun, 11 Nov 2018 12:13:08 -0800 (PST) X-Google-Smtp-Source: AJdET5c77bxTOzRTqcT9MhEbqAUhnwSlUxpanXLg3QtKfJcuJxFu+LYXsBUgvrQng63UYXHS9B4C X-Received: by 2002:a17:902:6bc1:: with SMTP id m1-v6mr17646274plt.34.1541967188470; Sun, 11 Nov 2018 12:13:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541967188; cv=none; d=google.com; s=arc-20160816; b=FjeZdpHO0HDIWKq3/Vwhd5BuxLtbqKVx9hOb4snH49/+IV6LAvSMlISbHkfNTO//pK +u0hwcjlNjn9aeNi3C5YBaUmhn2oIYvvTu7cnEl3xEBA4lntPj9P6Lhlz7wLkN87irWO p4yGG9sBPfwhOyTODDCrCSBSIsvvT/k5XqX4+iAV5ptBrdn5W93TTOZBzxsi8eQEudO3 s1SgJp4Cz8tKse05QvE/GUBHDE5rNE+RO/mr0B2Ek925UhsS38dFRw5rJOyoYoA1tuyl DT9eDvD/BdVeLFEZHBinSNp22kCpr4JXKCwM8D2VwsprYzD8+8TYS/LKN3fvJp8Lek42 z4BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=p92rNOvCcKVDDQTyUGXYdJrJ1T7hyUP7D07kNkKsU7c=; b=ItC4GVkUsDUTW9D/vk4YVJGkTjq1CML8kFhZqVSoJQ/xnjt2POCOAeYSEnWI5RKOrV YoOopPVlM+djO75JBd944zlQTQHVtqIz+n40Nnd+4Q8KGOrPKp9F/sxrLysFlEIAcoF9 vh6wzZMhNEwyKRfi7RQ/fW5V9sQNO6VQYbJ0o+ypADGuJqvACwTRh8qOGok52/HHP9vY ebI0esGlrwWPZNObDCJ+tdZ90uwTTP11Rvmr0CwEEFgSnIFYbc2kc/HK3IDDVZPSAC9x Sy7yG+tFJOj5TGzkD5397cpOj1whUNZIe5nwPib8+KZMrWUjVCOMT/T2qxNkLQx+xt6C 4xEA== ARC-Authentication-Results: i=1; mx.google.com; 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 59-v6si16280369pla.195.2018.11.11.12.12.53; Sun, 11 Nov 2018 12:13:08 -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; 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 S1731411AbeKLGBl (ORCPT + 99 others); Mon, 12 Nov 2018 01:01:41 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:52552 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730702AbeKLGBj (ORCPT ); Mon, 12 Nov 2018 01:01:39 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvt1-0000l5-Lj; Sun, 11 Nov 2018 19:59:11 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsS-0001Xv-5R; Sun, 11 Nov 2018 19:58:36 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Linus Torvalds" , "Daniel Jordan" , "Hugh Dickins" , "Huang, Ying" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 137/366] mm/swapfile.c: fix swap_count comment about nonexistent SWAP_HAS_CONT In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Daniel Jordan commit 955c97f0859abef698e77f5697f5c4008303abb9 upstream. Commit 570a335b8e22 ("swap_info: swap count continuations") introduces COUNT_CONTINUED but refers to it incorrectly as SWAP_HAS_CONT in a comment in swap_count. Fix it. Link: http://lkml.kernel.org/r/20180612175919.30413-1-daniel.m.jordan@oracle.com Fixes: 570a335b8e22 ("swap_info: swap count continuations") Signed-off-by: Daniel Jordan Reviewed-by: Andrew Morton Cc: "Huang, Ying" Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Ben Hutchings --- mm/swapfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -88,7 +88,7 @@ static atomic_t proc_poll_event = ATOMIC static inline unsigned char swap_count(unsigned char ent) { - return ent & ~SWAP_HAS_CACHE; /* may include SWAP_HAS_CONT flag */ + return ent & ~SWAP_HAS_CACHE; /* may include COUNT_CONTINUED flag */ } /* returns 1 if swap entry is freed */