Lines Matching defs:open_file
956 struct cifsFileInfo *open_file;
968 open_file = file->private_data;
989 if (open_file->closePend) {
996 if (open_file->invalidHandle) {
1007 open_file->netfid,
1058 struct cifsFileInfo *open_file;
1070 open_file = file->private_data;
1088 if (open_file->closePend) {
1095 if (open_file->invalidHandle) {
1118 open_file->netfid, len,
1123 open_file->netfid,
1168 struct cifsFileInfo *open_file = NULL;
1174 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) {
1175 if (open_file->closePend)
1177 if (open_file->pfile && ((open_file->pfile->f_flags & O_RDWR) ||
1178 (open_file->pfile->f_flags & O_RDONLY))) {
1179 if (!open_file->invalidHandle) {
1182 cifsFileInfo_get(open_file);
1184 return open_file;
1198 struct cifsFileInfo *open_file;
1214 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) {
1215 if (open_file->closePend ||
1216 (!any_available && open_file->pid != current->tgid))
1219 if (open_file->pfile &&
1220 ((open_file->pfile->f_flags & O_RDWR) ||
1221 (open_file->pfile->f_flags & O_WRONLY))) {
1222 cifsFileInfo_get(open_file);
1224 if (!open_file->invalidHandle) {
1227 return open_file;
1232 rc = cifs_reopen_file(open_file->pfile, false);
1234 if (!open_file->closePend)
1235 return open_file;
1239 cifsFileInfo_put(open_file);
1255 cifsFileInfo_put(open_file);
1257 if (open_file->closePend) /* list could have changed */
1287 struct cifsFileInfo *open_file;
1315 open_file = find_writable_file(CIFS_I(mapping->host));
1316 if (open_file) {
1317 bytes_written = cifs_write(open_file->pfile, write_data,
1319 cifsFileInfo_put(open_file);
1352 struct cifsFileInfo *open_file;
1497 open_file = find_writable_file(CIFS_I(mapping->host));
1498 if (!open_file) {
1504 open_file->netfid,
1508 cifsFileInfo_put(open_file);
1739 struct cifsFileInfo *open_file;
1753 open_file = file->private_data;
1767 if ((open_file->invalidHandle) &&
1768 (!open_file->closePend)) {
1774 open_file->netfid,
1822 struct cifsFileInfo *open_file;
1834 open_file = file->private_data;
1853 if ((open_file->invalidHandle) &&
1854 (!open_file->closePend)) {
1860 open_file->netfid,
1959 struct cifsFileInfo *open_file;
1968 open_file = file->private_data;
2018 if ((open_file->invalidHandle) &&
2019 (!open_file->closePend)) {
2026 open_file->netfid,
2167 struct cifsFileInfo *open_file;
2170 list_for_each_entry(open_file, &cifs_inode->openFileList, flist) {
2171 if (open_file->closePend)
2173 if (open_file->pfile &&
2174 ((open_file->pfile->f_flags & O_RDWR) ||
2175 (open_file->pfile->f_flags & O_WRONLY))) {