Lines Matching refs:file
16 static long ceph_ioctl_get_layout(struct file *file, void __user *arg) in ceph_ioctl_get_layout() argument
18 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_get_layout()
22 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOUT, false); in ceph_ioctl_get_layout()
63 static long ceph_ioctl_set_layout(struct file *file, void __user *arg) in ceph_ioctl_set_layout() argument
65 struct inode *inode = file_inode(file); in ceph_ioctl_set_layout()
69 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_set_layout()
77 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOUT, false); in ceph_ioctl_set_layout()
135 static long ceph_ioctl_set_layout_policy (struct file *file, void __user *arg) in ceph_ioctl_set_layout_policy() argument
137 struct inode *inode = file_inode(file); in ceph_ioctl_set_layout_policy()
178 static long ceph_ioctl_get_dataloc(struct file *file, void __user *arg) in ceph_ioctl_get_dataloc() argument
181 struct inode *inode = file_inode(file); in ceph_ioctl_get_dataloc()
242 static long ceph_ioctl_lazyio(struct file *file) in ceph_ioctl_lazyio() argument
244 struct ceph_file_info *fi = file->private_data; in ceph_ioctl_lazyio()
245 struct inode *inode = file_inode(file); in ceph_ioctl_lazyio()
254 dout("ioctl_layzio: file %p marked lazy\n", file); in ceph_ioctl_lazyio()
258 dout("ioctl_layzio: file %p already lazy\n", file); in ceph_ioctl_lazyio()
263 static long ceph_ioctl_syncio(struct file *file) in ceph_ioctl_syncio() argument
265 struct ceph_file_info *fi = file->private_data; in ceph_ioctl_syncio()
271 long ceph_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ceph_ioctl() argument
273 dout("ioctl file %p cmd %u arg %lu\n", file, cmd, arg); in ceph_ioctl()
276 return ceph_ioctl_get_layout(file, (void __user *)arg); in ceph_ioctl()
279 return ceph_ioctl_set_layout(file, (void __user *)arg); in ceph_ioctl()
282 return ceph_ioctl_set_layout_policy(file, (void __user *)arg); in ceph_ioctl()
285 return ceph_ioctl_get_dataloc(file, (void __user *)arg); in ceph_ioctl()
288 return ceph_ioctl_lazyio(file); in ceph_ioctl()
291 return ceph_ioctl_syncio(file); in ceph_ioctl()