From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 D7FB837F8D7 for ; Thu, 25 Jun 2026 08:35:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782376540; cv=none; b=Hgo43YNaqe/YMd4+gjwGhZ2k+qZrcDohG1uUbPnYAC+ZodybmNJ4oGxjYou02mFJax1ZsaXVqV2jah8zfJn0fU4H4C/jtQvwjcDKRABgi+sYW9XGG0friM5uAYwviXNCnwjjIKL0FUu1IFc3XBOPIsDoxLftKmkMSRrqLtB7T+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782376540; c=relaxed/simple; bh=x+w9SGxZBWO4hPXg8E+A/q/4ScS0BqeDSCrwJNo6iBs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JxEuAvoWRQ/ah924hOfCLEWy9XJEUe6IuYs5K63LKQ8E43i7bmEek95sDXJh4WPl/h8HTbog115nsCYSAbNYZtjiH2ULtsrMXhWcw4ASQZS7ywle1AK91c69dNHlr350luiIhl4ZDjlho62wusm4ZSSZDyUv1UvwHvF0IlrFyQE= 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=KYbfVK4G; arc=none smtp.client-ip=209.85.221.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KYbfVK4G" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-4626fdc829aso1535786f8f.3 for ; Thu, 25 Jun 2026 01:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782376537; x=1782981337; 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=0+ggg4zFesK0IrYb2saIE8cPaSi4XEf6KWehvtWp5AY=; b=KYbfVK4GpuwSiN5c3R2ornN6UuY9+Rb7Ddw36+XX0K4/PfGZJDPrDvwYN1ut2x+M6j oolzOP8CQt0yFF4dGEUsMvdlLh13OMvAXZXCqKj8PX7SudG+aC6WYqzN45Np4gXZmhmF Wo70q/X6K/PPukycdtCTRXjbkwzONwXI057xLHhncpSU7FdvJpra4Z54dwZe6jg7bNS7 lBCI3sBejIu4W+gNsIMuLtcdLxIRkKAZYQlgj33/hHE/nDZQzZPz3+jeGBLIqIlkZKqa E7s1wsGqGBeUnwfLRmftLjpSGS2sgl8PFrEAZjEj6AzHi70tTIcJaA2b6ySiNLt/x5ht 9Xxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782376537; x=1782981337; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=0+ggg4zFesK0IrYb2saIE8cPaSi4XEf6KWehvtWp5AY=; b=D6Wuce6WU80q0WkJOMDwBQYSfhy8rf2R9qOLGOMa2HF8SNDWpF30Emm9SJ8uCUrmwu cm1ZXw6ONz/NSTUrkJrPXPqZ2ADDvWApkorytNoeCpaROO/iHZizbc22ahjeHf/h27yA R2zem7RvvgUzdAneKf5B8OtdGuiw3V+2KTIH/5ncP3TzfsxKyJhgsL2TrJEKvafeVGDk J2cd49ed6VYG+Y576PO2+epYE1zyJjS2gtJfwkDYmlCr6LP688u3U1PkCxyaCrnjEZNG 8j0BzlS7zgdQaVV+JUyFZ8bVYHZzHw+OP1UFeyfgU1Hq+ptO8VUj1fpk0ydbDJ1PHE+m ToFQ== X-Forwarded-Encrypted: i=1; AHgh+RqECyheyZmAORh4d8MgHUmhZrpQjNqj1z7Hf/bbT/OvFfR4dIZNfXSWgrq3bPYJ5pw0fL5uT+/7c4k=@vger.kernel.org X-Gm-Message-State: AOJu0YzXxjEQM/jxqvyxjqrRI22PrpH5vgg42yAtoJ5B8sgIfbaZO9BE sy3xRqGsM0x5jfa98vm4WifZL8IyCkiQVwYiHm/LfwSCdrauiCrjYPhJ X-Gm-Gg: AfdE7cmZ58Jt1YaQh7SEMIzhkuvkJpE0/wabIAvGy29T0tMRdY0ZPWGiu28zAolOnY3 hpB89xQhe66WfFgURxsyQh1xwZXBzoOXXfh2DWdC1dfXVPPei/xYw7dioupuTcDQGeB/jo+7UzM MpK+4kYQpt/gaiBv5JqzcPHVSn8GaajkjVs5Sr0Irs3vwKzjXhWjtVL0sSq5zqYp11sfaLFAfYD 4V6M0EW5xVewMLH9LCuGiQjpcCSiwzfNrNqtkehyiUKqQpLwTwULUxaBOuMJG6ct2OQAvN3Dps5 4R0J8DirfjNVQW6FX8tTz2w4seqjPRzvmtwnfBEIaY3r6sr9l/dOT7j8yrYcxTwvcGpglUoIhbA oNPfNIqte+fuhXkO/3ukOiYxnxsFwBi+VKn1W1l/9rWQ5+HS4ddSCEmdRVlBLZwZMk/Sm0EmSTD dmjz4OuimA X-Received: by 2002:a05:6000:1841:b0:451:3b12:9bca with SMTP id ffacd0b85a97d-46dc20763ecmr2315779f8f.25.1782376537012; Thu, 25 Jun 2026 01:35:37 -0700 (PDT) Received: from localhost ([212.73.77.104]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-46c2279b85csm13357402f8f.28.2026.06.25.01.35.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Jun 2026 01:35:36 -0700 (PDT) From: Askar Safin To: linux-fsdevel@vger.kernel.org, Christian Brauner , Alexander Viro , Jan Kara Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org, netdev@vger.kernel.org, fuse-devel@lists.linux.dev, Linus Torvalds , Matthew Wilcox , Jens Axboe , Christoph Hellwig , David Howells , Andrew Morton , David Hildenbrand , Pedro Falcato , Miklos Szeredi , Andy Lutomirski , Collin Funk , David Laight , Stefan Metzmacher , The 8472 , Willy Tarreau , Joanne Koong , Val Packett , Andrei Vagin , patches@lists.linux.dev Subject: [PATCH v2 2/7] vmsplice: change argument type back to "int" Date: Thu, 25 Jun 2026 08:34:04 +0000 Message-ID: <20260625083409.3769242-3-safinaskar@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260625083409.3769242-1-safinaskar@gmail.com> References: <20260625083409.3769242-1-safinaskar@gmail.com> Precedence: bulk X-Mailing-List: linux-api@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit My previous vmsplice patchset changed vmsplice argument from "int" to "unsigned long". This may cause problems, so let's change it back. Signed-off-by: Askar Safin --- fs/read_write.c | 2 +- include/linux/syscalls.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/read_write.c b/fs/read_write.c index e224e7cb8..77487b307 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -1218,7 +1218,7 @@ SYSCALL_DEFINE6(pwritev2, unsigned long, fd, const struct iovec __user *, vec, /* * Legacy preadv2/pwritev2 wrapper. */ -SYSCALL_DEFINE4(vmsplice, unsigned long, fd, const struct iovec __user *, vec, +SYSCALL_DEFINE4(vmsplice, int, fd, const struct iovec __user *, vec, unsigned long, vlen, unsigned int, flags) { if (unlikely(flags & ~SPLICE_F_ALL)) diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index a86a88207..46a3ec954 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h @@ -514,7 +514,7 @@ asmlinkage long sys_ppoll_time32(struct pollfd __user *, unsigned int, struct old_timespec32 __user *, const sigset_t __user *, size_t); asmlinkage long sys_signalfd4(int ufd, sigset_t __user *user_mask, size_t sizemask, int flags); -asmlinkage long sys_vmsplice(unsigned long fd, const struct iovec __user *vec, +asmlinkage long sys_vmsplice(int fd, const struct iovec __user *vec, unsigned long vlen, unsigned int flags); asmlinkage long sys_splice(int fd_in, loff_t __user *off_in, int fd_out, loff_t __user *off_out, -- 2.47.3