Lines Matching refs:cifs_inode
2079 struct cifsFileInfo *find_readable_file(struct cifsInodeInfo *cifs_inode, in find_readable_file() argument
2083 struct cifs_sb_info *cifs_sb = CIFS_SB(cifs_inode->netfs.inode.i_sb); in find_readable_file()
2089 spin_lock(&cifs_inode->open_file_lock); in find_readable_file()
2093 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in find_readable_file()
2101 spin_unlock(&cifs_inode->open_file_lock); in find_readable_file()
2109 spin_unlock(&cifs_inode->open_file_lock); in find_readable_file()
2115 cifs_get_writable_file(struct cifsInodeInfo *cifs_inode, int flags, in cifs_get_writable_file() argument
2133 if (cifs_inode == NULL) { in cifs_get_writable_file()
2139 cifs_sb = CIFS_SB(cifs_inode->netfs.inode.i_sb); in cifs_get_writable_file()
2145 spin_lock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2148 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2151 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in cifs_get_writable_file()
2162 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2182 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2191 spin_lock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2192 list_move_tail(&inv_file->flist, &cifs_inode->openFileList); in cifs_get_writable_file()
2193 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2197 spin_lock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2205 find_writable_file(struct cifsInodeInfo *cifs_inode, int flags) in find_writable_file() argument
2210 rc = cifs_get_writable_file(cifs_inode, flags, &cfile); in find_writable_file()
4915 static int is_inode_writable(struct cifsInodeInfo *cifs_inode) in is_inode_writable() argument
4919 spin_lock(&cifs_inode->open_file_lock); in is_inode_writable()
4920 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in is_inode_writable()
4922 spin_unlock(&cifs_inode->open_file_lock); in is_inode_writable()
4926 spin_unlock(&cifs_inode->open_file_lock); in is_inode_writable()