Lines Matching refs:f_handle
20 struct file_handle f_handle; in do_sys_name_to_handle() local
32 if (copy_from_user(&f_handle, ufh, sizeof(struct file_handle))) in do_sys_name_to_handle()
35 if (f_handle.handle_bytes > MAX_HANDLE_SZ) in do_sys_name_to_handle()
38 handle = kmalloc(sizeof(struct file_handle) + f_handle.handle_bytes, in do_sys_name_to_handle()
44 handle_dwords = f_handle.handle_bytes >> 2; in do_sys_name_to_handle()
48 (struct fid *)handle->f_handle, in do_sys_name_to_handle()
54 if ((handle->handle_bytes > f_handle.handle_bytes) || in do_sys_name_to_handle()
152 (struct fid *)handle->f_handle, in do_handle_to_path()
170 struct file_handle f_handle; in handle_to_path() local
182 if (copy_from_user(&f_handle, ufh, sizeof(struct file_handle))) { in handle_to_path()
186 if ((f_handle.handle_bytes > MAX_HANDLE_SZ) || in handle_to_path()
187 (f_handle.handle_bytes == 0)) { in handle_to_path()
191 handle = kmalloc(sizeof(struct file_handle) + f_handle.handle_bytes, in handle_to_path()
198 *handle = f_handle; in handle_to_path()
199 if (copy_from_user(&handle->f_handle, in handle_to_path()
200 &ufh->f_handle, in handle_to_path()
201 f_handle.handle_bytes)) { in handle_to_path()