Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2243195pxb; Thu, 11 Feb 2021 07:47:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEO/hfvJl4b4QB05h55y5+mUa6LsPmusGWMkqZvb7m5MaEh0WbZ0Jt7DscHjUXyJjnpgJt X-Received: by 2002:a05:6402:2210:: with SMTP id cq16mr8873065edb.148.1613058456768; Thu, 11 Feb 2021 07:47:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613058456; cv=none; d=google.com; s=arc-20160816; b=qm0YuibplUUmpANu1lsP3s4N9VATnql2LIELe1r+VAPWH8UFmCzbfmwWD78uaj1HCf cv5onTFJ8hCGP7QxlAiJ+8xe5k+IRfaNKj1CmBIFRf0/T9gBSi3Xzfbc/u8L3JUhQB/S o4suNj88yF8uZPQztQxRRV60BKoXjCtMVe5FrNwbjeKCcjsO6N1xbWVTRzxeSxjyZ5Gp +TXNjTUSYPnCk5ZVqQwRj5UMJP9/mtXvStWstMGLHTUG+vFSk20X83c/HsvjAKyawlNA aCJRo6RitAjHFH3bdKvn0yMhXJ8b3Mnz5XMkDknI036xP4bnF89Me5tiQJ50unXDpsnr e0HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0qMNLBC33s/+NqWcfsXYU3X7RNJCK9BJov+WhU2ZWZ8=; b=Q7DPIPlA1LXVbKMZ9XF5Tu0NpoOwxBMR8qBsTfVYhzcUnNfDoV3yhvacaWzocQIRxq E4lZjIlVifIjeV+HRQdnA1ggjaxSY817PMpAfKLSQXkC1BTOQ+keJTD7t6/2SL5d5jIp hfUKHMG1ABjnnltGGg/TvV8KolPvo4Dx4jV1e+xROCjeNL88zqqYSNWhtv/xHmnVK0oK da2cvovNQKEwSX6RSw1WXIBqAYw3ljLgrU3kh/SGABjhDmTIqSyaUBQ5K559BU5HQk9l j/1g6WHH2iocWV2ABBZdz4EzARZW0Wx3Sl6vIrXnDspP8khlTXhLmXPnoI5MeBd41m0e Xh1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KaJkMuVU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u24si4114761edq.562.2021.02.11.07.47.12; Thu, 11 Feb 2021 07:47:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KaJkMuVU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231366AbhBKPmV (ORCPT + 99 others); Thu, 11 Feb 2021 10:42:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:51648 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbhBKPNT (ORCPT ); Thu, 11 Feb 2021 10:13:19 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2707664EF2; Thu, 11 Feb 2021 15:04:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613055892; bh=Tu/ihzwj0fdIKZC3D8WmvryBsJDFFHOXxBFv25QlwuQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KaJkMuVU1FYkbfKAjn8rXIsd8aCiTAsKDoZJuYAGHe2lG9lNlLkbcFO70WRaGeBJe 9KqhzDgTBQze0OXeXmmXFVcN2olearzOxXqp/YYEyHlA1H2Vd4/0p5VdEpuxM30aYn 5vkGHW578IxU7JKzjW+Gi+jP4bRNEITL3jEmbo4I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joachim Henke , Ryusuke Konishi , Andrew Morton , Linus Torvalds Subject: [PATCH 5.10 49/54] nilfs2: make splice write available again Date: Thu, 11 Feb 2021 16:02:33 +0100 Message-Id: <20210211150155.010025735@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210211150152.885701259@linuxfoundation.org> References: <20210211150152.885701259@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joachim Henke commit a35d8f016e0b68634035217d06d1c53863456b50 upstream. Since 5.10, splice() or sendfile() to NILFS2 return EINVAL. This was caused by commit 36e2c7421f02 ("fs: don't allow splice read/write without explicit ops"). This patch initializes the splice_write field in file_operations, like most file systems do, to restore the functionality. Link: https://lkml.kernel.org/r/1612784101-14353-1-git-send-email-konishi.ryusuke@gmail.com Signed-off-by: Joachim Henke Signed-off-by: Ryusuke Konishi Tested-by: Ryusuke Konishi Cc: [5.10+] Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- fs/nilfs2/file.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/nilfs2/file.c +++ b/fs/nilfs2/file.c @@ -141,6 +141,7 @@ const struct file_operations nilfs_file_ /* .release = nilfs_release_file, */ .fsync = nilfs_sync_file, .splice_read = generic_file_splice_read, + .splice_write = iter_file_splice_write, }; const struct inode_operations nilfs_file_inode_operations = {