Lines Matching refs:open_file
854 struct cifsFileInfo *open_file; in cifs_reopen_persistent_handles() local
870 open_file = list_entry(tmp, struct cifsFileInfo, tlist); in cifs_reopen_persistent_handles()
871 if (!open_file->invalidHandle) in cifs_reopen_persistent_handles()
873 cifsFileInfo_get(open_file); in cifs_reopen_persistent_handles()
874 list_add_tail(&open_file->rlist, &tmp_list); in cifs_reopen_persistent_handles()
879 open_file = list_entry(tmp, struct cifsFileInfo, rlist); in cifs_reopen_persistent_handles()
880 if (cifs_reopen_file(open_file, false /* do not flush */)) in cifs_reopen_persistent_handles()
882 list_del_init(&open_file->rlist); in cifs_reopen_persistent_handles()
883 cifsFileInfo_put(open_file); in cifs_reopen_persistent_handles()
1845 cifs_write(struct cifsFileInfo *open_file, __u32 pid, const char *write_data, in cifs_write() argument
1854 struct dentry *dentry = open_file->dentry; in cifs_write()
1861 tcon = tlink_tcon(open_file->tlink); in cifs_write()
1876 if (open_file->invalidHandle) { in cifs_write()
1881 rc = cifs_reopen_file(open_file, false); in cifs_write()
1895 rc = server->ops->sync_write(xid, &open_file->fid, in cifs_write()
1929 struct cifsFileInfo *open_file = NULL; in find_readable_file() local
1940 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in find_readable_file()
1941 if (fsuid_only && !uid_eq(open_file->uid, current_fsuid())) in find_readable_file()
1943 if (OPEN_FMODE(open_file->f_flags) & FMODE_READ) { in find_readable_file()
1944 if (!open_file->invalidHandle) { in find_readable_file()
1947 cifsFileInfo_get(open_file); in find_readable_file()
1949 return open_file; in find_readable_file()
1965 struct cifsFileInfo *open_file, *inv_file = NULL; in cifs_get_writable_file() local
1998 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in cifs_get_writable_file()
1999 if (!any_available && open_file->pid != current->tgid) in cifs_get_writable_file()
2001 if (fsuid_only && !uid_eq(open_file->uid, current_fsuid())) in cifs_get_writable_file()
2003 if (with_delete && !(open_file->fid.access & DELETE)) in cifs_get_writable_file()
2005 if (OPEN_FMODE(open_file->f_flags) & FMODE_WRITE) { in cifs_get_writable_file()
2006 if (!open_file->invalidHandle) { in cifs_get_writable_file()
2008 cifsFileInfo_get(open_file); in cifs_get_writable_file()
2010 *ret_file = open_file; in cifs_get_writable_file()
2014 inv_file = open_file; in cifs_get_writable_file()
2144 struct cifsFileInfo *open_file; in cifs_partialpagewrite() local
2171 &open_file); in cifs_partialpagewrite()
2173 bytes_written = cifs_write(open_file, open_file->pid, in cifs_partialpagewrite()
2175 cifsFileInfo_put(open_file); in cifs_partialpagewrite()
2898 struct cifsFileInfo *open_file, in cifs_write_from_iter() argument
2915 pid = open_file->pid; in cifs_write_from_iter()
2919 server = cifs_pick_channel(tlink_tcon(open_file->tlink)->ses); in cifs_write_from_iter()
2927 if (open_file->invalidHandle) { in cifs_write_from_iter()
2928 rc = cifs_reopen_file(open_file, false); in cifs_write_from_iter()
3022 wdata->cfile = cifsFileInfo_get(open_file); in cifs_write_from_iter()
3634 cifs_send_async_read(loff_t offset, size_t len, struct cifsFileInfo *open_file, in cifs_send_async_read() argument
3650 server = cifs_pick_channel(tlink_tcon(open_file->tlink)->ses); in cifs_send_async_read()
3653 pid = open_file->pid; in cifs_send_async_read()
3661 if (open_file->invalidHandle) { in cifs_send_async_read()
3662 rc = cifs_reopen_file(open_file, true); in cifs_send_async_read()
3735 rdata->cfile = cifsFileInfo_get(open_file); in cifs_send_async_read()
4055 struct cifsFileInfo *open_file; in cifs_read() local
4071 open_file = file->private_data; in cifs_read()
4072 tcon = tlink_tcon(open_file->tlink); in cifs_read()
4081 pid = open_file->pid; in cifs_read()
4103 if (open_file->invalidHandle) { in cifs_read()
4104 rc = cifs_reopen_file(open_file, true); in cifs_read()
4113 rc = server->ops->sync_read(xid, &open_file->fid, &io_parms, in cifs_read()
4390 struct cifsFileInfo *open_file = file->private_data; in cifs_readpages() local
4412 pid = open_file->pid; in cifs_readpages()
4417 server = cifs_pick_channel(tlink_tcon(open_file->tlink)->ses); in cifs_readpages()
4441 if (open_file->invalidHandle) { in cifs_readpages()
4442 rc = cifs_reopen_file(open_file, true); in cifs_readpages()
4488 rdata->cfile = cifsFileInfo_get(open_file); in cifs_readpages()
4614 struct cifsFileInfo *open_file; in is_inode_writable() local
4617 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { in is_inode_writable()
4618 if (OPEN_FMODE(open_file->f_flags) & FMODE_WRITE) { in is_inode_writable()