From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jtO12dK9" Received: from mail-oo1-xc36.google.com (mail-oo1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86ABB107 for ; Sun, 10 Dec 2023 02:07:23 -0800 (PST) Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-59067ccb090so2072962eaf.1 for ; Sun, 10 Dec 2023 02:07:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702202843; x=1702807643; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Ze/j9rFp4TC/GjFPUj8dYB8wBXgoNgahTYZIMcA6+W8=; b=jtO12dK9zTarxKsIOxIGEFVPnAZU+OW8rI31y6xyrqL+Ad1JO1y1scksS4jhnZfI7H KwxoZGNuvUcZtHQgL6h6NA+qheinrOV+ROuVu8Nec27Bd/yYVtsScPccJn3mpFn7GCn6 CNV5vq/7qhDblOv/n38LipGp0cGjftylCWBF7nkcHhuURH3bQmJF5IY/ll5Z7kKOF27W TNPUEmBGmLREWm+7Q6ag/YFFF7C/GC7lNws+snpnA+NOmkVag118UtM64XIiDe/YjeVY MOmwJBAfTMZTCI4YIgmCSlsxfbmdvF9xOQYkG995mzuVR5e1eKqsn93FTA2OCDZDYfr9 DOeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702202843; x=1702807643; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ze/j9rFp4TC/GjFPUj8dYB8wBXgoNgahTYZIMcA6+W8=; b=qJq58PJ6yNUqhDiyiO/PynORh474BLmdIhsEF2l+z6IkM7sD1la/ifFKmsFieAe0kQ sprt2TRLrtqKD6QCpqExS6RY8trN+kWnBtDReV+4uHv82vcUQHUZG8QZaKawxaFlNQGv YU9YwxI0Dvmj+NYGe2dVYPSbnviW1Qq7WNdIu0+1Vs7JRrG6cNjCNSGcHMqB5gGqksj5 aCYSOM+C0oIiwY7f7tabGlxaTSRkJ5I4ESuZIhVRBNXClxy9uCMzIRPhxpxpEK7ki0nV GydBT2F8B25QehWrOmSCLz10L1lruXfthq/SOIynMR9ChLCoxeoyMvhjO2Wiy7zRKvn1 Q60g== X-Gm-Message-State: AOJu0YwtroH4bCBpx2JnJGRL8OKU4jBdMRiZWoj9DcJJRCJHrNxaUOTB lbmQncNtoLmQu4EjQzWiKKjQ0pEerArtmI9oess= X-Google-Smtp-Source: AGHT+IEl5ySX8uoQTqd17ErndWvpRTtqtFi9lUcwWWH8hvOdkgXPd2NlejCIjX0X8+2BAu2K+6Nsy601ssJLLOgaLa0= X-Received: by 2002:a05:6358:c8b:b0:170:17eb:b3b with SMTP id o11-20020a0563580c8b00b0017017eb0b3bmr2959508rwj.37.1702202842671; Sun, 10 Dec 2023 02:07:22 -0800 (PST) Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231207123825.4011620-1-amir73il@gmail.com> <20231207123825.4011620-2-amir73il@gmail.com> <20231208-horchen-helium-d3ec1535ede5@brauner> In-Reply-To: <20231208-horchen-helium-d3ec1535ede5@brauner> From: Amir Goldstein Date: Sun, 10 Dec 2023 12:07:11 +0200 Message-ID: Subject: Re: [PATCH 1/4] fs: use splice_copy_file_range() inline helper To: Christian Brauner Cc: Jan Kara , Jeff Layton , Josef Bacik , Christoph Hellwig , David Howells , Jens Axboe , Miklos Szeredi , Al Viro , linux-fsdevel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 8, 2023 at 7:33=E2=80=AFPM Christian Brauner wrote: > > > +static inline long splice_copy_file_range(struct file *in, loff_t pos_= in, > > + struct file *out, loff_t pos_ou= t, > > + size_t len) > > +{ > > + return splice_file_range(in, &pos_in, out, &pos_out, > > + min_t(size_t, len, MAX_RW_COUNT)); > > +} > > We should really cleanup the return values of the all the splice > helpers. Most callers of splice_file_range() use ssize_t already. So > does splice_direct_to_actor() and splice_to_socket(). IMO, all of the > splice helpers should just be changed to return ssize_t instead of long. > Doesn't have to be in this series though. I agree. This is very annoying. I will add this cleanup patch to v2. Thanks, Amir.