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
83 void free_cached_dirs(struct cached_fids *cfids);
H A Dcifs_debug.c305 struct cached_fids *cfids; in cifs_debug_dirs_proc_show() local
321 cfids = tcon->cfids; in cifs_debug_dirs_proc_show()
322 if (!cfids) in cifs_debug_dirs_proc_show()
324 spin_lock(&cfids->cfid_list_lock); /* check lock ordering */ in cifs_debug_dirs_proc_show()
326 cfids->num_entries, in cifs_debug_dirs_proc_show()
327 (unsigned long)atomic_long_read(&cfids->total_dirents_entries), in cifs_debug_dirs_proc_show()
328 (unsigned long long)atomic64_read(&cfids->total_dirents_bytes)); in cifs_debug_dirs_proc_show()
329 list_for_each_entry(cfid, &cfids->entries, entry) { in cifs_debug_dirs_proc_show()
348 spin_unlock(&cfids->cfid_list_lock); in cifs_debug_dirs_proc_show()
H A Ddir.c321 if (tcon->cfids && direntry->d_parent && server->dialect >= SMB30_PROT_ID) {
323 spin_lock(&tcon->cfids->cfid_list_lock);
324 list_for_each_entry(parent_cfid, &tcon->cfids->entries, entry) {
339 spin_unlock(&tcon->cfids->cfid_list_lock);
H A Dmisc.c131 ret_buf->cfids = init_cached_dirs(); in tcon_info_alloc()
132 if (!ret_buf->cfids) { in tcon_info_alloc()
178 free_cached_dirs(tcon->cfids); in tconInfoFree()
H A Dreaddir.c941 atomic64_add((long long)delta_bytes, &cfid->cfids->total_dirents_bytes); in cifs_dir_emit()
942 atomic_long_inc(&cfid->cfids->total_dirents_entries); in cifs_dir_emit()
H A Dcifsglob.h1291 struct cached_fids *cfids; member