diff options
author | Suresh Jayaraman <sjayaraman@suse.de> | 2010-07-05 08:42:27 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-08-02 08:40:36 -0400 |
commit | d03382ce9a89dbe27cba25130f0b90c0d631d5c5 (patch) | |
tree | f2561981a606a788259ad10f0ec57f9486f85da4 /fs/cifs/cifsglob.h | |
parent | 8913007e67106597fed4b9dd3787e8dca6915a83 (diff) |
cifs: define superblock-level cache index objects and register them
Define superblock-level cache index objects (managed by cifsTconInfo structs).
Each superblock object is created in a server-level index object and in itself
an index into which inode-level objects are inserted.
The superblock object is keyed by sharename. The UniqueId/IndexNumber is used to
validate that the exported share is the same since we accessed it last time.
Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 793c8e3a0e53..a3e403e7e163 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -299,6 +299,10 @@ struct cifsTconInfo { | |||
299 | bool local_lease:1; /* check leases (only) on local system not remote */ | 299 | bool local_lease:1; /* check leases (only) on local system not remote */ |
300 | bool broken_posix_open; /* e.g. Samba server versions < 3.3.2, 3.2.9 */ | 300 | bool broken_posix_open; /* e.g. Samba server versions < 3.3.2, 3.2.9 */ |
301 | bool need_reconnect:1; /* connection reset, tid now invalid */ | 301 | bool need_reconnect:1; /* connection reset, tid now invalid */ |
302 | #ifdef CONFIG_CIFS_FSCACHE | ||
303 | u64 resource_id; /* server resource id */ | ||
304 | struct fscache_cookie *fscache; /* cookie for share */ | ||
305 | #endif | ||
302 | /* BB add field for back pointer to sb struct(s)? */ | 306 | /* BB add field for back pointer to sb struct(s)? */ |
303 | }; | 307 | }; |
304 | 308 | ||