Home
last modified time | relevance | path

Searched refs:cfids (Results 1 – 7 of 7) sorted by relevance

/linux/fs/smb/client/
H A Dcached_dir.c26 static struct cached_fid *find_or_create_cached_dir(struct cached_fids *cfids, in find_or_create_cached_dir() argument
33 list_for_each_entry(cfid, &cfids->entries, entry) { in find_or_create_cached_dir()
49 if (cfids->num_entries >= max_cached_dirs) { in find_or_create_cached_dir()
56 cfid->cfids = cfids; in find_or_create_cached_dir()
57 cfids->num_entries++; in find_or_create_cached_dir()
58 list_add(&cfid->entry, &cfids->entries); in find_or_create_cached_dir()
155 struct cached_fids *cfids; in open_cached_dir() local
167 cfids = tcon->cfids; in open_cached_dir()
169 if (cfids == NULL) in open_cached_dir()
185 spin_lock(&cfids->cfid_list_lock); in open_cached_dir()
[all …]
H A Dcached_dir.h37 struct cached_fids *cfids; member
81 extern void free_cached_dirs(struct cached_fids *cfids);
H A Dcifs_debug.c321 struct cached_fids *cfids; in cifs_debug_dirs_proc_show() local
337 cfids = tcon->cfids; in cifs_debug_dirs_proc_show()
338 if (!cfids) in cifs_debug_dirs_proc_show()
340 spin_lock(&cfids->cfid_list_lock); /* check lock ordering */ in cifs_debug_dirs_proc_show()
342 cfids->num_entries, in cifs_debug_dirs_proc_show()
343 (unsigned long)atomic_long_read(&cfids->total_dirents_entries), in cifs_debug_dirs_proc_show()
344 (unsigned long long)atomic64_read(&cfids->total_dirents_bytes)); in cifs_debug_dirs_proc_show()
345 list_for_each_entry(cfid, &cfids->entries, entry) { in cifs_debug_dirs_proc_show()
364 spin_unlock(&cfids->cfid_list_lock); in cifs_debug_dirs_proc_show()
H A Ddir.c319 if (tcon->cfids && direntry->d_parent && server->dialect >= SMB30_PROT_ID) {
321 spin_lock(&tcon->cfids->cfid_list_lock);
322 list_for_each_entry(parent_cfid, &tcon->cfids->entries, entry) {
337 spin_unlock(&tcon->cfids->cfid_list_lock);
H A Dmisc.c126 ret_buf->cfids = init_cached_dirs(); in tcon_info_alloc()
127 if (!ret_buf->cfids) { in tcon_info_alloc()
173 free_cached_dirs(tcon->cfids); in tconInfoFree()
H A Dreaddir.c940 atomic64_add((long long)delta_bytes, &cfid->cfids->total_dirents_bytes); in cifs_dir_emit()
941 atomic_long_inc(&cfid->cfids->total_dirents_entries); in cifs_dir_emit()
H A Dcifsglob.h1301 struct cached_fids *cfids; member