From nobody Sun Oct 5 20:02:15 2025 Received: from mail-m49198.qiye.163.com (mail-m49198.qiye.163.com [45.254.49.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BD53224898; Wed, 30 Jul 2025 13:06:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.198 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753880781; cv=none; b=PWqFmvSmju65FpOib5utCF5EDPJIWYhOCEQuViZXlx83nzVgY+4m0/VaheMHNdR9Bh/k03Cxr44vEaQs+JQ5IybULov6CCRWfbU/f6yVe07CfRhlFpHy1Wi9yBcRJSK1aji/e8V7YISt7BIavUkHrJ8bkZ50npvX+XLEY4KyC+Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753880781; c=relaxed/simple; bh=jK42f7rbDddqApZMNBx4yN+EyqOmwpVWL3zq1JEOfdE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RWh+TkEdPyV5oYruvcRRFVJVTdD0LPxpjmb1mao+rGIOkk8in4FI3IzM/V5BJe1q9T8+U74q+pbGff8v6LiWgLKLOfZslhM+5SbGc+lQQ4dU7Zg1yQDnn2vgDUrF5B/ce+06VpMA/S1i0LzHRqJyAx2OmcJfYgDL7MLNcfKTQgI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ustc.edu; spf=pass smtp.mailfrom=ustc.edu; arc=none smtp.client-ip=45.254.49.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ustc.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ustc.edu Received: from localhost (unknown [14.116.239.35]) by smtp.qiye.163.com (Hmail) with ESMTP id 1dc0b96c7; Wed, 30 Jul 2025 21:06:06 +0800 (GMT+08:00) From: Chunsheng Luo To: miklos@szeredi.hu Cc: mszeredi@redhat.com, amir73il@gmail.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Chunsheng Luo Subject: [PATCH] fuse: remove unused 'inode' parameter in fuse_passthrough_open Date: Wed, 30 Jul 2025 21:06:03 +0800 Message-ID: <20250730130604.4374-1-luochunsheng@ustc.edu> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-HM-Tid: 0a985b70a8a203a2kunm841eb85624d4d8 X-HM-MType: 10 X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZHUxCVklJTEtOHkJPSB5CQlYeHw5VEwETFhoSFy QUDg9ZV1kYEgtZQVlKT1VKSk1VSUhCVUhOWVdZFhoPEhUdFFlBWUtVS1VLVUtZBg++ Content-Type: text/plain; charset="utf-8" The 'inode' parameter in fuse_passthrough_open() is never referenced in the function implementation. Signed-off-by: Chunsheng Luo Reviewed-by: Joanne Koong --- fs/fuse/fuse_i.h | 4 +--- fs/fuse/iomode.c | 3 +-- fs/fuse/passthrough.c | 4 +--- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index ec248d13c8bf..92c2932daea1 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -1538,9 +1538,7 @@ void fuse_backing_files_free(struct fuse_conn *fc); int fuse_backing_open(struct fuse_conn *fc, struct fuse_backing_map *map); int fuse_backing_close(struct fuse_conn *fc, int backing_id); =20 -struct fuse_backing *fuse_passthrough_open(struct file *file, - struct inode *inode, - int backing_id); +struct fuse_backing *fuse_passthrough_open(struct file *file, int backing_= id); void fuse_passthrough_release(struct fuse_file *ff, struct fuse_backing *f= b); =20 static inline struct file *fuse_file_passthrough(struct fuse_file *ff) diff --git a/fs/fuse/iomode.c b/fs/fuse/iomode.c index c99e285f3183..3728933188f3 100644 --- a/fs/fuse/iomode.c +++ b/fs/fuse/iomode.c @@ -177,8 +177,7 @@ static int fuse_file_passthrough_open(struct inode *ino= de, struct file *file) (ff->open_flags & ~FOPEN_PASSTHROUGH_MASK)) return -EINVAL; =20 - fb =3D fuse_passthrough_open(file, inode, - ff->args->open_outarg.backing_id); + fb =3D fuse_passthrough_open(file, ff->args->open_outarg.backing_id); if (IS_ERR(fb)) return PTR_ERR(fb); =20 diff --git a/fs/fuse/passthrough.c b/fs/fuse/passthrough.c index 607ef735ad4a..0c8e36db41ba 100644 --- a/fs/fuse/passthrough.c +++ b/fs/fuse/passthrough.c @@ -301,9 +301,7 @@ int fuse_backing_close(struct fuse_conn *fc, int backin= g_id) * * Returns an fb object with elevated refcount to be stored in fuse inode. */ -struct fuse_backing *fuse_passthrough_open(struct file *file, - struct inode *inode, - int backing_id) +struct fuse_backing *fuse_passthrough_open(struct file *file, int backing_= id) { struct fuse_file *ff =3D file->private_data; struct fuse_conn *fc =3D ff->fm->fc; --=20 2.43.0