diff options
| author | Siddharth Chintamaneni <sidchintamaneni@gmail.com> | 2026-10-31 23:00:49 -0700 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-11-05 22:48:21 +0100 |
| commit | 1284ecd57375f9e34ce738cae4ece834995f275d (patch) | |
| tree | 5d06c8dc698df18e959e129eed3a0fdfbef64fdb /include/linux/workqueue_api.h | |
| parent | 7a5783cfac71b3c12e7fb1c2894dd4538d57d513 (diff) | |
fs: use must_set_pos() in default_llseek()
default_llseek() open-codes the same whence switch for SEEK_END,
SEEK_CUR, SEEK_DATA, and SEEK_HOLE that must_set_pos() already implements
for generic_file_llseek_size() and generic_llseek_cookie().
Replace the open-coded switch (whence) block in default_llseek() with a
call to must_set_pos(file, &offset, whence, i_size_read(inode)).
Signed-off-by: Siddharth Chintamaneni <sidchintamaneni@gmail.com>
Link: https://patch.msgid.link/20261101060049.81441-3-sidchintamaneni@gmail.com
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions
