Lines Matching defs:file
15 * get and set the file layout
17 static long ceph_ioctl_get_layout(struct file *file, void __user *arg)
19 struct ceph_inode_info *ci = ceph_inode(file_inode(file));
23 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOUT, false);
64 static long ceph_ioctl_set_layout(struct file *file, void __user *arg)
66 struct inode *inode = file_inode(file);
70 struct ceph_inode_info *ci = ceph_inode(file_inode(file));
78 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOUT, false);
136 static long ceph_ioctl_set_layout_policy (struct file *file, void __user *arg)
138 struct inode *inode = file_inode(file);
177 * number, network address) for a given file offset.
179 static long ceph_ioctl_get_dataloc(struct file *file, void __user *arg)
182 struct inode *inode = file_inode(file);
241 static long ceph_ioctl_lazyio(struct file *file)
243 struct ceph_file_info *fi = file->private_data;
244 struct inode *inode = file_inode(file);
254 dout("ioctl_layzio: file %p marked lazy\n", file);
258 dout("ioctl_layzio: file %p already lazy\n", file);
263 static long ceph_ioctl_syncio(struct file *file)
265 struct ceph_file_info *fi = file->private_data;
271 long ceph_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
273 dout("ioctl file %p cmd %u arg %lu\n", file, cmd, arg);
276 return ceph_ioctl_get_layout(file, (void __user *)arg);
279 return ceph_ioctl_set_layout(file, (void __user *)arg);
282 return ceph_ioctl_set_layout_policy(file, (void __user *)arg);
285 return ceph_ioctl_get_dataloc(file, (void __user *)arg);
288 return ceph_ioctl_lazyio(file);
291 return ceph_ioctl_syncio(file);