[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250710-nichtig-rennen-83a1033aee50@brauner>
Date: Thu, 10 Jul 2025 09:40:34 +0200
From: Christian Brauner <brauner@...nel.org>
To: Zizhi Wo <wozizhi@...weicloud.com>
Cc: Christian Brauner <brauner@...nel.org>,
linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org,
wozizhi@...wei.com,
libaokun1@...wei.com,
yangerkun@...wei.com,
houtao1@...wei.com,
yukuai3@...wei.com,
netfs@...ts.linux.dev,
dhowells@...hat.com,
jlayton@...nel.org
Subject: Re: [PATCH] cachefiles: Fix the incorrect return value in __cachefiles_write()
On Thu, 03 Jul 2025 10:44:18 +0800, Zizhi Wo wrote:
> In __cachefiles_write(), if the return value of the write operation > 0, it
> is set to 0. This makes it impossible to distinguish scenarios where a
> partial write has occurred, and will affect the outer calling functions:
>
> 1) cachefiles_write_complete() will call "term_func" such as
> netfs_write_subrequest_terminated(). When "ret" in __cachefiles_write()
> is used as the "transferred_or_error" of this function, it can not
> distinguish the amount of data written, makes the WARN meaningless.
>
> [...]
Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.fixes
[1/1] cachefiles: Fix the incorrect return value in __cachefiles_write()
https://git.kernel.org/vfs/vfs/c/6b89819b06d8
Powered by blists - more mailing lists