Lines Matching refs:cifs_inode

1926 struct cifsFileInfo *find_readable_file(struct cifsInodeInfo *cifs_inode,  in find_readable_file()  argument
1930 struct cifs_sb_info *cifs_sb = CIFS_SB(cifs_inode->vfs_inode.i_sb); in find_readable_file()
1936 spin_lock(&cifs_inode->open_file_lock); in find_readable_file()
1940 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in find_readable_file()
1948 spin_unlock(&cifs_inode->open_file_lock); in find_readable_file()
1956 spin_unlock(&cifs_inode->open_file_lock); in find_readable_file()
1962 cifs_get_writable_file(struct cifsInodeInfo *cifs_inode, int flags, in cifs_get_writable_file() argument
1980 if (cifs_inode == NULL) { in cifs_get_writable_file()
1986 cifs_sb = CIFS_SB(cifs_inode->vfs_inode.i_sb); in cifs_get_writable_file()
1992 spin_lock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
1995 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
1998 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in cifs_get_writable_file()
2009 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2029 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2038 spin_lock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2039 list_move_tail(&inv_file->flist, &cifs_inode->openFileList); in cifs_get_writable_file()
2040 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2044 spin_lock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2052 find_writable_file(struct cifsInodeInfo *cifs_inode, int flags) in find_writable_file() argument
2057 rc = cifs_get_writable_file(cifs_inode, flags, &cfile); in find_writable_file()
4612 static int is_inode_writable(struct cifsInodeInfo *cifs_inode) in is_inode_writable() argument
4616 spin_lock(&cifs_inode->open_file_lock); in is_inode_writable()
4617 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in is_inode_writable()
4619 spin_unlock(&cifs_inode->open_file_lock); in is_inode_writable()
4623 spin_unlock(&cifs_inode->open_file_lock); in is_inode_writable()