diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2021-03-09 09:07:32 +1000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-04-25 16:28:23 -0500 |
commit | 6ef4e9cbe15df691323af007831dab4e70faa1cf (patch) | |
tree | 7df2b4ea820fe4c8c79897ac8c8d873c2f7d55ee /fs/cifs/smb2proto.h | |
parent | 5e9c89d43fa6f5d458d4d0f9e22a67cc001c8da9 (diff) | |
download | linux-6ef4e9cbe15df691323af007831dab4e70faa1cf.tar.bz2 |
cifs: add a function to get a cached dir based on its dentry
Needed for subsequent patches in the directory caching
series.
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2proto.h')
-rw-r--r-- | fs/cifs/smb2proto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/smb2proto.h b/fs/cifs/smb2proto.h index 28e8d821103c..a5f87b02cfaf 100644 --- a/fs/cifs/smb2proto.h +++ b/fs/cifs/smb2proto.h @@ -73,6 +73,9 @@ extern int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon, const char *path, struct cifs_sb_info *cifs_sb, struct cached_fid **cfid); +extern int open_cached_dir_by_dentry(struct cifs_tcon *tcon, + struct dentry *dentry, + struct cached_fid **cfid); extern void close_cached_dir(struct cached_fid *cfid); extern void close_cached_dir_lease(struct cached_fid *cfid); extern void close_cached_dir_lease_locked(struct cached_fid *cfid); |