Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1149869iob; Thu, 12 May 2022 12:17:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlBFGDuV0tm7RtLYJgP7RQTk2p2ujro6pV3pe6zwgXbOfQ609ht6QTttb9TAe3jxYPvvQS X-Received: by 2002:a17:906:7309:b0:6f5:ea1:afa with SMTP id di9-20020a170906730900b006f50ea10afamr1271029ejc.170.1652383031909; Thu, 12 May 2022 12:17:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652383031; cv=none; d=google.com; s=arc-20160816; b=mrykbA86oQPHftkiwgh0yuL9l1wAPyhNvA9jZaGjUcJRgcua1CfytxftEvdi9E0gI4 a9T3jAlm+pxASmh2ei1/x00+pZ2G6JBKKT64hoyVfywN1lWvo9rmjEqNQutHeHtWcagY Kn+oC5syO1iOtYtAfxKLhvabrPHbhgR5j15AP78DVHbYCFjo4tfKnjENIObs0aW6LR+8 WWuy3TamwR2Y3Gw7wvlCl3HoRlg7uSJJRvQivfip3Oh/e0Oa5tvONpgrzbw0P3FXtskk +pfxPhyh9uFwnvR4Zgpa0/3wtjEdb2iP6Y/WUXHP7H9N06BQqbc5Qz3e4FQP6jwmvR57 Ywug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=LcRouEMbpVJV3CF6tUltj5T8/RbRRxoKRWpQh58FN08=; b=ZWBnfqp0Y2EXxA9cL/ZPLIumT/6NzjnoRTTQp1VQu41s8rgWW69+rwHUZ4nVtuML9C 4bPPR17GHYu9Ruo0AQRhNrL+CPGGJEwr/1pTKXvs9fLupuQAa6vlKkq0PbBhSBKRaeRG aKHZH6YN52nzGYvkZoRDRg3AckV0MJTfqXyVRv8GKMpP5N09iqUCLsWAPJ22IjnHy5+v yOmyRXdmIbOYdv4I0wzAiHtNGGXZjDE6Tj3uR1EAElZcYEdjCtePi8U4X0sV4JdGIktH TBD+Rw8Aiyqp67UtqJU4DrV8TkQZf6NKtgU62VTu8TXMyo2lvUkIcuVY0DUwbxRGgnZx ApKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QuR4nqLP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a05640205c900b004262b42b2b7si148952edx.602.2022.05.12.12.16.45; Thu, 12 May 2022 12:17:11 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QuR4nqLP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354461AbiELNcs (ORCPT + 99 others); Thu, 12 May 2022 09:32:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354447AbiELNco (ORCPT ); Thu, 12 May 2022 09:32:44 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4023C13F1F6 for ; Thu, 12 May 2022 06:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652362362; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LcRouEMbpVJV3CF6tUltj5T8/RbRRxoKRWpQh58FN08=; b=QuR4nqLPXjLi4Ab0Ed2sBADZsZQQMc9vkVMeHj7b+mZxBh9UsdBBHvwFM/csU10aEK1S/c 4+8u53Z/1wXBrC0jvFAlWueUv9z1fbmuz/DyVA5OSH+LLDD6CYlVy9J2DjThY24KA4ckt1 cF5a3WUohe+cdp+xXqGfxeWGwvhRMgs= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-537-hIr0LyzIMYGanzMBVJ2f5A-1; Thu, 12 May 2022 09:32:41 -0400 X-MC-Unique: hIr0LyzIMYGanzMBVJ2f5A-1 Received: by mail-wm1-f69.google.com with SMTP id k16-20020a7bc310000000b0038e6cf00439so1703331wmj.0 for ; Thu, 12 May 2022 06:32:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=LcRouEMbpVJV3CF6tUltj5T8/RbRRxoKRWpQh58FN08=; b=5QDG1H5IPPzK2M11dRdLWX2vv6Akoo1WKtT4PhPq647LDWLRqybYReaixLdkZgjwoz 7WUa9MbKRwx38V9ZXdblh2meZyAPSKaAH7QcNaRsrjN/R2iKLtLsi6kKZy+EyRXQiEiZ ITxrLys+Vr9kN/+JUsWueBZ07ELBRJOfueoweOoY1ZGwo6/iRVVohg16XCDJMCf2SS+R esB9Wbp9t5Zs8oHYcmMbW/ZSCjulXEvWr44GJKRR31P0M6FAPjWF8K2vnwj54pzxx4fu zgoVwKlkczVwa0h4J3+zbOdRlQ0wemDnlbw/NQVKz+klJj+syWU4P8F89Oz9xr9HUr4s bkqg== X-Gm-Message-State: AOAM530XcgXpWMukSJgMoMNEt6SBXgGVIzTsLoqQnjTU+XPjelB53/l/ FEwL2Sbqi1Jm597WYdeApyGsk/b2x9xTHfZEgxfSBkXuZaWrJhnBxQeP7gyReSodZ6sMRvBKcwV aHt+BDMiPmB1vEYEYevxqvfQ+ X-Received: by 2002:a5d:690c:0:b0:20a:d9d1:f5ce with SMTP id t12-20020a5d690c000000b0020ad9d1f5cemr27506922wru.295.1652362359990; Thu, 12 May 2022 06:32:39 -0700 (PDT) X-Received: by 2002:a5d:690c:0:b0:20a:d9d1:f5ce with SMTP id t12-20020a5d690c000000b0020ad9d1f5cemr27506905wru.295.1652362359771; Thu, 12 May 2022 06:32:39 -0700 (PDT) Received: from ?IPV6:2003:cb:c701:d200:ee5d:1275:f171:136d? (p200300cbc701d200ee5d1275f171136d.dip0.t-ipconnect.de. [2003:cb:c701:d200:ee5d:1275:f171:136d]) by smtp.gmail.com with ESMTPSA id az14-20020a05600c600e00b003942a244f50sm2812086wmb.41.2022.05.12.06.32.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 May 2022 06:32:39 -0700 (PDT) Message-ID: <8adbcdfe-3c30-0928-b74b-36fb308339e5@redhat.com> Date: Thu, 12 May 2022 15:32:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH 05/15] mm/swap: print bad swap offset entry in get_swap_device Content-Language: en-US To: Miaohe Lin , akpm@linux-foundation.org Cc: willy@infradead.org, vbabka@suse.cz, dhowells@redhat.com, neilb@suse.de, apopple@nvidia.com, surenb@google.com, peterx@redhat.com, naoya.horiguchi@nec.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20220509131416.17553-1-linmiaohe@huawei.com> <20220509131416.17553-6-linmiaohe@huawei.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20220509131416.17553-6-linmiaohe@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On 09.05.22 15:14, Miaohe Lin wrote: > If offset exceeds the si->max, print bad swap offset entry to help debug > the unexpected case. > > Signed-off-by: Miaohe Lin Reviewed-by: David Hildenbrand -- Thanks, David / dhildenb