Lines Matching refs:file
341 static long cifs_fallocate(struct file *file, int mode, loff_t off, loff_t len)
343 struct cifs_sb_info *cifs_sb = CIFS_FILE_SB(file);
348 return server->ops->fallocate(file, tcon, mode, off, len);
365 } else /* file mode might have been restricted at mount time
390 * Until the file is open and we have gotten oplock info back from the
391 * server, can not assume caching of file data or metadata.
706 * Display file and directory attribute timeout in seconds.
707 * If file and directory attribute timeout the same then actimeo
1040 static loff_t cifs_llseek(struct file *file, loff_t offset, int whence)
1042 struct cifsFileInfo *cfile = file->private_data;
1047 * the cached file length
1051 struct inode *inode = file_inode(file);
1055 * server has the newest file length.
1066 * Some applications poll for the file length in this strange
1072 rc = cifs_revalidate_file_attr(file);
1079 return tcon->ses->server->ops->llseek(file, tcon,
1082 return generic_file_llseek(file, offset, whence);
1086 cifs_setlease(struct file *file, int arg, struct file_lock **lease, void **priv)
1092 struct inode *inode = file_inode(file);
1093 struct cifsFileInfo *cfile = file->private_data;
1098 /* Check if file is oplocked if this is request for new lease */
1102 return generic_setlease(file, arg, lease, priv);
1106 * If the server claims to support oplock on this file, then we
1110 * knows that the file won't be changed on the server by anyone
1113 return generic_setlease(file, arg, lease, priv);
1265 static loff_t cifs_remap_file_range(struct file *src_file, loff_t off,
1266 struct file *dst_file, loff_t destoff, loff_t len,
1291 cifs_dbg(VFS, "missing cifsFileInfo on copy range src file\n");
1300 * checks for proper open modes and file type and if it wants
1361 /* force revalidate of size and timestamps of target file now
1374 struct file *src_file, loff_t off,
1375 struct file *dst_file, loff_t destoff,
1392 cifs_dbg(VFS, "missing cifsFileInfo on copy range src file\n");
1413 * checks for proper open modes and file type and if it wants
1463 /* force revalidate of size and timestamps of target file now
1482 static int cifs_dir_fsync(struct file *file, loff_t start, loff_t end, int datasync)
1485 file, datasync);
1490 static ssize_t cifs_copy_file_range(struct file *src_file, loff_t off,
1491 struct file *dst_file, loff_t destoff,