Lines Matching refs:open_file

925 	struct cifsFileInfo *open_file;  in cifs_reopen_persistent_handles()  local
941 open_file = list_entry(tmp, struct cifsFileInfo, tlist); in cifs_reopen_persistent_handles()
942 if (!open_file->invalidHandle) in cifs_reopen_persistent_handles()
944 cifsFileInfo_get(open_file); in cifs_reopen_persistent_handles()
945 list_add_tail(&open_file->rlist, &tmp_list); in cifs_reopen_persistent_handles()
950 open_file = list_entry(tmp, struct cifsFileInfo, rlist); in cifs_reopen_persistent_handles()
951 if (cifs_reopen_file(open_file, false /* do not flush */)) in cifs_reopen_persistent_handles()
953 list_del_init(&open_file->rlist); in cifs_reopen_persistent_handles()
954 cifsFileInfo_put(open_file); in cifs_reopen_persistent_handles()
1914 cifs_write(struct cifsFileInfo *open_file, __u32 pid, const char *write_data, in cifs_write() argument
1923 struct dentry *dentry = open_file->dentry; in cifs_write()
1930 tcon = tlink_tcon(open_file->tlink); in cifs_write()
1945 if (open_file->invalidHandle) { in cifs_write()
1950 rc = cifs_reopen_file(open_file, false); in cifs_write()
1964 rc = server->ops->sync_write(xid, &open_file->fid, in cifs_write()
2000 struct cifsFileInfo *open_file = NULL; in find_readable_file() local
2011 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in find_readable_file()
2012 if (fsuid_only && !uid_eq(open_file->uid, current_fsuid())) in find_readable_file()
2014 if (OPEN_FMODE(open_file->f_flags) & FMODE_READ) { in find_readable_file()
2015 if ((!open_file->invalidHandle)) { in find_readable_file()
2018 cifsFileInfo_get(open_file); in find_readable_file()
2020 return open_file; in find_readable_file()
2036 struct cifsFileInfo *open_file, *inv_file = NULL; in cifs_get_writable_file() local
2069 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in cifs_get_writable_file()
2070 if (!any_available && open_file->pid != current->tgid) in cifs_get_writable_file()
2072 if (fsuid_only && !uid_eq(open_file->uid, current_fsuid())) in cifs_get_writable_file()
2074 if (with_delete && !(open_file->fid.access & DELETE)) in cifs_get_writable_file()
2076 if (OPEN_FMODE(open_file->f_flags) & FMODE_WRITE) { in cifs_get_writable_file()
2077 if (!open_file->invalidHandle) { in cifs_get_writable_file()
2079 cifsFileInfo_get(open_file); in cifs_get_writable_file()
2081 *ret_file = open_file; in cifs_get_writable_file()
2085 inv_file = open_file; in cifs_get_writable_file()
2209 struct cifsFileInfo *open_file; in cifs_partialpagewrite() local
2236 &open_file); in cifs_partialpagewrite()
2238 bytes_written = cifs_write(open_file, open_file->pid, in cifs_partialpagewrite()
2240 cifsFileInfo_put(open_file); in cifs_partialpagewrite()
2946 struct cifsFileInfo *open_file, in cifs_write_from_iter() argument
2963 pid = open_file->pid; in cifs_write_from_iter()
2967 server = cifs_pick_channel(tlink_tcon(open_file->tlink)->ses); in cifs_write_from_iter()
2975 if (open_file->invalidHandle) { in cifs_write_from_iter()
2976 rc = cifs_reopen_file(open_file, false); in cifs_write_from_iter()
3070 wdata->cfile = cifsFileInfo_get(open_file); in cifs_write_from_iter()
3679 cifs_send_async_read(loff_t offset, size_t len, struct cifsFileInfo *open_file, in cifs_send_async_read() argument
3695 server = cifs_pick_channel(tlink_tcon(open_file->tlink)->ses); in cifs_send_async_read()
3698 pid = open_file->pid; in cifs_send_async_read()
3706 if (open_file->invalidHandle) { in cifs_send_async_read()
3707 rc = cifs_reopen_file(open_file, true); in cifs_send_async_read()
3780 rdata->cfile = cifsFileInfo_get(open_file); in cifs_send_async_read()
4091 struct cifsFileInfo *open_file; in cifs_read() local
4107 open_file = file->private_data; in cifs_read()
4108 tcon = tlink_tcon(open_file->tlink); in cifs_read()
4117 pid = open_file->pid; in cifs_read()
4139 if (open_file->invalidHandle) { in cifs_read()
4140 rc = cifs_reopen_file(open_file, true); in cifs_read()
4149 rc = server->ops->sync_read(xid, &open_file->fid, &io_parms, in cifs_read()
4433 struct cifsFileInfo *open_file = file->private_data; in cifs_readpages() local
4455 pid = open_file->pid; in cifs_readpages()
4460 server = cifs_pick_channel(tlink_tcon(open_file->tlink)->ses); in cifs_readpages()
4484 if (open_file->invalidHandle) { in cifs_readpages()
4485 rc = cifs_reopen_file(open_file, true); in cifs_readpages()
4531 rdata->cfile = cifsFileInfo_get(open_file); in cifs_readpages()
4657 struct cifsFileInfo *open_file; in is_inode_writable() local
4660 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in is_inode_writable()
4661 if (OPEN_FMODE(open_file->f_flags) & FMODE_WRITE) { in is_inode_writable()