]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/uv: Always return 0 from s390_wiggle_split_folio() if successful
authorDavid Hildenbrand <david@redhat.com>
Fri, 16 May 2025 12:39:45 +0000 (14:39 +0200)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Wed, 28 May 2025 12:13:25 +0000 (14:13 +0200)
commitbd428b8c79ed8e8658570e70c62c0092500e2eac
treeb6f9c6fafc67c243aa692558f38548e871bbed3e
parent3ec8a8330a1aa846dffbf1d64479213366c55b54
s390/uv: Always return 0 from s390_wiggle_split_folio() if successful

Let's consistently return 0 if the operation was successful, and just
detect ourselves whether splitting is required -- folio_test_large() is
a cheap operation.

Update the documentation.

Should we simply always return -EAGAIN instead of 0, so we don't have
to handle it in the caller? Not sure, staring at the documentation, this
way looks a bit cleaner.

Signed-off-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20250516123946.1648026-3-david@redhat.com
Message-ID: <20250516123946.1648026-3-david@redhat.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
arch/s390/kernel/uv.c