Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp101745pxh; Tue, 9 Nov 2021 07:56:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoD8kQvK4NNcKH2CriZLlgeWiwJHZswWtmLIelWpR30VkBEfV8VizZzSBZ1p7YC9zrPNqf X-Received: by 2002:a17:906:6582:: with SMTP id x2mr11119190ejn.38.1636473376522; Tue, 09 Nov 2021 07:56:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636473376; cv=none; d=google.com; s=arc-20160816; b=GA6FdaHvgUAoW2AuqS8c0+EPo6R7ZjrjWI43cf0EQ000L8FwQukal5f2bUmWUksyzE y4yarjWDNP9kMWJPA1oRZPf6gifavrggxxoCSH2hXF7Hhqz0gISj6eERjTmygrYvx928 ol3BLKHPJTUUqFXvRl4YODHW0hjRDyWlxOlCXPX4QG0L2SPaiMwjSeJUJcTn/7tncvJ+ /pl359T1R2e8OkxJrvHlFr7IvOu5mzph+bEJwvtxPFdmqnyGgKAetLmAkW0B4yQnpFNj EPmF40+FHDS7dE/LFzFAPH+7SNkTMZL9UWProqxyocJ7tvEPsIAGlSR3GBgC1TX046lv bbpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2hdJQNYtTkHjlgB+ErQ7+D3qJYkOGkFpVLGZwHIDkoE=; b=aeVbOwQA+/OtHTMUNTo0Dn2QPcZlZrl5NegpOXNRP2OptQLO3XNdRaRt+bSm4S45oW yJqv6vdHX1MKrEleCcUj0PPvgzw74s2NBRIhWZCnumgk85zYUrBTrbGMDbK9YTg8Id2/ xv47+I+3zYWC35KgbvHirDyfgsbiAi3PC0kSwrJ78lpmujQKAxAvBNhgCK3+E5TXdo/z E41FM6KMhNAr1Zwf/bEhVFqOyoYPdEP4iMa4xsnRI1sxBf8qattFWqK3nzhk99wyWE/s bTXk3526NPuEa9If9Vd+0kxj6FHUj/bWzUYJEtz27hiQTQ11x/C0+WWUZ+6c2lTwAWds in9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=v01uu7zu; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si34956362edr.231.2021.11.09.07.55.51; Tue, 09 Nov 2021 07:56:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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=@infradead.org header.s=casper.20170209 header.b=v01uu7zu; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244202AbhKIIgg (ORCPT + 99 others); Tue, 9 Nov 2021 03:36:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244164AbhKIIga (ORCPT ); Tue, 9 Nov 2021 03:36:30 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EED8CC061764; Tue, 9 Nov 2021 00:33:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=2hdJQNYtTkHjlgB+ErQ7+D3qJYkOGkFpVLGZwHIDkoE=; b=v01uu7zuFXE6OzaFnvNPLS6DM9 we1jFH8kq7XG7NoLThXOUN3woQ9moHW3tiBxvJSA8H/93eklUaznPl9SEz80oUz+eeflZ+Dhej1Bi B+EkFwLRDIwwJ1UpBNlsOL2xFgcVPbPgOO7bgTWTzwIQzb1KlCPzKVh8u9AtdTJVUPTsWSM6EyZXv dSZ5fvCfriseWTA0NZMREA8ccwUlhgXdDjjXrHAC8JalJha4nWoJjQPbtm4titoop7ij7F4fLuaLI tvHVcPs5ixt4k51zTEEtpN7jI6Zm0Mi5taVD7fWcCjaM6P2ZTsJ4MehB/rsw/CjXm3ZEO/SiJQbx3 lv78QPEw==; Received: from [2001:4bb8:19a:7ee7:fb46:2fe1:8652:d9d4] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkMZT-000s2I-1A; Tue, 09 Nov 2021 08:33:36 +0000 From: Christoph Hellwig To: Dan Williams Cc: Mike Snitzer , Ira Weiny , dm-devel@redhat.com, linux-xfs@vger.kernel.org, nvdimm@lists.linux.dev, linux-s390@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-ext4@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: [PATCH 12/29] fsdax: remove a pointless __force cast in copy_cow_page_dax Date: Tue, 9 Nov 2021 09:32:52 +0100 Message-Id: <20211109083309.584081-13-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211109083309.584081-1-hch@lst.de> References: <20211109083309.584081-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Despite its name copy_user_page expected kernel addresses, which is what we already have. Signed-off-by: Christoph Hellwig --- fs/dax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/dax.c b/fs/dax.c index 4e3e5a283a916..73bd1439d8089 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -728,7 +728,7 @@ static int copy_cow_page_dax(struct block_device *bdev, struct dax_device *dax_d return rc; } vto = kmap_atomic(to); - copy_user_page(vto, (void __force *)kaddr, vaddr, to); + copy_user_page(vto, kaddr, vaddr, to); kunmap_atomic(vto); dax_read_unlock(id); return 0; -- 2.30.2