Commit 0ef5d691 authored by David Hildenbrand's avatar David Hildenbrand Committed by Heiko Carstens

s390/extmem: remove stale -ENOSPC comment and handling

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: Vasily Gorbik <gor@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Suggested-by: default avatarGerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: default avatarDavid Hildenbrand <david@redhat.com>
Message-Id: <20200630084240.8283-1-david@redhat.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
parent 8e1398f8
...@@ -401,8 +401,7 @@ __segment_load (char *name, int do_nonshared, unsigned long *addr, unsigned long ...@@ -401,8 +401,7 @@ __segment_load (char *name, int do_nonshared, unsigned long *addr, unsigned long
* -EIO : could not perform query or load diagnose * -EIO : could not perform query or load diagnose
* -ENOENT : no such segment * -ENOENT : no such segment
* -EOPNOTSUPP: multi-part segment cannot be used with linux * -EOPNOTSUPP: multi-part segment cannot be used with linux
* -ENOSPC : segment cannot be used (overlaps with storage) * -EBUSY : segment cannot be used (overlaps with dcss or storage)
* -EBUSY : segment can temporarily not be used (overlaps with dcss)
* -ERANGE : segment cannot be used (exceeds kernel mapping range) * -ERANGE : segment cannot be used (exceeds kernel mapping range)
* -EPERM : segment is currently loaded with incompatible permissions * -EPERM : segment is currently loaded with incompatible permissions
* -ENOMEM : out of memory * -ENOMEM : out of memory
...@@ -627,10 +626,6 @@ void segment_warning(int rc, char *seg_name) ...@@ -627,10 +626,6 @@ void segment_warning(int rc, char *seg_name)
pr_err("DCSS %s has multiple page ranges and cannot be " pr_err("DCSS %s has multiple page ranges and cannot be "
"loaded or queried\n", seg_name); "loaded or queried\n", seg_name);
break; break;
case -ENOSPC:
pr_err("DCSS %s overlaps with used storage and cannot "
"be loaded\n", seg_name);
break;
case -EBUSY: case -EBUSY:
pr_err("%s needs used memory resources and cannot be " pr_err("%s needs used memory resources and cannot be "
"loaded or queried\n", seg_name); "loaded or queried\n", seg_name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment