Lines Matching refs:file
18 #include <linux/file.h>
131 static int hugetlbfs_file_mmap(struct file *file, struct vm_area_struct *vma)
133 struct inode *inode = file_inode(file);
137 struct hstate *h = hstate_file(file);
176 file_accessed(file);
200 hugetlb_get_unmapped_area_bottomup(struct file *file, unsigned long addr,
203 struct hstate *h = hstate_file(file);
216 hugetlb_get_unmapped_area_topdown(struct file *file, unsigned long addr,
219 struct hstate *h = hstate_file(file);
248 hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
253 struct hstate *h = hstate_file(file);
262 if (prepare_hugepage_range(file, addr, len))
281 return hugetlb_get_unmapped_area_topdown(file, addr, len,
283 return hugetlb_get_unmapped_area_bottomup(file, addr, len,
324 struct file *file = iocb->ki_filp;
325 struct hstate *h = hstate_file(file);
326 struct address_space *mapping = file->f_mapping;
384 static int hugetlbfs_write_begin(struct file *file,
392 static int hugetlbfs_write_end(struct file *file, struct address_space *mapping,
462 * Note: If the passed end of range value is beyond the end of file, but
632 static long hugetlbfs_fallocate(struct file *file, int mode, loff_t offset,
635 struct inode *inode = file_inode(file);
680 pseudo_vma.vm_file = file;
705 /* addr is the offset within the file (zero based) */
1460 struct file *hugetlb_file_setup(const char *name, size_t size,
1467 struct file *file;
1491 file = ERR_PTR(-ENOSPC);
1504 file = ERR_PTR(-ENOMEM);
1506 file = alloc_file_pseudo(inode, mnt, name, O_RDWR,
1508 if (!IS_ERR(file))
1509 return file;
1517 return file;