Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3403792ybt; Tue, 30 Jun 2020 01:43:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0LIpxbLttTLRZlu+822pvck9iU61e9JTqNSySmCg+2rJ6eZUdN4cAakqpETJpr7EycKSp X-Received: by 2002:aa7:d64b:: with SMTP id v11mr20972011edr.381.1593506607468; Tue, 30 Jun 2020 01:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593506607; cv=none; d=google.com; s=arc-20160816; b=x2jef/UPwpiTJ466/YOW42tCVT2Wj/77+hWGKdk0LiZNKcnf6G1qlw3cSfjqcxTvqT +PO5MYRvAJLHQotPNxEH0rTQAfPJ1gkRAsrURJunF6YWAgLOnmfE+BfRL3rVQeOP/9Jp EIG0r9bblgK3Efg1ijOhxnB6dwnkwGcy9o3xVjQdM/j8cO4yrg/uH0MQ0kCwUGeOKs2I +0ZfDkkL5jrnI97NqXrNPHtlPAjdKADwULE5H8In0L44E1Y6Q1sX5l/y7ds2fyocSXnK l74cL1Fd4DscmxvJXoM0jij7WOXFHoHwdOMFajWbKDjXmIFuON9V4pDPzHEk7UeSvR8H UJKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mMek0t2pSkJxyvN4LFvUyYB33GHpZByMfTgNNPMGb7s=; b=STubiJA7RaLuJCHkTLTxJMh9ZzFb/hQVBirtugPIoYVCXQ47LUxhoCqdM8MO90+g2n y7p3Tf+TDPcm7wBTR1wcUC6aVDU7w9/63uaq6vvsuBwFPAKdwhjqxbaONOezz7NH3Jv0 hWQtT3BKfqAlRZWmHOcjNP4csOlMwVAcEaDAdYSwCRbXFmdFQJoAkiL8Zr2kTY5Ca15p Oa4oMgDB2bIEUDB9rYTn2bYiqxGZZ4BNzSbgP4G3UaX7YyunGAq1t/cByTxg/fqLQwmC rggTiPxrPRfvbkWcbAJWQPs3+j87eJKt+M+t5X9TJ7DvyZwugHzEUpSm6mnaohC0VFDn MZrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YohsMXTp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si1297364ejd.91.2020.06.30.01.43.04; Tue, 30 Jun 2020 01:43:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YohsMXTp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1731605AbgF3Imv (ORCPT + 99 others); Tue, 30 Jun 2020 04:42:51 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:37307 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728132AbgF3Imv (ORCPT ); Tue, 30 Jun 2020 04:42:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593506569; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mMek0t2pSkJxyvN4LFvUyYB33GHpZByMfTgNNPMGb7s=; b=YohsMXTp3xrfA4kEKHtXBt+euLAusq/8bVkAHJdmxNvBKH9OfUicHMA02tFNxQS+cugKE3 lhqXspa4HrIibA78UjmGJ/vKYSO2IxE6nZxjvfl4T8ErPwNfdtVw+BheK4ePG6sszyJXyF Az+oDkutGNyqwVrtFtZFZXv4S06bz4U= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-314-xaprAVJLPJWW_5PpBSGALg-1; Tue, 30 Jun 2020 04:42:47 -0400 X-MC-Unique: xaprAVJLPJWW_5PpBSGALg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0EBEE107ACCA; Tue, 30 Jun 2020 08:42:46 +0000 (UTC) Received: from t480s.redhat.com (ovpn-114-56.ams2.redhat.com [10.36.114.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 67D7710013C0; Tue, 30 Jun 2020 08:42:41 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-s390@vger.kernel.org, linux-mm@kvack.org, David Hildenbrand , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Andrew Morton , Gerald Schaefer Subject: [PATCH v1] s390/extmem: remove stale -ENOSPC comment and handling Date: Tue, 30 Jun 2020 10:42:40 +0200 Message-Id: <20200630084240.8283-1-david@redhat.com> In-Reply-To: <20200625150029.45019-1-david@redhat.com> References: <20200625150029.45019-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org segment_load() will no longer return -ENOSPC. If a segment overlaps with storage, we now also return -EBUSY. Remove the stale comment from __segment_load() and the stale handling from segment_warning(). Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger Cc: Andrew Morton Cc: Gerald Schaefer Signed-off-by: David Hildenbrand --- arch/s390/mm/extmem.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/s390/mm/extmem.c b/arch/s390/mm/extmem.c index 105c09282f8c5..5060956b8e7d6 100644 --- a/arch/s390/mm/extmem.c +++ b/arch/s390/mm/extmem.c @@ -401,8 +401,7 @@ __segment_load (char *name, int do_nonshared, unsigned long *addr, unsigned long * -EIO : could not perform query or load diagnose * -ENOENT : no such segment * -EOPNOTSUPP: multi-part segment cannot be used with linux - * -ENOSPC : segment cannot be used (overlaps with storage) - * -EBUSY : segment can temporarily not be used (overlaps with dcss) + * -EBUSY : segment cannot be used (overlaps with dcss or storage) * -ERANGE : segment cannot be used (exceeds kernel mapping range) * -EPERM : segment is currently loaded with incompatible permissions * -ENOMEM : out of memory @@ -627,10 +626,6 @@ void segment_warning(int rc, char *seg_name) pr_err("DCSS %s has multiple page ranges and cannot be " "loaded or queried\n", seg_name); break; - case -ENOSPC: - pr_err("DCSS %s overlaps with used storage and cannot " - "be loaded\n", seg_name); - break; case -EBUSY: pr_err("%s needs used memory resources and cannot be " "loaded or queried\n", seg_name); -- 2.26.2