Lines Matching refs:f_handle
22 struct file_handle f_handle; in do_sys_name_to_handle() local
34 if (copy_from_user(&f_handle, ufh, sizeof(struct file_handle))) in do_sys_name_to_handle()
37 if (f_handle.handle_bytes > MAX_HANDLE_SZ) in do_sys_name_to_handle()
40 handle = kmalloc(sizeof(struct file_handle) + f_handle.handle_bytes, in do_sys_name_to_handle()
46 handle_dwords = f_handle.handle_bytes >> 2; in do_sys_name_to_handle()
50 (struct fid *)handle->f_handle, in do_sys_name_to_handle()
56 if ((handle->handle_bytes > f_handle.handle_bytes) || in do_sys_name_to_handle()
153 (struct fid *)handle->f_handle, in do_handle_to_path()
171 struct file_handle f_handle; in handle_to_path() local
183 if (copy_from_user(&f_handle, ufh, sizeof(struct file_handle))) { in handle_to_path()
187 if ((f_handle.handle_bytes > MAX_HANDLE_SZ) || in handle_to_path()
188 (f_handle.handle_bytes == 0)) { in handle_to_path()
192 handle = kmalloc(sizeof(struct file_handle) + f_handle.handle_bytes, in handle_to_path()
199 *handle = f_handle; in handle_to_path()
200 if (copy_from_user(&handle->f_handle, in handle_to_path()
201 &ufh->f_handle, in handle_to_path()
202 f_handle.handle_bytes)) { in handle_to_path()