Lines Matching refs:file
66 static int ceph_netfs_check_write_begin(struct file *file, loff_t pos, unsigned int len,
214 * block, but do not exceed the file size, unless the original
435 static int ceph_init_request(struct netfs_io_request *rreq, struct file *file)
449 if (file) {
451 struct ceph_file_info *fi = file->private_data;
453 priv->file_ra_pages = file->f_ra.ra_pages;
454 priv->file_ra_disabled = file->f_mode & FMODE_RANDOM;
696 /* is this a partial page at end of file? */
1354 /* more to do; loop back to beginning of file */
1355 dout("writepages looping back to beginning of file\n");
1468 static int ceph_netfs_check_write_begin(struct file *file, loff_t pos, unsigned int len,
1471 struct inode *inode = file_inode(file);
1498 static int ceph_write_begin(struct file *file, struct address_space *mapping,
1502 struct inode *inode = file_inode(file);
1507 r = netfs_write_begin(&ci->netfs, file, inode->i_mapping, pos, len, &folio, NULL);
1521 static int ceph_write_end(struct file *file, struct address_space *mapping,
1526 struct inode *inode = file_inode(file);
1529 dout("write_end file %p inode %p folio %p %d~%d (%d)\n", file,
1541 /* did file size increase? */
1822 int ceph_uninline_data(struct file *file)
1824 struct inode *inode = file_inode(file);
1857 folio = read_mapping_folio(inode->i_mapping, 0, file);
1962 int ceph_mmap(struct file *file, struct vm_area_struct *vma)
1964 struct address_space *mapping = file->f_mapping;