Lines Matching defs:file

339 static long cifs_fallocate(struct file *file, int mode, loff_t off, loff_t len)
341 struct cifs_sb_info *cifs_sb = CIFS_FILE_SB(file);
346 return server->ops->fallocate(file, tcon, mode, off, len);
363 } else /* file mode might have been restricted at mount time
388 * Until the file is open and we have gotten oplock info back from the
389 * server, can not assume caching of file data or metadata.
709 * Display file and directory attribute timeout in seconds.
710 * If file and directory attribute timeout the same then actimeo
1044 static loff_t cifs_llseek(struct file *file, loff_t offset, int whence)
1046 struct cifsFileInfo *cfile = file->private_data;
1051 * the cached file length
1055 struct inode *inode = file_inode(file);
1059 * server has the newest file length.
1070 * Some applications poll for the file length in this strange
1076 rc = cifs_revalidate_file_attr(file);
1083 return tcon->ses->server->ops->llseek(file, tcon,
1086 return generic_file_llseek(file, offset, whence);
1090 cifs_setlease(struct file *file, int arg, struct file_lease **lease, void **priv)
1096 struct inode *inode = file_inode(file);
1097 struct cifsFileInfo *cfile = file->private_data;
1099 /* Check if file is oplocked if this is request for new lease */
1103 return generic_setlease(file, arg, lease, priv);
1107 * If the server claims to support oplock on this file, then we
1111 * knows that the file won't be changed on the server by anyone
1114 return generic_setlease(file, arg, lease, priv);
1269 static loff_t cifs_remap_file_range(struct file *src_file, loff_t off,
1270 struct file *dst_file, loff_t destoff, loff_t len,
1295 cifs_dbg(VFS, "missing cifsFileInfo on copy range src file\n");
1304 * checks for proper open modes and file type and if it wants
1365 /* force revalidate of size and timestamps of target file now
1378 struct file *src_file, loff_t off,
1379 struct file *dst_file, loff_t destoff,
1397 cifs_dbg(VFS, "missing cifsFileInfo on copy range src file\n");
1418 * checks for proper open modes and file type and if it wants
1478 /* force revalidate of size and timestamps of target file now
1497 static int cifs_dir_fsync(struct file *file, loff_t start, loff_t end, int datasync)
1500 file, datasync);
1505 static ssize_t cifs_copy_file_range(struct file *src_file, loff_t off,
1506 struct file *dst_file, loff_t destoff,