Lines Matching refs:open_file

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