From patchwork Tue Feb 13 21:37:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 13555681 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 144A0C4829A for ; Tue, 13 Feb 2024 21:37:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 986C38D000E; Tue, 13 Feb 2024 16:37:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9367C6B0087; Tue, 13 Feb 2024 16:37:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 762AD8D000E; Tue, 13 Feb 2024 16:37:30 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 6107F6B0085 for ; Tue, 13 Feb 2024 16:37:30 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 2A568C0CAB for ; Tue, 13 Feb 2024 21:37:30 +0000 (UTC) X-FDA: 81788092260.19.800F95D Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf08.hostedemail.com (Postfix) with ESMTP id 66C56160004 for ; Tue, 13 Feb 2024 21:37:28 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="Qf4/d1Yg"; spf=pass (imf08.hostedemail.com: domain of cel@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cel@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1707860248; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Kg9PtooROHeKx8fIUbKlppQOORYDMz/IXh3imJbt6ck=; b=iWdLJZg1uRw+MGJzNB3AU14y13mGskDxec7ZHSV8VLI0ARoAGOJ5QVR9+I7a4qutOhDvnp 8+pRh+0jgSqbgytdw5mpHgrxEsycM3OihkI2AwoC9ZGODbJIxOBGxCmPv+TALrwotY9juE 9oHlDiVJaJLILv/Busn3fhrCZBBNIB4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1707860248; a=rsa-sha256; cv=none; b=3hFLHe9ALBxKiAm5jB85CSCmBYUKM0beTI2N+neaRgRcaABVDq87WE6PH+RGLHYy3ujn6N uscjyoXYf1F51pH8hBMeK8yoIPmF0kVHVmzKyiUooFO/xgJnIe1XuQXFYUghUk7AECEiSD mdq/RTyQzBwZD0gS0oyW/0tDEimPhog= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="Qf4/d1Yg"; spf=pass (imf08.hostedemail.com: domain of cel@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cel@kernel.org; dmarc=pass (policy=none) header.from=kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 942EA616FC; Tue, 13 Feb 2024 21:37:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FEAFC433C7; Tue, 13 Feb 2024 21:37:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707860247; bh=DgxR48FdvStP6/D6Ne/g9o7gPlflm/a2urdscmeMLJk=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Qf4/d1YgBMtbSniw/Z88hN4lMjBLBDisTs5pGMp+UPlKkqlI/sbFKI33U7LRO+2ay nZw+t7hHnnJwPjgKmA75MYvWUwvIOtRcjz3V9PQoKiIoqz6xKCa+mEUmeNtI5m/xko SQQBO4/wd0ZrZcGZupAzXrUFuFIawodE9jPpQ6ep8tXj3VS6SNGKgCEYPyJERgFyxb 4/68TNcUkF28v5gcfRkJsUDp3Su9HGYgbFLfdxfM4zAMXfFr5VRJEdc/pvAmBvdD5e mvOJ7KOHuIm9/QluD4G7YhZraRi4VI/iw19vVrf79E9C+AuWSWbxBaJ0bcueJeh/9s +zD9/Ry1/SiRw== Subject: [PATCH RFC 1/7] libfs: Rename "so_ctx" From: Chuck Lever To: viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz, hughd@google.com, akpm@linux-foundation.org, Liam.Howlett@oracle.com, oliver.sang@intel.com, feng.tang@intel.com Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, maple-tree@lists.infradead.org, linux-mm@kvack.org, lkp@intel.com Date: Tue, 13 Feb 2024 16:37:25 -0500 Message-ID: <170786024524.11135.12492553100384328157.stgit@91.116.238.104.host.secureserver.net> In-Reply-To: <170785993027.11135.8830043889278631735.stgit@91.116.238.104.host.secureserver.net> References: <170785993027.11135.8830043889278631735.stgit@91.116.238.104.host.secureserver.net> User-Agent: StGit/1.5 MIME-Version: 1.0 X-Rspamd-Queue-Id: 66C56160004 X-Rspam-User: X-Stat-Signature: r6fj19ait56ak966hmkihrt93qjdc9bb X-Rspamd-Server: rspam03 X-HE-Tag: 1707860248-519686 X-HE-Meta: U2FsdGVkX19kTRR5EMzHF/w2TBE8p+3iMItrF6ghB4Z5QuB96rhLji41uePiOaixISMeXalR+ytnc2b/Aj9ndjrsd7edoUVp6EQw3db0FlUolnMtzykYUbJino2+xnO4vjQUVTTWh14B2V2iRCb/qyHaPEUWmXpPbh7DtzA22/GEzMw/1mz2YbDRsW5G9b5721W0IzsfL3gzqpRP5ZJofwEoYr1Uy1y1H0p4V6E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000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Chuck Lever Most of instances of "so_ctx" were renamed before the simple offset work was merged, but there were a few that were missed. Signed-off-by: Chuck Lever Reviewed-by: Jan Kara --- fs/libfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/libfs.c b/fs/libfs.c index eec6031b0155..bfbe1a8c5d2d 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -271,7 +271,7 @@ void simple_offset_init(struct offset_ctx *octx) * @octx: directory offset ctx to be updated * @dentry: new dentry being added * - * Returns zero on success. @so_ctx and the dentry offset are updated. + * Returns zero on success. @octx and the dentry's offset are updated. * Otherwise, a negative errno value is returned. */ int simple_offset_add(struct offset_ctx *octx, struct dentry *dentry) @@ -430,8 +430,8 @@ static bool offset_dir_emit(struct dir_context *ctx, struct dentry *dentry) static void *offset_iterate_dir(struct inode *inode, struct dir_context *ctx) { - struct offset_ctx *so_ctx = inode->i_op->get_offset_ctx(inode); - XA_STATE(xas, &so_ctx->xa, ctx->pos); + struct offset_ctx *octx = inode->i_op->get_offset_ctx(inode); + XA_STATE(xas, &octx->xa, ctx->pos); struct dentry *dentry; while (true) {