在 2025/7/10 0:03, David Howells 写道:
I think this should only affect erofs, right? David
Yes, currently other callers don't rely on the return value of __cachefiles_write(); instead, they determine success or failure through cachefiles_write_complete(). Therefore, resetting "ret" to 0 in __cachefiles_write() might be unnecessary? When this step is removed, the outer cachefiles_ondemand_fd_write_iter() can also correctly update the offset based on ret. Thanks, Zizhi Wo