diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2021-08-31 22:47:02 +0900 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-09-03 23:29:45 -0500 |
commit | 687c59e702f48e0eca91455d3ef3197b7b8a8314 (patch) | |
tree | 9b2a5b41414bfed88c0208847c40e2f19952649d /fs/ksmbd/vfs_cache.c | |
parent | 72d6cbb533d4309734606027fe083c4edb0aa7aa (diff) | |
download | lwn-687c59e702f48e0eca91455d3ef3197b7b8a8314.tar.gz lwn-687c59e702f48e0eca91455d3ef3197b7b8a8314.zip |
ksmbd: remove unused ksmbd_file_table_flush function
ksmbd_file_table_flush is a leftover from SMB1. This function is no longer
needed as SMB1 has been removed from ksmbd.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/vfs_cache.c')
-rw-r--r-- | fs/ksmbd/vfs_cache.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/ksmbd/vfs_cache.c b/fs/ksmbd/vfs_cache.c index 92d8c61ffd2a..29c1db66bd0f 100644 --- a/fs/ksmbd/vfs_cache.c +++ b/fs/ksmbd/vfs_cache.c @@ -666,22 +666,6 @@ void ksmbd_free_global_file_table(void) ksmbd_destroy_file_table(&global_ft); } -int ksmbd_file_table_flush(struct ksmbd_work *work) -{ - struct ksmbd_file *fp = NULL; - unsigned int id; - int ret; - - read_lock(&work->sess->file_table.lock); - idr_for_each_entry(work->sess->file_table.idr, fp, id) { - ret = ksmbd_vfs_fsync(work, fp->volatile_id, KSMBD_NO_FID); - if (ret) - break; - } - read_unlock(&work->sess->file_table.lock); - return ret; -} - int ksmbd_init_file_table(struct ksmbd_file_table *ft) { ft->idr = kzalloc(sizeof(struct idr), GFP_KERNEL); |