Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1274319ybi; Fri, 31 May 2019 17:17:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNwD5JfvRYgYqhLdsRqJjs3uBA4UDxwx0/BdbfPsldVFg1fjHE0pkLYavWxw0ikts+Qctv X-Received: by 2002:aa7:82d6:: with SMTP id f22mr13949070pfn.151.1559348220610; Fri, 31 May 2019 17:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559348220; cv=none; d=google.com; s=arc-20160816; b=u38XVJg0yRBBx8jgvW5PgAdl9UpjmNImkoOQiPdgeSJ4DRSfjrwX2KV31iigYfXB7b CHFdEtROx0/XYe6CJoftKtAxKcSbMD/n4vMw4Xh7fAvbfY7sa5mqq8DGz/RWMu8XIfvJ Bga7jU9hEBt1p0cBL/yuqM8lxPs7NZ7rEI7VmtWuG9ryZHhuXrgnDd0Z5Jbb4lVrZ8Pj mUwFe+yN+CW6mto4GsVEl2DyvZNe2K2Epd0yhoyjLni72OpmxS4pK8IodLFO/IPOzbe8 tOU5ExL/uEKcyrG2ifoFLha8iOEd3jHmQ/CPjaZu937wnIouoILsyCBzr5Pb8ABOHYJh Lohg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=n13CYKoqUKSRVD7rvJPdVnfVSUZ4sHIYYu90oPD98pg=; b=wkxauaWgWDRrq3aNTQ3D3IiMyjDoyej58iY9KU323LOhVJgkO9TuL+oia4/kGi6qPN qVs2IBrAX4IYp2Xehv9cwLMJb7GDXUIwqwb0bDfE40bGd+l8Ivfb7LJ7wcIcAjCmW5vg lXL5lPRJ2KFaE6SExPslUvq1g4k5xCrZ6qcjrN9J0S9VXJn5KzwQ5g6A4HuAFtGbcge3 SeqGF5koSwBFMZk/5VM0rxwYe7Wp1MjJTiH+S1AEJBKbGVqxZgwBT6bO39qJPhE0v90o bb2xZjwix1XwI3fw2X4whBACX9+3NWMPmXWZvWgpM7NRq2uiYU/LNJfebXPQ9zlTDHyN MBkw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o32si8251081pld.346.2019.05.31.17.16.44; Fri, 31 May 2019 17:17:00 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726881AbfFAAOd (ORCPT + 99 others); Fri, 31 May 2019 20:14:33 -0400 Received: from mga06.intel.com ([134.134.136.31]:8648 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726518AbfFAAOd (ORCPT ); Fri, 31 May 2019 20:14:33 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 May 2019 17:14:32 -0700 X-ExtLoop1: 1 Received: from yhuang-dev.sh.intel.com (HELO yhuang-dev) ([10.239.159.29]) by fmsmga008.fm.intel.com with ESMTP; 31 May 2019 17:14:30 -0700 From: "Huang\, Ying" To: Michal Hocko Cc: Andrew Morton , , , Mike Kravetz , Andrea Parri , "Paul E . McKenney" , Minchan Kim , Hugh Dickins Subject: Re: [PATCH -mm] mm, swap: Fix bad swap file entry warning References: <20190531024102.21723-1-ying.huang@intel.com> <20190531061047.GB6896@dhcp22.suse.cz> Date: Sat, 01 Jun 2019 08:14:29 +0800 In-Reply-To: <20190531061047.GB6896@dhcp22.suse.cz> (Michal Hocko's message of "Fri, 31 May 2019 08:10:47 +0200") Message-ID: <87tvda40wq.fsf@yhuang-dev.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michal Hocko writes: > On Fri 31-05-19 10:41:02, Huang, Ying wrote: >> From: Huang Ying >> >> Mike reported the following warning messages >> >> get_swap_device: Bad swap file entry 1400000000000001 >> >> This is produced by >> >> - total_swapcache_pages() >> - get_swap_device() >> >> Where get_swap_device() is used to check whether the swap device is >> valid and prevent it from being swapoff if so. But get_swap_device() >> may produce warning message as above for some invalid swap devices. >> This is fixed via calling swp_swap_info() before get_swap_device() to >> filter out the swap devices that may cause warning messages. >> >> Fixes: 6a946753dbe6 ("mm/swap_state.c: simplify total_swapcache_pages() with get_swap_device()") > > I suspect this is referring to a mmotm patch right? Yes. > There doesn't seem > to be any sha like this in Linus' tree AFAICS. If that is the case then > please note that mmotm patch showing up in linux-next do not have a > stable sha1 and therefore you shouldn't reference them in the commit > message. Instead please refer to the specific mmotm patch file so that > Andrew knows it should be folded in to it. Thanks for reminding! I will be more careful in the future. It seems that Andrew has identified the right patch to be folded into. Best Regards, Huang, Ying