Home
last modified time | relevance | path

Searched refs:cifs_inode (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.6/fs/smb/client/
Dcifsfs.c383 struct cifsInodeInfo *cifs_inode; in cifs_alloc_inode() local
384 cifs_inode = alloc_inode_sb(sb, cifs_inode_cachep, GFP_KERNEL); in cifs_alloc_inode()
385 if (!cifs_inode) in cifs_alloc_inode()
387 cifs_inode->cifsAttrs = 0x20; /* default */ in cifs_alloc_inode()
388 cifs_inode->time = 0; in cifs_alloc_inode()
393 cifs_set_oplock_level(cifs_inode, 0); in cifs_alloc_inode()
394 cifs_inode->flags = 0; in cifs_alloc_inode()
395 spin_lock_init(&cifs_inode->writers_lock); in cifs_alloc_inode()
396 cifs_inode->writers = 0; in cifs_alloc_inode()
397 cifs_inode->netfs.inode.i_blkbits = 14; /* 2**14 = CIFS_MAX_MSGSIZE */ in cifs_alloc_inode()
[all …]
Dmisc.c744 cifs_close_deferred_file(struct cifsInodeInfo *cifs_inode) in cifs_close_deferred_file() argument
750 if (cifs_inode == NULL) in cifs_close_deferred_file()
754 spin_lock(&cifs_inode->open_file_lock); in cifs_close_deferred_file()
755 list_for_each_entry(cfile, &cifs_inode->openFileList, flist) { in cifs_close_deferred_file()
758 spin_lock(&cifs_inode->deferred_lock); in cifs_close_deferred_file()
760 spin_unlock(&cifs_inode->deferred_lock); in cifs_close_deferred_file()
770 spin_unlock(&cifs_inode->open_file_lock); in cifs_close_deferred_file()
Dfile.c2208 struct cifsFileInfo *find_readable_file(struct cifsInodeInfo *cifs_inode, in find_readable_file() argument
2212 struct cifs_sb_info *cifs_sb = CIFS_SB(cifs_inode->netfs.inode.i_sb); in find_readable_file()
2218 spin_lock(&cifs_inode->open_file_lock); in find_readable_file()
2222 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in find_readable_file()
2230 spin_unlock(&cifs_inode->open_file_lock); in find_readable_file()
2238 spin_unlock(&cifs_inode->open_file_lock); in find_readable_file()
2244 cifs_get_writable_file(struct cifsInodeInfo *cifs_inode, int flags, in cifs_get_writable_file() argument
2262 if (cifs_inode == NULL) { in cifs_get_writable_file()
2268 cifs_sb = CIFS_SB(cifs_inode->netfs.inode.i_sb); in cifs_get_writable_file()
2274 spin_lock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
[all …]
Dcifsproto.h150 extern int cifs_get_writable_file(struct cifsInodeInfo *cifs_inode,
288 extern void cifs_close_deferred_file(struct cifsInodeInfo *cifs_inode);
Dinode.c1714 struct cifsInodeInfo *cifs_inode; in cifs_unlink() local
1792 cifs_inode = CIFS_I(inode); in cifs_unlink()
1793 origattr = cifs_inode->cifsAttrs; in cifs_unlink()
1814 cifs_inode = CIFS_I(inode); in cifs_unlink()
1815 cifs_inode->time = 0; /* will force revalidate to get info in cifs_unlink()
1820 cifs_inode = CIFS_I(dir); in cifs_unlink()
Dcifsglob.h446 __u16 net_fid, struct cifsInodeInfo *cifs_inode);