diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2024-07-15 08:29:39 +0900 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-07-14 21:45:40 -0500 |
commit | d484d621d40f4a8b8959008802d79bef3609641b (patch) | |
tree | 0338a09c12a39c327f1bd02720391dd8075999dd /fs/smb/server/vfs_cache.h | |
parent | 520da3c488c5bb177871634e713eb8a106082e6b (diff) |
ksmbd: add durable scavenger timer
Launch ksmbd-durable-scavenger kernel thread to scan durable fps that
have not been reclaimed by a client within the configured time.
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/server/vfs_cache.h')
-rw-r--r-- | fs/smb/server/vfs_cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/smb/server/vfs_cache.h b/fs/smb/server/vfs_cache.h index f2ab1514e81a..b0f6d0f94cb8 100644 --- a/fs/smb/server/vfs_cache.h +++ b/fs/smb/server/vfs_cache.h @@ -153,6 +153,8 @@ struct ksmbd_file *ksmbd_lookup_fd_cguid(char *cguid); struct ksmbd_file *ksmbd_lookup_fd_inode(struct dentry *dentry); unsigned int ksmbd_open_durable_fd(struct ksmbd_file *fp); struct ksmbd_file *ksmbd_open_fd(struct ksmbd_work *work, struct file *filp); +void ksmbd_launch_ksmbd_durable_scavenger(void); +void ksmbd_stop_durable_scavenger(void); void ksmbd_close_tree_conn_fds(struct ksmbd_work *work); void ksmbd_close_session_fds(struct ksmbd_work *work); int ksmbd_close_inode_fds(struct ksmbd_work *work, struct inode *inode); |