Re: [PATCH] cachefiles: Fix the incorrect return value in __cachefiles_write()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





在 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





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux