summaryrefslogtreecommitdiff
path: root/fs/smb/client/cached_dir.h
diff options
context:
space:
mode:
authorEnzo Matsumiya <ematsumiya@suse.de>2025-04-04 18:28:09 -0300
committerEnzo Matsumiya <ematsumiya@suse.de>2025-04-04 18:28:09 -0300
commit54ba61a34441320e5ce133f5110e9077950f4d2c (patch)
treecc1f35512130920604a8bb7b4fb7a4e92f53562c /fs/smb/client/cached_dir.h
parentd3fef38b24a36c51d0774fd9b87da4393dd16cc2 (diff)
downloadlinux-cdir_v2.tar.gz
linux-cdir_v2.tar.bz2
linux-cdir_v2.zip
smb: client: cdir with lockrefcdir_v2
Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Diffstat (limited to 'fs/smb/client/cached_dir.h')
-rw-r--r--fs/smb/client/cached_dir.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/smb/client/cached_dir.h b/fs/smb/client/cached_dir.h
index 4e5c9b86fc49..d971e664f07e 100644
--- a/fs/smb/client/cached_dir.h
+++ b/fs/smb/client/cached_dir.h
@@ -31,8 +31,8 @@ struct cached_dir_entries {
struct cached_dir {
/* Private/internal use only! */
struct list_head head;
- seqlock_t seq;
- struct kref ref;
+ struct rw_semaphore sem;
+ struct lockref lockref;
const char *path;
struct dentry *dentry;
@@ -50,7 +50,8 @@ struct cached_dir {
struct cached_dirs {
struct list_head list;
- seqlock_t seq;
+ struct rw_semaphore sem;
+ seqcount_t seq;
/* tcon backreference */
struct cifs_tcon *tcon;