fs: add generic_llseek_cookie()
authorChristian Brauner <brauner@kernel.org>
Fri, 30 Aug 2024 13:04:49 +0000 (15:04 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 9 Sep 2024 09:58:07 +0000 (11:58 +0200)
commitd688d65a847ff910146eff51e70f4b7049895eb5
tree7b55de1aa046be466dbdcdbafa7619a67360366e
parented904935c3992ec4178a38f61eca8ce7303ae1a0
fs: add generic_llseek_cookie()

This is similar to generic_file_llseek() but allows the caller to
specify a cookie that will be updated to indicate that a seek happened.
Caller's requiring that information in their readdir implementations can
use that.

Link: https://lore.kernel.org/r/20240830-vfs-file-f_version-v1-8-6d3e4816aa7b@kernel.org
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/read_write.c
include/linux/fs.h