Lines Matching refs:f_handle
23 struct file_handle f_handle; in do_sys_name_to_handle() local
42 if (copy_from_user(&f_handle, ufh, sizeof(struct file_handle))) in do_sys_name_to_handle()
45 if (f_handle.handle_bytes > MAX_HANDLE_SZ) in do_sys_name_to_handle()
48 handle = kzalloc(struct_size(handle, f_handle, f_handle.handle_bytes), in do_sys_name_to_handle()
54 handle_dwords = f_handle.handle_bytes >> 2; in do_sys_name_to_handle()
58 (struct fid *)handle->f_handle, in do_sys_name_to_handle()
64 if ((handle->handle_bytes > f_handle.handle_bytes) || in do_sys_name_to_handle()
108 struct_size(handle, f_handle, handle_bytes))) in do_sys_name_to_handle()
262 dentry = exportfs_decode_fh_raw(mnt, (struct fid *)handle->f_handle, in do_handle_to_path()
330 struct file_handle f_handle; in handle_to_path() local
335 if (copy_from_user(&f_handle, ufh, sizeof(struct file_handle))) in handle_to_path()
338 if ((f_handle.handle_bytes > MAX_HANDLE_SZ) || in handle_to_path()
339 (f_handle.handle_bytes == 0)) in handle_to_path()
342 if (f_handle.handle_type < 0 || in handle_to_path()
343 FILEID_USER_FLAGS(f_handle.handle_type) & ~FILEID_VALID_USER_FLAGS) in handle_to_path()
358 handle = kmalloc(struct_size(handle, f_handle, f_handle.handle_bytes), in handle_to_path()
365 *handle = f_handle; in handle_to_path()
366 if (copy_from_user(&handle->f_handle, in handle_to_path()
367 &ufh->f_handle, in handle_to_path()
368 f_handle.handle_bytes)) { in handle_to_path()
378 if (f_handle.handle_type & FILEID_IS_CONNECTABLE) { in handle_to_path()
382 if (f_handle.handle_type & FILEID_IS_DIR) in handle_to_path()