From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A29ECC3A5A9 for ; Thu, 16 Apr 2020 22:01:39 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5AF522223F for ; Thu, 16 Apr 2020 22:01:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Oo8EIsV+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5AF522223F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D73658E00E8; Thu, 16 Apr 2020 18:01:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CFBC78E00E6; Thu, 16 Apr 2020 18:01:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ACD168E00E7; Thu, 16 Apr 2020 18:01:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0195.hostedemail.com [216.40.44.195]) by kanga.kvack.org (Postfix) with ESMTP id 880A78E00E7 for ; Thu, 16 Apr 2020 18:01:34 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 3731C824556B for ; Thu, 16 Apr 2020 22:01:34 +0000 (UTC) X-FDA: 76715090508.16.boat83_47defbf139e54 X-HE-Tag: boat83_47defbf139e54 X-Filterd-Recvd-Size: 2983 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf01.hostedemail.com (Postfix) with ESMTP for ; Thu, 16 Apr 2020 22:01:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=LUwhSTK1vMW3m2USN7WX85bxcMLmlt2NFl9UXdFjwsc=; b=Oo8EIsV+2xcGYrCltYUJlK2dh/ TtFkLrmnCc0WOs62+X17ev094OaKmdn4i5Rkcgfk0i+kwdwoH2dVZsvo6XQOkTiBSg0tcnSQ0JmDJ JSGAG998zr4qabZ8tjpyzHeC8uhBhu0L0VSx37ubLPJjpJTIEmgavnN4HlR3p3seytI/3YNQbW3Yi fe+kgdgB5vkI9uKk5g7tVcOVVTzpu4B6QxOc1NCSoeg079n5ef2AuIX7V6fGAnxEYc3kmfhPow/jE LE8Hb2dN5Oz3gw84FWeDN3Dcj0L8qidWVWWVAfVIL7Qt8rfThSiOSfK8lDSCYKgirWgypDC/QQ4Sz 0X/9eZiA==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jPCZg-0003UV-J6; Thu, 16 Apr 2020 22:01:32 +0000 From: Matthew Wilcox To: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org Subject: [PATCH v3 06/11] s390: Add clear_bit_unlock_is_negative_byte implementation Date: Thu, 16 Apr 2020 15:01:25 -0700 Message-Id: <20200416220130.13343-7-willy@infradead.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200416220130.13343-1-willy@infradead.org> References: <20200416220130.13343-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Matthew Wilcox (Oracle)" This is the generic implementation. I can't figure out an optimised implementation for s390. Signed-off-by: Matthew Wilcox (Oracle) Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger Cc: linux-s390@vger.kernel.org --- arch/s390/include/asm/bitops.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/s390/include/asm/bitops.h b/arch/s390/include/asm/bitop= s.h index 431e208a5ea4..d313ca6affaf 100644 --- a/arch/s390/include/asm/bitops.h +++ b/arch/s390/include/asm/bitops.h @@ -241,6 +241,15 @@ static inline void arch___clear_bit_unlock(unsigned = long nr, arch___clear_bit(nr, ptr); } =20 +static inline bool arch_clear_bit_unlock_is_negative_byte(unsigned int n= r, + volatile unsigned long *p) +{ + arch_clear_bit_unlock(nr, p); + return arch_test_bit(7, p); +} +#define arch_clear_bit_unlock_is_negative_byte \ + arch_clear_bit_unlock_is_negative_byte + #include #include #include --=20 2.25.1