summaryrefslogtreecommitdiff
path: root/fs/ocfs2/file.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2024-08-30 15:04:54 +0200
committerChristian Brauner <brauner@kernel.org>2024-09-12 11:58:44 +0200
commitceaa5e80db7c73321c89fda39c3c8c78817aecd2 (patch)
tree76d38c3304926a18a8338b3711166e0fc93c60df /fs/ocfs2/file.h
parent7a7ce8b3ba66754f5d275a71630b4ee8b507d266 (diff)
downloadlwn-ceaa5e80db7c73321c89fda39c3c8c78817aecd2.tar.gz
lwn-ceaa5e80db7c73321c89fda39c3c8c78817aecd2.zip
ocfs2: store cookie in private data
Store the cookie to detect concurrent seeks on directories in file->private_data. Link: https://lore.kernel.org/r/20240830-vfs-file-f_version-v1-13-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>
Diffstat (limited to 'fs/ocfs2/file.h')
-rw-r--r--fs/ocfs2/file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/file.h b/fs/ocfs2/file.h
index 8e53e4ac1120..41e65e45a9f3 100644
--- a/fs/ocfs2/file.h
+++ b/fs/ocfs2/file.h
@@ -20,6 +20,7 @@ struct ocfs2_alloc_context;
enum ocfs2_alloc_restarted;
struct ocfs2_file_private {
+ u64 cookie;
struct file *fp_file;
struct mutex fp_mutex;
struct ocfs2_lock_res fp_flock;