Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp513067rdf; Tue, 21 Nov 2023 08:33:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IGI2DgEcu45UhHanYPeDaL7V9QAmKtBiAncK35UVghoLF/1Wvk6c0msWtvnSki9zxD9xUOI X-Received: by 2002:a05:6a21:6704:b0:18b:1f3c:eeb9 with SMTP id wh4-20020a056a21670400b0018b1f3ceeb9mr627739pzb.36.1700584411922; Tue, 21 Nov 2023 08:33:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700584411; cv=none; d=google.com; s=arc-20160816; b=tHNlJW3hYi0U1TXIEp0YG6HXTV3rAzXeEfcBbo5QPlwivL6Sk0r0tIjZ5HVrKSN+pU 97xYQc8PCZ5w3h9cOSD2nFKcCMUX86QyH97dJ4NQwglAXoecL3uj/jRS7+yUEiYu65Bs oCAh+XU2dESBMIFkso6BsBEy8GTgft2LArxHv0VpYU7OrZ4pQu/QIaUb1FmvYCQLZQ7W pYIWOz48uS4MUZ9Qu1TpSDGKrN5xO+QgeB7mQcBk8zMJ6SvIoY6P4XlsdhAKm4zGZwUD J7MKtAuKedvT7tALuZpFmV8alBs2xXG9E8Voq54UQa+//zNPI/EN4zK6eS6r/dJDpvNN qYnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :wdcironportexception:ironport-sdr:ironport-sdr:dkim-signature; bh=y2fK2Hx8A/OJo/LIKzatiCyL5YL0zk9XUEhgxGcHhqU=; fh=5/viNv8Fzx+nCNW5PGLTL+Se/9D0Q8TrzLPV3SudCmU=; b=n8mWbMpeF72pavx/g4bADeX8Ed1Jdh9cpVYtZRpRw/mKQ574/b5+fw7kH+AfJ4B/dy 55NpxPuhOVPRL4yLK5gT1Oj8F66k3uPCBB247MgxPE8XLXH8yDU4MVz7TO4tUcm6B7qq rjiTmr4vdqqKOY/IgQboaFfCSUdR1UUk9E8Zee3UXGMsi1V7oCR5oy8j1Z0DGqsHjf9/ 2Yu4FIIEMzSTkUOiMcEyE2lJVcMUejB8cqstXCqyHp2omYlvvHkVijFkebtDpJOkAUTt +XNylMV+G0CvD+2B0awykeCbip1mrtY/oMKSDHhURV6+AYL4FWqV6wQMJNgx+G2xYBtU OtKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=jM9j26vZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wdc.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id cm11-20020a056a020a0b00b005b92d40e11bsi11746719pgb.168.2023.11.21.08.33.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 08:33:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=jM9j26vZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wdc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E5D85802C6BE; Tue, 21 Nov 2023 08:33:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234057AbjKUQc7 (ORCPT + 99 others); Tue, 21 Nov 2023 11:32:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbjKUQco (ORCPT ); Tue, 21 Nov 2023 11:32:44 -0500 Received: from esa5.hgst.iphmx.com (esa5.hgst.iphmx.com [216.71.153.144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DAEB191; Tue, 21 Nov 2023 08:32:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1700584360; x=1732120360; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=GyvvIo5B3m5fGvInoKE69As5yRuaY1/RgWCjARzh/rw=; b=jM9j26vZJOBAKKVdVjcY129zRyY79LEi6aQKTbTzglYTKjliga+blJRT mZ6DoQkoKx4DkKMKyaOfnGK5LckBxcaXXp4Vva5iEEUk+8+eyvwvFliYf oJ/urYu6oJHzIjWnjC+Nhezr53VIHJOx7Trc5eTyeXkZEM4cDCe4txbAT OHvIBLGxuipnMbDG1qzJApTpRBdN8kPRX8+BRmNyNkqlBgCiHxDZFVY+l 1FcgkliBukxU5sj/pNsjQdD4zMMEvH4o52u03ru31TGnLrQ1BhRwkB991 B+lDVAADTnPUDABT0kHKcUWYNxVEf8Z+vbrFcxsSC7zbqW8syQ+p+nKJu w==; X-CSE-ConnectionGUID: y8vfalxwQ0eniSeCGttfGw== X-CSE-MsgGUID: tBt0p4GZRWimZH5ipT19NA== X-IronPort-AV: E=Sophos;i="6.04,216,1695657600"; d="scan'208";a="3076045" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 22 Nov 2023 00:32:40 +0800 IronPort-SDR: Wp5f1ERwQPdg+fGAzlqwt76SsDbLn2jGV2i5MMfEBG8W1GYeL9gQDw+kBUT4ussrJMy3X6K4xa 3VJTSQZDUL+7DFTV+fe3DMvBaNJv9aEtI1N7ri1KRD12OG3T6WBEpR7iKvWWvd7nPzBA5WXL2c qGUu8rF8ZZxyIEcQ6hejSWCpiAM3ArMZgXzW8Q1q/Ccbwl+YdyiR7xTX5vRG98ItDDJLszGnaq nvMMYMqflA0nvUjpCos1xwS9l1Kq1rznqyEyMA3PJpwPWbyR+xcWPIv4mdShabCSfaUyxoL/rS cFU= Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 21 Nov 2023 07:38:18 -0800 IronPort-SDR: 7L7Q4yvS9exJiAN/L1dW7y9uCIoQVMGIUMbigYogWdwet3lBZyJP+8fXe+jlSF9d9/LSfEyibe PuyzKCgNiaoNrXN7TCJJi1ex576ynXYw16alUSvPP7gkAqUZZLJwnz4kbreKmNXiwG9GXALJ4I z8YrZ2UUaNTm5azLvYJmXCsSlmdsQJ1qewk5AZ9wSI238hesBJIdF7q2JzRHxsFCHatUxyQG8e +2kg65KTWq8IqFiluK4rbvXOvydJNrP1TnN3ZZ3RpFtuEZs5cnTWgPgrJyrZQJK28OgMXQ3NfG 3zc= WDCIronportException: Internal Received: from unknown (HELO redsun91.ssa.fujisawa.hgst.com) ([10.149.66.6]) by uls-op-cesaip02.wdc.com with ESMTP; 21 Nov 2023 08:32:40 -0800 From: Johannes Thumshirn Date: Tue, 21 Nov 2023 08:32:33 -0800 Subject: [PATCH 4/5] btrfs: use memset_page instead of opencoding it MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231121-josef-generic-163-v1-4-049e37185841@wdc.com> References: <20231121-josef-generic-163-v1-0-049e37185841@wdc.com> In-Reply-To: <20231121-josef-generic-163-v1-0-049e37185841@wdc.com> To: Chris Mason , Josef Bacik , David Sterba Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Naohiro Aota , Johannes Thumshirn X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700584354; l=742; i=johannes.thumshirn@wdc.com; s=20230613; h=from:subject:message-id; bh=GyvvIo5B3m5fGvInoKE69As5yRuaY1/RgWCjARzh/rw=; b=ThZ7PZrN2xKIjW1JXyMxUy8WWGY2yZ/ltGzTllLzrcLzQ41lrHZFdy3awwUOHF9UcvbuK2+rG 3KpETc+qTy5AR//+WtQ3qet+HbGL0Vm4Kb/m8xenuYBrU4ffEY/i9dg X-Developer-Key: i=johannes.thumshirn@wdc.com; a=ed25519; pk=TGmHKs78FdPi+QhrViEvjKIGwReUGCfa+3LEnGoR2KM= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 08:33:19 -0800 (PST) Use memset_page() in memset_extent_buffer() instead of opencoding it. This does not not change any functionality. Signed-off-by: Johannes Thumshirn --- fs/btrfs/extent_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 8bc5025ce278..b8a73ebe3485 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -4186,7 +4186,7 @@ static void memset_extent_buffer(const struct extent_buffer *eb, int c, struct page *page = eb->pages[index]; assert_eb_page_uptodate(eb, page); - memset(page_address(page) + offset, c, cur_len); + memset_page(page, offset, c, cur_len); cur += cur_len; } -- 2.41.0