diff options
| author | Yingchao Deng <dengyingchao@kylinsec.com.cn> | 2026-09-14 15:53:37 +0800 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-09-23 09:27:08 +0200 |
| commit | 6ffe91a84f4434edea8373ce95e3f93cbc3ffa50 (patch) | |
| tree | cdb67628beb5446779bd458becfedf2adbb0d190 /tools/lib/python/kdoc | |
| parent | bfe240aab4a1be5270bb8560d6895fd9550b8719 (diff) | |
| download | linux-next-6ffe91a84f4434edea8373ce95e3f93cbc3ffa50.tar.gz linux-next-6ffe91a84f4434edea8373ce95e3f93cbc3ffa50.zip | |
fs: fix misleading comments in read_write.c
generic_write_checks() returns the number of bytes that may be written
(possibly truncated by generic_write_check_limits()), not zero. The
comment was likely copied from generic_copy_file_checks(), which is the
analogous function for copy_file_range() and does return 0 on success.
Also, no_seek_end_llseek() and no_seek_end_llseek_size() are helpers for
files that do not support SEEK_END (they only handle SEEK_SET and
SEEK_CUR), not for "fixed-sized devices"; that description was copied
from fixed_size_llseek().
Signed-off-by: Yingchao Deng <dengyingchao@kylinsec.com.cn>
Link: https://patch.msgid.link/918177B3298981ED+20260914075337.1739-1-dengyingchao@kylinsec.com.cn
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
