From patchwork Mon Jan 22 14:01:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryusuke Konishi X-Patchwork-Id: 190173 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2588331dyb; Mon, 22 Jan 2024 06:03:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGi/UH7XAVgddVLvZ9FL/0gyykeMLg1QFDtUN2OV5XXExCRL6O4l0wk+Q5E0x/ct5wGCSAl X-Received: by 2002:a05:600c:5492:b0:40e:710d:7c1c with SMTP id iv18-20020a05600c549200b0040e710d7c1cmr2245114wmb.32.1705932229340; Mon, 22 Jan 2024 06:03:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705932229; cv=pass; d=google.com; s=arc-20160816; b=u5F54/Maunew/GjqkqGlSMxjm5qjFQcTmSH0LO7xDcc7mzDrC1pmcbM55JrT9/5oyY SnEoxLxYGYl8XUE9ngZznDx3yPTogrEotsqpv/ZanGIChAEhBOq8O6BadSeiWSqmd8lH 4J9HJ7IdsioBfaHQsmOAN9J/hUAFd/0zYli+4JeZx+FfbESECH1G8tzAZDbh/IMCWLjv hSZww/NW1taJtrZYi6s9inbNRCjdrngPGQDsw5dUe/SYO47jl9QeE3k2WqL/DYZqjJKE dNeP481tyPLUL+2B+aX4SMdDo5gj4txFmr4/Ys3Mr0XramLxzMRlGOfZAB1d5+0vQLKd 9yWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=GH23pe+q1rzapR4L2svxpX4qJUTePTmHiJ6zfTOcWpI=; fh=M4BPaMQ5Q3X2+FKbhXoDpy+/1kcj8JGJnMEJ6o+yvT4=; b=UPWCjy9qw/Wt4f3FSCdJxvyCd7Wq5jRTSBjfTatxA0B6SjqbtUruvtMbQxfWXZJh60 mmCGupWZom072lcE+j7ryQQQBMcsA8YPh67bE/37nqSfm0Wc3L5UldDIUjlYdAnUodCq cFzr1fAQCZnY9FWCL/UevRayPnPL7amm7uHhUtV3zylHyv6iQ8k7Iu8NdNFxnhuPUYE/ vV8Lwij2N+qz7Cz7Fim5jNMSWTXBeFUxt2f8zqne1cnF6zvP2rtgPFehsPRIBROTOCzj v47wiFoAQWMhSbiA+zQ0u6RP8RJkRQb/TBGK2is7zNHEBid3BL1mgZ8OCRBv9kdM1NfO gV1Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ch2o4LZe; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-33123-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33123-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z93-20020a509e66000000b0055a3ace7996si4321377ede.137.2024.01.22.06.03.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 06:03:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33123-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ch2o4LZe; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-33123-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33123-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1132C1F25A7F for ; Mon, 22 Jan 2024 14:03:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5AC63D991; Mon, 22 Jan 2024 14:02:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ch2o4LZe" Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2230B3D969; Mon, 22 Jan 2024 14:02:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705932142; cv=none; b=EcwIeZ4xnNiTionLGhR4REEsTKFku3DajycpJBYl65JS/vVpcorT9/+Ps4JD/r+mNfyoQKKALUNgVD8OhRZ/5km/jlIZlQELFUVGPU1gCB2LU9GhqSfFsSygoSBInk6qgBd7vxa3G4IVjl/oZz5nLd5fG8WeS4Yopu5GQHRW/9c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705932142; c=relaxed/simple; bh=J2lcZmt5rFel9B8QGYuEavwUy0DILKVjO6Ink9T2gbo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FzuYDZ52uRcglmfzjUTTCnpNHScnn7RMKMkp3npxxoeDey8C33LWMUxLIzc86A7b99ySvrw0CBROL1rkeRlCv1ljyoNGOA0Oay2dZGFsgv9Fnl7Lj/GdULYmAKZl6t53f5b05e3NirHEu8kdEOAGTmbXwjL7MessROH94by8Y3I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ch2o4LZe; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-6dbdb1cb23fso1373165b3a.3; Mon, 22 Jan 2024 06:02:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705932140; x=1706536940; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GH23pe+q1rzapR4L2svxpX4qJUTePTmHiJ6zfTOcWpI=; b=ch2o4LZejBQKeyL8YSyYsp/IGoEu5U1CFJdSvXUdxslJ+4y6oy45SjhtECa01f5Pan ie2ulzo63Db8Q8EhvYFAr3O4ppn/E7TMznE19FUYHe055DzzSEEulnyPJd/SVv7MiqLF Vi7KpiionzT/MRAeEytuVnwicma6KPG1FR/Oit0OlKiuiaZp0qEB+taVVfEfjwc2DMEm Hvcz7Ts9a13AhCaAi6UyaRYXxjwp4kFTlLrYAwNvExHqVlCjMDLRwXqfnD4p94/FIkFD C+60zsgTFXJc89tfk1QcfachfrE0nzFtBGSCJ4kNlV6OBaIRWY4+gAD+kbqtcg15zxwp +EGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705932140; x=1706536940; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GH23pe+q1rzapR4L2svxpX4qJUTePTmHiJ6zfTOcWpI=; b=aqBiLHTWArKea0l7URsTvPaA+1w2WuElyTXZ8tnRgDJvArT6hjI4+Sju3FhXQ46Mgr rB2o0j3vgjhq/lenh1QF6kT0fBRz91OyT7Bjq3puiFw0vyL39lS+xPMp/cu3k9eK8v6P WEIvWl5rkTItAgzd/KC/Fr+HrOk7dudMPyWbJFU2r9fyz6OksEyzntOyMTK5xlSo2kaZ uBYtog4lvO+/T59hKV4z63jCn4YWsrbAUlCHj/KCh3qY73hFtbCckY2+g/Iehq4fPYzo WEH0b7X7BqoAK0RBrp6uvPcHQjQdltY+FnG+FRa8UAv2t190He/kIws9xZM77GocEWy9 7lgA== X-Gm-Message-State: AOJu0YyEIn/y2xo2YmDdo1BjLh3q9JEatQOzuENH3X2MmKisPLq9fFGw dgmrLhbl4vkmefLHIAWyA/qL2sY9mHpc+63ZLT2KJpgep1yj6raVq9Jq/NQm X-Received: by 2002:a05:6a00:2449:b0:6db:ce4e:1035 with SMTP id d9-20020a056a00244900b006dbce4e1035mr4398440pfj.61.1705932140356; Mon, 22 Jan 2024 06:02:20 -0800 (PST) Received: from carrot.. (i223-218-154-72.s42.a014.ap.plala.or.jp. [223.218.154.72]) by smtp.gmail.com with ESMTPSA id n14-20020a62e50e000000b006da2aad58adsm9901913pff.176.2024.01.22.06.02.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 06:02:19 -0800 (PST) From: Ryusuke Konishi To: Andrew Morton Cc: linux-nilfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/15] nilfs2: convert metadata file common code to use kmap_local Date: Mon, 22 Jan 2024 23:01:51 +0900 Message-Id: <20240122140202.6950-5-konishi.ryusuke@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240122140202.6950-1-konishi.ryusuke@gmail.com> References: <20240122140202.6950-1-konishi.ryusuke@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788799593118725173 X-GMAIL-MSGID: 1788799593118725173 In the common code of metadata files, the new block creation routine nilfs_mdt_insert_new_block() still uses the deprecated kmap_atomic(), so convert it to use kmap_local. Signed-off-by: Ryusuke Konishi --- fs/nilfs2/mdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nilfs2/mdt.c b/fs/nilfs2/mdt.c index e45c01a559c0..4f792a0ad0f0 100644 --- a/fs/nilfs2/mdt.c +++ b/fs/nilfs2/mdt.c @@ -47,12 +47,12 @@ nilfs_mdt_insert_new_block(struct inode *inode, unsigned long block, set_buffer_mapped(bh); - kaddr = kmap_atomic(bh->b_page); + kaddr = kmap_local_page(bh->b_page); memset(kaddr + bh_offset(bh), 0, i_blocksize(inode)); if (init_block) init_block(inode, bh, kaddr); flush_dcache_page(bh->b_page); - kunmap_atomic(kaddr); + kunmap_local(kaddr); set_buffer_uptodate(bh); mark_buffer_dirty(bh);