Message ID | 20231121-josef-generic-163-v1-4-049e37185841@wdc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp748732vqb; Tue, 21 Nov 2023 08:33:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEFbVKkVudds6r9Llw9B+NyCs2tWI590pDBWf/OTIZaFQ+sYj5IdtZcMtiWAzexXosK2LQx X-Received: by 2002:a05:6a20:c901:b0:189:ea43:b22b with SMTP id gx1-20020a056a20c90100b00189ea43b22bmr8087048pzb.61.1700584410453; Tue, 21 Nov 2023 08:33:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700584410; cv=none; d=google.com; s=arc-20160816; b=j1o4RF0zA1E8py+3RnfeuMlQtTS+dWFz9C56RtPYfKKZN8zErzkoTZG+svmjVj/zyl 1t7seHLGxbOlQywYHnPCuNJ5v57mHIhrbfB8oVvj6kq0JFlteWiJ8gIiBn9KvQ27GvH4 dNOf1WgayyJpu5BhjAhMI7SDpvJz4kCRcAuwhV+GeDqA+hgXUN7d48JdNGHqWSFQF0fa w6eKLR83nqD/pLDf1M0uOBtMIgYKLLDfeNJmUQ8RLR5iYQusrxVyfM1gmiNNzfmoo35u u5s2bNj4n1WiSslery6Bea+OuQEjAr7aQHkIXUV7LhxdUsrL5yisqS/m2V6g6AGmRh15 X9mA== 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 Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id lr8-20020a17090b4b8800b0028524d0a2b6si5168434pjb.144.2023.11.21.08.33.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 08:33:30 -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 D9D8F804E701; Tue, 21 Nov 2023 08:33:16 -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 <rfc822;ouuuleilei@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <johannes.thumshirn@wdc.com> 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 <clm@fb.com>, Josef Bacik <josef@toxicpanda.com>, David Sterba <dsterba@suse.com> Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig <hch@lst.de>, Naohiro Aota <Naohiro.Aota@wdc.com>, Johannes Thumshirn <johannes.thumshirn@wdc.com> 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: <linux-kernel.vger.kernel.org> 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:17 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783191998813748420 X-GMAIL-MSGID: 1783191998813748420 |
Series |
btrfs: zoned: remove extent_buffer redirtying
|
|
Commit Message
Johannes Thumshirn
Nov. 21, 2023, 4:32 p.m. UTC
Use memset_page() in memset_extent_buffer() instead of opencoding it.
This does not not change any functionality.
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
---
fs/btrfs/extent_io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
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; }