Lines Matching refs:cifs_inode
1922 struct cifsFileInfo *find_readable_file(struct cifsInodeInfo *cifs_inode, in find_readable_file() argument
1926 struct cifs_sb_info *cifs_sb = CIFS_SB(cifs_inode->vfs_inode.i_sb); in find_readable_file()
1932 spin_lock(&cifs_inode->open_file_lock); in find_readable_file()
1936 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in find_readable_file()
1944 spin_unlock(&cifs_inode->open_file_lock); in find_readable_file()
1952 spin_unlock(&cifs_inode->open_file_lock); in find_readable_file()
1958 cifs_get_writable_file(struct cifsInodeInfo *cifs_inode, int flags, in cifs_get_writable_file() argument
1976 if (cifs_inode == NULL) { in cifs_get_writable_file()
1982 cifs_sb = CIFS_SB(cifs_inode->vfs_inode.i_sb); in cifs_get_writable_file()
1988 spin_lock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
1991 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
1994 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in cifs_get_writable_file()
2005 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2025 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2034 spin_lock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2035 list_move_tail(&inv_file->flist, &cifs_inode->openFileList); in cifs_get_writable_file()
2036 spin_unlock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2040 spin_lock(&cifs_inode->open_file_lock); in cifs_get_writable_file()
2048 find_writable_file(struct cifsInodeInfo *cifs_inode, int flags) in find_writable_file() argument
2053 rc = cifs_get_writable_file(cifs_inode, flags, &cfile); in find_writable_file()
4573 static int is_inode_writable(struct cifsInodeInfo *cifs_inode) in is_inode_writable() argument
4577 spin_lock(&cifs_inode->open_file_lock); in is_inode_writable()
4578 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in is_inode_writable()
4580 spin_unlock(&cifs_inode->open_file_lock); in is_inode_writable()
4584 spin_unlock(&cifs_inode->open_file_lock); in is_inode_writable()