aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2024-08-30 15:04:52 +0200
committerChristian Brauner <brauner@kernel.org>2024-09-09 11:58:08 +0200
commit4f05ee2f82b470c20f7ff260bb0d866425b09d05 (patch)
tree19c306b54a06532ae864b946f0a659d1cc3efc19 /fs/ext4/ext4.h
parentext2: store cookie in private data (diff)
downloadwireguard-linux-4f05ee2f82b470c20f7ff260bb0d866425b09d05.tar.xz
wireguard-linux-4f05ee2f82b470c20f7ff260bb0d866425b09d05.zip
ext4: 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-11-6d3e4816aa7b@kernel.org Acked-by: Theodore Ts'o <tytso@mit.edu> 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 '')
-rw-r--r--fs/ext4/ext4.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 08acd152261e..d62a4b9b26ce 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -2553,6 +2553,8 @@ struct dir_private_info {
__u32 curr_hash;
__u32 curr_minor_hash;
__u32 next_hash;
+ u64 cookie;
+ bool initialized;
};
/* calculate the first block number of the group */