Lines Matching refs:cifs_inode
2208 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()
2277 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2280 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in cifs_get_writable_file()
2291 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2311 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2320 spin_lock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2321 list_move_tail(&inv_file->flist, &cifs_inode->openFileList); in cifs_get_writable_file()
2322 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2326 spin_lock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2334 find_writable_file(struct cifsInodeInfo *cifs_inode, int flags) in find_writable_file() argument
2339 rc = cifs_get_writable_file(cifs_inode, flags, &cfile); in find_writable_file()
4717 static int is_inode_writable(struct cifsInodeInfo *cifs_inode) in is_inode_writable() argument
4721 spin_lock(&cifs_inode->open_file_lock); in is_inode_writable()
4722 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in is_inode_writable()
4724 spin_unlock(&cifs_inode->open_file_lock); in is_inode_writable()
4728 spin_unlock(&cifs_inode->open_file_lock); in is_inode_writable()