Lines Matching defs:xf
64 struct xfile *xf;
67 xf = kmalloc(sizeof(struct xfile), XCHK_GFP_FLAGS);
68 if (!xf)
71 xf->file = shmem_file_setup(description, isize, 0);
72 if (!xf->file)
74 if (IS_ERR(xf->file)) {
75 error = PTR_ERR(xf->file);
86 xf->file->f_mode |= FMODE_PREAD | FMODE_PWRITE | FMODE_NOCMTIME |
88 xf->file->f_flags |= O_RDWR | O_LARGEFILE | O_NOATIME;
89 inode = file_inode(xf->file);
97 trace_xfile_create(xf);
99 *xfilep = xf;
102 kfree(xf);
109 struct xfile *xf)
111 struct inode *inode = file_inode(xf->file);
113 trace_xfile_destroy(xf);
116 fput(xf->file);
117 kfree(xf);
128 struct xfile *xf,
133 struct inode *inode = file_inode(xf->file);
145 trace_xfile_pread(xf, pos, count);
205 struct xfile *xf,
210 struct inode *inode = file_inode(xf->file);
223 trace_xfile_pwrite(xf, pos, count);
284 struct xfile *xf,
289 ret = vfs_llseek(xf->file, pos, SEEK_DATA);
290 trace_xfile_seek_data(xf, pos, ret);
297 struct xfile *xf,
303 error = vfs_getattr_nosec(&xf->file->f_path, &ks,
320 struct xfile *xf,
325 struct inode *inode = file_inode(xf->file);
339 trace_xfile_get_page(xf, pos, len);
394 struct xfile *xf,
397 struct inode *inode = file_inode(xf->file);
403 trace_xfile_put_page(xf, xfpage->pos, PAGE_SIZE);