extern void abort(void); #include void reach_error() { assert(0); } /* Generated by CIL v. 1.5.1 */ /* print_CIL_Input is false */ typedef unsigned char __u8; typedef short __s16; typedef unsigned short __u16; typedef int __s32; typedef unsigned int __u32; typedef long long __s64; typedef unsigned long long __u64; typedef signed char s8; typedef unsigned char u8; typedef unsigned short u16; typedef int s32; typedef unsigned int u32; typedef long long s64; typedef unsigned long long u64; typedef long __kernel_long_t; typedef unsigned long __kernel_ulong_t; typedef int __kernel_pid_t; typedef __kernel_long_t __kernel_suseconds_t; typedef unsigned int __kernel_uid32_t; typedef unsigned int __kernel_gid32_t; typedef __kernel_ulong_t __kernel_size_t; typedef __kernel_long_t __kernel_ssize_t; typedef long long __kernel_loff_t; typedef __kernel_long_t __kernel_time_t; typedef __kernel_long_t __kernel_clock_t; typedef int __kernel_timer_t; typedef int __kernel_clockid_t; typedef __u16 __be16; typedef __u32 __be32; typedef __u32 __wsum; struct kernel_symbol { unsigned long value ; char const *name ; }; struct module; typedef __u32 __kernel_dev_t; typedef __kernel_dev_t dev_t; typedef unsigned short umode_t; typedef __kernel_pid_t pid_t; typedef __kernel_clockid_t clockid_t; typedef _Bool bool; typedef __kernel_uid32_t uid_t; typedef __kernel_gid32_t gid_t; typedef __kernel_loff_t loff_t; typedef __kernel_size_t size_t; typedef __kernel_ssize_t ssize_t; typedef __kernel_time_t time_t; typedef __s32 int32_t; typedef __u8 uint8_t; typedef __u32 uint32_t; typedef __u64 uint64_t; typedef unsigned long sector_t; typedef unsigned long blkcnt_t; typedef u64 dma_addr_t; typedef unsigned int gfp_t; typedef unsigned int fmode_t; typedef unsigned int oom_flags_t; struct __anonstruct_atomic_t_6 { int counter ; }; typedef struct __anonstruct_atomic_t_6 atomic_t; struct __anonstruct_atomic64_t_7 { long counter ; }; typedef struct __anonstruct_atomic64_t_7 atomic64_t; struct list_head { struct list_head *next ; struct list_head *prev ; }; struct hlist_node; struct hlist_head { struct hlist_node *first ; }; struct hlist_node { struct hlist_node *next ; struct hlist_node **pprev ; }; struct callback_head { struct callback_head *next ; void (*func)(struct callback_head * ) ; }; struct pt_regs { unsigned long r15 ; unsigned long r14 ; unsigned long r13 ; unsigned long r12 ; unsigned long bp ; unsigned long bx ; unsigned long r11 ; unsigned long r10 ; unsigned long r9 ; unsigned long r8 ; unsigned long ax ; unsigned long cx ; unsigned long dx ; unsigned long si ; unsigned long di ; unsigned long orig_ax ; unsigned long ip ; unsigned long cs ; unsigned long flags ; unsigned long sp ; unsigned long ss ; }; struct __anonstruct____missing_field_name_9 { unsigned int a ; unsigned int b ; }; struct __anonstruct____missing_field_name_10 { u16 limit0 ; u16 base0 ; unsigned char base1 ; unsigned char type : 4 ; unsigned char s : 1 ; unsigned char dpl : 2 ; unsigned char p : 1 ; unsigned char limit : 4 ; unsigned char avl : 1 ; unsigned char l : 1 ; unsigned char d : 1 ; unsigned char g : 1 ; unsigned char base2 ; }; union __anonunion____missing_field_name_8 { struct __anonstruct____missing_field_name_9 __annonCompField4 ; struct __anonstruct____missing_field_name_10 __annonCompField5 ; }; struct desc_struct { union __anonunion____missing_field_name_8 __annonCompField6 ; }; typedef unsigned long pteval_t; typedef unsigned long pgdval_t; typedef unsigned long pgprotval_t; struct __anonstruct_pte_t_11 { pteval_t pte ; }; typedef struct __anonstruct_pte_t_11 pte_t; struct pgprot { pgprotval_t pgprot ; }; typedef struct pgprot pgprot_t; struct __anonstruct_pgd_t_12 { pgdval_t pgd ; }; typedef struct __anonstruct_pgd_t_12 pgd_t; struct page; typedef struct page *pgtable_t; struct file; struct seq_file; struct thread_struct; struct mm_struct; struct task_struct; struct cpumask; struct qspinlock { atomic_t val ; }; typedef struct qspinlock arch_spinlock_t; struct qrwlock { atomic_t cnts ; arch_spinlock_t lock ; }; typedef struct qrwlock arch_rwlock_t; typedef void (*ctor_fn_t)(void); struct device; struct net_device; struct file_operations; struct completion; struct bug_entry { int bug_addr_disp ; int file_disp ; unsigned short line ; unsigned short flags ; }; struct timespec; struct compat_timespec; struct __anonstruct_futex_16 { u32 *uaddr ; u32 val ; u32 flags ; u32 bitset ; u64 time ; u32 *uaddr2 ; }; struct __anonstruct_nanosleep_17 { clockid_t clockid ; struct timespec *rmtp ; struct compat_timespec *compat_rmtp ; u64 expires ; }; struct pollfd; struct __anonstruct_poll_18 { struct pollfd *ufds ; int nfds ; int has_timeout ; unsigned long tv_sec ; unsigned long tv_nsec ; }; union __anonunion____missing_field_name_15 { struct __anonstruct_futex_16 futex ; struct __anonstruct_nanosleep_17 nanosleep ; struct __anonstruct_poll_18 poll ; }; struct restart_block { long (*fn)(struct restart_block * ) ; union __anonunion____missing_field_name_15 __annonCompField7 ; }; struct kernel_vm86_regs { struct pt_regs pt ; unsigned short es ; unsigned short __esh ; unsigned short ds ; unsigned short __dsh ; unsigned short fs ; unsigned short __fsh ; unsigned short gs ; unsigned short __gsh ; }; union __anonunion____missing_field_name_19 { struct pt_regs *regs ; struct kernel_vm86_regs *vm86 ; }; struct math_emu_info { long ___orig_eip ; union __anonunion____missing_field_name_19 __annonCompField8 ; }; struct cpumask { unsigned long bits[128U] ; }; typedef struct cpumask cpumask_t; typedef struct cpumask *cpumask_var_t; struct fregs_state { u32 cwd ; u32 swd ; u32 twd ; u32 fip ; u32 fcs ; u32 foo ; u32 fos ; u32 st_space[20U] ; u32 status ; }; struct __anonstruct____missing_field_name_29 { u64 rip ; u64 rdp ; }; struct __anonstruct____missing_field_name_30 { u32 fip ; u32 fcs ; u32 foo ; u32 fos ; }; union __anonunion____missing_field_name_28 { struct __anonstruct____missing_field_name_29 __annonCompField12 ; struct __anonstruct____missing_field_name_30 __annonCompField13 ; }; union __anonunion____missing_field_name_31 { u32 padding1[12U] ; u32 sw_reserved[12U] ; }; struct fxregs_state { u16 cwd ; u16 swd ; u16 twd ; u16 fop ; union __anonunion____missing_field_name_28 __annonCompField14 ; u32 mxcsr ; u32 mxcsr_mask ; u32 st_space[32U] ; u32 xmm_space[64U] ; u32 padding[12U] ; union __anonunion____missing_field_name_31 __annonCompField15 ; }; struct swregs_state { u32 cwd ; u32 swd ; u32 twd ; u32 fip ; u32 fcs ; u32 foo ; u32 fos ; u32 st_space[20U] ; u8 ftop ; u8 changed ; u8 lookahead ; u8 no_update ; u8 rm ; u8 alimit ; struct math_emu_info *info ; u32 entry_eip ; }; struct xstate_header { u64 xfeatures ; u64 xcomp_bv ; u64 reserved[6U] ; }; struct xregs_state { struct fxregs_state i387 ; struct xstate_header header ; u8 __reserved[464U] ; }; union fpregs_state { struct fregs_state fsave ; struct fxregs_state fxsave ; struct swregs_state soft ; struct xregs_state xsave ; }; struct fpu { union fpregs_state state ; unsigned int last_cpu ; unsigned char fpstate_active ; unsigned char fpregs_active ; unsigned char counter ; }; struct seq_operations; struct perf_event; struct thread_struct { struct desc_struct tls_array[3U] ; unsigned long sp0 ; unsigned long sp ; unsigned short es ; unsigned short ds ; unsigned short fsindex ; unsigned short gsindex ; unsigned long fs ; unsigned long gs ; struct fpu fpu ; struct perf_event *ptrace_bps[4U] ; unsigned long debugreg6 ; unsigned long ptrace_dr7 ; unsigned long cr2 ; unsigned long trap_nr ; unsigned long error_code ; unsigned long *io_bitmap_ptr ; unsigned long iopl ; unsigned int io_bitmap_max ; }; typedef atomic64_t atomic_long_t; struct lockdep_map; struct stack_trace { unsigned int nr_entries ; unsigned int max_entries ; unsigned long *entries ; int skip ; }; struct lockdep_subclass_key { char __one_byte ; }; struct lock_class_key { struct lockdep_subclass_key subkeys[8U] ; }; struct lock_class { struct list_head hash_entry ; struct list_head lock_entry ; struct lockdep_subclass_key *key ; unsigned int subclass ; unsigned int dep_gen_id ; unsigned long usage_mask ; struct stack_trace usage_traces[13U] ; struct list_head locks_after ; struct list_head locks_before ; unsigned int version ; unsigned long ops ; char const *name ; int name_version ; unsigned long contention_point[4U] ; unsigned long contending_point[4U] ; }; struct lockdep_map { struct lock_class_key *key ; struct lock_class *class_cache[2U] ; char const *name ; int cpu ; unsigned long ip ; }; struct held_lock { u64 prev_chain_key ; unsigned long acquire_ip ; struct lockdep_map *instance ; struct lockdep_map *nest_lock ; u64 waittime_stamp ; u64 holdtime_stamp ; unsigned short class_idx : 13 ; unsigned char irq_context : 2 ; unsigned char trylock : 1 ; unsigned char read : 2 ; unsigned char check : 1 ; unsigned char hardirqs_off : 1 ; unsigned short references : 12 ; unsigned int pin_count ; }; struct raw_spinlock { arch_spinlock_t raw_lock ; unsigned int magic ; unsigned int owner_cpu ; void *owner ; struct lockdep_map dep_map ; }; typedef struct raw_spinlock raw_spinlock_t; struct __anonstruct____missing_field_name_35 { u8 __padding[24U] ; struct lockdep_map dep_map ; }; union __anonunion____missing_field_name_34 { struct raw_spinlock rlock ; struct __anonstruct____missing_field_name_35 __annonCompField17 ; }; struct spinlock { union __anonunion____missing_field_name_34 __annonCompField18 ; }; typedef struct spinlock spinlock_t; struct __anonstruct_rwlock_t_36 { arch_rwlock_t raw_lock ; unsigned int magic ; unsigned int owner_cpu ; void *owner ; struct lockdep_map dep_map ; }; typedef struct __anonstruct_rwlock_t_36 rwlock_t; struct seqcount { unsigned int sequence ; struct lockdep_map dep_map ; }; typedef struct seqcount seqcount_t; struct __anonstruct_seqlock_t_45 { struct seqcount seqcount ; spinlock_t lock ; }; typedef struct __anonstruct_seqlock_t_45 seqlock_t; struct timespec { __kernel_time_t tv_sec ; long tv_nsec ; }; struct timeval { __kernel_time_t tv_sec ; __kernel_suseconds_t tv_usec ; }; struct user_namespace; struct __anonstruct_kuid_t_46 { uid_t val ; }; typedef struct __anonstruct_kuid_t_46 kuid_t; struct __anonstruct_kgid_t_47 { gid_t val ; }; typedef struct __anonstruct_kgid_t_47 kgid_t; struct kstat { u64 ino ; dev_t dev ; umode_t mode ; unsigned int nlink ; kuid_t uid ; kgid_t gid ; dev_t rdev ; loff_t size ; struct timespec atime ; struct timespec mtime ; struct timespec ctime ; unsigned long blksize ; unsigned long long blocks ; }; struct vm_area_struct; struct __wait_queue; typedef struct __wait_queue wait_queue_t; struct __wait_queue { unsigned int flags ; void *private ; int (*func)(wait_queue_t * , unsigned int , int , void * ) ; struct list_head task_list ; }; struct __wait_queue_head { spinlock_t lock ; struct list_head task_list ; }; typedef struct __wait_queue_head wait_queue_head_t; struct __anonstruct_nodemask_t_48 { unsigned long bits[16U] ; }; typedef struct __anonstruct_nodemask_t_48 nodemask_t; struct optimistic_spin_queue { atomic_t tail ; }; struct mutex { atomic_t count ; spinlock_t wait_lock ; struct list_head wait_list ; struct task_struct *owner ; void *magic ; struct lockdep_map dep_map ; }; struct mutex_waiter { struct list_head list ; struct task_struct *task ; void *magic ; }; struct rw_semaphore; struct rw_semaphore { long count ; struct list_head wait_list ; raw_spinlock_t wait_lock ; struct optimistic_spin_queue osq ; struct task_struct *owner ; struct lockdep_map dep_map ; }; struct completion { unsigned int done ; wait_queue_head_t wait ; }; union ktime { s64 tv64 ; }; typedef union ktime ktime_t; struct notifier_block; struct timer_list { struct hlist_node entry ; unsigned long expires ; void (*function)(unsigned long ) ; unsigned long data ; u32 flags ; int slack ; int start_pid ; void *start_site ; char start_comm[16U] ; struct lockdep_map lockdep_map ; }; struct hrtimer; enum hrtimer_restart; struct rb_node { unsigned long __rb_parent_color ; struct rb_node *rb_right ; struct rb_node *rb_left ; }; struct rb_root { struct rb_node *rb_node ; }; struct ctl_table; struct nsproxy; struct ctl_table_root; struct ctl_table_header; struct ctl_dir; typedef int proc_handler(struct ctl_table * , int , void * , size_t * , loff_t * ); struct ctl_table_poll { atomic_t event ; wait_queue_head_t wait ; }; struct ctl_table { char const *procname ; void *data ; int maxlen ; umode_t mode ; struct ctl_table *child ; proc_handler *proc_handler ; struct ctl_table_poll *poll ; void *extra1 ; void *extra2 ; }; struct ctl_node { struct rb_node node ; struct ctl_table_header *header ; }; struct __anonstruct____missing_field_name_50 { struct ctl_table *ctl_table ; int used ; int count ; int nreg ; }; union __anonunion____missing_field_name_49 { struct __anonstruct____missing_field_name_50 __annonCompField19 ; struct callback_head rcu ; }; struct ctl_table_set; struct ctl_table_header { union __anonunion____missing_field_name_49 __annonCompField20 ; struct completion *unregistering ; struct ctl_table *ctl_table_arg ; struct ctl_table_root *root ; struct ctl_table_set *set ; struct ctl_dir *parent ; struct ctl_node *node ; }; struct ctl_dir { struct ctl_table_header header ; struct rb_root root ; }; struct ctl_table_set { int (*is_seen)(struct ctl_table_set * ) ; struct ctl_dir dir ; }; struct ctl_table_root { struct ctl_table_set default_set ; struct ctl_table_set *(*lookup)(struct ctl_table_root * , struct nsproxy * ) ; int (*permissions)(struct ctl_table_header * , struct ctl_table * ) ; }; struct workqueue_struct; struct work_struct; struct work_struct { atomic_long_t data ; struct list_head entry ; void (*func)(struct work_struct * ) ; struct lockdep_map lockdep_map ; }; struct delayed_work { struct work_struct work ; struct timer_list timer ; struct workqueue_struct *wq ; int cpu ; }; struct notifier_block { int (*notifier_call)(struct notifier_block * , unsigned long , void * ) ; struct notifier_block *next ; int priority ; }; struct pm_message { int event ; }; typedef struct pm_message pm_message_t; struct dev_pm_ops { int (*prepare)(struct device * ) ; void (*complete)(struct device * ) ; int (*suspend)(struct device * ) ; int (*resume)(struct device * ) ; int (*freeze)(struct device * ) ; int (*thaw)(struct device * ) ; int (*poweroff)(struct device * ) ; int (*restore)(struct device * ) ; int (*suspend_late)(struct device * ) ; int (*resume_early)(struct device * ) ; int (*freeze_late)(struct device * ) ; int (*thaw_early)(struct device * ) ; int (*poweroff_late)(struct device * ) ; int (*restore_early)(struct device * ) ; int (*suspend_noirq)(struct device * ) ; int (*resume_noirq)(struct device * ) ; int (*freeze_noirq)(struct device * ) ; int (*thaw_noirq)(struct device * ) ; int (*poweroff_noirq)(struct device * ) ; int (*restore_noirq)(struct device * ) ; int (*runtime_suspend)(struct device * ) ; int (*runtime_resume)(struct device * ) ; int (*runtime_idle)(struct device * ) ; }; enum rpm_status { RPM_ACTIVE = 0, RPM_RESUMING = 1, RPM_SUSPENDED = 2, RPM_SUSPENDING = 3 } ; enum rpm_request { RPM_REQ_NONE = 0, RPM_REQ_IDLE = 1, RPM_REQ_SUSPEND = 2, RPM_REQ_AUTOSUSPEND = 3, RPM_REQ_RESUME = 4 } ; struct wakeup_source; struct wake_irq; struct pm_subsys_data { spinlock_t lock ; unsigned int refcount ; struct list_head clock_list ; }; struct dev_pm_qos; struct dev_pm_info { pm_message_t power_state ; unsigned char can_wakeup : 1 ; unsigned char async_suspend : 1 ; bool is_prepared ; bool is_suspended ; bool is_noirq_suspended ; bool is_late_suspended ; bool ignore_children ; bool early_init ; bool direct_complete ; spinlock_t lock ; struct list_head entry ; struct completion completion ; struct wakeup_source *wakeup ; bool wakeup_path ; bool syscore ; struct timer_list suspend_timer ; unsigned long timer_expires ; struct work_struct work ; wait_queue_head_t wait_queue ; struct wake_irq *wakeirq ; atomic_t usage_count ; atomic_t child_count ; unsigned char disable_depth : 3 ; unsigned char idle_notification : 1 ; unsigned char request_pending : 1 ; unsigned char deferred_resume : 1 ; unsigned char run_wake : 1 ; unsigned char runtime_auto : 1 ; unsigned char no_callbacks : 1 ; unsigned char irq_safe : 1 ; unsigned char use_autosuspend : 1 ; unsigned char timer_autosuspends : 1 ; unsigned char memalloc_noio : 1 ; enum rpm_request request ; enum rpm_status runtime_status ; int runtime_error ; int autosuspend_delay ; unsigned long last_busy ; unsigned long active_jiffies ; unsigned long suspended_jiffies ; unsigned long accounting_timestamp ; struct pm_subsys_data *subsys_data ; void (*set_latency_tolerance)(struct device * , s32 ) ; struct dev_pm_qos *qos ; }; struct dev_pm_domain { struct dev_pm_ops ops ; void (*detach)(struct device * , bool ) ; int (*activate)(struct device * ) ; void (*sync)(struct device * ) ; void (*dismiss)(struct device * ) ; }; struct __anonstruct_mm_context_t_115 { void *ldt ; int size ; unsigned short ia32_compat ; struct mutex lock ; void *vdso ; atomic_t perf_rdpmc_allowed ; }; typedef struct __anonstruct_mm_context_t_115 mm_context_t; struct bio_vec; struct llist_node; struct llist_node { struct llist_node *next ; }; struct cred; struct inode; struct arch_uprobe_task { unsigned long saved_scratch_register ; unsigned int saved_trap_nr ; unsigned int saved_tf ; }; enum uprobe_task_state { UTASK_RUNNING = 0, UTASK_SSTEP = 1, UTASK_SSTEP_ACK = 2, UTASK_SSTEP_TRAPPED = 3 } ; struct __anonstruct____missing_field_name_148 { struct arch_uprobe_task autask ; unsigned long vaddr ; }; struct __anonstruct____missing_field_name_149 { struct callback_head dup_xol_work ; unsigned long dup_xol_addr ; }; union __anonunion____missing_field_name_147 { struct __anonstruct____missing_field_name_148 __annonCompField33 ; struct __anonstruct____missing_field_name_149 __annonCompField34 ; }; struct uprobe; struct return_instance; struct uprobe_task { enum uprobe_task_state state ; union __anonunion____missing_field_name_147 __annonCompField35 ; struct uprobe *active_uprobe ; unsigned long xol_vaddr ; struct return_instance *return_instances ; unsigned int depth ; }; struct xol_area; struct uprobes_state { struct xol_area *xol_area ; }; struct address_space; struct mem_cgroup; typedef void compound_page_dtor(struct page * ); union __anonunion____missing_field_name_150 { struct address_space *mapping ; void *s_mem ; }; union __anonunion____missing_field_name_152 { unsigned long index ; void *freelist ; bool pfmemalloc ; }; struct __anonstruct____missing_field_name_156 { unsigned short inuse ; unsigned short objects : 15 ; unsigned char frozen : 1 ; }; union __anonunion____missing_field_name_155 { atomic_t _mapcount ; struct __anonstruct____missing_field_name_156 __annonCompField38 ; int units ; }; struct __anonstruct____missing_field_name_154 { union __anonunion____missing_field_name_155 __annonCompField39 ; atomic_t _count ; }; union __anonunion____missing_field_name_153 { unsigned long counters ; struct __anonstruct____missing_field_name_154 __annonCompField40 ; unsigned int active ; }; struct __anonstruct____missing_field_name_151 { union __anonunion____missing_field_name_152 __annonCompField37 ; union __anonunion____missing_field_name_153 __annonCompField41 ; }; struct __anonstruct____missing_field_name_158 { struct page *next ; int pages ; int pobjects ; }; struct slab; struct __anonstruct____missing_field_name_159 { compound_page_dtor *compound_dtor ; unsigned long compound_order ; }; union __anonunion____missing_field_name_157 { struct list_head lru ; struct __anonstruct____missing_field_name_158 __annonCompField43 ; struct slab *slab_page ; struct callback_head callback_head ; struct __anonstruct____missing_field_name_159 __annonCompField44 ; pgtable_t pmd_huge_pte ; }; struct kmem_cache; union __anonunion____missing_field_name_160 { unsigned long private ; spinlock_t *ptl ; struct kmem_cache *slab_cache ; struct page *first_page ; }; struct page { unsigned long flags ; union __anonunion____missing_field_name_150 __annonCompField36 ; struct __anonstruct____missing_field_name_151 __annonCompField42 ; union __anonunion____missing_field_name_157 __annonCompField45 ; union __anonunion____missing_field_name_160 __annonCompField46 ; struct mem_cgroup *mem_cgroup ; }; struct page_frag { struct page *page ; __u32 offset ; __u32 size ; }; struct __anonstruct_shared_161 { struct rb_node rb ; unsigned long rb_subtree_last ; }; struct anon_vma; struct vm_operations_struct; struct mempolicy; struct vm_area_struct { unsigned long vm_start ; unsigned long vm_end ; struct vm_area_struct *vm_next ; struct vm_area_struct *vm_prev ; struct rb_node vm_rb ; unsigned long rb_subtree_gap ; struct mm_struct *vm_mm ; pgprot_t vm_page_prot ; unsigned long vm_flags ; struct __anonstruct_shared_161 shared ; struct list_head anon_vma_chain ; struct anon_vma *anon_vma ; struct vm_operations_struct const *vm_ops ; unsigned long vm_pgoff ; struct file *vm_file ; void *vm_private_data ; struct mempolicy *vm_policy ; }; struct core_thread { struct task_struct *task ; struct core_thread *next ; }; struct core_state { atomic_t nr_threads ; struct core_thread dumper ; struct completion startup ; }; struct task_rss_stat { int events ; int count[3U] ; }; struct mm_rss_stat { atomic_long_t count[3U] ; }; struct kioctx_table; struct linux_binfmt; struct mmu_notifier_mm; struct mm_struct { struct vm_area_struct *mmap ; struct rb_root mm_rb ; u32 vmacache_seqnum ; unsigned long (*get_unmapped_area)(struct file * , unsigned long , unsigned long , unsigned long , unsigned long ) ; unsigned long mmap_base ; unsigned long mmap_legacy_base ; unsigned long task_size ; unsigned long highest_vm_end ; pgd_t *pgd ; atomic_t mm_users ; atomic_t mm_count ; atomic_long_t nr_ptes ; atomic_long_t nr_pmds ; int map_count ; spinlock_t page_table_lock ; struct rw_semaphore mmap_sem ; struct list_head mmlist ; unsigned long hiwater_rss ; unsigned long hiwater_vm ; unsigned long total_vm ; unsigned long locked_vm ; unsigned long pinned_vm ; unsigned long shared_vm ; unsigned long exec_vm ; unsigned long stack_vm ; unsigned long def_flags ; unsigned long start_code ; unsigned long end_code ; unsigned long start_data ; unsigned long end_data ; unsigned long start_brk ; unsigned long brk ; unsigned long start_stack ; unsigned long arg_start ; unsigned long arg_end ; unsigned long env_start ; unsigned long env_end ; unsigned long saved_auxv[46U] ; struct mm_rss_stat rss_stat ; struct linux_binfmt *binfmt ; cpumask_var_t cpu_vm_mask_var ; mm_context_t context ; unsigned long flags ; struct core_state *core_state ; spinlock_t ioctx_lock ; struct kioctx_table *ioctx_table ; struct task_struct *owner ; struct file *exe_file ; struct mmu_notifier_mm *mmu_notifier_mm ; struct cpumask cpumask_allocation ; unsigned long numa_next_scan ; unsigned long numa_scan_offset ; int numa_scan_seq ; bool tlb_flush_pending ; struct uprobes_state uprobes_state ; void *bd_addr ; }; typedef __u64 Elf64_Addr; typedef __u16 Elf64_Half; typedef __u32 Elf64_Word; typedef __u64 Elf64_Xword; struct elf64_sym { Elf64_Word st_name ; unsigned char st_info ; unsigned char st_other ; Elf64_Half st_shndx ; Elf64_Addr st_value ; Elf64_Xword st_size ; }; typedef struct elf64_sym Elf64_Sym; union __anonunion____missing_field_name_166 { unsigned long bitmap[4U] ; struct callback_head callback_head ; }; struct idr_layer { int prefix ; int layer ; struct idr_layer *ary[256U] ; int count ; union __anonunion____missing_field_name_166 __annonCompField47 ; }; struct idr { struct idr_layer *hint ; struct idr_layer *top ; int layers ; int cur ; spinlock_t lock ; int id_free_cnt ; struct idr_layer *id_free ; }; struct ida_bitmap { long nr_busy ; unsigned long bitmap[15U] ; }; struct ida { struct idr idr ; struct ida_bitmap *free_bitmap ; }; struct dentry; struct iattr; struct super_block; struct file_system_type; struct kernfs_open_node; struct kernfs_iattrs; struct kernfs_root; struct kernfs_elem_dir { unsigned long subdirs ; struct rb_root children ; struct kernfs_root *root ; }; struct kernfs_node; struct kernfs_elem_symlink { struct kernfs_node *target_kn ; }; struct kernfs_ops; struct kernfs_elem_attr { struct kernfs_ops const *ops ; struct kernfs_open_node *open ; loff_t size ; struct kernfs_node *notify_next ; }; union __anonunion____missing_field_name_171 { struct kernfs_elem_dir dir ; struct kernfs_elem_symlink symlink ; struct kernfs_elem_attr attr ; }; struct kernfs_node { atomic_t count ; atomic_t active ; struct lockdep_map dep_map ; struct kernfs_node *parent ; char const *name ; struct rb_node rb ; void const *ns ; unsigned int hash ; union __anonunion____missing_field_name_171 __annonCompField48 ; void *priv ; unsigned short flags ; umode_t mode ; unsigned int ino ; struct kernfs_iattrs *iattr ; }; struct kernfs_syscall_ops { int (*remount_fs)(struct kernfs_root * , int * , char * ) ; int (*show_options)(struct seq_file * , struct kernfs_root * ) ; int (*mkdir)(struct kernfs_node * , char const * , umode_t ) ; int (*rmdir)(struct kernfs_node * ) ; int (*rename)(struct kernfs_node * , struct kernfs_node * , char const * ) ; }; struct kernfs_root { struct kernfs_node *kn ; unsigned int flags ; struct ida ino_ida ; struct kernfs_syscall_ops *syscall_ops ; struct list_head supers ; wait_queue_head_t deactivate_waitq ; }; struct kernfs_open_file { struct kernfs_node *kn ; struct file *file ; void *priv ; struct mutex mutex ; int event ; struct list_head list ; char *prealloc_buf ; size_t atomic_write_len ; bool mmapped ; struct vm_operations_struct const *vm_ops ; }; struct kernfs_ops { int (*seq_show)(struct seq_file * , void * ) ; void *(*seq_start)(struct seq_file * , loff_t * ) ; void *(*seq_next)(struct seq_file * , void * , loff_t * ) ; void (*seq_stop)(struct seq_file * , void * ) ; ssize_t (*read)(struct kernfs_open_file * , char * , size_t , loff_t ) ; size_t atomic_write_len ; bool prealloc ; ssize_t (*write)(struct kernfs_open_file * , char * , size_t , loff_t ) ; int (*mmap)(struct kernfs_open_file * , struct vm_area_struct * ) ; struct lock_class_key lockdep_key ; }; struct sock; struct kobject; enum kobj_ns_type { KOBJ_NS_TYPE_NONE = 0, KOBJ_NS_TYPE_NET = 1, KOBJ_NS_TYPES = 2 } ; struct kobj_ns_type_operations { enum kobj_ns_type type ; bool (*current_may_mount)(void) ; void *(*grab_current_ns)(void) ; void const *(*netlink_ns)(struct sock * ) ; void const *(*initial_ns)(void) ; void (*drop_ns)(void * ) ; }; struct bin_attribute; struct attribute { char const *name ; umode_t mode ; bool ignore_lockdep ; struct lock_class_key *key ; struct lock_class_key skey ; }; struct attribute_group { char const *name ; umode_t (*is_visible)(struct kobject * , struct attribute * , int ) ; struct attribute **attrs ; struct bin_attribute **bin_attrs ; }; struct bin_attribute { struct attribute attr ; size_t size ; void *private ; ssize_t (*read)(struct file * , struct kobject * , struct bin_attribute * , char * , loff_t , size_t ) ; ssize_t (*write)(struct file * , struct kobject * , struct bin_attribute * , char * , loff_t , size_t ) ; int (*mmap)(struct file * , struct kobject * , struct bin_attribute * , struct vm_area_struct * ) ; }; struct sysfs_ops { ssize_t (*show)(struct kobject * , struct attribute * , char * ) ; ssize_t (*store)(struct kobject * , struct attribute * , char const * , size_t ) ; }; struct kref { atomic_t refcount ; }; struct kset; struct kobj_type; struct kobject { char const *name ; struct list_head entry ; struct kobject *parent ; struct kset *kset ; struct kobj_type *ktype ; struct kernfs_node *sd ; struct kref kref ; struct delayed_work release ; unsigned char state_initialized : 1 ; unsigned char state_in_sysfs : 1 ; unsigned char state_add_uevent_sent : 1 ; unsigned char state_remove_uevent_sent : 1 ; unsigned char uevent_suppress : 1 ; }; struct kobj_type { void (*release)(struct kobject * ) ; struct sysfs_ops const *sysfs_ops ; struct attribute **default_attrs ; struct kobj_ns_type_operations const *(*child_ns_type)(struct kobject * ) ; void const *(*namespace)(struct kobject * ) ; }; struct kobj_uevent_env { char *argv[3U] ; char *envp[32U] ; int envp_idx ; char buf[2048U] ; int buflen ; }; struct kset_uevent_ops { int (* const filter)(struct kset * , struct kobject * ) ; char const *(* const name)(struct kset * , struct kobject * ) ; int (* const uevent)(struct kset * , struct kobject * , struct kobj_uevent_env * ) ; }; struct kset { struct list_head list ; spinlock_t list_lock ; struct kobject kobj ; struct kset_uevent_ops const *uevent_ops ; }; struct kernel_param; struct kernel_param_ops { unsigned int flags ; int (*set)(char const * , struct kernel_param const * ) ; int (*get)(char * , struct kernel_param const * ) ; void (*free)(void * ) ; }; struct kparam_string; struct kparam_array; union __anonunion____missing_field_name_172 { void *arg ; struct kparam_string const *str ; struct kparam_array const *arr ; }; struct kernel_param { char const *name ; struct module *mod ; struct kernel_param_ops const *ops ; u16 const perm ; s8 level ; u8 flags ; union __anonunion____missing_field_name_172 __annonCompField49 ; }; struct kparam_string { unsigned int maxlen ; char *string ; }; struct kparam_array { unsigned int max ; unsigned int elemsize ; unsigned int *num ; struct kernel_param_ops const *ops ; void *elem ; }; struct latch_tree_node { struct rb_node node[2U] ; }; struct mod_arch_specific { }; struct module_param_attrs; struct module_kobject { struct kobject kobj ; struct module *mod ; struct kobject *drivers_dir ; struct module_param_attrs *mp ; struct completion *kobj_completion ; }; struct module_attribute { struct attribute attr ; ssize_t (*show)(struct module_attribute * , struct module_kobject * , char * ) ; ssize_t (*store)(struct module_attribute * , struct module_kobject * , char const * , size_t ) ; void (*setup)(struct module * , char const * ) ; int (*test)(struct module * ) ; void (*free)(struct module * ) ; }; struct exception_table_entry; enum module_state { MODULE_STATE_LIVE = 0, MODULE_STATE_COMING = 1, MODULE_STATE_GOING = 2, MODULE_STATE_UNFORMED = 3 } ; struct mod_tree_node { struct module *mod ; struct latch_tree_node node ; }; struct module_sect_attrs; struct module_notes_attrs; struct tracepoint; struct trace_event_call; struct trace_enum_map; struct module { enum module_state state ; struct list_head list ; char name[56U] ; struct module_kobject mkobj ; struct module_attribute *modinfo_attrs ; char const *version ; char const *srcversion ; struct kobject *holders_dir ; struct kernel_symbol const *syms ; unsigned long const *crcs ; unsigned int num_syms ; struct mutex param_lock ; struct kernel_param *kp ; unsigned int num_kp ; unsigned int num_gpl_syms ; struct kernel_symbol const *gpl_syms ; unsigned long const *gpl_crcs ; struct kernel_symbol const *unused_syms ; unsigned long const *unused_crcs ; unsigned int num_unused_syms ; unsigned int num_unused_gpl_syms ; struct kernel_symbol const *unused_gpl_syms ; unsigned long const *unused_gpl_crcs ; bool sig_ok ; bool async_probe_requested ; struct kernel_symbol const *gpl_future_syms ; unsigned long const *gpl_future_crcs ; unsigned int num_gpl_future_syms ; unsigned int num_exentries ; struct exception_table_entry *extable ; int (*init)(void) ; void *module_init ; void *module_core ; unsigned int init_size ; unsigned int core_size ; unsigned int init_text_size ; unsigned int core_text_size ; struct mod_tree_node mtn_core ; struct mod_tree_node mtn_init ; unsigned int init_ro_size ; unsigned int core_ro_size ; struct mod_arch_specific arch ; unsigned int taints ; unsigned int num_bugs ; struct list_head bug_list ; struct bug_entry *bug_table ; Elf64_Sym *symtab ; Elf64_Sym *core_symtab ; unsigned int num_symtab ; unsigned int core_num_syms ; char *strtab ; char *core_strtab ; struct module_sect_attrs *sect_attrs ; struct module_notes_attrs *notes_attrs ; char *args ; void *percpu ; unsigned int percpu_size ; unsigned int num_tracepoints ; struct tracepoint * const *tracepoints_ptrs ; unsigned int num_trace_bprintk_fmt ; char const **trace_bprintk_fmt_start ; struct trace_event_call **trace_events ; unsigned int num_trace_events ; struct trace_enum_map **trace_enums ; unsigned int num_trace_enums ; unsigned int num_ftrace_callsites ; unsigned long *ftrace_callsites ; bool klp_alive ; struct list_head source_list ; struct list_head target_list ; void (*exit)(void) ; atomic_t refcnt ; ctor_fn_t (**ctors)(void) ; unsigned int num_ctors ; }; struct kernel_cap_struct { __u32 cap[2U] ; }; typedef struct kernel_cap_struct kernel_cap_t; struct plist_node { int prio ; struct list_head prio_list ; struct list_head node_list ; }; typedef unsigned long cputime_t; struct sem_undo_list; struct sysv_sem { struct sem_undo_list *undo_list ; }; struct user_struct; struct sysv_shm { struct list_head shm_clist ; }; struct __anonstruct_sigset_t_180 { unsigned long sig[1U] ; }; typedef struct __anonstruct_sigset_t_180 sigset_t; struct siginfo; typedef void __signalfn_t(int ); typedef __signalfn_t *__sighandler_t; typedef void __restorefn_t(void); typedef __restorefn_t *__sigrestore_t; union sigval { int sival_int ; void *sival_ptr ; }; typedef union sigval sigval_t; struct __anonstruct__kill_182 { __kernel_pid_t _pid ; __kernel_uid32_t _uid ; }; struct __anonstruct__timer_183 { __kernel_timer_t _tid ; int _overrun ; char _pad[0U] ; sigval_t _sigval ; int _sys_private ; }; struct __anonstruct__rt_184 { __kernel_pid_t _pid ; __kernel_uid32_t _uid ; sigval_t _sigval ; }; struct __anonstruct__sigchld_185 { __kernel_pid_t _pid ; __kernel_uid32_t _uid ; int _status ; __kernel_clock_t _utime ; __kernel_clock_t _stime ; }; struct __anonstruct__addr_bnd_187 { void *_lower ; void *_upper ; }; struct __anonstruct__sigfault_186 { void *_addr ; short _addr_lsb ; struct __anonstruct__addr_bnd_187 _addr_bnd ; }; struct __anonstruct__sigpoll_188 { long _band ; int _fd ; }; struct __anonstruct__sigsys_189 { void *_call_addr ; int _syscall ; unsigned int _arch ; }; union __anonunion__sifields_181 { int _pad[28U] ; struct __anonstruct__kill_182 _kill ; struct __anonstruct__timer_183 _timer ; struct __anonstruct__rt_184 _rt ; struct __anonstruct__sigchld_185 _sigchld ; struct __anonstruct__sigfault_186 _sigfault ; struct __anonstruct__sigpoll_188 _sigpoll ; struct __anonstruct__sigsys_189 _sigsys ; }; struct siginfo { int si_signo ; int si_errno ; int si_code ; union __anonunion__sifields_181 _sifields ; }; typedef struct siginfo siginfo_t; struct sigpending { struct list_head list ; sigset_t signal ; }; struct sigaction { __sighandler_t sa_handler ; unsigned long sa_flags ; __sigrestore_t sa_restorer ; sigset_t sa_mask ; }; struct k_sigaction { struct sigaction sa ; }; enum pid_type { PIDTYPE_PID = 0, PIDTYPE_PGID = 1, PIDTYPE_SID = 2, PIDTYPE_MAX = 3 } ; struct pid_namespace; struct upid { int nr ; struct pid_namespace *ns ; struct hlist_node pid_chain ; }; struct pid { atomic_t count ; unsigned int level ; struct hlist_head tasks[3U] ; struct callback_head rcu ; struct upid numbers[1U] ; }; struct pid_link { struct hlist_node node ; struct pid *pid ; }; struct percpu_counter { raw_spinlock_t lock ; s64 count ; struct list_head list ; s32 *counters ; }; struct seccomp_filter; struct seccomp { int mode ; struct seccomp_filter *filter ; }; struct rt_mutex_waiter; struct rlimit { __kernel_ulong_t rlim_cur ; __kernel_ulong_t rlim_max ; }; struct timerqueue_node { struct rb_node node ; ktime_t expires ; }; struct timerqueue_head { struct rb_root head ; struct timerqueue_node *next ; }; struct hrtimer_clock_base; struct hrtimer_cpu_base; enum hrtimer_restart { HRTIMER_NORESTART = 0, HRTIMER_RESTART = 1 } ; struct hrtimer { struct timerqueue_node node ; ktime_t _softexpires ; enum hrtimer_restart (*function)(struct hrtimer * ) ; struct hrtimer_clock_base *base ; unsigned long state ; int start_pid ; void *start_site ; char start_comm[16U] ; }; struct hrtimer_clock_base { struct hrtimer_cpu_base *cpu_base ; int index ; clockid_t clockid ; struct timerqueue_head active ; ktime_t (*get_time)(void) ; ktime_t offset ; }; struct hrtimer_cpu_base { raw_spinlock_t lock ; seqcount_t seq ; struct hrtimer *running ; unsigned int cpu ; unsigned int active_bases ; unsigned int clock_was_set_seq ; bool migration_enabled ; bool nohz_active ; unsigned char in_hrtirq : 1 ; unsigned char hres_active : 1 ; unsigned char hang_detected : 1 ; ktime_t expires_next ; struct hrtimer *next_timer ; unsigned int nr_events ; unsigned int nr_retries ; unsigned int nr_hangs ; unsigned int max_hang_time ; struct hrtimer_clock_base clock_base[4U] ; }; struct task_io_accounting { u64 rchar ; u64 wchar ; u64 syscr ; u64 syscw ; u64 read_bytes ; u64 write_bytes ; u64 cancelled_write_bytes ; }; struct latency_record { unsigned long backtrace[12U] ; unsigned int count ; unsigned long time ; unsigned long max ; }; struct assoc_array_ptr; struct assoc_array { struct assoc_array_ptr *root ; unsigned long nr_leaves_on_tree ; }; typedef int32_t key_serial_t; typedef uint32_t key_perm_t; struct key; struct signal_struct; struct key_type; struct keyring_index_key { struct key_type *type ; char const *description ; size_t desc_len ; }; union __anonunion____missing_field_name_196 { struct list_head graveyard_link ; struct rb_node serial_node ; }; struct key_user; union __anonunion____missing_field_name_197 { time_t expiry ; time_t revoked_at ; }; struct __anonstruct____missing_field_name_199 { struct key_type *type ; char *description ; }; union __anonunion____missing_field_name_198 { struct keyring_index_key index_key ; struct __anonstruct____missing_field_name_199 __annonCompField52 ; }; union __anonunion_type_data_200 { struct list_head link ; unsigned long x[2U] ; void *p[2U] ; int reject_error ; }; union __anonunion_payload_202 { unsigned long value ; void *rcudata ; void *data ; void *data2[2U] ; }; union __anonunion____missing_field_name_201 { union __anonunion_payload_202 payload ; struct assoc_array keys ; }; struct key { atomic_t usage ; key_serial_t serial ; union __anonunion____missing_field_name_196 __annonCompField50 ; struct rw_semaphore sem ; struct key_user *user ; void *security ; union __anonunion____missing_field_name_197 __annonCompField51 ; time_t last_used_at ; kuid_t uid ; kgid_t gid ; key_perm_t perm ; unsigned short quotalen ; unsigned short datalen ; unsigned long flags ; union __anonunion____missing_field_name_198 __annonCompField53 ; union __anonunion_type_data_200 type_data ; union __anonunion____missing_field_name_201 __annonCompField54 ; }; struct audit_context; struct group_info { atomic_t usage ; int ngroups ; int nblocks ; kgid_t small_block[32U] ; kgid_t *blocks[0U] ; }; struct cred { atomic_t usage ; atomic_t subscribers ; void *put_addr ; unsigned int magic ; kuid_t uid ; kgid_t gid ; kuid_t suid ; kgid_t sgid ; kuid_t euid ; kgid_t egid ; kuid_t fsuid ; kgid_t fsgid ; unsigned int securebits ; kernel_cap_t cap_inheritable ; kernel_cap_t cap_permitted ; kernel_cap_t cap_effective ; kernel_cap_t cap_bset ; unsigned char jit_keyring ; struct key *session_keyring ; struct key *process_keyring ; struct key *thread_keyring ; struct key *request_key_auth ; void *security ; struct user_struct *user ; struct user_namespace *user_ns ; struct group_info *group_info ; struct callback_head rcu ; }; struct percpu_ref; typedef void percpu_ref_func_t(struct percpu_ref * ); struct percpu_ref { atomic_long_t count ; unsigned long percpu_count_ptr ; percpu_ref_func_t *release ; percpu_ref_func_t *confirm_switch ; bool force_atomic ; struct callback_head rcu ; }; struct cgroup; struct cgroup_root; struct cgroup_subsys; struct cgroup_taskset; struct cgroup_subsys_state { struct cgroup *cgroup ; struct cgroup_subsys *ss ; struct percpu_ref refcnt ; struct cgroup_subsys_state *parent ; struct list_head sibling ; struct list_head children ; int id ; unsigned int flags ; u64 serial_nr ; struct callback_head callback_head ; struct work_struct destroy_work ; }; struct css_set { atomic_t refcount ; struct hlist_node hlist ; struct list_head tasks ; struct list_head mg_tasks ; struct list_head cgrp_links ; struct cgroup *dfl_cgrp ; struct cgroup_subsys_state *subsys[12U] ; struct list_head mg_preload_node ; struct list_head mg_node ; struct cgroup *mg_src_cgrp ; struct css_set *mg_dst_cset ; struct list_head e_cset_node[12U] ; struct callback_head callback_head ; }; struct cgroup { struct cgroup_subsys_state self ; unsigned long flags ; int id ; int populated_cnt ; struct kernfs_node *kn ; struct kernfs_node *procs_kn ; struct kernfs_node *populated_kn ; unsigned int subtree_control ; unsigned int child_subsys_mask ; struct cgroup_subsys_state *subsys[12U] ; struct cgroup_root *root ; struct list_head cset_links ; struct list_head e_csets[12U] ; struct list_head pidlists ; struct mutex pidlist_mutex ; wait_queue_head_t offline_waitq ; struct work_struct release_agent_work ; }; struct cgroup_root { struct kernfs_root *kf_root ; unsigned int subsys_mask ; int hierarchy_id ; struct cgroup cgrp ; atomic_t nr_cgrps ; struct list_head root_list ; unsigned int flags ; struct idr cgroup_idr ; char release_agent_path[4096U] ; char name[64U] ; }; struct cftype { char name[64U] ; int private ; umode_t mode ; size_t max_write_len ; unsigned int flags ; struct cgroup_subsys *ss ; struct list_head node ; struct kernfs_ops *kf_ops ; u64 (*read_u64)(struct cgroup_subsys_state * , struct cftype * ) ; s64 (*read_s64)(struct cgroup_subsys_state * , struct cftype * ) ; int (*seq_show)(struct seq_file * , void * ) ; void *(*seq_start)(struct seq_file * , loff_t * ) ; void *(*seq_next)(struct seq_file * , void * , loff_t * ) ; void (*seq_stop)(struct seq_file * , void * ) ; int (*write_u64)(struct cgroup_subsys_state * , struct cftype * , u64 ) ; int (*write_s64)(struct cgroup_subsys_state * , struct cftype * , s64 ) ; ssize_t (*write)(struct kernfs_open_file * , char * , size_t , loff_t ) ; struct lock_class_key lockdep_key ; }; struct cgroup_subsys { struct cgroup_subsys_state *(*css_alloc)(struct cgroup_subsys_state * ) ; int (*css_online)(struct cgroup_subsys_state * ) ; void (*css_offline)(struct cgroup_subsys_state * ) ; void (*css_released)(struct cgroup_subsys_state * ) ; void (*css_free)(struct cgroup_subsys_state * ) ; void (*css_reset)(struct cgroup_subsys_state * ) ; void (*css_e_css_changed)(struct cgroup_subsys_state * ) ; int (*can_attach)(struct cgroup_subsys_state * , struct cgroup_taskset * ) ; void (*cancel_attach)(struct cgroup_subsys_state * , struct cgroup_taskset * ) ; void (*attach)(struct cgroup_subsys_state * , struct cgroup_taskset * ) ; void (*fork)(struct task_struct * ) ; void (*exit)(struct cgroup_subsys_state * , struct cgroup_subsys_state * , struct task_struct * ) ; void (*bind)(struct cgroup_subsys_state * ) ; int disabled ; int early_init ; bool broken_hierarchy ; bool warned_broken_hierarchy ; int id ; char const *name ; struct cgroup_root *root ; struct idr css_idr ; struct list_head cfts ; struct cftype *dfl_cftypes ; struct cftype *legacy_cftypes ; unsigned int depends_on ; }; struct futex_pi_state; struct robust_list_head; struct bio_list; struct fs_struct; struct perf_event_context; struct blk_plug; struct nameidata; struct cfs_rq; struct task_group; struct sighand_struct { atomic_t count ; struct k_sigaction action[64U] ; spinlock_t siglock ; wait_queue_head_t signalfd_wqh ; }; struct pacct_struct { int ac_flag ; long ac_exitcode ; unsigned long ac_mem ; cputime_t ac_utime ; cputime_t ac_stime ; unsigned long ac_minflt ; unsigned long ac_majflt ; }; struct cpu_itimer { cputime_t expires ; cputime_t incr ; u32 error ; u32 incr_error ; }; struct cputime { cputime_t utime ; cputime_t stime ; }; struct task_cputime { cputime_t utime ; cputime_t stime ; unsigned long long sum_exec_runtime ; }; struct task_cputime_atomic { atomic64_t utime ; atomic64_t stime ; atomic64_t sum_exec_runtime ; }; struct thread_group_cputimer { struct task_cputime_atomic cputime_atomic ; int running ; }; struct autogroup; struct tty_struct; struct taskstats; struct tty_audit_buf; struct signal_struct { atomic_t sigcnt ; atomic_t live ; int nr_threads ; struct list_head thread_head ; wait_queue_head_t wait_chldexit ; struct task_struct *curr_target ; struct sigpending shared_pending ; int group_exit_code ; int notify_count ; struct task_struct *group_exit_task ; int group_stop_count ; unsigned int flags ; unsigned char is_child_subreaper : 1 ; unsigned char has_child_subreaper : 1 ; int posix_timer_id ; struct list_head posix_timers ; struct hrtimer real_timer ; struct pid *leader_pid ; ktime_t it_real_incr ; struct cpu_itimer it[2U] ; struct thread_group_cputimer cputimer ; struct task_cputime cputime_expires ; struct list_head cpu_timers[3U] ; struct pid *tty_old_pgrp ; int leader ; struct tty_struct *tty ; struct autogroup *autogroup ; seqlock_t stats_lock ; cputime_t utime ; cputime_t stime ; cputime_t cutime ; cputime_t cstime ; cputime_t gtime ; cputime_t cgtime ; struct cputime prev_cputime ; unsigned long nvcsw ; unsigned long nivcsw ; unsigned long cnvcsw ; unsigned long cnivcsw ; unsigned long min_flt ; unsigned long maj_flt ; unsigned long cmin_flt ; unsigned long cmaj_flt ; unsigned long inblock ; unsigned long oublock ; unsigned long cinblock ; unsigned long coublock ; unsigned long maxrss ; unsigned long cmaxrss ; struct task_io_accounting ioac ; unsigned long long sum_sched_runtime ; struct rlimit rlim[16U] ; struct pacct_struct pacct ; struct taskstats *stats ; unsigned int audit_tty ; unsigned int audit_tty_log_passwd ; struct tty_audit_buf *tty_audit_buf ; oom_flags_t oom_flags ; short oom_score_adj ; short oom_score_adj_min ; struct mutex cred_guard_mutex ; }; struct user_struct { atomic_t __count ; atomic_t processes ; atomic_t sigpending ; atomic_t inotify_watches ; atomic_t inotify_devs ; atomic_t fanotify_listeners ; atomic_long_t epoll_watches ; unsigned long mq_bytes ; unsigned long locked_shm ; struct key *uid_keyring ; struct key *session_keyring ; struct hlist_node uidhash_node ; kuid_t uid ; atomic_long_t locked_vm ; }; struct backing_dev_info; struct reclaim_state; struct sched_info { unsigned long pcount ; unsigned long long run_delay ; unsigned long long last_arrival ; unsigned long long last_queued ; }; struct task_delay_info { spinlock_t lock ; unsigned int flags ; u64 blkio_start ; u64 blkio_delay ; u64 swapin_delay ; u32 blkio_count ; u32 swapin_count ; u64 freepages_start ; u64 freepages_delay ; u32 freepages_count ; }; struct wake_q_node { struct wake_q_node *next ; }; struct io_context; struct pipe_inode_info; struct uts_namespace; struct load_weight { unsigned long weight ; u32 inv_weight ; }; struct sched_avg { u64 last_runnable_update ; s64 decay_count ; unsigned long load_avg_contrib ; unsigned long utilization_avg_contrib ; u32 runnable_avg_sum ; u32 avg_period ; u32 running_avg_sum ; }; struct sched_statistics { u64 wait_start ; u64 wait_max ; u64 wait_count ; u64 wait_sum ; u64 iowait_count ; u64 iowait_sum ; u64 sleep_start ; u64 sleep_max ; s64 sum_sleep_runtime ; u64 block_start ; u64 block_max ; u64 exec_max ; u64 slice_max ; u64 nr_migrations_cold ; u64 nr_failed_migrations_affine ; u64 nr_failed_migrations_running ; u64 nr_failed_migrations_hot ; u64 nr_forced_migrations ; u64 nr_wakeups ; u64 nr_wakeups_sync ; u64 nr_wakeups_migrate ; u64 nr_wakeups_local ; u64 nr_wakeups_remote ; u64 nr_wakeups_affine ; u64 nr_wakeups_affine_attempts ; u64 nr_wakeups_passive ; u64 nr_wakeups_idle ; }; struct sched_entity { struct load_weight load ; struct rb_node run_node ; struct list_head group_node ; unsigned int on_rq ; u64 exec_start ; u64 sum_exec_runtime ; u64 vruntime ; u64 prev_sum_exec_runtime ; u64 nr_migrations ; struct sched_statistics statistics ; int depth ; struct sched_entity *parent ; struct cfs_rq *cfs_rq ; struct cfs_rq *my_q ; struct sched_avg avg ; }; struct rt_rq; struct sched_rt_entity { struct list_head run_list ; unsigned long timeout ; unsigned long watchdog_stamp ; unsigned int time_slice ; struct sched_rt_entity *back ; struct sched_rt_entity *parent ; struct rt_rq *rt_rq ; struct rt_rq *my_q ; }; struct sched_dl_entity { struct rb_node rb_node ; u64 dl_runtime ; u64 dl_deadline ; u64 dl_period ; u64 dl_bw ; s64 runtime ; u64 deadline ; unsigned int flags ; int dl_throttled ; int dl_new ; int dl_boosted ; int dl_yielded ; struct hrtimer dl_timer ; }; struct memcg_oom_info { struct mem_cgroup *memcg ; gfp_t gfp_mask ; int order ; unsigned char may_oom : 1 ; }; struct sched_class; struct files_struct; struct compat_robust_list_head; struct numa_group; struct ftrace_ret_stack; struct task_struct { long volatile state ; void *stack ; atomic_t usage ; unsigned int flags ; unsigned int ptrace ; struct llist_node wake_entry ; int on_cpu ; struct task_struct *last_wakee ; unsigned long wakee_flips ; unsigned long wakee_flip_decay_ts ; int wake_cpu ; int on_rq ; int prio ; int static_prio ; int normal_prio ; unsigned int rt_priority ; struct sched_class const *sched_class ; struct sched_entity se ; struct sched_rt_entity rt ; struct task_group *sched_task_group ; struct sched_dl_entity dl ; struct hlist_head preempt_notifiers ; unsigned int btrace_seq ; unsigned int policy ; int nr_cpus_allowed ; cpumask_t cpus_allowed ; unsigned long rcu_tasks_nvcsw ; bool rcu_tasks_holdout ; struct list_head rcu_tasks_holdout_list ; int rcu_tasks_idle_cpu ; struct sched_info sched_info ; struct list_head tasks ; struct plist_node pushable_tasks ; struct rb_node pushable_dl_tasks ; struct mm_struct *mm ; struct mm_struct *active_mm ; u32 vmacache_seqnum ; struct vm_area_struct *vmacache[4U] ; struct task_rss_stat rss_stat ; int exit_state ; int exit_code ; int exit_signal ; int pdeath_signal ; unsigned long jobctl ; unsigned int personality ; unsigned char in_execve : 1 ; unsigned char in_iowait : 1 ; unsigned char sched_reset_on_fork : 1 ; unsigned char sched_contributes_to_load : 1 ; unsigned char sched_migrated : 1 ; unsigned char memcg_kmem_skip_account : 1 ; unsigned char brk_randomized : 1 ; unsigned long atomic_flags ; struct restart_block restart_block ; pid_t pid ; pid_t tgid ; struct task_struct *real_parent ; struct task_struct *parent ; struct list_head children ; struct list_head sibling ; struct task_struct *group_leader ; struct list_head ptraced ; struct list_head ptrace_entry ; struct pid_link pids[3U] ; struct list_head thread_group ; struct list_head thread_node ; struct completion *vfork_done ; int *set_child_tid ; int *clear_child_tid ; cputime_t utime ; cputime_t stime ; cputime_t utimescaled ; cputime_t stimescaled ; cputime_t gtime ; struct cputime prev_cputime ; unsigned long nvcsw ; unsigned long nivcsw ; u64 start_time ; u64 real_start_time ; unsigned long min_flt ; unsigned long maj_flt ; struct task_cputime cputime_expires ; struct list_head cpu_timers[3U] ; struct cred const *real_cred ; struct cred const *cred ; char comm[16U] ; struct nameidata *nameidata ; struct sysv_sem sysvsem ; struct sysv_shm sysvshm ; unsigned long last_switch_count ; struct thread_struct thread ; struct fs_struct *fs ; struct files_struct *files ; struct nsproxy *nsproxy ; struct signal_struct *signal ; struct sighand_struct *sighand ; sigset_t blocked ; sigset_t real_blocked ; sigset_t saved_sigmask ; struct sigpending pending ; unsigned long sas_ss_sp ; size_t sas_ss_size ; int (*notifier)(void * ) ; void *notifier_data ; sigset_t *notifier_mask ; struct callback_head *task_works ; struct audit_context *audit_context ; kuid_t loginuid ; unsigned int sessionid ; struct seccomp seccomp ; u32 parent_exec_id ; u32 self_exec_id ; spinlock_t alloc_lock ; raw_spinlock_t pi_lock ; struct wake_q_node wake_q ; struct rb_root pi_waiters ; struct rb_node *pi_waiters_leftmost ; struct rt_mutex_waiter *pi_blocked_on ; struct mutex_waiter *blocked_on ; unsigned int irq_events ; unsigned long hardirq_enable_ip ; unsigned long hardirq_disable_ip ; unsigned int hardirq_enable_event ; unsigned int hardirq_disable_event ; int hardirqs_enabled ; int hardirq_context ; unsigned long softirq_disable_ip ; unsigned long softirq_enable_ip ; unsigned int softirq_disable_event ; unsigned int softirq_enable_event ; int softirqs_enabled ; int softirq_context ; u64 curr_chain_key ; int lockdep_depth ; unsigned int lockdep_recursion ; struct held_lock held_locks[48U] ; gfp_t lockdep_reclaim_gfp ; void *journal_info ; struct bio_list *bio_list ; struct blk_plug *plug ; struct reclaim_state *reclaim_state ; struct backing_dev_info *backing_dev_info ; struct io_context *io_context ; unsigned long ptrace_message ; siginfo_t *last_siginfo ; struct task_io_accounting ioac ; u64 acct_rss_mem1 ; u64 acct_vm_mem1 ; cputime_t acct_timexpd ; nodemask_t mems_allowed ; seqcount_t mems_allowed_seq ; int cpuset_mem_spread_rotor ; int cpuset_slab_spread_rotor ; struct css_set *cgroups ; struct list_head cg_list ; struct robust_list_head *robust_list ; struct compat_robust_list_head *compat_robust_list ; struct list_head pi_state_list ; struct futex_pi_state *pi_state_cache ; struct perf_event_context *perf_event_ctxp[2U] ; struct mutex perf_event_mutex ; struct list_head perf_event_list ; struct mempolicy *mempolicy ; short il_next ; short pref_node_fork ; int numa_scan_seq ; unsigned int numa_scan_period ; unsigned int numa_scan_period_max ; int numa_preferred_nid ; unsigned long numa_migrate_retry ; u64 node_stamp ; u64 last_task_numa_placement ; u64 last_sum_exec_runtime ; struct callback_head numa_work ; struct list_head numa_entry ; struct numa_group *numa_group ; unsigned long *numa_faults ; unsigned long total_numa_faults ; unsigned long numa_faults_locality[3U] ; unsigned long numa_pages_migrated ; struct callback_head rcu ; struct pipe_inode_info *splice_pipe ; struct page_frag task_frag ; struct task_delay_info *delays ; int make_it_fail ; int nr_dirtied ; int nr_dirtied_pause ; unsigned long dirty_paused_when ; int latency_record_count ; struct latency_record latency_record[32U] ; unsigned long timer_slack_ns ; unsigned long default_timer_slack_ns ; unsigned int kasan_depth ; int curr_ret_stack ; struct ftrace_ret_stack *ret_stack ; unsigned long long ftrace_timestamp ; atomic_t trace_overrun ; atomic_t tracing_graph_pause ; unsigned long trace ; unsigned long trace_recursion ; struct memcg_oom_info memcg_oom ; struct uprobe_task *utask ; unsigned int sequential_io ; unsigned int sequential_io_avg ; unsigned long task_state_change ; int pagefault_disabled ; }; struct lu_env; struct obd_device; struct cl_req_slice; struct obd_import; struct cl_page_slice; struct obd_info; struct lu_context; struct obd_quotactl; struct lu_context_key; struct lu_device; struct obd_uuid; struct obd_connect_data; struct obdo; struct lov_stripe_md; struct cl_object; struct obd_trans_info; struct cl_lock_slice; struct ptlrpc_request_set; struct cl_io; struct cl_io_slice; struct obd_export; struct lu_device_type; struct lu_object; struct vfsmount; struct path; struct hlist_bl_node; struct hlist_bl_head { struct hlist_bl_node *first ; }; struct hlist_bl_node { struct hlist_bl_node *next ; struct hlist_bl_node **pprev ; }; struct __anonstruct____missing_field_name_220 { spinlock_t lock ; int count ; }; union __anonunion____missing_field_name_219 { struct __anonstruct____missing_field_name_220 __annonCompField58 ; }; struct lockref { union __anonunion____missing_field_name_219 __annonCompField59 ; }; struct __anonstruct____missing_field_name_222 { u32 hash ; u32 len ; }; union __anonunion____missing_field_name_221 { struct __anonstruct____missing_field_name_222 __annonCompField60 ; u64 hash_len ; }; struct qstr { union __anonunion____missing_field_name_221 __annonCompField61 ; unsigned char const *name ; }; struct dentry_operations; union __anonunion_d_u_223 { struct hlist_node d_alias ; struct callback_head d_rcu ; }; struct dentry { unsigned int d_flags ; seqcount_t d_seq ; struct hlist_bl_node d_hash ; struct dentry *d_parent ; struct qstr d_name ; struct inode *d_inode ; unsigned char d_iname[32U] ; struct lockref d_lockref ; struct dentry_operations const *d_op ; struct super_block *d_sb ; unsigned long d_time ; void *d_fsdata ; struct list_head d_lru ; struct list_head d_child ; struct list_head d_subdirs ; union __anonunion_d_u_223 d_u ; }; struct dentry_operations { int (*d_revalidate)(struct dentry * , unsigned int ) ; int (*d_weak_revalidate)(struct dentry * , unsigned int ) ; int (*d_hash)(struct dentry const * , struct qstr * ) ; int (*d_compare)(struct dentry const * , struct dentry const * , unsigned int , char const * , struct qstr const * ) ; int (*d_delete)(struct dentry const * ) ; void (*d_release)(struct dentry * ) ; void (*d_prune)(struct dentry * ) ; void (*d_iput)(struct dentry * , struct inode * ) ; char *(*d_dname)(struct dentry * , char * , int ) ; struct vfsmount *(*d_automount)(struct path * ) ; int (*d_manage)(struct dentry * , bool ) ; struct inode *(*d_select_inode)(struct dentry * , unsigned int ) ; }; struct path { struct vfsmount *mnt ; struct dentry *dentry ; }; struct shrink_control { gfp_t gfp_mask ; unsigned long nr_to_scan ; int nid ; struct mem_cgroup *memcg ; }; struct shrinker { unsigned long (*count_objects)(struct shrinker * , struct shrink_control * ) ; unsigned long (*scan_objects)(struct shrinker * , struct shrink_control * ) ; int seeks ; long batch ; unsigned long flags ; struct list_head list ; atomic_long_t *nr_deferred ; }; struct list_lru_one { struct list_head list ; long nr_items ; }; struct list_lru_memcg { struct list_lru_one *lru[0U] ; }; struct list_lru_node { spinlock_t lock ; struct list_lru_one lru ; struct list_lru_memcg *memcg_lrus ; }; struct list_lru { struct list_lru_node *node ; struct list_head list ; }; struct __anonstruct____missing_field_name_227 { struct radix_tree_node *parent ; void *private_data ; }; union __anonunion____missing_field_name_226 { struct __anonstruct____missing_field_name_227 __annonCompField62 ; struct callback_head callback_head ; }; struct radix_tree_node { unsigned int path ; unsigned int count ; union __anonunion____missing_field_name_226 __annonCompField63 ; struct list_head private_list ; void *slots[64U] ; unsigned long tags[3U][1U] ; }; struct radix_tree_root { unsigned int height ; gfp_t gfp_mask ; struct radix_tree_node *rnode ; }; struct fiemap_extent { __u64 fe_logical ; __u64 fe_physical ; __u64 fe_length ; __u64 fe_reserved64[2U] ; __u32 fe_flags ; __u32 fe_reserved[3U] ; }; enum migrate_mode { MIGRATE_ASYNC = 0, MIGRATE_SYNC_LIGHT = 1, MIGRATE_SYNC = 2 } ; struct block_device; struct bio_vec { struct page *bv_page ; unsigned int bv_len ; unsigned int bv_offset ; }; struct bdi_writeback; struct export_operations; struct iovec; struct kiocb; struct poll_table_struct; struct kstatfs; struct swap_info_struct; struct iov_iter; struct vm_fault; struct iattr { unsigned int ia_valid ; umode_t ia_mode ; kuid_t ia_uid ; kgid_t ia_gid ; loff_t ia_size ; struct timespec ia_atime ; struct timespec ia_mtime ; struct timespec ia_ctime ; struct file *ia_file ; }; struct dquot; typedef __kernel_uid32_t projid_t; struct __anonstruct_kprojid_t_231 { projid_t val ; }; typedef struct __anonstruct_kprojid_t_231 kprojid_t; enum quota_type { USRQUOTA = 0, GRPQUOTA = 1, PRJQUOTA = 2 } ; typedef long long qsize_t; union __anonunion____missing_field_name_232 { kuid_t uid ; kgid_t gid ; kprojid_t projid ; }; struct kqid { union __anonunion____missing_field_name_232 __annonCompField65 ; enum quota_type type ; }; struct mem_dqblk { qsize_t dqb_bhardlimit ; qsize_t dqb_bsoftlimit ; qsize_t dqb_curspace ; qsize_t dqb_rsvspace ; qsize_t dqb_ihardlimit ; qsize_t dqb_isoftlimit ; qsize_t dqb_curinodes ; time_t dqb_btime ; time_t dqb_itime ; }; struct quota_format_type; struct mem_dqinfo { struct quota_format_type *dqi_format ; int dqi_fmt_id ; struct list_head dqi_dirty_list ; unsigned long dqi_flags ; unsigned int dqi_bgrace ; unsigned int dqi_igrace ; qsize_t dqi_max_spc_limit ; qsize_t dqi_max_ino_limit ; void *dqi_priv ; }; struct dquot { struct hlist_node dq_hash ; struct list_head dq_inuse ; struct list_head dq_free ; struct list_head dq_dirty ; struct mutex dq_lock ; atomic_t dq_count ; wait_queue_head_t dq_wait_unused ; struct super_block *dq_sb ; struct kqid dq_id ; loff_t dq_off ; unsigned long dq_flags ; struct mem_dqblk dq_dqb ; }; struct quota_format_ops { int (*check_quota_file)(struct super_block * , int ) ; int (*read_file_info)(struct super_block * , int ) ; int (*write_file_info)(struct super_block * , int ) ; int (*free_file_info)(struct super_block * , int ) ; int (*read_dqblk)(struct dquot * ) ; int (*commit_dqblk)(struct dquot * ) ; int (*release_dqblk)(struct dquot * ) ; }; struct dquot_operations { int (*write_dquot)(struct dquot * ) ; struct dquot *(*alloc_dquot)(struct super_block * , int ) ; void (*destroy_dquot)(struct dquot * ) ; int (*acquire_dquot)(struct dquot * ) ; int (*release_dquot)(struct dquot * ) ; int (*mark_dirty)(struct dquot * ) ; int (*write_info)(struct super_block * , int ) ; qsize_t *(*get_reserved_space)(struct inode * ) ; int (*get_projid)(struct inode * , kprojid_t * ) ; }; struct qc_dqblk { int d_fieldmask ; u64 d_spc_hardlimit ; u64 d_spc_softlimit ; u64 d_ino_hardlimit ; u64 d_ino_softlimit ; u64 d_space ; u64 d_ino_count ; s64 d_ino_timer ; s64 d_spc_timer ; int d_ino_warns ; int d_spc_warns ; u64 d_rt_spc_hardlimit ; u64 d_rt_spc_softlimit ; u64 d_rt_space ; s64 d_rt_spc_timer ; int d_rt_spc_warns ; }; struct qc_type_state { unsigned int flags ; unsigned int spc_timelimit ; unsigned int ino_timelimit ; unsigned int rt_spc_timelimit ; unsigned int spc_warnlimit ; unsigned int ino_warnlimit ; unsigned int rt_spc_warnlimit ; unsigned long long ino ; blkcnt_t blocks ; blkcnt_t nextents ; }; struct qc_state { unsigned int s_incoredqs ; struct qc_type_state s_state[3U] ; }; struct qc_info { int i_fieldmask ; unsigned int i_flags ; unsigned int i_spc_timelimit ; unsigned int i_ino_timelimit ; unsigned int i_rt_spc_timelimit ; unsigned int i_spc_warnlimit ; unsigned int i_ino_warnlimit ; unsigned int i_rt_spc_warnlimit ; }; struct quotactl_ops { int (*quota_on)(struct super_block * , int , int , struct path * ) ; int (*quota_off)(struct super_block * , int ) ; int (*quota_enable)(struct super_block * , unsigned int ) ; int (*quota_disable)(struct super_block * , unsigned int ) ; int (*quota_sync)(struct super_block * , int ) ; int (*set_info)(struct super_block * , int , struct qc_info * ) ; int (*get_dqblk)(struct super_block * , struct kqid , struct qc_dqblk * ) ; int (*set_dqblk)(struct super_block * , struct kqid , struct qc_dqblk * ) ; int (*get_state)(struct super_block * , struct qc_state * ) ; int (*rm_xquota)(struct super_block * , unsigned int ) ; }; struct quota_format_type { int qf_fmt_id ; struct quota_format_ops const *qf_ops ; struct module *qf_owner ; struct quota_format_type *qf_next ; }; struct quota_info { unsigned int flags ; struct mutex dqio_mutex ; struct mutex dqonoff_mutex ; struct inode *files[3U] ; struct mem_dqinfo info[3U] ; struct quota_format_ops const *ops[3U] ; }; struct writeback_control; struct kiocb { struct file *ki_filp ; loff_t ki_pos ; void (*ki_complete)(struct kiocb * , long , long ) ; void *private ; int ki_flags ; }; struct address_space_operations { int (*writepage)(struct page * , struct writeback_control * ) ; int (*readpage)(struct file * , struct page * ) ; int (*writepages)(struct address_space * , struct writeback_control * ) ; int (*set_page_dirty)(struct page * ) ; int (*readpages)(struct file * , struct address_space * , struct list_head * , unsigned int ) ; int (*write_begin)(struct file * , struct address_space * , loff_t , unsigned int , unsigned int , struct page ** , void ** ) ; int (*write_end)(struct file * , struct address_space * , loff_t , unsigned int , unsigned int , struct page * , void * ) ; sector_t (*bmap)(struct address_space * , sector_t ) ; void (*invalidatepage)(struct page * , unsigned int , unsigned int ) ; int (*releasepage)(struct page * , gfp_t ) ; void (*freepage)(struct page * ) ; ssize_t (*direct_IO)(struct kiocb * , struct iov_iter * , loff_t ) ; int (*migratepage)(struct address_space * , struct page * , struct page * , enum migrate_mode ) ; int (*launder_page)(struct page * ) ; int (*is_partially_uptodate)(struct page * , unsigned long , unsigned long ) ; void (*is_dirty_writeback)(struct page * , bool * , bool * ) ; int (*error_remove_page)(struct address_space * , struct page * ) ; int (*swap_activate)(struct swap_info_struct * , struct file * , sector_t * ) ; void (*swap_deactivate)(struct file * ) ; }; struct address_space { struct inode *host ; struct radix_tree_root page_tree ; spinlock_t tree_lock ; atomic_t i_mmap_writable ; struct rb_root i_mmap ; struct rw_semaphore i_mmap_rwsem ; unsigned long nrpages ; unsigned long nrshadows ; unsigned long writeback_index ; struct address_space_operations const *a_ops ; unsigned long flags ; spinlock_t private_lock ; struct list_head private_list ; void *private_data ; }; struct request_queue; struct hd_struct; struct gendisk; struct block_device { dev_t bd_dev ; int bd_openers ; struct inode *bd_inode ; struct super_block *bd_super ; struct mutex bd_mutex ; struct list_head bd_inodes ; void *bd_claiming ; void *bd_holder ; int bd_holders ; bool bd_write_holder ; struct list_head bd_holder_disks ; struct block_device *bd_contains ; unsigned int bd_block_size ; struct hd_struct *bd_part ; unsigned int bd_part_count ; int bd_invalidated ; struct gendisk *bd_disk ; struct request_queue *bd_queue ; struct list_head bd_list ; unsigned long bd_private ; int bd_fsfreeze_count ; struct mutex bd_fsfreeze_mutex ; }; struct posix_acl; struct inode_operations; union __anonunion____missing_field_name_235 { unsigned int const i_nlink ; unsigned int __i_nlink ; }; union __anonunion____missing_field_name_236 { struct hlist_head i_dentry ; struct callback_head i_rcu ; }; struct file_lock_context; struct cdev; union __anonunion____missing_field_name_237 { struct pipe_inode_info *i_pipe ; struct block_device *i_bdev ; struct cdev *i_cdev ; char *i_link ; }; struct inode { umode_t i_mode ; unsigned short i_opflags ; kuid_t i_uid ; kgid_t i_gid ; unsigned int i_flags ; struct posix_acl *i_acl ; struct posix_acl *i_default_acl ; struct inode_operations const *i_op ; struct super_block *i_sb ; struct address_space *i_mapping ; void *i_security ; unsigned long i_ino ; union __anonunion____missing_field_name_235 __annonCompField66 ; dev_t i_rdev ; loff_t i_size ; struct timespec i_atime ; struct timespec i_mtime ; struct timespec i_ctime ; spinlock_t i_lock ; unsigned short i_bytes ; unsigned int i_blkbits ; blkcnt_t i_blocks ; unsigned long i_state ; struct mutex i_mutex ; unsigned long dirtied_when ; unsigned long dirtied_time_when ; struct hlist_node i_hash ; struct list_head i_wb_list ; struct bdi_writeback *i_wb ; int i_wb_frn_winner ; u16 i_wb_frn_avg_time ; u16 i_wb_frn_history ; struct list_head i_lru ; struct list_head i_sb_list ; union __anonunion____missing_field_name_236 __annonCompField67 ; u64 i_version ; atomic_t i_count ; atomic_t i_dio_count ; atomic_t i_writecount ; atomic_t i_readcount ; struct file_operations const *i_fop ; struct file_lock_context *i_flctx ; struct address_space i_data ; struct list_head i_devices ; union __anonunion____missing_field_name_237 __annonCompField68 ; __u32 i_generation ; __u32 i_fsnotify_mask ; struct hlist_head i_fsnotify_marks ; void *i_private ; }; struct fown_struct { rwlock_t lock ; struct pid *pid ; enum pid_type pid_type ; kuid_t uid ; kuid_t euid ; int signum ; }; struct file_ra_state { unsigned long start ; unsigned int size ; unsigned int async_size ; unsigned int ra_pages ; unsigned int mmap_miss ; loff_t prev_pos ; }; union __anonunion_f_u_238 { struct llist_node fu_llist ; struct callback_head fu_rcuhead ; }; struct file { union __anonunion_f_u_238 f_u ; struct path f_path ; struct inode *f_inode ; struct file_operations const *f_op ; spinlock_t f_lock ; atomic_long_t f_count ; unsigned int f_flags ; fmode_t f_mode ; struct mutex f_pos_lock ; loff_t f_pos ; struct fown_struct f_owner ; struct cred const *f_cred ; struct file_ra_state f_ra ; u64 f_version ; void *f_security ; void *private_data ; struct list_head f_ep_links ; struct list_head f_tfile_llink ; struct address_space *f_mapping ; }; typedef void *fl_owner_t; struct file_lock; struct file_lock_operations { void (*fl_copy_lock)(struct file_lock * , struct file_lock * ) ; void (*fl_release_private)(struct file_lock * ) ; }; struct lock_manager_operations { int (*lm_compare_owner)(struct file_lock * , struct file_lock * ) ; unsigned long (*lm_owner_key)(struct file_lock * ) ; fl_owner_t (*lm_get_owner)(fl_owner_t ) ; void (*lm_put_owner)(fl_owner_t ) ; void (*lm_notify)(struct file_lock * ) ; int (*lm_grant)(struct file_lock * , int ) ; bool (*lm_break)(struct file_lock * ) ; int (*lm_change)(struct file_lock * , int , struct list_head * ) ; void (*lm_setup)(struct file_lock * , void ** ) ; }; struct net; struct nlm_lockowner; struct nfs_lock_info { u32 state ; struct nlm_lockowner *owner ; struct list_head list ; }; struct nfs4_lock_state; struct nfs4_lock_info { struct nfs4_lock_state *owner ; }; struct fasync_struct; struct __anonstruct_afs_240 { struct list_head link ; int state ; }; union __anonunion_fl_u_239 { struct nfs_lock_info nfs_fl ; struct nfs4_lock_info nfs4_fl ; struct __anonstruct_afs_240 afs ; }; struct file_lock { struct file_lock *fl_next ; struct list_head fl_list ; struct hlist_node fl_link ; struct list_head fl_block ; fl_owner_t fl_owner ; unsigned int fl_flags ; unsigned char fl_type ; unsigned int fl_pid ; int fl_link_cpu ; struct pid *fl_nspid ; wait_queue_head_t fl_wait ; struct file *fl_file ; loff_t fl_start ; loff_t fl_end ; struct fasync_struct *fl_fasync ; unsigned long fl_break_time ; unsigned long fl_downgrade_time ; struct file_lock_operations const *fl_ops ; struct lock_manager_operations const *fl_lmops ; union __anonunion_fl_u_239 fl_u ; }; struct file_lock_context { spinlock_t flc_lock ; struct list_head flc_flock ; struct list_head flc_posix ; struct list_head flc_lease ; }; struct fasync_struct { spinlock_t fa_lock ; int magic ; int fa_fd ; struct fasync_struct *fa_next ; struct file *fa_file ; struct callback_head fa_rcu ; }; struct sb_writers { struct percpu_counter counter[3U] ; wait_queue_head_t wait ; int frozen ; wait_queue_head_t wait_unfrozen ; struct lockdep_map lock_map[3U] ; }; struct super_operations; struct xattr_handler; struct mtd_info; struct super_block { struct list_head s_list ; dev_t s_dev ; unsigned char s_blocksize_bits ; unsigned long s_blocksize ; loff_t s_maxbytes ; struct file_system_type *s_type ; struct super_operations const *s_op ; struct dquot_operations const *dq_op ; struct quotactl_ops const *s_qcop ; struct export_operations const *s_export_op ; unsigned long s_flags ; unsigned long s_iflags ; unsigned long s_magic ; struct dentry *s_root ; struct rw_semaphore s_umount ; int s_count ; atomic_t s_active ; void *s_security ; struct xattr_handler const **s_xattr ; struct list_head s_inodes ; struct hlist_bl_head s_anon ; struct list_head s_mounts ; struct block_device *s_bdev ; struct backing_dev_info *s_bdi ; struct mtd_info *s_mtd ; struct hlist_node s_instances ; unsigned int s_quota_types ; struct quota_info s_dquot ; struct sb_writers s_writers ; char s_id[32U] ; u8 s_uuid[16U] ; void *s_fs_info ; unsigned int s_max_links ; fmode_t s_mode ; u32 s_time_gran ; struct mutex s_vfs_rename_mutex ; char *s_subtype ; char *s_options ; struct dentry_operations const *s_d_op ; int cleancache_poolid ; struct shrinker s_shrink ; atomic_long_t s_remove_count ; int s_readonly_remount ; struct workqueue_struct *s_dio_done_wq ; struct hlist_head s_pins ; struct list_lru s_dentry_lru ; struct list_lru s_inode_lru ; struct callback_head rcu ; int s_stack_depth ; }; struct fiemap_extent_info { unsigned int fi_flags ; unsigned int fi_extents_mapped ; unsigned int fi_extents_max ; struct fiemap_extent *fi_extents_start ; }; struct dir_context; struct dir_context { int (*actor)(struct dir_context * , char const * , int , loff_t , u64 , unsigned int ) ; loff_t pos ; }; struct file_operations { struct module *owner ; loff_t (*llseek)(struct file * , loff_t , int ) ; ssize_t (*read)(struct file * , char * , size_t , loff_t * ) ; ssize_t (*write)(struct file * , char const * , size_t , loff_t * ) ; ssize_t (*read_iter)(struct kiocb * , struct iov_iter * ) ; ssize_t (*write_iter)(struct kiocb * , struct iov_iter * ) ; int (*iterate)(struct file * , struct dir_context * ) ; unsigned int (*poll)(struct file * , struct poll_table_struct * ) ; long (*unlocked_ioctl)(struct file * , unsigned int , unsigned long ) ; long (*compat_ioctl)(struct file * , unsigned int , unsigned long ) ; int (*mmap)(struct file * , struct vm_area_struct * ) ; int (*mremap)(struct file * , struct vm_area_struct * ) ; int (*open)(struct inode * , struct file * ) ; int (*flush)(struct file * , fl_owner_t ) ; int (*release)(struct inode * , struct file * ) ; int (*fsync)(struct file * , loff_t , loff_t , int ) ; int (*aio_fsync)(struct kiocb * , int ) ; int (*fasync)(int , struct file * , int ) ; int (*lock)(struct file * , int , struct file_lock * ) ; ssize_t (*sendpage)(struct file * , struct page * , int , size_t , loff_t * , int ) ; unsigned long (*get_unmapped_area)(struct file * , unsigned long , unsigned long , unsigned long , unsigned long ) ; int (*check_flags)(int ) ; int (*flock)(struct file * , int , struct file_lock * ) ; ssize_t (*splice_write)(struct pipe_inode_info * , struct file * , loff_t * , size_t , unsigned int ) ; ssize_t (*splice_read)(struct file * , loff_t * , struct pipe_inode_info * , size_t , unsigned int ) ; int (*setlease)(struct file * , long , struct file_lock ** , void ** ) ; long (*fallocate)(struct file * , int , loff_t , loff_t ) ; void (*show_fdinfo)(struct seq_file * , struct file * ) ; }; struct inode_operations { struct dentry *(*lookup)(struct inode * , struct dentry * , unsigned int ) ; char const *(*follow_link)(struct dentry * , void ** ) ; int (*permission)(struct inode * , int ) ; struct posix_acl *(*get_acl)(struct inode * , int ) ; int (*readlink)(struct dentry * , char * , int ) ; void (*put_link)(struct inode * , void * ) ; int (*create)(struct inode * , struct dentry * , umode_t , bool ) ; int (*link)(struct dentry * , struct inode * , struct dentry * ) ; int (*unlink)(struct inode * , struct dentry * ) ; int (*symlink)(struct inode * , struct dentry * , char const * ) ; int (*mkdir)(struct inode * , struct dentry * , umode_t ) ; int (*rmdir)(struct inode * , struct dentry * ) ; int (*mknod)(struct inode * , struct dentry * , umode_t , dev_t ) ; int (*rename)(struct inode * , struct dentry * , struct inode * , struct dentry * ) ; int (*rename2)(struct inode * , struct dentry * , struct inode * , struct dentry * , unsigned int ) ; int (*setattr)(struct dentry * , struct iattr * ) ; int (*getattr)(struct vfsmount * , struct dentry * , struct kstat * ) ; int (*setxattr)(struct dentry * , char const * , void const * , size_t , int ) ; ssize_t (*getxattr)(struct dentry * , char const * , void * , size_t ) ; ssize_t (*listxattr)(struct dentry * , char * , size_t ) ; int (*removexattr)(struct dentry * , char const * ) ; int (*fiemap)(struct inode * , struct fiemap_extent_info * , u64 , u64 ) ; int (*update_time)(struct inode * , struct timespec * , int ) ; int (*atomic_open)(struct inode * , struct dentry * , struct file * , unsigned int , umode_t , int * ) ; int (*tmpfile)(struct inode * , struct dentry * , umode_t ) ; int (*set_acl)(struct inode * , struct posix_acl * , int ) ; }; struct super_operations { struct inode *(*alloc_inode)(struct super_block * ) ; void (*destroy_inode)(struct inode * ) ; void (*dirty_inode)(struct inode * , int ) ; int (*write_inode)(struct inode * , struct writeback_control * ) ; int (*drop_inode)(struct inode * ) ; void (*evict_inode)(struct inode * ) ; void (*put_super)(struct super_block * ) ; int (*sync_fs)(struct super_block * , int ) ; int (*freeze_super)(struct super_block * ) ; int (*freeze_fs)(struct super_block * ) ; int (*thaw_super)(struct super_block * ) ; int (*unfreeze_fs)(struct super_block * ) ; int (*statfs)(struct dentry * , struct kstatfs * ) ; int (*remount_fs)(struct super_block * , int * , char * ) ; void (*umount_begin)(struct super_block * ) ; int (*show_options)(struct seq_file * , struct dentry * ) ; int (*show_devname)(struct seq_file * , struct dentry * ) ; int (*show_path)(struct seq_file * , struct dentry * ) ; int (*show_stats)(struct seq_file * , struct dentry * ) ; ssize_t (*quota_read)(struct super_block * , int , char * , size_t , loff_t ) ; ssize_t (*quota_write)(struct super_block * , int , char const * , size_t , loff_t ) ; struct dquot **(*get_dquots)(struct inode * ) ; int (*bdev_try_to_free_page)(struct super_block * , struct page * , gfp_t ) ; long (*nr_cached_objects)(struct super_block * , struct shrink_control * ) ; long (*free_cached_objects)(struct super_block * , struct shrink_control * ) ; }; struct file_system_type { char const *name ; int fs_flags ; struct dentry *(*mount)(struct file_system_type * , int , char const * , void * ) ; void (*kill_sb)(struct super_block * ) ; struct module *owner ; struct file_system_type *next ; struct hlist_head fs_supers ; struct lock_class_key s_lock_key ; struct lock_class_key s_umount_key ; struct lock_class_key s_vfs_rename_key ; struct lock_class_key s_writers_key[3U] ; struct lock_class_key i_lock_key ; struct lock_class_key i_mutex_key ; struct lock_class_key i_mutex_dir_key ; }; struct vm_fault { unsigned int flags ; unsigned long pgoff ; void *virtual_address ; struct page *cow_page ; struct page *page ; unsigned long max_pgoff ; pte_t *pte ; }; struct vm_operations_struct { void (*open)(struct vm_area_struct * ) ; void (*close)(struct vm_area_struct * ) ; int (*fault)(struct vm_area_struct * , struct vm_fault * ) ; void (*map_pages)(struct vm_area_struct * , struct vm_fault * ) ; int (*page_mkwrite)(struct vm_area_struct * , struct vm_fault * ) ; int (*pfn_mkwrite)(struct vm_area_struct * , struct vm_fault * ) ; int (*access)(struct vm_area_struct * , unsigned long , void * , int , int ) ; char const *(*name)(struct vm_area_struct * ) ; int (*set_policy)(struct vm_area_struct * , struct mempolicy * ) ; struct mempolicy *(*get_policy)(struct vm_area_struct * , unsigned long ) ; struct page *(*find_special_page)(struct vm_area_struct * , unsigned long ) ; }; struct kvec; struct exception_table_entry { int insn ; int fixup ; }; struct proc_dir_entry; struct tasklet_struct { struct tasklet_struct *next ; unsigned long state ; atomic_t count ; void (*func)(unsigned long ) ; unsigned long data ; }; struct taskstats { __u16 version ; __u32 ac_exitcode ; __u8 ac_flag ; __u8 ac_nice ; __u64 cpu_count ; __u64 cpu_delay_total ; __u64 blkio_count ; __u64 blkio_delay_total ; __u64 swapin_count ; __u64 swapin_delay_total ; __u64 cpu_run_real_total ; __u64 cpu_run_virtual_total ; char ac_comm[32U] ; __u8 ac_sched ; __u8 ac_pad[3U] ; __u32 ac_uid ; __u32 ac_gid ; __u32 ac_pid ; __u32 ac_ppid ; __u32 ac_btime ; __u64 ac_etime ; __u64 ac_utime ; __u64 ac_stime ; __u64 ac_minflt ; __u64 ac_majflt ; __u64 coremem ; __u64 virtmem ; __u64 hiwater_rss ; __u64 hiwater_vm ; __u64 read_char ; __u64 write_char ; __u64 read_syscalls ; __u64 write_syscalls ; __u64 read_bytes ; __u64 write_bytes ; __u64 cancelled_write_bytes ; __u64 nvcsw ; __u64 nivcsw ; __u64 ac_utimescaled ; __u64 ac_stimescaled ; __u64 cpu_scaled_run_real_total ; __u64 freepages_count ; __u64 freepages_delay_total ; }; struct seq_file { char *buf ; size_t size ; size_t from ; size_t count ; size_t pad_until ; loff_t index ; loff_t read_pos ; u64 version ; struct mutex lock ; struct seq_operations const *op ; int poll_event ; struct user_namespace *user_ns ; void *private ; }; struct seq_operations { void *(*start)(struct seq_file * , loff_t * ) ; void (*stop)(struct seq_file * , void * ) ; void *(*next)(struct seq_file * , void * , loff_t * ) ; int (*show)(struct seq_file * , void * ) ; }; struct klist_node; struct klist_node { void *n_klist ; struct list_head n_node ; struct kref n_ref ; }; struct pinctrl; struct pinctrl_state; struct dev_pin_info { struct pinctrl *p ; struct pinctrl_state *default_state ; struct pinctrl_state *sleep_state ; struct pinctrl_state *idle_state ; }; struct dma_map_ops; struct dev_archdata { struct dma_map_ops *dma_ops ; void *iommu ; }; struct device_private; struct device_driver; struct driver_private; struct class; struct subsys_private; struct bus_type; struct device_node; struct fwnode_handle; struct iommu_ops; struct iommu_group; struct device_attribute; struct bus_type { char const *name ; char const *dev_name ; struct device *dev_root ; struct device_attribute *dev_attrs ; struct attribute_group const **bus_groups ; struct attribute_group const **dev_groups ; struct attribute_group const **drv_groups ; int (*match)(struct device * , struct device_driver * ) ; int (*uevent)(struct device * , struct kobj_uevent_env * ) ; int (*probe)(struct device * ) ; int (*remove)(struct device * ) ; void (*shutdown)(struct device * ) ; int (*online)(struct device * ) ; int (*offline)(struct device * ) ; int (*suspend)(struct device * , pm_message_t ) ; int (*resume)(struct device * ) ; struct dev_pm_ops const *pm ; struct iommu_ops const *iommu_ops ; struct subsys_private *p ; struct lock_class_key lock_key ; }; struct device_type; enum probe_type { PROBE_DEFAULT_STRATEGY = 0, PROBE_PREFER_ASYNCHRONOUS = 1, PROBE_FORCE_SYNCHRONOUS = 2 } ; struct of_device_id; struct acpi_device_id; struct device_driver { char const *name ; struct bus_type *bus ; struct module *owner ; char const *mod_name ; bool suppress_bind_attrs ; enum probe_type probe_type ; struct of_device_id const *of_match_table ; struct acpi_device_id const *acpi_match_table ; int (*probe)(struct device * ) ; int (*remove)(struct device * ) ; void (*shutdown)(struct device * ) ; int (*suspend)(struct device * , pm_message_t ) ; int (*resume)(struct device * ) ; struct attribute_group const **groups ; struct dev_pm_ops const *pm ; struct driver_private *p ; }; struct class_attribute; struct class { char const *name ; struct module *owner ; struct class_attribute *class_attrs ; struct attribute_group const **dev_groups ; struct kobject *dev_kobj ; int (*dev_uevent)(struct device * , struct kobj_uevent_env * ) ; char *(*devnode)(struct device * , umode_t * ) ; void (*class_release)(struct class * ) ; void (*dev_release)(struct device * ) ; int (*suspend)(struct device * , pm_message_t ) ; int (*resume)(struct device * ) ; struct kobj_ns_type_operations const *ns_type ; void const *(*namespace)(struct device * ) ; struct dev_pm_ops const *pm ; struct subsys_private *p ; }; struct class_attribute { struct attribute attr ; ssize_t (*show)(struct class * , struct class_attribute * , char * ) ; ssize_t (*store)(struct class * , struct class_attribute * , char const * , size_t ) ; }; struct device_type { char const *name ; struct attribute_group const **groups ; int (*uevent)(struct device * , struct kobj_uevent_env * ) ; char *(*devnode)(struct device * , umode_t * , kuid_t * , kgid_t * ) ; void (*release)(struct device * ) ; struct dev_pm_ops const *pm ; }; struct device_attribute { struct attribute attr ; ssize_t (*show)(struct device * , struct device_attribute * , char * ) ; ssize_t (*store)(struct device * , struct device_attribute * , char const * , size_t ) ; }; struct device_dma_parameters { unsigned int max_segment_size ; unsigned long segment_boundary_mask ; }; struct dma_coherent_mem; struct cma; struct device { struct device *parent ; struct device_private *p ; struct kobject kobj ; char const *init_name ; struct device_type const *type ; struct mutex mutex ; struct bus_type *bus ; struct device_driver *driver ; void *platform_data ; void *driver_data ; struct dev_pm_info power ; struct dev_pm_domain *pm_domain ; struct dev_pin_info *pins ; int numa_node ; u64 *dma_mask ; u64 coherent_dma_mask ; unsigned long dma_pfn_offset ; struct device_dma_parameters *dma_parms ; struct list_head dma_pools ; struct dma_coherent_mem *dma_mem ; struct cma *cma_area ; struct dev_archdata archdata ; struct device_node *of_node ; struct fwnode_handle *fwnode ; dev_t devt ; u32 id ; spinlock_t devres_lock ; struct list_head devres_head ; struct klist_node knode_class ; struct class *class ; struct attribute_group const **groups ; void (*release)(struct device * ) ; struct iommu_group *iommu_group ; bool offline_disabled ; bool offline ; }; struct wakeup_source { char const *name ; struct list_head entry ; spinlock_t lock ; struct wake_irq *wakeirq ; struct timer_list timer ; unsigned long timer_expires ; ktime_t total_time ; ktime_t max_time ; ktime_t last_time ; ktime_t start_prevent_time ; ktime_t prevent_sleep_time ; unsigned long event_count ; unsigned long active_count ; unsigned long relax_count ; unsigned long expire_count ; unsigned long wakeup_count ; bool active ; bool autosleep_enabled ; }; struct reclaim_state { unsigned long reclaimed_slab ; }; struct swap_extent { struct list_head list ; unsigned long start_page ; unsigned long nr_pages ; sector_t start_block ; }; struct swap_cluster_info { unsigned int data : 24 ; unsigned char flags ; }; struct percpu_cluster { struct swap_cluster_info index ; unsigned int next ; }; struct swap_info_struct { unsigned long flags ; short prio ; struct plist_node list ; struct plist_node avail_list ; signed char type ; unsigned int max ; unsigned char *swap_map ; struct swap_cluster_info *cluster_info ; struct swap_cluster_info free_cluster_head ; struct swap_cluster_info free_cluster_tail ; unsigned int lowest_bit ; unsigned int highest_bit ; unsigned int pages ; unsigned int inuse_pages ; unsigned int cluster_next ; unsigned int cluster_nr ; struct percpu_cluster *percpu_cluster ; struct swap_extent *curr_swap_extent ; struct swap_extent first_swap_extent ; struct block_device *bdev ; struct file *swap_file ; unsigned int old_block_size ; unsigned long *frontswap_map ; atomic_t frontswap_pages ; spinlock_t lock ; struct work_struct discard_work ; struct swap_cluster_info discard_cluster_head ; struct swap_cluster_info discard_cluster_tail ; }; struct scatterlist { unsigned long sg_magic ; unsigned long page_link ; unsigned int offset ; unsigned int length ; dma_addr_t dma_address ; unsigned int dma_length ; }; struct sg_table { struct scatterlist *sgl ; unsigned int nents ; unsigned int orig_nents ; }; struct hlist_nulls_node; struct hlist_nulls_head { struct hlist_nulls_node *first ; }; struct hlist_nulls_node { struct hlist_nulls_node *next ; struct hlist_nulls_node **pprev ; }; struct iovec { void *iov_base ; __kernel_size_t iov_len ; }; struct kvec { void *iov_base ; size_t iov_len ; }; union __anonunion____missing_field_name_259 { struct iovec const *iov ; struct kvec const *kvec ; struct bio_vec const *bvec ; }; struct iov_iter { int type ; size_t iov_offset ; size_t count ; union __anonunion____missing_field_name_259 __annonCompField76 ; unsigned long nr_segs ; }; struct dql { unsigned int num_queued ; unsigned int adj_limit ; unsigned int last_obj_cnt ; unsigned int limit ; unsigned int num_completed ; unsigned int prev_ovlimit ; unsigned int prev_num_queued ; unsigned int prev_last_obj_cnt ; unsigned int lowest_slack ; unsigned long slack_start_time ; unsigned int max_limit ; unsigned int min_limit ; unsigned int slack_hold_time ; }; typedef unsigned short __kernel_sa_family_t; typedef __kernel_sa_family_t sa_family_t; struct sockaddr { sa_family_t sa_family ; char sa_data[14U] ; }; struct msghdr { void *msg_name ; int msg_namelen ; struct iov_iter msg_iter ; void *msg_control ; __kernel_size_t msg_controllen ; unsigned int msg_flags ; struct kiocb *msg_iocb ; }; struct __anonstruct_sync_serial_settings_261 { unsigned int clock_rate ; unsigned int clock_type ; unsigned short loopback ; }; typedef struct __anonstruct_sync_serial_settings_261 sync_serial_settings; struct __anonstruct_te1_settings_262 { unsigned int clock_rate ; unsigned int clock_type ; unsigned short loopback ; unsigned int slot_map ; }; typedef struct __anonstruct_te1_settings_262 te1_settings; struct __anonstruct_raw_hdlc_proto_263 { unsigned short encoding ; unsigned short parity ; }; typedef struct __anonstruct_raw_hdlc_proto_263 raw_hdlc_proto; struct __anonstruct_fr_proto_264 { unsigned int t391 ; unsigned int t392 ; unsigned int n391 ; unsigned int n392 ; unsigned int n393 ; unsigned short lmi ; unsigned short dce ; }; typedef struct __anonstruct_fr_proto_264 fr_proto; struct __anonstruct_fr_proto_pvc_265 { unsigned int dlci ; }; typedef struct __anonstruct_fr_proto_pvc_265 fr_proto_pvc; struct __anonstruct_fr_proto_pvc_info_266 { unsigned int dlci ; char master[16U] ; }; typedef struct __anonstruct_fr_proto_pvc_info_266 fr_proto_pvc_info; struct __anonstruct_cisco_proto_267 { unsigned int interval ; unsigned int timeout ; }; typedef struct __anonstruct_cisco_proto_267 cisco_proto; struct ifmap { unsigned long mem_start ; unsigned long mem_end ; unsigned short base_addr ; unsigned char irq ; unsigned char dma ; unsigned char port ; }; union __anonunion_ifs_ifsu_268 { raw_hdlc_proto *raw_hdlc ; cisco_proto *cisco ; fr_proto *fr ; fr_proto_pvc *fr_pvc ; fr_proto_pvc_info *fr_pvc_info ; sync_serial_settings *sync ; te1_settings *te1 ; }; struct if_settings { unsigned int type ; unsigned int size ; union __anonunion_ifs_ifsu_268 ifs_ifsu ; }; union __anonunion_ifr_ifrn_269 { char ifrn_name[16U] ; }; union __anonunion_ifr_ifru_270 { struct sockaddr ifru_addr ; struct sockaddr ifru_dstaddr ; struct sockaddr ifru_broadaddr ; struct sockaddr ifru_netmask ; struct sockaddr ifru_hwaddr ; short ifru_flags ; int ifru_ivalue ; int ifru_mtu ; struct ifmap ifru_map ; char ifru_slave[16U] ; char ifru_newname[16U] ; void *ifru_data ; struct if_settings ifru_settings ; }; struct ifreq { union __anonunion_ifr_ifrn_269 ifr_ifrn ; union __anonunion_ifr_ifru_270 ifr_ifru ; }; typedef s32 compat_time_t; typedef s32 compat_long_t; typedef u32 compat_uptr_t; struct compat_timespec { compat_time_t tv_sec ; s32 tv_nsec ; }; struct compat_robust_list { compat_uptr_t next ; }; struct compat_robust_list_head { struct compat_robust_list list ; compat_long_t futex_offset ; compat_uptr_t list_op_pending ; }; enum ldv_25697 { SS_FREE = 0, SS_UNCONNECTED = 1, SS_CONNECTING = 2, SS_CONNECTED = 3, SS_DISCONNECTING = 4 } ; typedef enum ldv_25697 socket_state; struct socket_wq { wait_queue_head_t wait ; struct fasync_struct *fasync_list ; struct callback_head rcu ; }; struct proto_ops; struct socket { socket_state state ; short type ; unsigned long flags ; struct socket_wq *wq ; struct file *file ; struct sock *sk ; struct proto_ops const *ops ; }; struct proto_ops { int family ; struct module *owner ; int (*release)(struct socket * ) ; int (*bind)(struct socket * , struct sockaddr * , int ) ; int (*connect)(struct socket * , struct sockaddr * , int , int ) ; int (*socketpair)(struct socket * , struct socket * ) ; int (*accept)(struct socket * , struct socket * , int ) ; int (*getname)(struct socket * , struct sockaddr * , int * , int ) ; unsigned int (*poll)(struct file * , struct socket * , struct poll_table_struct * ) ; int (*ioctl)(struct socket * , unsigned int , unsigned long ) ; int (*compat_ioctl)(struct socket * , unsigned int , unsigned long ) ; int (*listen)(struct socket * , int ) ; int (*shutdown)(struct socket * , int ) ; int (*setsockopt)(struct socket * , int , int , char * , unsigned int ) ; int (*getsockopt)(struct socket * , int , int , char * , int * ) ; int (*compat_setsockopt)(struct socket * , int , int , char * , unsigned int ) ; int (*compat_getsockopt)(struct socket * , int , int , char * , int * ) ; int (*sendmsg)(struct socket * , struct msghdr * , size_t ) ; int (*recvmsg)(struct socket * , struct msghdr * , size_t , int ) ; int (*mmap)(struct file * , struct socket * , struct vm_area_struct * ) ; ssize_t (*sendpage)(struct socket * , struct page * , int , size_t , int ) ; ssize_t (*splice_read)(struct socket * , loff_t * , struct pipe_inode_info * , size_t , unsigned int ) ; int (*set_peek_off)(struct sock * , int ) ; }; struct in6_addr; struct sk_buff; struct dma_attrs { unsigned long flags[1U] ; }; enum dma_data_direction { DMA_BIDIRECTIONAL = 0, DMA_TO_DEVICE = 1, DMA_FROM_DEVICE = 2, DMA_NONE = 3 } ; struct dma_map_ops { void *(*alloc)(struct device * , size_t , dma_addr_t * , gfp_t , struct dma_attrs * ) ; void (*free)(struct device * , size_t , void * , dma_addr_t , struct dma_attrs * ) ; int (*mmap)(struct device * , struct vm_area_struct * , void * , dma_addr_t , size_t , struct dma_attrs * ) ; int (*get_sgtable)(struct device * , struct sg_table * , void * , dma_addr_t , size_t , struct dma_attrs * ) ; dma_addr_t (*map_page)(struct device * , struct page * , unsigned long , size_t , enum dma_data_direction , struct dma_attrs * ) ; void (*unmap_page)(struct device * , dma_addr_t , size_t , enum dma_data_direction , struct dma_attrs * ) ; int (*map_sg)(struct device * , struct scatterlist * , int , enum dma_data_direction , struct dma_attrs * ) ; void (*unmap_sg)(struct device * , struct scatterlist * , int , enum dma_data_direction , struct dma_attrs * ) ; void (*sync_single_for_cpu)(struct device * , dma_addr_t , size_t , enum dma_data_direction ) ; void (*sync_single_for_device)(struct device * , dma_addr_t , size_t , enum dma_data_direction ) ; void (*sync_sg_for_cpu)(struct device * , struct scatterlist * , int , enum dma_data_direction ) ; void (*sync_sg_for_device)(struct device * , struct scatterlist * , int , enum dma_data_direction ) ; int (*mapping_error)(struct device * , dma_addr_t ) ; int (*dma_supported)(struct device * , u64 ) ; int (*set_dma_mask)(struct device * , u64 ) ; int is_phys ; }; typedef u64 netdev_features_t; union __anonunion_in6_u_286 { __u8 u6_addr8[16U] ; __be16 u6_addr16[8U] ; __be32 u6_addr32[4U] ; }; struct in6_addr { union __anonunion_in6_u_286 in6_u ; }; struct ethhdr { unsigned char h_dest[6U] ; unsigned char h_source[6U] ; __be16 h_proto ; }; struct pipe_buf_operations; struct pipe_buffer { struct page *page ; unsigned int offset ; unsigned int len ; struct pipe_buf_operations const *ops ; unsigned int flags ; unsigned long private ; }; struct pipe_inode_info { struct mutex mutex ; wait_queue_head_t wait ; unsigned int nrbufs ; unsigned int curbuf ; unsigned int buffers ; unsigned int readers ; unsigned int writers ; unsigned int files ; unsigned int waiting_writers ; unsigned int r_counter ; unsigned int w_counter ; struct page *tmp_page ; struct fasync_struct *fasync_readers ; struct fasync_struct *fasync_writers ; struct pipe_buffer *bufs ; }; struct pipe_buf_operations { int can_merge ; int (*confirm)(struct pipe_inode_info * , struct pipe_buffer * ) ; void (*release)(struct pipe_inode_info * , struct pipe_buffer * ) ; int (*steal)(struct pipe_inode_info * , struct pipe_buffer * ) ; void (*get)(struct pipe_inode_info * , struct pipe_buffer * ) ; }; struct napi_struct; struct nf_conntrack { atomic_t use ; }; union __anonunion____missing_field_name_291 { struct net_device *physoutdev ; char neigh_header[8U] ; }; union __anonunion____missing_field_name_292 { __be32 ipv4_daddr ; struct in6_addr ipv6_daddr ; }; struct nf_bridge_info { atomic_t use ; unsigned char orig_proto ; bool pkt_otherhost ; __u16 frag_max_size ; unsigned int mask ; struct net_device *physindev ; union __anonunion____missing_field_name_291 __annonCompField80 ; union __anonunion____missing_field_name_292 __annonCompField81 ; }; struct sk_buff_head { struct sk_buff *next ; struct sk_buff *prev ; __u32 qlen ; spinlock_t lock ; }; typedef unsigned int sk_buff_data_t; struct __anonstruct____missing_field_name_295 { u32 stamp_us ; u32 stamp_jiffies ; }; union __anonunion____missing_field_name_294 { u64 v64 ; struct __anonstruct____missing_field_name_295 __annonCompField82 ; }; struct skb_mstamp { union __anonunion____missing_field_name_294 __annonCompField83 ; }; union __anonunion____missing_field_name_298 { ktime_t tstamp ; struct skb_mstamp skb_mstamp ; }; struct __anonstruct____missing_field_name_297 { struct sk_buff *next ; struct sk_buff *prev ; union __anonunion____missing_field_name_298 __annonCompField84 ; }; union __anonunion____missing_field_name_296 { struct __anonstruct____missing_field_name_297 __annonCompField85 ; struct rb_node rbnode ; }; struct sec_path; struct __anonstruct____missing_field_name_300 { __u16 csum_start ; __u16 csum_offset ; }; union __anonunion____missing_field_name_299 { __wsum csum ; struct __anonstruct____missing_field_name_300 __annonCompField87 ; }; union __anonunion____missing_field_name_301 { unsigned int napi_id ; unsigned int sender_cpu ; }; union __anonunion____missing_field_name_302 { __u32 mark ; __u32 reserved_tailroom ; }; union __anonunion____missing_field_name_303 { __be16 inner_protocol ; __u8 inner_ipproto ; }; struct sk_buff { union __anonunion____missing_field_name_296 __annonCompField86 ; struct sock *sk ; struct net_device *dev ; char cb[48U] ; unsigned long _skb_refdst ; void (*destructor)(struct sk_buff * ) ; struct sec_path *sp ; struct nf_conntrack *nfct ; struct nf_bridge_info *nf_bridge ; unsigned int len ; unsigned int data_len ; __u16 mac_len ; __u16 hdr_len ; __u16 queue_mapping ; unsigned char cloned : 1 ; unsigned char nohdr : 1 ; unsigned char fclone : 2 ; unsigned char peeked : 1 ; unsigned char head_frag : 1 ; unsigned char xmit_more : 1 ; __u32 headers_start[0U] ; __u8 __pkt_type_offset[0U] ; unsigned char pkt_type : 3 ; unsigned char pfmemalloc : 1 ; unsigned char ignore_df : 1 ; unsigned char nfctinfo : 3 ; unsigned char nf_trace : 1 ; unsigned char ip_summed : 2 ; unsigned char ooo_okay : 1 ; unsigned char l4_hash : 1 ; unsigned char sw_hash : 1 ; unsigned char wifi_acked_valid : 1 ; unsigned char wifi_acked : 1 ; unsigned char no_fcs : 1 ; unsigned char encapsulation : 1 ; unsigned char encap_hdr_csum : 1 ; unsigned char csum_valid : 1 ; unsigned char csum_complete_sw : 1 ; unsigned char csum_level : 2 ; unsigned char csum_bad : 1 ; unsigned char ndisc_nodetype : 2 ; unsigned char ipvs_property : 1 ; unsigned char inner_protocol_type : 1 ; unsigned char remcsum_offload : 1 ; __u16 tc_index ; __u16 tc_verd ; union __anonunion____missing_field_name_299 __annonCompField88 ; __u32 priority ; int skb_iif ; __u32 hash ; __be16 vlan_proto ; __u16 vlan_tci ; union __anonunion____missing_field_name_301 __annonCompField89 ; __u32 secmark ; union __anonunion____missing_field_name_302 __annonCompField90 ; union __anonunion____missing_field_name_303 __annonCompField91 ; __u16 inner_transport_header ; __u16 inner_network_header ; __u16 inner_mac_header ; __be16 protocol ; __u16 transport_header ; __u16 network_header ; __u16 mac_header ; __u32 headers_end[0U] ; sk_buff_data_t tail ; sk_buff_data_t end ; unsigned char *head ; unsigned char *data ; unsigned int truesize ; atomic_t users ; }; struct dst_entry; struct rtable; struct ethtool_cmd { __u32 cmd ; __u32 supported ; __u32 advertising ; __u16 speed ; __u8 duplex ; __u8 port ; __u8 phy_address ; __u8 transceiver ; __u8 autoneg ; __u8 mdio_support ; __u32 maxtxpkt ; __u32 maxrxpkt ; __u16 speed_hi ; __u8 eth_tp_mdix ; __u8 eth_tp_mdix_ctrl ; __u32 lp_advertising ; __u32 reserved[2U] ; }; struct ethtool_drvinfo { __u32 cmd ; char driver[32U] ; char version[32U] ; char fw_version[32U] ; char bus_info[32U] ; char erom_version[32U] ; char reserved2[12U] ; __u32 n_priv_flags ; __u32 n_stats ; __u32 testinfo_len ; __u32 eedump_len ; __u32 regdump_len ; }; struct ethtool_wolinfo { __u32 cmd ; __u32 supported ; __u32 wolopts ; __u8 sopass[6U] ; }; struct ethtool_tunable { __u32 cmd ; __u32 id ; __u32 type_id ; __u32 len ; void *data[0U] ; }; struct ethtool_regs { __u32 cmd ; __u32 version ; __u32 len ; __u8 data[0U] ; }; struct ethtool_eeprom { __u32 cmd ; __u32 magic ; __u32 offset ; __u32 len ; __u8 data[0U] ; }; struct ethtool_eee { __u32 cmd ; __u32 supported ; __u32 advertised ; __u32 lp_advertised ; __u32 eee_active ; __u32 eee_enabled ; __u32 tx_lpi_enabled ; __u32 tx_lpi_timer ; __u32 reserved[2U] ; }; struct ethtool_modinfo { __u32 cmd ; __u32 type ; __u32 eeprom_len ; __u32 reserved[8U] ; }; struct ethtool_coalesce { __u32 cmd ; __u32 rx_coalesce_usecs ; __u32 rx_max_coalesced_frames ; __u32 rx_coalesce_usecs_irq ; __u32 rx_max_coalesced_frames_irq ; __u32 tx_coalesce_usecs ; __u32 tx_max_coalesced_frames ; __u32 tx_coalesce_usecs_irq ; __u32 tx_max_coalesced_frames_irq ; __u32 stats_block_coalesce_usecs ; __u32 use_adaptive_rx_coalesce ; __u32 use_adaptive_tx_coalesce ; __u32 pkt_rate_low ; __u32 rx_coalesce_usecs_low ; __u32 rx_max_coalesced_frames_low ; __u32 tx_coalesce_usecs_low ; __u32 tx_max_coalesced_frames_low ; __u32 pkt_rate_high ; __u32 rx_coalesce_usecs_high ; __u32 rx_max_coalesced_frames_high ; __u32 tx_coalesce_usecs_high ; __u32 tx_max_coalesced_frames_high ; __u32 rate_sample_interval ; }; struct ethtool_ringparam { __u32 cmd ; __u32 rx_max_pending ; __u32 rx_mini_max_pending ; __u32 rx_jumbo_max_pending ; __u32 tx_max_pending ; __u32 rx_pending ; __u32 rx_mini_pending ; __u32 rx_jumbo_pending ; __u32 tx_pending ; }; struct ethtool_channels { __u32 cmd ; __u32 max_rx ; __u32 max_tx ; __u32 max_other ; __u32 max_combined ; __u32 rx_count ; __u32 tx_count ; __u32 other_count ; __u32 combined_count ; }; struct ethtool_pauseparam { __u32 cmd ; __u32 autoneg ; __u32 rx_pause ; __u32 tx_pause ; }; struct ethtool_test { __u32 cmd ; __u32 flags ; __u32 reserved ; __u32 len ; __u64 data[0U] ; }; struct ethtool_stats { __u32 cmd ; __u32 n_stats ; __u64 data[0U] ; }; struct ethtool_tcpip4_spec { __be32 ip4src ; __be32 ip4dst ; __be16 psrc ; __be16 pdst ; __u8 tos ; }; struct ethtool_ah_espip4_spec { __be32 ip4src ; __be32 ip4dst ; __be32 spi ; __u8 tos ; }; struct ethtool_usrip4_spec { __be32 ip4src ; __be32 ip4dst ; __be32 l4_4_bytes ; __u8 tos ; __u8 ip_ver ; __u8 proto ; }; union ethtool_flow_union { struct ethtool_tcpip4_spec tcp_ip4_spec ; struct ethtool_tcpip4_spec udp_ip4_spec ; struct ethtool_tcpip4_spec sctp_ip4_spec ; struct ethtool_ah_espip4_spec ah_ip4_spec ; struct ethtool_ah_espip4_spec esp_ip4_spec ; struct ethtool_usrip4_spec usr_ip4_spec ; struct ethhdr ether_spec ; __u8 hdata[52U] ; }; struct ethtool_flow_ext { __u8 padding[2U] ; unsigned char h_dest[6U] ; __be16 vlan_etype ; __be16 vlan_tci ; __be32 data[2U] ; }; struct ethtool_rx_flow_spec { __u32 flow_type ; union ethtool_flow_union h_u ; struct ethtool_flow_ext h_ext ; union ethtool_flow_union m_u ; struct ethtool_flow_ext m_ext ; __u64 ring_cookie ; __u32 location ; }; struct ethtool_rxnfc { __u32 cmd ; __u32 flow_type ; __u64 data ; struct ethtool_rx_flow_spec fs ; __u32 rule_cnt ; __u32 rule_locs[0U] ; }; struct ethtool_flash { __u32 cmd ; __u32 region ; char data[128U] ; }; struct ethtool_dump { __u32 cmd ; __u32 version ; __u32 flag ; __u32 len ; __u8 data[0U] ; }; struct ethtool_ts_info { __u32 cmd ; __u32 so_timestamping ; __s32 phc_index ; __u32 tx_types ; __u32 tx_reserved[3U] ; __u32 rx_filters ; __u32 rx_reserved[3U] ; }; enum ethtool_phys_id_state { ETHTOOL_ID_INACTIVE = 0, ETHTOOL_ID_ACTIVE = 1, ETHTOOL_ID_ON = 2, ETHTOOL_ID_OFF = 3 } ; struct ethtool_ops { int (*get_settings)(struct net_device * , struct ethtool_cmd * ) ; int (*set_settings)(struct net_device * , struct ethtool_cmd * ) ; void (*get_drvinfo)(struct net_device * , struct ethtool_drvinfo * ) ; int (*get_regs_len)(struct net_device * ) ; void (*get_regs)(struct net_device * , struct ethtool_regs * , void * ) ; void (*get_wol)(struct net_device * , struct ethtool_wolinfo * ) ; int (*set_wol)(struct net_device * , struct ethtool_wolinfo * ) ; u32 (*get_msglevel)(struct net_device * ) ; void (*set_msglevel)(struct net_device * , u32 ) ; int (*nway_reset)(struct net_device * ) ; u32 (*get_link)(struct net_device * ) ; int (*get_eeprom_len)(struct net_device * ) ; int (*get_eeprom)(struct net_device * , struct ethtool_eeprom * , u8 * ) ; int (*set_eeprom)(struct net_device * , struct ethtool_eeprom * , u8 * ) ; int (*get_coalesce)(struct net_device * , struct ethtool_coalesce * ) ; int (*set_coalesce)(struct net_device * , struct ethtool_coalesce * ) ; void (*get_ringparam)(struct net_device * , struct ethtool_ringparam * ) ; int (*set_ringparam)(struct net_device * , struct ethtool_ringparam * ) ; void (*get_pauseparam)(struct net_device * , struct ethtool_pauseparam * ) ; int (*set_pauseparam)(struct net_device * , struct ethtool_pauseparam * ) ; void (*self_test)(struct net_device * , struct ethtool_test * , u64 * ) ; void (*get_strings)(struct net_device * , u32 , u8 * ) ; int (*set_phys_id)(struct net_device * , enum ethtool_phys_id_state ) ; void (*get_ethtool_stats)(struct net_device * , struct ethtool_stats * , u64 * ) ; int (*begin)(struct net_device * ) ; void (*complete)(struct net_device * ) ; u32 (*get_priv_flags)(struct net_device * ) ; int (*set_priv_flags)(struct net_device * , u32 ) ; int (*get_sset_count)(struct net_device * , int ) ; int (*get_rxnfc)(struct net_device * , struct ethtool_rxnfc * , u32 * ) ; int (*set_rxnfc)(struct net_device * , struct ethtool_rxnfc * ) ; int (*flash_device)(struct net_device * , struct ethtool_flash * ) ; int (*reset)(struct net_device * , u32 * ) ; u32 (*get_rxfh_key_size)(struct net_device * ) ; u32 (*get_rxfh_indir_size)(struct net_device * ) ; int (*get_rxfh)(struct net_device * , u32 * , u8 * , u8 * ) ; int (*set_rxfh)(struct net_device * , u32 const * , u8 const * , u8 const ) ; void (*get_channels)(struct net_device * , struct ethtool_channels * ) ; int (*set_channels)(struct net_device * , struct ethtool_channels * ) ; int (*get_dump_flag)(struct net_device * , struct ethtool_dump * ) ; int (*get_dump_data)(struct net_device * , struct ethtool_dump * , void * ) ; int (*set_dump)(struct net_device * , struct ethtool_dump * ) ; int (*get_ts_info)(struct net_device * , struct ethtool_ts_info * ) ; int (*get_module_info)(struct net_device * , struct ethtool_modinfo * ) ; int (*get_module_eeprom)(struct net_device * , struct ethtool_eeprom * , u8 * ) ; int (*get_eee)(struct net_device * , struct ethtool_eee * ) ; int (*set_eee)(struct net_device * , struct ethtool_eee * ) ; int (*get_tunable)(struct net_device * , struct ethtool_tunable const * , void * ) ; int (*set_tunable)(struct net_device * , struct ethtool_tunable const * , void const * ) ; }; struct prot_inuse; struct netns_core { struct ctl_table_header *sysctl_hdr ; int sysctl_somaxconn ; struct prot_inuse *inuse ; }; struct u64_stats_sync { }; struct ipstats_mib { u64 mibs[36U] ; struct u64_stats_sync syncp ; }; struct icmp_mib { unsigned long mibs[28U] ; }; struct icmpmsg_mib { atomic_long_t mibs[512U] ; }; struct icmpv6_mib { unsigned long mibs[6U] ; }; struct icmpv6msg_mib { atomic_long_t mibs[512U] ; }; struct tcp_mib { unsigned long mibs[16U] ; }; struct udp_mib { unsigned long mibs[9U] ; }; struct linux_mib { unsigned long mibs[115U] ; }; struct linux_xfrm_mib { unsigned long mibs[29U] ; }; struct netns_mib { struct tcp_mib *tcp_statistics ; struct ipstats_mib *ip_statistics ; struct linux_mib *net_statistics ; struct udp_mib *udp_statistics ; struct udp_mib *udplite_statistics ; struct icmp_mib *icmp_statistics ; struct icmpmsg_mib *icmpmsg_statistics ; struct proc_dir_entry *proc_net_devsnmp6 ; struct udp_mib *udp_stats_in6 ; struct udp_mib *udplite_stats_in6 ; struct ipstats_mib *ipv6_statistics ; struct icmpv6_mib *icmpv6_statistics ; struct icmpv6msg_mib *icmpv6msg_statistics ; struct linux_xfrm_mib *xfrm_statistics ; }; struct netns_unix { int sysctl_max_dgram_qlen ; struct ctl_table_header *ctl ; }; struct netns_packet { struct mutex sklist_lock ; struct hlist_head sklist ; }; struct netns_frags { struct percpu_counter mem ; int timeout ; int high_thresh ; int low_thresh ; }; struct ipv4_devconf; struct fib_rules_ops; struct fib_table; struct local_ports { seqlock_t lock ; int range[2U] ; bool warned ; }; struct ping_group_range { seqlock_t lock ; kgid_t range[2U] ; }; struct inet_peer_base; struct xt_table; struct netns_ipv4 { struct ctl_table_header *forw_hdr ; struct ctl_table_header *frags_hdr ; struct ctl_table_header *ipv4_hdr ; struct ctl_table_header *route_hdr ; struct ctl_table_header *xfrm4_hdr ; struct ipv4_devconf *devconf_all ; struct ipv4_devconf *devconf_dflt ; struct fib_rules_ops *rules_ops ; bool fib_has_custom_rules ; struct fib_table *fib_local ; struct fib_table *fib_main ; struct fib_table *fib_default ; int fib_num_tclassid_users ; struct hlist_head *fib_table_hash ; bool fib_offload_disabled ; struct sock *fibnl ; struct sock **icmp_sk ; struct sock *mc_autojoin_sk ; struct inet_peer_base *peers ; struct sock **tcp_sk ; struct netns_frags frags ; struct xt_table *iptable_filter ; struct xt_table *iptable_mangle ; struct xt_table *iptable_raw ; struct xt_table *arptable_filter ; struct xt_table *iptable_security ; struct xt_table *nat_table ; int sysctl_icmp_echo_ignore_all ; int sysctl_icmp_echo_ignore_broadcasts ; int sysctl_icmp_ignore_bogus_error_responses ; int sysctl_icmp_ratelimit ; int sysctl_icmp_ratemask ; int sysctl_icmp_errors_use_inbound_ifaddr ; struct local_ports ip_local_ports ; int sysctl_tcp_ecn ; int sysctl_tcp_ecn_fallback ; int sysctl_ip_no_pmtu_disc ; int sysctl_ip_fwd_use_pmtu ; int sysctl_ip_nonlocal_bind ; int sysctl_fwmark_reflect ; int sysctl_tcp_fwmark_accept ; int sysctl_tcp_mtu_probing ; int sysctl_tcp_base_mss ; int sysctl_tcp_probe_threshold ; u32 sysctl_tcp_probe_interval ; struct ping_group_range ping_group_range ; atomic_t dev_addr_genid ; unsigned long *sysctl_local_reserved_ports ; struct list_head mr_tables ; struct fib_rules_ops *mr_rules_ops ; atomic_t rt_genid ; }; struct neighbour; struct dst_ops { unsigned short family ; unsigned int gc_thresh ; int (*gc)(struct dst_ops * ) ; struct dst_entry *(*check)(struct dst_entry * , __u32 ) ; unsigned int (*default_advmss)(struct dst_entry const * ) ; unsigned int (*mtu)(struct dst_entry const * ) ; u32 *(*cow_metrics)(struct dst_entry * , unsigned long ) ; void (*destroy)(struct dst_entry * ) ; void (*ifdown)(struct dst_entry * , struct net_device * , int ) ; struct dst_entry *(*negative_advice)(struct dst_entry * ) ; void (*link_failure)(struct sk_buff * ) ; void (*update_pmtu)(struct dst_entry * , struct sock * , struct sk_buff * , u32 ) ; void (*redirect)(struct dst_entry * , struct sock * , struct sk_buff * ) ; int (*local_out)(struct sk_buff * ) ; struct neighbour *(*neigh_lookup)(struct dst_entry const * , struct sk_buff * , void const * ) ; struct kmem_cache *kmem_cachep ; struct percpu_counter pcpuc_entries ; }; struct netns_sysctl_ipv6 { struct ctl_table_header *hdr ; struct ctl_table_header *route_hdr ; struct ctl_table_header *icmp_hdr ; struct ctl_table_header *frags_hdr ; struct ctl_table_header *xfrm6_hdr ; int bindv6only ; int flush_delay ; int ip6_rt_max_size ; int ip6_rt_gc_min_interval ; int ip6_rt_gc_timeout ; int ip6_rt_gc_interval ; int ip6_rt_gc_elasticity ; int ip6_rt_mtu_expires ; int ip6_rt_min_advmss ; int flowlabel_consistency ; int auto_flowlabels ; int icmpv6_time ; int anycast_src_echo_reply ; int fwmark_reflect ; int idgen_retries ; int idgen_delay ; int flowlabel_state_ranges ; }; struct ipv6_devconf; struct rt6_info; struct rt6_statistics; struct fib6_table; struct netns_ipv6 { struct netns_sysctl_ipv6 sysctl ; struct ipv6_devconf *devconf_all ; struct ipv6_devconf *devconf_dflt ; struct inet_peer_base *peers ; struct netns_frags frags ; struct xt_table *ip6table_filter ; struct xt_table *ip6table_mangle ; struct xt_table *ip6table_raw ; struct xt_table *ip6table_security ; struct xt_table *ip6table_nat ; struct rt6_info *ip6_null_entry ; struct rt6_statistics *rt6_stats ; struct timer_list ip6_fib_timer ; struct hlist_head *fib_table_hash ; struct fib6_table *fib6_main_tbl ; struct dst_ops ip6_dst_ops ; unsigned int ip6_rt_gc_expire ; unsigned long ip6_rt_last_gc ; struct rt6_info *ip6_prohibit_entry ; struct rt6_info *ip6_blk_hole_entry ; struct fib6_table *fib6_local_tbl ; struct fib_rules_ops *fib6_rules_ops ; struct sock **icmp_sk ; struct sock *ndisc_sk ; struct sock *tcp_sk ; struct sock *igmp_sk ; struct sock *mc_autojoin_sk ; struct list_head mr6_tables ; struct fib_rules_ops *mr6_rules_ops ; atomic_t dev_addr_genid ; atomic_t fib6_sernum ; }; struct netns_nf_frag { struct netns_sysctl_ipv6 sysctl ; struct netns_frags frags ; }; struct netns_sysctl_lowpan { struct ctl_table_header *frags_hdr ; }; struct netns_ieee802154_lowpan { struct netns_sysctl_lowpan sysctl ; struct netns_frags frags ; }; struct sctp_mib; struct netns_sctp { struct sctp_mib *sctp_statistics ; struct proc_dir_entry *proc_net_sctp ; struct ctl_table_header *sysctl_header ; struct sock *ctl_sock ; struct list_head local_addr_list ; struct list_head addr_waitq ; struct timer_list addr_wq_timer ; struct list_head auto_asconf_splist ; spinlock_t addr_wq_lock ; spinlock_t local_addr_lock ; unsigned int rto_initial ; unsigned int rto_min ; unsigned int rto_max ; int rto_alpha ; int rto_beta ; int max_burst ; int cookie_preserve_enable ; char *sctp_hmac_alg ; unsigned int valid_cookie_life ; unsigned int sack_timeout ; unsigned int hb_interval ; int max_retrans_association ; int max_retrans_path ; int max_retrans_init ; int pf_retrans ; int sndbuf_policy ; int rcvbuf_policy ; int default_auto_asconf ; int addip_enable ; int addip_noauth ; int prsctp_enable ; int auth_enable ; int scope_policy ; int rwnd_upd_shift ; unsigned long max_autoclose ; }; struct netns_dccp { struct sock *v4_ctl_sk ; struct sock *v6_ctl_sk ; }; struct nf_logger; struct netns_nf { struct proc_dir_entry *proc_netfilter ; struct nf_logger const *nf_loggers[13U] ; struct ctl_table_header *nf_log_dir_header ; }; struct ebt_table; struct netns_xt { struct list_head tables[13U] ; bool notrack_deprecated_warning ; bool clusterip_deprecated_warning ; struct ebt_table *broute_table ; struct ebt_table *frame_filter ; struct ebt_table *frame_nat ; }; struct nf_proto_net { struct ctl_table_header *ctl_table_header ; struct ctl_table *ctl_table ; struct ctl_table_header *ctl_compat_header ; struct ctl_table *ctl_compat_table ; unsigned int users ; }; struct nf_generic_net { struct nf_proto_net pn ; unsigned int timeout ; }; struct nf_tcp_net { struct nf_proto_net pn ; unsigned int timeouts[14U] ; unsigned int tcp_loose ; unsigned int tcp_be_liberal ; unsigned int tcp_max_retrans ; }; struct nf_udp_net { struct nf_proto_net pn ; unsigned int timeouts[2U] ; }; struct nf_icmp_net { struct nf_proto_net pn ; unsigned int timeout ; }; struct nf_ip_net { struct nf_generic_net generic ; struct nf_tcp_net tcp ; struct nf_udp_net udp ; struct nf_icmp_net icmp ; struct nf_icmp_net icmpv6 ; struct ctl_table_header *ctl_table_header ; struct ctl_table *ctl_table ; }; struct ct_pcpu { spinlock_t lock ; struct hlist_nulls_head unconfirmed ; struct hlist_nulls_head dying ; struct hlist_nulls_head tmpl ; }; struct ip_conntrack_stat; struct nf_ct_event_notifier; struct nf_exp_event_notifier; struct netns_ct { atomic_t count ; unsigned int expect_count ; struct delayed_work ecache_dwork ; bool ecache_dwork_pending ; struct ctl_table_header *sysctl_header ; struct ctl_table_header *acct_sysctl_header ; struct ctl_table_header *tstamp_sysctl_header ; struct ctl_table_header *event_sysctl_header ; struct ctl_table_header *helper_sysctl_header ; char *slabname ; unsigned int sysctl_log_invalid ; int sysctl_events ; int sysctl_acct ; int sysctl_auto_assign_helper ; bool auto_assign_helper_warned ; int sysctl_tstamp ; int sysctl_checksum ; unsigned int htable_size ; seqcount_t generation ; struct kmem_cache *nf_conntrack_cachep ; struct hlist_nulls_head *hash ; struct hlist_head *expect_hash ; struct ct_pcpu *pcpu_lists ; struct ip_conntrack_stat *stat ; struct nf_ct_event_notifier *nf_conntrack_event_cb ; struct nf_exp_event_notifier *nf_expect_event_cb ; struct nf_ip_net nf_ct_proto ; unsigned int labels_used ; u8 label_words ; struct hlist_head *nat_bysource ; unsigned int nat_htable_size ; }; struct nft_af_info; struct netns_nftables { struct list_head af_info ; struct list_head commit_list ; struct nft_af_info *ipv4 ; struct nft_af_info *ipv6 ; struct nft_af_info *inet ; struct nft_af_info *arp ; struct nft_af_info *bridge ; struct nft_af_info *netdev ; unsigned int base_seq ; u8 gencursor ; }; struct flow_cache_percpu { struct hlist_head *hash_table ; int hash_count ; u32 hash_rnd ; int hash_rnd_recalc ; struct tasklet_struct flush_tasklet ; }; struct flow_cache { u32 hash_shift ; struct flow_cache_percpu *percpu ; struct notifier_block hotcpu_notifier ; int low_watermark ; int high_watermark ; struct timer_list rnd_timer ; }; struct xfrm_policy_hash { struct hlist_head *table ; unsigned int hmask ; u8 dbits4 ; u8 sbits4 ; u8 dbits6 ; u8 sbits6 ; }; struct xfrm_policy_hthresh { struct work_struct work ; seqlock_t lock ; u8 lbits4 ; u8 rbits4 ; u8 lbits6 ; u8 rbits6 ; }; struct netns_xfrm { struct list_head state_all ; struct hlist_head *state_bydst ; struct hlist_head *state_bysrc ; struct hlist_head *state_byspi ; unsigned int state_hmask ; unsigned int state_num ; struct work_struct state_hash_work ; struct hlist_head state_gc_list ; struct work_struct state_gc_work ; struct list_head policy_all ; struct hlist_head *policy_byidx ; unsigned int policy_idx_hmask ; struct hlist_head policy_inexact[3U] ; struct xfrm_policy_hash policy_bydst[3U] ; unsigned int policy_count[6U] ; struct work_struct policy_hash_work ; struct xfrm_policy_hthresh policy_hthresh ; struct sock *nlsk ; struct sock *nlsk_stash ; u32 sysctl_aevent_etime ; u32 sysctl_aevent_rseqth ; int sysctl_larval_drop ; u32 sysctl_acq_expires ; struct ctl_table_header *sysctl_hdr ; struct dst_ops xfrm4_dst_ops ; struct dst_ops xfrm6_dst_ops ; spinlock_t xfrm_state_lock ; rwlock_t xfrm_policy_lock ; struct mutex xfrm_cfg_mutex ; struct flow_cache flow_cache_global ; atomic_t flow_cache_genid ; struct list_head flow_cache_gc_list ; spinlock_t flow_cache_gc_lock ; struct work_struct flow_cache_gc_work ; struct work_struct flow_cache_flush_work ; struct mutex flow_flush_sem ; }; struct mpls_route; struct netns_mpls { size_t platform_labels ; struct mpls_route **platform_label ; struct ctl_table_header *ctl ; }; struct proc_ns_operations; struct ns_common { atomic_long_t stashed ; struct proc_ns_operations const *ops ; unsigned int inum ; }; struct net_generic; struct netns_ipvs; struct net { atomic_t passive ; atomic_t count ; spinlock_t rules_mod_lock ; atomic64_t cookie_gen ; struct list_head list ; struct list_head cleanup_list ; struct list_head exit_list ; struct user_namespace *user_ns ; spinlock_t nsid_lock ; struct idr netns_ids ; struct ns_common ns ; struct proc_dir_entry *proc_net ; struct proc_dir_entry *proc_net_stat ; struct ctl_table_set sysctls ; struct sock *rtnl ; struct sock *genl_sock ; struct list_head dev_base_head ; struct hlist_head *dev_name_head ; struct hlist_head *dev_index_head ; unsigned int dev_base_seq ; int ifindex ; unsigned int dev_unreg_count ; struct list_head rules_ops ; struct net_device *loopback_dev ; struct netns_core core ; struct netns_mib mib ; struct netns_packet packet ; struct netns_unix unx ; struct netns_ipv4 ipv4 ; struct netns_ipv6 ipv6 ; struct netns_ieee802154_lowpan ieee802154_lowpan ; struct netns_sctp sctp ; struct netns_dccp dccp ; struct netns_nf nf ; struct netns_xt xt ; struct netns_ct ct ; struct netns_nftables nft ; struct netns_nf_frag nf_frag ; struct sock *nfnl ; struct sock *nfnl_stash ; struct sk_buff_head wext_nlevents ; struct net_generic *gen ; struct netns_xfrm xfrm ; struct netns_ipvs *ipvs ; struct netns_mpls mpls ; struct sock *diag_nlsk ; atomic_t fnhe_genid ; }; struct __anonstruct_possible_net_t_312 { struct net *net ; }; typedef struct __anonstruct_possible_net_t_312 possible_net_t; typedef unsigned long kernel_ulong_t; struct acpi_device_id { __u8 id[9U] ; kernel_ulong_t driver_data ; }; struct of_device_id { char name[32U] ; char type[32U] ; char compatible[128U] ; void const *data ; }; enum fwnode_type { FWNODE_INVALID = 0, FWNODE_OF = 1, FWNODE_ACPI = 2, FWNODE_PDATA = 3 } ; struct fwnode_handle { enum fwnode_type type ; struct fwnode_handle *secondary ; }; typedef u32 phandle; struct property { char *name ; int length ; void *value ; struct property *next ; unsigned long _flags ; unsigned int unique_id ; struct bin_attribute attr ; }; struct device_node { char const *name ; char const *type ; phandle phandle ; char const *full_name ; struct fwnode_handle fwnode ; struct property *properties ; struct property *deadprops ; struct device_node *parent ; struct device_node *child ; struct device_node *sibling ; struct kobject kobj ; unsigned long _flags ; void *data ; }; enum ldv_28594 { PHY_INTERFACE_MODE_NA = 0, PHY_INTERFACE_MODE_MII = 1, PHY_INTERFACE_MODE_GMII = 2, PHY_INTERFACE_MODE_SGMII = 3, PHY_INTERFACE_MODE_TBI = 4, PHY_INTERFACE_MODE_REVMII = 5, PHY_INTERFACE_MODE_RMII = 6, PHY_INTERFACE_MODE_RGMII = 7, PHY_INTERFACE_MODE_RGMII_ID = 8, PHY_INTERFACE_MODE_RGMII_RXID = 9, PHY_INTERFACE_MODE_RGMII_TXID = 10, PHY_INTERFACE_MODE_RTBI = 11, PHY_INTERFACE_MODE_SMII = 12, PHY_INTERFACE_MODE_XGMII = 13, PHY_INTERFACE_MODE_MOCA = 14, PHY_INTERFACE_MODE_QSGMII = 15, PHY_INTERFACE_MODE_MAX = 16 } ; typedef enum ldv_28594 phy_interface_t; enum ldv_28648 { MDIOBUS_ALLOCATED = 1, MDIOBUS_REGISTERED = 2, MDIOBUS_UNREGISTERED = 3, MDIOBUS_RELEASED = 4 } ; struct phy_device; struct mii_bus { char const *name ; char id[17U] ; void *priv ; int (*read)(struct mii_bus * , int , int ) ; int (*write)(struct mii_bus * , int , int , u16 ) ; int (*reset)(struct mii_bus * ) ; struct mutex mdio_lock ; struct device *parent ; enum ldv_28648 state ; struct device dev ; struct phy_device *phy_map[32U] ; u32 phy_mask ; u32 phy_ignore_ta_mask ; int *irq ; }; enum phy_state { PHY_DOWN = 0, PHY_STARTING = 1, PHY_READY = 2, PHY_PENDING = 3, PHY_UP = 4, PHY_AN = 5, PHY_RUNNING = 6, PHY_NOLINK = 7, PHY_FORCING = 8, PHY_CHANGELINK = 9, PHY_HALTED = 10, PHY_RESUMING = 11 } ; struct phy_c45_device_ids { u32 devices_in_package ; u32 device_ids[8U] ; }; struct phy_driver; struct phy_device { struct phy_driver *drv ; struct mii_bus *bus ; struct device dev ; u32 phy_id ; struct phy_c45_device_ids c45_ids ; bool is_c45 ; bool is_internal ; bool has_fixups ; bool suspended ; enum phy_state state ; u32 dev_flags ; phy_interface_t interface ; int addr ; int speed ; int duplex ; int pause ; int asym_pause ; int link ; u32 interrupts ; u32 supported ; u32 advertising ; u32 lp_advertising ; int autoneg ; int link_timeout ; int irq ; void *priv ; struct work_struct phy_queue ; struct delayed_work state_queue ; atomic_t irq_disable ; struct mutex lock ; struct net_device *attached_dev ; void (*adjust_link)(struct net_device * ) ; }; struct phy_driver { u32 phy_id ; char *name ; unsigned int phy_id_mask ; u32 features ; u32 flags ; void const *driver_data ; int (*soft_reset)(struct phy_device * ) ; int (*config_init)(struct phy_device * ) ; int (*probe)(struct phy_device * ) ; int (*suspend)(struct phy_device * ) ; int (*resume)(struct phy_device * ) ; int (*config_aneg)(struct phy_device * ) ; int (*aneg_done)(struct phy_device * ) ; int (*read_status)(struct phy_device * ) ; int (*ack_interrupt)(struct phy_device * ) ; int (*config_intr)(struct phy_device * ) ; int (*did_interrupt)(struct phy_device * ) ; void (*remove)(struct phy_device * ) ; int (*match_phy_device)(struct phy_device * ) ; int (*ts_info)(struct phy_device * , struct ethtool_ts_info * ) ; int (*hwtstamp)(struct phy_device * , struct ifreq * ) ; bool (*rxtstamp)(struct phy_device * , struct sk_buff * , int ) ; void (*txtstamp)(struct phy_device * , struct sk_buff * , int ) ; int (*set_wol)(struct phy_device * , struct ethtool_wolinfo * ) ; void (*get_wol)(struct phy_device * , struct ethtool_wolinfo * ) ; void (*link_change_notify)(struct phy_device * ) ; int (*read_mmd_indirect)(struct phy_device * , int , int , int ) ; void (*write_mmd_indirect)(struct phy_device * , int , int , int , u32 ) ; int (*module_info)(struct phy_device * , struct ethtool_modinfo * ) ; int (*module_eeprom)(struct phy_device * , struct ethtool_eeprom * , u8 * ) ; struct device_driver driver ; }; struct fixed_phy_status { int link ; int speed ; int duplex ; int pause ; int asym_pause ; }; enum dsa_tag_protocol { DSA_TAG_PROTO_NONE = 0, DSA_TAG_PROTO_DSA = 1, DSA_TAG_PROTO_TRAILER = 2, DSA_TAG_PROTO_EDSA = 3, DSA_TAG_PROTO_BRCM = 4 } ; struct dsa_chip_data { struct device *host_dev ; int sw_addr ; int eeprom_len ; struct device_node *of_node ; char *port_names[12U] ; struct device_node *port_dn[12U] ; s8 *rtable ; }; struct dsa_platform_data { struct device *netdev ; struct net_device *of_netdev ; int nr_chips ; struct dsa_chip_data *chip ; }; struct packet_type; struct dsa_switch; struct dsa_switch_tree { struct dsa_platform_data *pd ; struct net_device *master_netdev ; int (*rcv)(struct sk_buff * , struct net_device * , struct packet_type * , struct net_device * ) ; enum dsa_tag_protocol tag_protocol ; s8 cpu_switch ; s8 cpu_port ; int link_poll_needed ; struct work_struct link_poll_work ; struct timer_list link_poll_timer ; struct dsa_switch *ds[4U] ; }; struct dsa_switch_driver; struct dsa_switch { struct dsa_switch_tree *dst ; int index ; enum dsa_tag_protocol tag_protocol ; struct dsa_chip_data *pd ; struct dsa_switch_driver *drv ; struct device *master_dev ; char hwmon_name[24U] ; struct device *hwmon_dev ; u32 dsa_port_mask ; u32 phys_port_mask ; u32 phys_mii_mask ; struct mii_bus *slave_mii_bus ; struct net_device *ports[12U] ; }; struct dsa_switch_driver { struct list_head list ; enum dsa_tag_protocol tag_protocol ; int priv_size ; char *(*probe)(struct device * , int ) ; int (*setup)(struct dsa_switch * ) ; int (*set_addr)(struct dsa_switch * , u8 * ) ; u32 (*get_phy_flags)(struct dsa_switch * , int ) ; int (*phy_read)(struct dsa_switch * , int , int ) ; int (*phy_write)(struct dsa_switch * , int , int , u16 ) ; void (*poll_link)(struct dsa_switch * ) ; void (*adjust_link)(struct dsa_switch * , int , struct phy_device * ) ; void (*fixed_link_update)(struct dsa_switch * , int , struct fixed_phy_status * ) ; void (*get_strings)(struct dsa_switch * , int , uint8_t * ) ; void (*get_ethtool_stats)(struct dsa_switch * , int , uint64_t * ) ; int (*get_sset_count)(struct dsa_switch * ) ; void (*get_wol)(struct dsa_switch * , int , struct ethtool_wolinfo * ) ; int (*set_wol)(struct dsa_switch * , int , struct ethtool_wolinfo * ) ; int (*suspend)(struct dsa_switch * ) ; int (*resume)(struct dsa_switch * ) ; int (*port_enable)(struct dsa_switch * , int , struct phy_device * ) ; void (*port_disable)(struct dsa_switch * , int , struct phy_device * ) ; int (*set_eee)(struct dsa_switch * , int , struct phy_device * , struct ethtool_eee * ) ; int (*get_eee)(struct dsa_switch * , int , struct ethtool_eee * ) ; int (*get_temp)(struct dsa_switch * , int * ) ; int (*get_temp_limit)(struct dsa_switch * , int * ) ; int (*set_temp_limit)(struct dsa_switch * , int ) ; int (*get_temp_alarm)(struct dsa_switch * , bool * ) ; int (*get_eeprom_len)(struct dsa_switch * ) ; int (*get_eeprom)(struct dsa_switch * , struct ethtool_eeprom * , u8 * ) ; int (*set_eeprom)(struct dsa_switch * , struct ethtool_eeprom * , u8 * ) ; int (*get_regs_len)(struct dsa_switch * , int ) ; void (*get_regs)(struct dsa_switch * , int , struct ethtool_regs * , void * ) ; int (*port_join_bridge)(struct dsa_switch * , int , u32 ) ; int (*port_leave_bridge)(struct dsa_switch * , int , u32 ) ; int (*port_stp_update)(struct dsa_switch * , int , u8 ) ; int (*fdb_add)(struct dsa_switch * , int , unsigned char const * , u16 ) ; int (*fdb_del)(struct dsa_switch * , int , unsigned char const * , u16 ) ; int (*fdb_getnext)(struct dsa_switch * , int , unsigned char * , bool * ) ; }; struct ieee_ets { __u8 willing ; __u8 ets_cap ; __u8 cbs ; __u8 tc_tx_bw[8U] ; __u8 tc_rx_bw[8U] ; __u8 tc_tsa[8U] ; __u8 prio_tc[8U] ; __u8 tc_reco_bw[8U] ; __u8 tc_reco_tsa[8U] ; __u8 reco_prio_tc[8U] ; }; struct ieee_maxrate { __u64 tc_maxrate[8U] ; }; struct ieee_qcn { __u8 rpg_enable[8U] ; __u32 rppp_max_rps[8U] ; __u32 rpg_time_reset[8U] ; __u32 rpg_byte_reset[8U] ; __u32 rpg_threshold[8U] ; __u32 rpg_max_rate[8U] ; __u32 rpg_ai_rate[8U] ; __u32 rpg_hai_rate[8U] ; __u32 rpg_gd[8U] ; __u32 rpg_min_dec_fac[8U] ; __u32 rpg_min_rate[8U] ; __u32 cndd_state_machine[8U] ; }; struct ieee_qcn_stats { __u64 rppp_rp_centiseconds[8U] ; __u32 rppp_created_rps[8U] ; }; struct ieee_pfc { __u8 pfc_cap ; __u8 pfc_en ; __u8 mbc ; __u16 delay ; __u64 requests[8U] ; __u64 indications[8U] ; }; struct cee_pg { __u8 willing ; __u8 error ; __u8 pg_en ; __u8 tcs_supported ; __u8 pg_bw[8U] ; __u8 prio_pg[8U] ; }; struct cee_pfc { __u8 willing ; __u8 error ; __u8 pfc_en ; __u8 tcs_supported ; }; struct dcb_app { __u8 selector ; __u8 priority ; __u16 protocol ; }; struct dcb_peer_app_info { __u8 willing ; __u8 error ; }; struct dcbnl_rtnl_ops { int (*ieee_getets)(struct net_device * , struct ieee_ets * ) ; int (*ieee_setets)(struct net_device * , struct ieee_ets * ) ; int (*ieee_getmaxrate)(struct net_device * , struct ieee_maxrate * ) ; int (*ieee_setmaxrate)(struct net_device * , struct ieee_maxrate * ) ; int (*ieee_getqcn)(struct net_device * , struct ieee_qcn * ) ; int (*ieee_setqcn)(struct net_device * , struct ieee_qcn * ) ; int (*ieee_getqcnstats)(struct net_device * , struct ieee_qcn_stats * ) ; int (*ieee_getpfc)(struct net_device * , struct ieee_pfc * ) ; int (*ieee_setpfc)(struct net_device * , struct ieee_pfc * ) ; int (*ieee_getapp)(struct net_device * , struct dcb_app * ) ; int (*ieee_setapp)(struct net_device * , struct dcb_app * ) ; int (*ieee_delapp)(struct net_device * , struct dcb_app * ) ; int (*ieee_peer_getets)(struct net_device * , struct ieee_ets * ) ; int (*ieee_peer_getpfc)(struct net_device * , struct ieee_pfc * ) ; u8 (*getstate)(struct net_device * ) ; u8 (*setstate)(struct net_device * , u8 ) ; void (*getpermhwaddr)(struct net_device * , u8 * ) ; void (*setpgtccfgtx)(struct net_device * , int , u8 , u8 , u8 , u8 ) ; void (*setpgbwgcfgtx)(struct net_device * , int , u8 ) ; void (*setpgtccfgrx)(struct net_device * , int , u8 , u8 , u8 , u8 ) ; void (*setpgbwgcfgrx)(struct net_device * , int , u8 ) ; void (*getpgtccfgtx)(struct net_device * , int , u8 * , u8 * , u8 * , u8 * ) ; void (*getpgbwgcfgtx)(struct net_device * , int , u8 * ) ; void (*getpgtccfgrx)(struct net_device * , int , u8 * , u8 * , u8 * , u8 * ) ; void (*getpgbwgcfgrx)(struct net_device * , int , u8 * ) ; void (*setpfccfg)(struct net_device * , int , u8 ) ; void (*getpfccfg)(struct net_device * , int , u8 * ) ; u8 (*setall)(struct net_device * ) ; u8 (*getcap)(struct net_device * , int , u8 * ) ; int (*getnumtcs)(struct net_device * , int , u8 * ) ; int (*setnumtcs)(struct net_device * , int , u8 ) ; u8 (*getpfcstate)(struct net_device * ) ; void (*setpfcstate)(struct net_device * , u8 ) ; void (*getbcncfg)(struct net_device * , int , u32 * ) ; void (*setbcncfg)(struct net_device * , int , u32 ) ; void (*getbcnrp)(struct net_device * , int , u8 * ) ; void (*setbcnrp)(struct net_device * , int , u8 ) ; int (*setapp)(struct net_device * , u8 , u16 , u8 ) ; int (*getapp)(struct net_device * , u8 , u16 ) ; u8 (*getfeatcfg)(struct net_device * , int , u8 * ) ; u8 (*setfeatcfg)(struct net_device * , int , u8 ) ; u8 (*getdcbx)(struct net_device * ) ; u8 (*setdcbx)(struct net_device * , u8 ) ; int (*peer_getappinfo)(struct net_device * , struct dcb_peer_app_info * , u16 * ) ; int (*peer_getapptable)(struct net_device * , struct dcb_app * ) ; int (*cee_peer_getpg)(struct net_device * , struct cee_pg * ) ; int (*cee_peer_getpfc)(struct net_device * , struct cee_pfc * ) ; }; struct netprio_map { struct callback_head rcu ; u32 priomap_len ; u32 priomap[] ; }; struct xfrm_policy; struct xfrm_state; struct mnt_namespace; struct ipc_namespace; struct nsproxy { atomic_t count ; struct uts_namespace *uts_ns ; struct ipc_namespace *ipc_ns ; struct mnt_namespace *mnt_ns ; struct pid_namespace *pid_ns_for_children ; struct net *net_ns ; }; struct nlmsghdr { __u32 nlmsg_len ; __u16 nlmsg_type ; __u16 nlmsg_flags ; __u32 nlmsg_seq ; __u32 nlmsg_pid ; }; struct nlattr { __u16 nla_len ; __u16 nla_type ; }; struct netlink_callback { struct sk_buff *skb ; struct nlmsghdr const *nlh ; int (*dump)(struct sk_buff * , struct netlink_callback * ) ; int (*done)(struct netlink_callback * ) ; void *data ; struct module *module ; u16 family ; u16 min_dump_alloc ; unsigned int prev_seq ; unsigned int seq ; long args[6U] ; }; struct ndmsg { __u8 ndm_family ; __u8 ndm_pad1 ; __u16 ndm_pad2 ; __s32 ndm_ifindex ; __u16 ndm_state ; __u8 ndm_flags ; __u8 ndm_type ; }; struct rtnl_link_stats64 { __u64 rx_packets ; __u64 tx_packets ; __u64 rx_bytes ; __u64 tx_bytes ; __u64 rx_errors ; __u64 tx_errors ; __u64 rx_dropped ; __u64 tx_dropped ; __u64 multicast ; __u64 collisions ; __u64 rx_length_errors ; __u64 rx_over_errors ; __u64 rx_crc_errors ; __u64 rx_frame_errors ; __u64 rx_fifo_errors ; __u64 rx_missed_errors ; __u64 tx_aborted_errors ; __u64 tx_carrier_errors ; __u64 tx_fifo_errors ; __u64 tx_heartbeat_errors ; __u64 tx_window_errors ; __u64 rx_compressed ; __u64 tx_compressed ; }; struct ifla_vf_stats { __u64 rx_packets ; __u64 tx_packets ; __u64 rx_bytes ; __u64 tx_bytes ; __u64 broadcast ; __u64 multicast ; }; struct ifla_vf_info { __u32 vf ; __u8 mac[32U] ; __u32 vlan ; __u32 qos ; __u32 spoofchk ; __u32 linkstate ; __u32 min_tx_rate ; __u32 max_tx_rate ; __u32 rss_query_en ; }; struct netpoll_info; struct wireless_dev; struct wpan_dev; struct mpls_dev; enum netdev_tx { __NETDEV_TX_MIN = (-0x7FFFFFFF-1), NETDEV_TX_OK = 0, NETDEV_TX_BUSY = 16, NETDEV_TX_LOCKED = 32 } ; typedef enum netdev_tx netdev_tx_t; struct net_device_stats { unsigned long rx_packets ; unsigned long tx_packets ; unsigned long rx_bytes ; unsigned long tx_bytes ; unsigned long rx_errors ; unsigned long tx_errors ; unsigned long rx_dropped ; unsigned long tx_dropped ; unsigned long multicast ; unsigned long collisions ; unsigned long rx_length_errors ; unsigned long rx_over_errors ; unsigned long rx_crc_errors ; unsigned long rx_frame_errors ; unsigned long rx_fifo_errors ; unsigned long rx_missed_errors ; unsigned long tx_aborted_errors ; unsigned long tx_carrier_errors ; unsigned long tx_fifo_errors ; unsigned long tx_heartbeat_errors ; unsigned long tx_window_errors ; unsigned long rx_compressed ; unsigned long tx_compressed ; }; struct neigh_parms; struct netdev_hw_addr_list { struct list_head list ; int count ; }; struct hh_cache { u16 hh_len ; u16 __pad ; seqlock_t hh_lock ; unsigned long hh_data[16U] ; }; struct header_ops { int (*create)(struct sk_buff * , struct net_device * , unsigned short , void const * , void const * , unsigned int ) ; int (*parse)(struct sk_buff const * , unsigned char * ) ; int (*cache)(struct neighbour const * , struct hh_cache * , __be16 ) ; void (*cache_update)(struct hh_cache * , struct net_device const * , unsigned char const * ) ; }; struct napi_struct { struct list_head poll_list ; unsigned long state ; int weight ; unsigned int gro_count ; int (*poll)(struct napi_struct * , int ) ; spinlock_t poll_lock ; int poll_owner ; struct net_device *dev ; struct sk_buff *gro_list ; struct sk_buff *skb ; struct hrtimer timer ; struct list_head dev_list ; struct hlist_node napi_hash_node ; unsigned int napi_id ; }; enum rx_handler_result { RX_HANDLER_CONSUMED = 0, RX_HANDLER_ANOTHER = 1, RX_HANDLER_EXACT = 2, RX_HANDLER_PASS = 3 } ; typedef enum rx_handler_result rx_handler_result_t; typedef rx_handler_result_t rx_handler_func_t(struct sk_buff ** ); struct Qdisc; struct netdev_queue { struct net_device *dev ; struct Qdisc *qdisc ; struct Qdisc *qdisc_sleeping ; struct kobject kobj ; int numa_node ; spinlock_t _xmit_lock ; int xmit_lock_owner ; unsigned long trans_start ; unsigned long trans_timeout ; unsigned long state ; struct dql dql ; unsigned long tx_maxrate ; }; struct rps_map { unsigned int len ; struct callback_head rcu ; u16 cpus[0U] ; }; struct rps_dev_flow { u16 cpu ; u16 filter ; unsigned int last_qtail ; }; struct rps_dev_flow_table { unsigned int mask ; struct callback_head rcu ; struct rps_dev_flow flows[0U] ; }; struct netdev_rx_queue { struct rps_map *rps_map ; struct rps_dev_flow_table *rps_flow_table ; struct kobject kobj ; struct net_device *dev ; }; struct xps_map { unsigned int len ; unsigned int alloc_len ; struct callback_head rcu ; u16 queues[0U] ; }; struct xps_dev_maps { struct callback_head rcu ; struct xps_map *cpu_map[0U] ; }; struct netdev_tc_txq { u16 count ; u16 offset ; }; struct netdev_fcoe_hbainfo { char manufacturer[64U] ; char serial_number[64U] ; char hardware_version[64U] ; char driver_version[64U] ; char optionrom_version[64U] ; char firmware_version[64U] ; char model[256U] ; char model_description[256U] ; }; struct netdev_phys_item_id { unsigned char id[32U] ; unsigned char id_len ; }; struct net_device_ops { int (*ndo_init)(struct net_device * ) ; void (*ndo_uninit)(struct net_device * ) ; int (*ndo_open)(struct net_device * ) ; int (*ndo_stop)(struct net_device * ) ; netdev_tx_t (*ndo_start_xmit)(struct sk_buff * , struct net_device * ) ; u16 (*ndo_select_queue)(struct net_device * , struct sk_buff * , void * , u16 (*)(struct net_device * , struct sk_buff * ) ) ; void (*ndo_change_rx_flags)(struct net_device * , int ) ; void (*ndo_set_rx_mode)(struct net_device * ) ; int (*ndo_set_mac_address)(struct net_device * , void * ) ; int (*ndo_validate_addr)(struct net_device * ) ; int (*ndo_do_ioctl)(struct net_device * , struct ifreq * , int ) ; int (*ndo_set_config)(struct net_device * , struct ifmap * ) ; int (*ndo_change_mtu)(struct net_device * , int ) ; int (*ndo_neigh_setup)(struct net_device * , struct neigh_parms * ) ; void (*ndo_tx_timeout)(struct net_device * ) ; struct rtnl_link_stats64 *(*ndo_get_stats64)(struct net_device * , struct rtnl_link_stats64 * ) ; struct net_device_stats *(*ndo_get_stats)(struct net_device * ) ; int (*ndo_vlan_rx_add_vid)(struct net_device * , __be16 , u16 ) ; int (*ndo_vlan_rx_kill_vid)(struct net_device * , __be16 , u16 ) ; void (*ndo_poll_controller)(struct net_device * ) ; int (*ndo_netpoll_setup)(struct net_device * , struct netpoll_info * ) ; void (*ndo_netpoll_cleanup)(struct net_device * ) ; int (*ndo_busy_poll)(struct napi_struct * ) ; int (*ndo_set_vf_mac)(struct net_device * , int , u8 * ) ; int (*ndo_set_vf_vlan)(struct net_device * , int , u16 , u8 ) ; int (*ndo_set_vf_rate)(struct net_device * , int , int , int ) ; int (*ndo_set_vf_spoofchk)(struct net_device * , int , bool ) ; int (*ndo_get_vf_config)(struct net_device * , int , struct ifla_vf_info * ) ; int (*ndo_set_vf_link_state)(struct net_device * , int , int ) ; int (*ndo_get_vf_stats)(struct net_device * , int , struct ifla_vf_stats * ) ; int (*ndo_set_vf_port)(struct net_device * , int , struct nlattr ** ) ; int (*ndo_get_vf_port)(struct net_device * , int , struct sk_buff * ) ; int (*ndo_set_vf_rss_query_en)(struct net_device * , int , bool ) ; int (*ndo_setup_tc)(struct net_device * , u8 ) ; int (*ndo_fcoe_enable)(struct net_device * ) ; int (*ndo_fcoe_disable)(struct net_device * ) ; int (*ndo_fcoe_ddp_setup)(struct net_device * , u16 , struct scatterlist * , unsigned int ) ; int (*ndo_fcoe_ddp_done)(struct net_device * , u16 ) ; int (*ndo_fcoe_ddp_target)(struct net_device * , u16 , struct scatterlist * , unsigned int ) ; int (*ndo_fcoe_get_hbainfo)(struct net_device * , struct netdev_fcoe_hbainfo * ) ; int (*ndo_fcoe_get_wwn)(struct net_device * , u64 * , int ) ; int (*ndo_rx_flow_steer)(struct net_device * , struct sk_buff const * , u16 , u32 ) ; int (*ndo_add_slave)(struct net_device * , struct net_device * ) ; int (*ndo_del_slave)(struct net_device * , struct net_device * ) ; netdev_features_t (*ndo_fix_features)(struct net_device * , netdev_features_t ) ; int (*ndo_set_features)(struct net_device * , netdev_features_t ) ; int (*ndo_neigh_construct)(struct neighbour * ) ; void (*ndo_neigh_destroy)(struct neighbour * ) ; int (*ndo_fdb_add)(struct ndmsg * , struct nlattr ** , struct net_device * , unsigned char const * , u16 , u16 ) ; int (*ndo_fdb_del)(struct ndmsg * , struct nlattr ** , struct net_device * , unsigned char const * , u16 ) ; int (*ndo_fdb_dump)(struct sk_buff * , struct netlink_callback * , struct net_device * , struct net_device * , int ) ; int (*ndo_bridge_setlink)(struct net_device * , struct nlmsghdr * , u16 ) ; int (*ndo_bridge_getlink)(struct sk_buff * , u32 , u32 , struct net_device * , u32 , int ) ; int (*ndo_bridge_dellink)(struct net_device * , struct nlmsghdr * , u16 ) ; int (*ndo_change_carrier)(struct net_device * , bool ) ; int (*ndo_get_phys_port_id)(struct net_device * , struct netdev_phys_item_id * ) ; int (*ndo_get_phys_port_name)(struct net_device * , char * , size_t ) ; void (*ndo_add_vxlan_port)(struct net_device * , sa_family_t , __be16 ) ; void (*ndo_del_vxlan_port)(struct net_device * , sa_family_t , __be16 ) ; void *(*ndo_dfwd_add_station)(struct net_device * , struct net_device * ) ; void (*ndo_dfwd_del_station)(struct net_device * , void * ) ; netdev_tx_t (*ndo_dfwd_start_xmit)(struct sk_buff * , struct net_device * , void * ) ; int (*ndo_get_lock_subclass)(struct net_device * ) ; netdev_features_t (*ndo_features_check)(struct sk_buff * , struct net_device * , netdev_features_t ) ; int (*ndo_set_tx_maxrate)(struct net_device * , int , u32 ) ; int (*ndo_get_iflink)(struct net_device const * ) ; }; struct __anonstruct_adj_list_319 { struct list_head upper ; struct list_head lower ; }; struct __anonstruct_all_adj_list_320 { struct list_head upper ; struct list_head lower ; }; struct iw_handler_def; struct iw_public_data; struct switchdev_ops; struct vlan_info; struct tipc_bearer; struct in_device; struct dn_dev; struct inet6_dev; struct tcf_proto; struct cpu_rmap; struct pcpu_lstats; struct pcpu_sw_netstats; struct pcpu_dstats; struct pcpu_vstats; union __anonunion____missing_field_name_321 { void *ml_priv ; struct pcpu_lstats *lstats ; struct pcpu_sw_netstats *tstats ; struct pcpu_dstats *dstats ; struct pcpu_vstats *vstats ; }; struct garp_port; struct mrp_port; struct rtnl_link_ops; struct net_device { char name[16U] ; struct hlist_node name_hlist ; char *ifalias ; unsigned long mem_end ; unsigned long mem_start ; unsigned long base_addr ; int irq ; atomic_t carrier_changes ; unsigned long state ; struct list_head dev_list ; struct list_head napi_list ; struct list_head unreg_list ; struct list_head close_list ; struct list_head ptype_all ; struct list_head ptype_specific ; struct __anonstruct_adj_list_319 adj_list ; struct __anonstruct_all_adj_list_320 all_adj_list ; netdev_features_t features ; netdev_features_t hw_features ; netdev_features_t wanted_features ; netdev_features_t vlan_features ; netdev_features_t hw_enc_features ; netdev_features_t mpls_features ; int ifindex ; int group ; struct net_device_stats stats ; atomic_long_t rx_dropped ; atomic_long_t tx_dropped ; struct iw_handler_def const *wireless_handlers ; struct iw_public_data *wireless_data ; struct net_device_ops const *netdev_ops ; struct ethtool_ops const *ethtool_ops ; struct switchdev_ops const *switchdev_ops ; struct header_ops const *header_ops ; unsigned int flags ; unsigned int priv_flags ; unsigned short gflags ; unsigned short padded ; unsigned char operstate ; unsigned char link_mode ; unsigned char if_port ; unsigned char dma ; unsigned int mtu ; unsigned short type ; unsigned short hard_header_len ; unsigned short needed_headroom ; unsigned short needed_tailroom ; unsigned char perm_addr[32U] ; unsigned char addr_assign_type ; unsigned char addr_len ; unsigned short neigh_priv_len ; unsigned short dev_id ; unsigned short dev_port ; spinlock_t addr_list_lock ; unsigned char name_assign_type ; bool uc_promisc ; struct netdev_hw_addr_list uc ; struct netdev_hw_addr_list mc ; struct netdev_hw_addr_list dev_addrs ; struct kset *queues_kset ; unsigned int promiscuity ; unsigned int allmulti ; struct vlan_info *vlan_info ; struct dsa_switch_tree *dsa_ptr ; struct tipc_bearer *tipc_ptr ; void *atalk_ptr ; struct in_device *ip_ptr ; struct dn_dev *dn_ptr ; struct inet6_dev *ip6_ptr ; void *ax25_ptr ; struct wireless_dev *ieee80211_ptr ; struct wpan_dev *ieee802154_ptr ; struct mpls_dev *mpls_ptr ; unsigned long last_rx ; unsigned char *dev_addr ; struct netdev_rx_queue *_rx ; unsigned int num_rx_queues ; unsigned int real_num_rx_queues ; unsigned long gro_flush_timeout ; rx_handler_func_t *rx_handler ; void *rx_handler_data ; struct tcf_proto *ingress_cl_list ; struct netdev_queue *ingress_queue ; struct list_head nf_hooks_ingress ; unsigned char broadcast[32U] ; struct cpu_rmap *rx_cpu_rmap ; struct hlist_node index_hlist ; struct netdev_queue *_tx ; unsigned int num_tx_queues ; unsigned int real_num_tx_queues ; struct Qdisc *qdisc ; unsigned long tx_queue_len ; spinlock_t tx_global_lock ; int watchdog_timeo ; struct xps_dev_maps *xps_maps ; unsigned long trans_start ; struct timer_list watchdog_timer ; int *pcpu_refcnt ; struct list_head todo_list ; struct list_head link_watch_list ; unsigned char reg_state ; bool dismantle ; unsigned short rtnl_link_state ; void (*destructor)(struct net_device * ) ; struct netpoll_info *npinfo ; possible_net_t nd_net ; union __anonunion____missing_field_name_321 __annonCompField94 ; struct garp_port *garp_port ; struct mrp_port *mrp_port ; struct device dev ; struct attribute_group const *sysfs_groups[4U] ; struct attribute_group const *sysfs_rx_queue_group ; struct rtnl_link_ops const *rtnl_link_ops ; unsigned int gso_max_size ; u16 gso_max_segs ; u16 gso_min_segs ; struct dcbnl_rtnl_ops const *dcbnl_ops ; u8 num_tc ; struct netdev_tc_txq tc_to_txq[16U] ; u8 prio_tc_map[16U] ; unsigned int fcoe_ddp_xid ; struct netprio_map *priomap ; struct phy_device *phydev ; struct lock_class_key *qdisc_tx_busylock ; }; struct packet_type { __be16 type ; struct net_device *dev ; int (*func)(struct sk_buff * , struct net_device * , struct packet_type * , struct net_device * ) ; bool (*id_match)(struct packet_type * , struct sock * ) ; void *af_packet_priv ; struct list_head list ; }; struct pcpu_sw_netstats { u64 rx_packets ; u64 rx_bytes ; u64 tx_packets ; u64 tx_bytes ; struct u64_stats_sync syncp ; }; struct page_counter { atomic_long_t count ; unsigned long limit ; struct page_counter *parent ; unsigned long watermark ; unsigned long failcnt ; }; struct sock_filter { __u16 code ; __u8 jt ; __u8 jf ; __u32 k ; }; struct bpf_insn { __u8 code ; unsigned char dst_reg : 4 ; unsigned char src_reg : 4 ; __s16 off ; __s32 imm ; }; enum bpf_prog_type { BPF_PROG_TYPE_UNSPEC = 0, BPF_PROG_TYPE_SOCKET_FILTER = 1, BPF_PROG_TYPE_KPROBE = 2, BPF_PROG_TYPE_SCHED_CLS = 3, BPF_PROG_TYPE_SCHED_ACT = 4 } ; struct bpf_prog_aux; struct sock_fprog_kern { u16 len ; struct sock_filter *filter ; }; union __anonunion____missing_field_name_330 { struct sock_filter insns[0U] ; struct bpf_insn insnsi[0U] ; }; struct bpf_prog { u16 pages ; bool jited ; bool gpl_compatible ; u32 len ; enum bpf_prog_type type ; struct bpf_prog_aux *aux ; struct sock_fprog_kern *orig_prog ; unsigned int (*bpf_func)(struct sk_buff const * , struct bpf_insn const * ) ; union __anonunion____missing_field_name_330 __annonCompField99 ; }; struct sk_filter { atomic_t refcnt ; struct callback_head rcu ; struct bpf_prog *prog ; }; struct pollfd { int fd ; short events ; short revents ; }; struct poll_table_struct { void (*_qproc)(struct file * , wait_queue_head_t * , struct poll_table_struct * ) ; unsigned long _key ; }; struct nla_policy { u16 type ; u16 len ; }; struct rtnl_link_ops { struct list_head list ; char const *kind ; size_t priv_size ; void (*setup)(struct net_device * ) ; int maxtype ; struct nla_policy const *policy ; int (*validate)(struct nlattr ** , struct nlattr ** ) ; int (*newlink)(struct net * , struct net_device * , struct nlattr ** , struct nlattr ** ) ; int (*changelink)(struct net_device * , struct nlattr ** , struct nlattr ** ) ; void (*dellink)(struct net_device * , struct list_head * ) ; size_t (*get_size)(struct net_device const * ) ; int (*fill_info)(struct sk_buff * , struct net_device const * ) ; size_t (*get_xstats_size)(struct net_device const * ) ; int (*fill_xstats)(struct sk_buff * , struct net_device const * ) ; unsigned int (*get_num_tx_queues)(void) ; unsigned int (*get_num_rx_queues)(void) ; int slave_maxtype ; struct nla_policy const *slave_policy ; int (*slave_validate)(struct nlattr ** , struct nlattr ** ) ; int (*slave_changelink)(struct net_device * , struct net_device * , struct nlattr ** , struct nlattr ** ) ; size_t (*get_slave_size)(struct net_device const * , struct net_device const * ) ; int (*fill_slave_info)(struct sk_buff * , struct net_device const * , struct net_device const * ) ; struct net *(*get_link_net)(struct net_device const * ) ; }; struct neigh_table; struct neigh_parms { possible_net_t net ; struct net_device *dev ; struct list_head list ; int (*neigh_setup)(struct neighbour * ) ; void (*neigh_cleanup)(struct neighbour * ) ; struct neigh_table *tbl ; void *sysctl_table ; int dead ; atomic_t refcnt ; struct callback_head callback_head ; int reachable_time ; int data[13U] ; unsigned long data_state[1U] ; }; struct neigh_statistics { unsigned long allocs ; unsigned long destroys ; unsigned long hash_grows ; unsigned long res_failed ; unsigned long lookups ; unsigned long hits ; unsigned long rcv_probes_mcast ; unsigned long rcv_probes_ucast ; unsigned long periodic_gc_runs ; unsigned long forced_gc_runs ; unsigned long unres_discards ; }; struct neigh_ops; struct neighbour { struct neighbour *next ; struct neigh_table *tbl ; struct neigh_parms *parms ; unsigned long confirmed ; unsigned long updated ; rwlock_t lock ; atomic_t refcnt ; struct sk_buff_head arp_queue ; unsigned int arp_queue_len_bytes ; struct timer_list timer ; unsigned long used ; atomic_t probes ; __u8 flags ; __u8 nud_state ; __u8 type ; __u8 dead ; seqlock_t ha_lock ; unsigned char ha[32U] ; struct hh_cache hh ; int (*output)(struct neighbour * , struct sk_buff * ) ; struct neigh_ops const *ops ; struct callback_head rcu ; struct net_device *dev ; u8 primary_key[0U] ; }; struct neigh_ops { int family ; void (*solicit)(struct neighbour * , struct sk_buff * ) ; void (*error_report)(struct neighbour * , struct sk_buff * ) ; int (*output)(struct neighbour * , struct sk_buff * ) ; int (*connected_output)(struct neighbour * , struct sk_buff * ) ; }; struct pneigh_entry { struct pneigh_entry *next ; possible_net_t net ; struct net_device *dev ; u8 flags ; u8 key[0U] ; }; struct neigh_hash_table { struct neighbour **hash_buckets ; unsigned int hash_shift ; __u32 hash_rnd[4U] ; struct callback_head rcu ; }; struct neigh_table { int family ; int entry_size ; int key_len ; __be16 protocol ; __u32 (*hash)(void const * , struct net_device const * , __u32 * ) ; bool (*key_eq)(struct neighbour const * , void const * ) ; int (*constructor)(struct neighbour * ) ; int (*pconstructor)(struct pneigh_entry * ) ; void (*pdestructor)(struct pneigh_entry * ) ; void (*proxy_redo)(struct sk_buff * ) ; char *id ; struct neigh_parms parms ; struct list_head parms_list ; int gc_interval ; int gc_thresh1 ; int gc_thresh2 ; int gc_thresh3 ; unsigned long last_flush ; struct delayed_work gc_work ; struct timer_list proxy_timer ; struct sk_buff_head proxy_queue ; atomic_t entries ; rwlock_t lock ; unsigned long last_rand ; struct neigh_statistics *stats ; struct neigh_hash_table *nht ; struct pneigh_entry **phash_buckets ; }; struct dn_route; union __anonunion____missing_field_name_341 { struct dst_entry *next ; struct rtable *rt_next ; struct rt6_info *rt6_next ; struct dn_route *dn_next ; }; struct dst_entry { struct callback_head callback_head ; struct dst_entry *child ; struct net_device *dev ; struct dst_ops *ops ; unsigned long _metrics ; unsigned long expires ; struct dst_entry *path ; struct dst_entry *from ; struct xfrm_state *xfrm ; int (*input)(struct sk_buff * ) ; int (*output)(struct sock * , struct sk_buff * ) ; unsigned short flags ; unsigned short pending_confirm ; short error ; short obsolete ; unsigned short header_len ; unsigned short trailer_len ; __u32 tclassid ; long __pad_to_align_refcnt[2U] ; atomic_t __refcnt ; int __use ; unsigned long lastuse ; union __anonunion____missing_field_name_341 __annonCompField100 ; }; struct __anonstruct_socket_lock_t_342 { spinlock_t slock ; int owned ; wait_queue_head_t wq ; struct lockdep_map dep_map ; }; typedef struct __anonstruct_socket_lock_t_342 socket_lock_t; struct proto; typedef __u32 __portpair; typedef __u64 __addrpair; struct __anonstruct____missing_field_name_344 { __be32 skc_daddr ; __be32 skc_rcv_saddr ; }; union __anonunion____missing_field_name_343 { __addrpair skc_addrpair ; struct __anonstruct____missing_field_name_344 __annonCompField101 ; }; union __anonunion____missing_field_name_345 { unsigned int skc_hash ; __u16 skc_u16hashes[2U] ; }; struct __anonstruct____missing_field_name_347 { __be16 skc_dport ; __u16 skc_num ; }; union __anonunion____missing_field_name_346 { __portpair skc_portpair ; struct __anonstruct____missing_field_name_347 __annonCompField104 ; }; union __anonunion____missing_field_name_348 { struct hlist_node skc_bind_node ; struct hlist_nulls_node skc_portaddr_node ; }; union __anonunion____missing_field_name_349 { struct hlist_node skc_node ; struct hlist_nulls_node skc_nulls_node ; }; struct sock_common { union __anonunion____missing_field_name_343 __annonCompField102 ; union __anonunion____missing_field_name_345 __annonCompField103 ; union __anonunion____missing_field_name_346 __annonCompField105 ; unsigned short skc_family ; unsigned char volatile skc_state ; unsigned char skc_reuse : 4 ; unsigned char skc_reuseport : 1 ; unsigned char skc_ipv6only : 1 ; unsigned char skc_net_refcnt : 1 ; int skc_bound_dev_if ; union __anonunion____missing_field_name_348 __annonCompField106 ; struct proto *skc_prot ; possible_net_t skc_net ; struct in6_addr skc_v6_daddr ; struct in6_addr skc_v6_rcv_saddr ; atomic64_t skc_cookie ; int skc_dontcopy_begin[0U] ; union __anonunion____missing_field_name_349 __annonCompField107 ; int skc_tx_queue_mapping ; atomic_t skc_refcnt ; int skc_dontcopy_end[0U] ; }; struct cg_proto; struct __anonstruct_sk_backlog_350 { atomic_t rmem_alloc ; int len ; struct sk_buff *head ; struct sk_buff *tail ; }; struct sock { struct sock_common __sk_common ; socket_lock_t sk_lock ; struct sk_buff_head sk_receive_queue ; struct __anonstruct_sk_backlog_350 sk_backlog ; int sk_forward_alloc ; __u32 sk_rxhash ; u16 sk_incoming_cpu ; __u32 sk_txhash ; unsigned int sk_napi_id ; unsigned int sk_ll_usec ; atomic_t sk_drops ; int sk_rcvbuf ; struct sk_filter *sk_filter ; struct socket_wq *sk_wq ; struct xfrm_policy *sk_policy[2U] ; unsigned long sk_flags ; struct dst_entry *sk_rx_dst ; struct dst_entry *sk_dst_cache ; spinlock_t sk_dst_lock ; atomic_t sk_wmem_alloc ; atomic_t sk_omem_alloc ; int sk_sndbuf ; struct sk_buff_head sk_write_queue ; unsigned char sk_shutdown : 2 ; unsigned char sk_no_check_tx : 1 ; unsigned char sk_no_check_rx : 1 ; unsigned char sk_userlocks : 4 ; unsigned char sk_protocol ; unsigned short sk_type ; int sk_wmem_queued ; gfp_t sk_allocation ; u32 sk_pacing_rate ; u32 sk_max_pacing_rate ; netdev_features_t sk_route_caps ; netdev_features_t sk_route_nocaps ; int sk_gso_type ; unsigned int sk_gso_max_size ; u16 sk_gso_max_segs ; int sk_rcvlowat ; unsigned long sk_lingertime ; struct sk_buff_head sk_error_queue ; struct proto *sk_prot_creator ; rwlock_t sk_callback_lock ; int sk_err ; int sk_err_soft ; u32 sk_ack_backlog ; u32 sk_max_ack_backlog ; __u32 sk_priority ; __u32 sk_cgrp_prioidx ; struct pid *sk_peer_pid ; struct cred const *sk_peer_cred ; long sk_rcvtimeo ; long sk_sndtimeo ; struct timer_list sk_timer ; ktime_t sk_stamp ; u16 sk_tsflags ; u32 sk_tskey ; struct socket *sk_socket ; void *sk_user_data ; struct page_frag sk_frag ; struct sk_buff *sk_send_head ; __s32 sk_peek_off ; int sk_write_pending ; void *sk_security ; __u32 sk_mark ; u32 sk_classid ; struct cg_proto *sk_cgrp ; void (*sk_state_change)(struct sock * ) ; void (*sk_data_ready)(struct sock * ) ; void (*sk_write_space)(struct sock * ) ; void (*sk_error_report)(struct sock * ) ; int (*sk_backlog_rcv)(struct sock * , struct sk_buff * ) ; void (*sk_destruct)(struct sock * ) ; }; struct request_sock_ops; struct timewait_sock_ops; struct inet_hashinfo; struct raw_hashinfo; struct udp_table; union __anonunion_h_353 { struct inet_hashinfo *hashinfo ; struct udp_table *udp_table ; struct raw_hashinfo *raw_hash ; }; struct proto { void (*close)(struct sock * , long ) ; int (*connect)(struct sock * , struct sockaddr * , int ) ; int (*disconnect)(struct sock * , int ) ; struct sock *(*accept)(struct sock * , int , int * ) ; int (*ioctl)(struct sock * , int , unsigned long ) ; int (*init)(struct sock * ) ; void (*destroy)(struct sock * ) ; void (*shutdown)(struct sock * , int ) ; int (*setsockopt)(struct sock * , int , int , char * , unsigned int ) ; int (*getsockopt)(struct sock * , int , int , char * , int * ) ; int (*compat_setsockopt)(struct sock * , int , int , char * , unsigned int ) ; int (*compat_getsockopt)(struct sock * , int , int , char * , int * ) ; int (*compat_ioctl)(struct sock * , unsigned int , unsigned long ) ; int (*sendmsg)(struct sock * , struct msghdr * , size_t ) ; int (*recvmsg)(struct sock * , struct msghdr * , size_t , int , int , int * ) ; int (*sendpage)(struct sock * , struct page * , int , size_t , int ) ; int (*bind)(struct sock * , struct sockaddr * , int ) ; int (*backlog_rcv)(struct sock * , struct sk_buff * ) ; void (*release_cb)(struct sock * ) ; void (*hash)(struct sock * ) ; void (*unhash)(struct sock * ) ; void (*rehash)(struct sock * ) ; int (*get_port)(struct sock * , unsigned short ) ; void (*clear_sk)(struct sock * , int ) ; unsigned int inuse_idx ; bool (*stream_memory_free)(struct sock const * ) ; void (*enter_memory_pressure)(struct sock * ) ; atomic_long_t *memory_allocated ; struct percpu_counter *sockets_allocated ; int *memory_pressure ; long *sysctl_mem ; int *sysctl_wmem ; int *sysctl_rmem ; int max_header ; bool no_autobind ; struct kmem_cache *slab ; unsigned int obj_size ; int slab_flags ; struct percpu_counter *orphan_count ; struct request_sock_ops *rsk_prot ; struct timewait_sock_ops *twsk_prot ; union __anonunion_h_353 h ; struct module *owner ; char name[32U] ; struct list_head node ; int (*init_cgroup)(struct mem_cgroup * , struct cgroup_subsys * ) ; void (*destroy_cgroup)(struct mem_cgroup * ) ; struct cg_proto *(*proto_cgroup)(struct mem_cgroup * ) ; }; struct cg_proto { struct page_counter memory_allocated ; struct percpu_counter sockets_allocated ; int memory_pressure ; long sysctl_mem[3U] ; unsigned long flags ; struct mem_cgroup *memcg ; }; struct cfs_cpu_partition { cpumask_t *cpt_cpumask ; nodemask_t *cpt_nodemask ; unsigned int cpt_spread_rotor ; }; struct cfs_cpt_table { unsigned int ctb_version ; unsigned int ctb_spread_rotor ; unsigned int ctb_nparts ; struct cfs_cpu_partition *ctb_parts ; int *ctb_cpu2cpt ; cpumask_t *ctb_cpumask ; nodemask_t *ctb_nodemask ; }; typedef __u32 cfs_cap_t; struct cfs_debug_limit_state { unsigned long cdls_next ; unsigned int cdls_delay ; int cdls_count ; }; struct libcfs_debug_msg_data { char const *msg_file ; char const *msg_fn ; int msg_subsys ; int msg_line ; int msg_mask ; struct cfs_debug_limit_state *msg_cdls ; }; struct cfs_workitem; struct cfs_workitem { struct list_head wi_list ; int (*wi_action)(struct cfs_workitem * ) ; void *wi_data ; unsigned char wi_running : 1 ; unsigned char wi_scheduled : 1 ; }; typedef struct cfs_workitem cfs_workitem_t; struct cfs_hash_ops; struct cfs_hash_lock_ops; struct cfs_hash_hlist_ops; union cfs_hash_lock { rwlock_t rw ; spinlock_t spin ; }; struct cfs_hash_bucket { union cfs_hash_lock hsb_lock ; __u32 hsb_count ; __u32 hsb_version ; unsigned int hsb_index ; int hsb_depmax ; long hsb_head[0U] ; }; struct cfs_hash_bd { struct cfs_hash_bucket *bd_bucket ; unsigned int bd_offset ; }; struct cfs_hash { union cfs_hash_lock hs_lock ; struct cfs_hash_ops *hs_ops ; struct cfs_hash_lock_ops *hs_lops ; struct cfs_hash_hlist_ops *hs_hops ; struct cfs_hash_bucket **hs_buckets ; atomic_t hs_count ; __u16 hs_flags ; __u16 hs_extra_bytes ; __u8 hs_iterating ; __u8 hs_exiting ; __u8 hs_cur_bits ; __u8 hs_min_bits ; __u8 hs_max_bits ; __u8 hs_rehash_bits ; __u8 hs_bkt_bits ; __u16 hs_min_theta ; __u16 hs_max_theta ; __u32 hs_rehash_count ; __u32 hs_iterators ; cfs_workitem_t hs_rehash_wi ; atomic_t hs_refcount ; struct cfs_hash_bucket **hs_rehash_buckets ; char hs_name[0U] ; }; struct cfs_hash_lock_ops { void (*hs_lock)(union cfs_hash_lock * , int ) ; void (*hs_unlock)(union cfs_hash_lock * , int ) ; void (*hs_bkt_lock)(union cfs_hash_lock * , int ) ; void (*hs_bkt_unlock)(union cfs_hash_lock * , int ) ; }; struct cfs_hash_hlist_ops { struct hlist_head *(*hop_hhead)(struct cfs_hash * , struct cfs_hash_bd * ) ; int (*hop_hhead_size)(struct cfs_hash * ) ; int (*hop_hnode_add)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * ) ; int (*hop_hnode_del)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * ) ; }; struct cfs_hash_ops { unsigned int (*hs_hash)(struct cfs_hash * , void const * , unsigned int ) ; void *(*hs_key)(struct hlist_node * ) ; void (*hs_keycpy)(struct hlist_node * , void * ) ; int (*hs_keycmp)(void const * , struct hlist_node * ) ; void *(*hs_object)(struct hlist_node * ) ; void (*hs_get)(struct cfs_hash * , struct hlist_node * ) ; void (*hs_put)(struct cfs_hash * , struct hlist_node * ) ; void (*hs_put_locked)(struct cfs_hash * , struct hlist_node * ) ; void (*hs_exit)(struct cfs_hash * , struct hlist_node * ) ; }; struct cfs_crypto_hash_type { char *cht_name ; unsigned int cht_key ; unsigned int cht_size ; }; struct cfs_crypto_hash_desc; typedef __u64 lnet_nid_t; typedef __u32 lnet_pid_t; struct __anonstruct_lnet_handle_any_t_370 { __u64 cookie ; }; typedef struct __anonstruct_lnet_handle_any_t_370 lnet_handle_any_t; typedef lnet_handle_any_t lnet_handle_eq_t; typedef lnet_handle_any_t lnet_handle_md_t; struct __anonstruct_lnet_process_id_t_371 { lnet_nid_t nid ; lnet_pid_t pid ; }; typedef struct __anonstruct_lnet_process_id_t_371 lnet_process_id_t; struct __anonstruct_lnet_md_t_372 { void *start ; unsigned int length ; int threshold ; int max_size ; unsigned int options ; void *user_ptr ; lnet_handle_eq_t eq_handle ; }; typedef struct __anonstruct_lnet_md_t_372 lnet_md_t; struct __anonstruct_lnet_kiov_t_373 { struct page *kiov_page ; unsigned int kiov_len ; unsigned int kiov_offset ; }; typedef struct __anonstruct_lnet_kiov_t_373 lnet_kiov_t; enum ldv_34784 { LNET_EVENT_GET = 1, LNET_EVENT_PUT = 2, LNET_EVENT_REPLY = 3, LNET_EVENT_ACK = 4, LNET_EVENT_SEND = 5, LNET_EVENT_UNLINK = 6 } ; typedef enum ldv_34784 lnet_event_kind_t; typedef unsigned long lnet_seq_t; struct __anonstruct_lnet_event_t_374 { lnet_process_id_t target ; lnet_process_id_t initiator ; lnet_nid_t sender ; lnet_event_kind_t type ; unsigned int pt_index ; __u64 match_bits ; unsigned int rlength ; unsigned int mlength ; lnet_handle_md_t md_handle ; lnet_md_t md ; __u64 hdr_data ; int status ; int unlinked ; unsigned int offset ; lnet_seq_t volatile sequence ; }; typedef struct __anonstruct_lnet_event_t_374 lnet_event_t; struct ll_fiemap_extent { __u64 fe_logical ; __u64 fe_physical ; __u64 fe_length ; __u64 fe_reserved64[2U] ; __u32 fe_flags ; __u32 fe_device ; __u32 fe_reserved[2U] ; }; struct ll_user_fiemap { __u64 fm_start ; __u64 fm_length ; __u32 fm_flags ; __u32 fm_mapped_extents ; __u32 fm_extent_count ; __u32 fm_reserved ; struct ll_fiemap_extent fm_extents[0U] ; }; struct obd_statfs { __u64 os_type ; __u64 os_blocks ; __u64 os_bfree ; __u64 os_bavail ; __u64 os_files ; __u64 os_ffree ; __u8 os_fsid[40U] ; __u32 os_bsize ; __u32 os_namelen ; __u64 os_maxbytes ; __u32 os_state ; __u32 os_fprecreated ; __u32 os_spare2 ; __u32 os_spare3 ; __u32 os_spare4 ; __u32 os_spare5 ; __u32 os_spare6 ; __u32 os_spare7 ; __u32 os_spare8 ; __u32 os_spare9 ; }; struct lu_fid { __u64 f_seq ; __u32 f_oid ; __u32 f_ver ; }; struct ostid { __u64 oi_id ; __u64 oi_seq ; }; union __anonunion____missing_field_name_375 { struct ostid oi ; struct lu_fid oi_fid ; }; struct ost_id { union __anonunion____missing_field_name_375 __annonCompField108 ; }; struct lov_user_ost_data_v1 { struct ost_id l_ost_oi ; __u32 l_ost_gen ; __u32 l_ost_idx ; }; union __anonunion____missing_field_name_376 { __u16 lmm_stripe_offset ; __u16 lmm_layout_gen ; }; struct lov_user_md_v1 { __u32 lmm_magic ; __u32 lmm_pattern ; struct ost_id lmm_oi ; __u32 lmm_stripe_size ; __u16 lmm_stripe_count ; union __anonunion____missing_field_name_376 __annonCompField109 ; struct lov_user_ost_data_v1 lmm_objects[0U] ; }; union __anonunion____missing_field_name_377 { __u16 lmm_stripe_offset ; __u16 lmm_layout_gen ; }; struct lov_user_md_v3 { __u32 lmm_magic ; __u32 lmm_pattern ; struct ost_id lmm_oi ; __u32 lmm_stripe_size ; __u16 lmm_stripe_count ; union __anonunion____missing_field_name_377 __annonCompField110 ; char lmm_pool_name[16U] ; struct lov_user_ost_data_v1 lmm_objects[0U] ; }; struct obd_uuid { char uuid[40U] ; }; struct if_quotacheck { char obd_type[16U] ; struct obd_uuid obd_uuid ; }; struct obd_dqinfo { __u64 dqi_bgrace ; __u64 dqi_igrace ; __u32 dqi_flags ; __u32 dqi_valid ; }; struct obd_dqblk { __u64 dqb_bhardlimit ; __u64 dqb_bsoftlimit ; __u64 dqb_curspace ; __u64 dqb_ihardlimit ; __u64 dqb_isoftlimit ; __u64 dqb_curinodes ; __u64 dqb_btime ; __u64 dqb_itime ; __u32 dqb_valid ; __u32 dqb_padding ; }; struct lu_seq_range { __u64 lsr_start ; __u64 lsr_end ; __u32 lsr_index ; __u32 lsr_flags ; }; struct lustre_handle { __u64 cookie ; }; struct lustre_msg_v2 { __u32 lm_bufcount ; __u32 lm_secflvr ; __u32 lm_magic ; __u32 lm_repsize ; __u32 lm_cksum ; __u32 lm_flags ; __u32 lm_padding_2 ; __u32 lm_padding_3 ; __u32 lm_buflens[0U] ; }; struct obd_connect_data { __u64 ocd_connect_flags ; __u32 ocd_version ; __u32 ocd_grant ; __u32 ocd_index ; __u32 ocd_brw_size ; __u64 ocd_ibits_known ; __u8 ocd_blocksize ; __u8 ocd_inodespace ; __u16 ocd_grant_extent ; __u32 ocd_unused ; __u64 ocd_transno ; __u32 ocd_group ; __u32 ocd_cksum_types ; __u32 ocd_max_easize ; __u32 ocd_instance ; __u64 ocd_maxbytes ; __u64 padding1 ; __u64 padding2 ; __u64 padding3 ; __u64 padding4 ; __u64 padding5 ; __u64 padding6 ; __u64 padding7 ; __u64 padding8 ; __u64 padding9 ; __u64 paddingA ; __u64 paddingB ; __u64 paddingC ; __u64 paddingD ; __u64 paddingE ; __u64 paddingF ; }; enum ldv_35282 { OBD_CKSUM_CRC32 = 1, OBD_CKSUM_ADLER = 2, OBD_CKSUM_CRC32C = 4 } ; typedef enum ldv_35282 cksum_type_t; struct lov_ost_data_v1 { struct ost_id l_ost_oi ; __u32 l_ost_gen ; __u32 l_ost_idx ; }; struct lov_mds_md_v1 { __u32 lmm_magic ; __u32 lmm_pattern ; struct ost_id lmm_oi ; __u32 lmm_stripe_size ; __u16 lmm_stripe_count ; __u16 lmm_layout_gen ; struct lov_ost_data_v1 lmm_objects[0U] ; }; struct obd_ioobj { struct ost_id ioo_oid ; __u32 ioo_max_brw ; __u32 ioo_bufcnt ; }; struct niobuf_remote { __u64 offset ; __u32 len ; __u32 flags ; }; struct ost_lvb { __u64 lvb_size ; __s64 lvb_mtime ; __s64 lvb_atime ; __s64 lvb_ctime ; __u64 lvb_blocks ; __u32 lvb_mtime_ns ; __u32 lvb_atime_ns ; __u32 lvb_ctime_ns ; __u32 lvb_padding ; }; struct obd_quotactl { __u32 qc_cmd ; __u32 qc_type ; __u32 qc_id ; __u32 qc_stat ; struct obd_dqinfo qc_dqinfo ; struct obd_dqblk qc_dqblk ; }; struct mdt_body { struct lu_fid fid1 ; struct lu_fid fid2 ; struct lustre_handle handle ; __u64 valid ; __u64 size ; __s64 mtime ; __s64 atime ; __s64 ctime ; __u64 blocks ; __u64 ioepoch ; __u64 t_state ; __u32 fsuid ; __u32 fsgid ; __u32 capability ; __u32 mode ; __u32 uid ; __u32 gid ; __u32 flags ; __u32 rdev ; __u32 nlink ; __u32 unused2 ; __u32 suppgid ; __u32 eadatasize ; __u32 aclsize ; __u32 max_mdsize ; __u32 max_cookiesize ; __u32 uid_h ; __u32 gid_h ; __u32 padding_5 ; __u64 padding_6 ; __u64 padding_7 ; __u64 padding_8 ; __u64 padding_9 ; __u64 padding_10 ; }; struct mdt_remote_perm { __u32 rp_uid ; __u32 rp_gid ; __u32 rp_fsuid ; __u32 rp_fsuid_h ; __u32 rp_fsgid ; __u32 rp_fsgid_h ; __u32 rp_access_perm ; __u32 rp_padding ; }; enum mds_op_bias { MDS_CHECK_SPLIT = 1, MDS_CROSS_REF = 2, MDS_VTX_BYPASS = 4, MDS_PERM_BYPASS = 8, MDS_SOM = 16, MDS_QUOTA_IGNORE = 32, MDS_CLOSE_CLEANUP = 64, MDS_KEEP_ORPHAN = 128, MDS_RECOV_OPEN = 256, MDS_DATA_MODIFIED = 512, MDS_CREATE_VOLATILE = 1024, MDS_OWNEROVERRIDE = 2048, MDS_HSM_RELEASE = 4096 } ; struct lmv_desc { __u32 ld_tgt_count ; __u32 ld_active_tgt_count ; __u32 ld_default_stripe_count ; __u32 ld_pattern ; __u64 ld_default_hash_size ; __u64 ld_padding_1 ; __u32 ld_padding_2 ; __u32 ld_qos_maxage ; __u32 ld_padding_3 ; __u32 ld_padding_4 ; struct obd_uuid ld_uuid ; }; struct lmv_stripe_md { __u32 mea_magic ; __u32 mea_count ; __u32 mea_master ; __u32 mea_padding ; char mea_pool_name[16U] ; struct lu_fid mea_ids[0U] ; }; struct lov_desc { __u32 ld_tgt_count ; __u32 ld_active_tgt_count ; __u32 ld_default_stripe_count ; __u32 ld_pattern ; __u64 ld_default_stripe_size ; __u64 ld_default_stripe_offset ; __u32 ld_padding_0 ; __u32 ld_qos_maxage ; __u32 ld_padding_1 ; __u32 ld_padding_2 ; struct obd_uuid ld_uuid ; }; struct ldlm_res_id { __u64 name[4U] ; }; enum ldv_35420 { LCK_MINMODE = 0, LCK_EX = 1, LCK_PW = 2, LCK_PR = 4, LCK_CW = 8, LCK_CR = 16, LCK_NL = 32, LCK_GROUP = 64, LCK_COS = 128, LCK_MAXMODE = 129 } ; typedef enum ldv_35420 ldlm_mode_t; enum ldv_35422 { LDLM_PLAIN = 10, LDLM_EXTENT = 11, LDLM_FLOCK = 12, LDLM_IBITS = 13, LDLM_MAX_TYPE = 14 } ; typedef enum ldv_35422 ldlm_type_t; struct ldlm_extent { __u64 start ; __u64 end ; __u64 gid ; }; struct ldlm_inodebits { __u64 bits ; }; struct ldlm_flock_wire { __u64 lfw_start ; __u64 lfw_end ; __u64 lfw_owner ; __u32 lfw_padding ; __u32 lfw_pid ; }; union __anonunion_ldlm_wire_policy_data_t_380 { struct ldlm_extent l_extent ; struct ldlm_flock_wire l_flock ; struct ldlm_inodebits l_inodebits ; }; typedef union __anonunion_ldlm_wire_policy_data_t_380 ldlm_wire_policy_data_t; struct ldlm_resource_desc { ldlm_type_t lr_type ; __u32 lr_padding ; struct ldlm_res_id lr_name ; }; struct ldlm_lock_desc { struct ldlm_resource_desc l_resource ; ldlm_mode_t l_req_mode ; ldlm_mode_t l_granted_mode ; ldlm_wire_policy_data_t l_policy_data ; }; struct ldlm_reply { __u32 lock_flags ; __u32 lock_padding ; struct ldlm_lock_desc lock_desc ; struct lustre_handle lock_handle ; __u64 lock_policy_res1 ; __u64 lock_policy_res2 ; }; struct llog_logid { struct ost_id lgl_oi ; __u32 lgl_ogen ; }; struct llog_cookie { struct llog_logid lgc_lgl ; __u32 lgc_subsys ; __u32 lgc_index ; __u32 lgc_padding ; }; struct obdo { __u64 o_valid ; struct ost_id o_oi ; __u64 o_parent_seq ; __u64 o_size ; __s64 o_mtime ; __s64 o_atime ; __s64 o_ctime ; __u64 o_blocks ; __u64 o_grant ; __u32 o_blksize ; __u32 o_mode ; __u32 o_uid ; __u32 o_gid ; __u32 o_flags ; __u32 o_nlink ; __u32 o_parent_oid ; __u32 o_misc ; __u64 o_ioepoch ; __u32 o_stripe_idx ; __u32 o_parent_ver ; struct lustre_handle o_handle ; struct llog_cookie o_lcookie ; __u32 o_uid_h ; __u32 o_gid_h ; __u64 o_data_version ; __u64 o_padding_4 ; __u64 o_padding_5 ; __u64 o_padding_6 ; }; struct ost_body { struct obdo oa ; }; struct ll_fiemap_info_key { char name[8U] ; struct obdo oa ; struct ll_user_fiemap fiemap ; }; struct lustre_cfg; struct lustre_capa { struct lu_fid lc_fid ; __u64 lc_opc ; __u64 lc_uid ; __u64 lc_gid ; __u32 lc_flags ; __u32 lc_keyid ; __u32 lc_timeout ; __u32 lc_expiry ; __u8 lc_hmac[64U] ; }; struct lustre_cfg { __u32 lcfg_version ; __u32 lcfg_command ; __u32 lcfg_num ; __u32 lcfg_flags ; __u64 lcfg_nid ; __u32 lcfg_nal ; __u32 lcfg_bufcount ; __u32 lcfg_buflens[0U] ; }; struct fs_struct { int users ; spinlock_t lock ; seqcount_t seq ; int umask ; int in_exec ; struct path root ; struct path pwd ; }; struct lprocfs_vars { char const *name ; struct file_operations *fops ; void *data ; umode_t proc_mode ; }; struct lprocfs_static_vars { struct lprocfs_vars *obd_vars ; struct attribute_group *sysfs_vars ; }; struct obd_histogram { spinlock_t oh_lock ; unsigned long oh_buckets[32U] ; }; struct lprocfs_counter_header { unsigned int lc_config ; char const *lc_name ; char const *lc_units ; }; struct lprocfs_counter { __s64 lc_count ; __s64 lc_min ; __s64 lc_max ; __s64 lc_sumsquare ; __s64 lc_array_sum[1U] ; }; struct lprocfs_percpu { struct lprocfs_counter lp_cntr[0U] ; }; enum lprocfs_stats_flags { LPROCFS_STATS_FLAG_NONE = 0, LPROCFS_STATS_FLAG_NOPERCPU = 1, LPROCFS_STATS_FLAG_IRQ_SAFE = 2 } ; struct lprocfs_stats { unsigned short ls_num ; unsigned short ls_biggest_alloc_num ; enum lprocfs_stats_flags ls_flags ; spinlock_t ls_lock ; struct lprocfs_counter_header *ls_cnt_header ; struct lprocfs_percpu *ls_percpu[0U] ; }; struct adaptive_timeout; struct ptlrpc_request; struct l_wait_info; struct ptlrpc_reply_state; struct ptlrpc_bulk_desc; struct brw_page; struct ptlrpc_sec_policy; struct ptlrpc_sec_cops; struct ptlrpc_sec_sops; struct ptlrpc_sec; struct ptlrpc_svc_ctx; struct ptlrpc_cli_ctx; struct ptlrpc_ctx_ops; struct bulk_spec_hash { __u8 hash_alg ; }; union __anonunion_u_rpc_382 { }; union __anonunion_u_bulk_383 { struct bulk_spec_hash hash ; }; struct sptlrpc_flavor { __u32 sf_rpc ; __u32 sf_flags ; union __anonunion_u_rpc_382 u_rpc ; union __anonunion_u_bulk_383 u_bulk ; }; enum lustre_sec_part { LUSTRE_SP_CLI = 0, LUSTRE_SP_MDT = 1, LUSTRE_SP_OST = 2, LUSTRE_SP_MGC = 3, LUSTRE_SP_MGS = 4, LUSTRE_SP_ANY = 255 } ; struct vfs_cred { uint32_t vc_uid ; uint32_t vc_gid ; }; struct ptlrpc_ctx_ops { int (*match)(struct ptlrpc_cli_ctx * , struct vfs_cred * ) ; int (*refresh)(struct ptlrpc_cli_ctx * ) ; int (*validate)(struct ptlrpc_cli_ctx * ) ; void (*force_die)(struct ptlrpc_cli_ctx * , int ) ; int (*display)(struct ptlrpc_cli_ctx * , char * , int ) ; int (*sign)(struct ptlrpc_cli_ctx * , struct ptlrpc_request * ) ; int (*verify)(struct ptlrpc_cli_ctx * , struct ptlrpc_request * ) ; int (*seal)(struct ptlrpc_cli_ctx * , struct ptlrpc_request * ) ; int (*unseal)(struct ptlrpc_cli_ctx * , struct ptlrpc_request * ) ; int (*wrap_bulk)(struct ptlrpc_cli_ctx * , struct ptlrpc_request * , struct ptlrpc_bulk_desc * ) ; int (*unwrap_bulk)(struct ptlrpc_cli_ctx * , struct ptlrpc_request * , struct ptlrpc_bulk_desc * ) ; }; struct ptlrpc_cli_ctx { struct hlist_node cc_cache ; atomic_t cc_refcount ; struct ptlrpc_sec *cc_sec ; struct ptlrpc_ctx_ops *cc_ops ; unsigned long cc_expire ; unsigned char cc_early_expire : 1 ; unsigned long cc_flags ; struct vfs_cred cc_vcred ; spinlock_t cc_lock ; struct list_head cc_req_list ; struct list_head cc_gc_chain ; }; struct ptlrpc_sec_cops { struct ptlrpc_sec *(*create_sec)(struct obd_import * , struct ptlrpc_svc_ctx * , struct sptlrpc_flavor * ) ; void (*destroy_sec)(struct ptlrpc_sec * ) ; void (*kill_sec)(struct ptlrpc_sec * ) ; struct ptlrpc_cli_ctx *(*lookup_ctx)(struct ptlrpc_sec * , struct vfs_cred * , int , int ) ; void (*release_ctx)(struct ptlrpc_sec * , struct ptlrpc_cli_ctx * , int ) ; int (*flush_ctx_cache)(struct ptlrpc_sec * , uid_t , int , int ) ; void (*gc_ctx)(struct ptlrpc_sec * ) ; int (*install_rctx)(struct obd_import * , struct ptlrpc_sec * , struct ptlrpc_cli_ctx * ) ; int (*alloc_reqbuf)(struct ptlrpc_sec * , struct ptlrpc_request * , int ) ; void (*free_reqbuf)(struct ptlrpc_sec * , struct ptlrpc_request * ) ; int (*alloc_repbuf)(struct ptlrpc_sec * , struct ptlrpc_request * , int ) ; void (*free_repbuf)(struct ptlrpc_sec * , struct ptlrpc_request * ) ; int (*enlarge_reqbuf)(struct ptlrpc_sec * , struct ptlrpc_request * , int , int ) ; int (*display)(struct ptlrpc_sec * , struct seq_file * ) ; }; struct ptlrpc_sec_sops { int (*accept)(struct ptlrpc_request * ) ; int (*authorize)(struct ptlrpc_request * ) ; void (*invalidate_ctx)(struct ptlrpc_svc_ctx * ) ; int (*alloc_rs)(struct ptlrpc_request * , int ) ; void (*free_rs)(struct ptlrpc_reply_state * ) ; void (*free_ctx)(struct ptlrpc_svc_ctx * ) ; int (*install_rctx)(struct obd_import * , struct ptlrpc_svc_ctx * ) ; int (*prep_bulk)(struct ptlrpc_request * , struct ptlrpc_bulk_desc * ) ; int (*unwrap_bulk)(struct ptlrpc_request * , struct ptlrpc_bulk_desc * ) ; int (*wrap_bulk)(struct ptlrpc_request * , struct ptlrpc_bulk_desc * ) ; }; struct ptlrpc_sec_policy { struct module *sp_owner ; char *sp_name ; __u16 sp_policy ; struct ptlrpc_sec_cops *sp_cops ; struct ptlrpc_sec_sops *sp_sops ; }; struct ptlrpc_sec { struct ptlrpc_sec_policy *ps_policy ; atomic_t ps_refcount ; atomic_t ps_nctx ; int ps_id ; struct sptlrpc_flavor ps_flvr ; enum lustre_sec_part ps_part ; unsigned char ps_dying : 1 ; struct obd_import *ps_import ; spinlock_t ps_lock ; struct list_head ps_gc_list ; unsigned long ps_gc_interval ; unsigned long ps_gc_next ; }; struct ptlrpc_svc_ctx { atomic_t sc_refcount ; struct ptlrpc_sec_policy *sc_policy ; }; struct ptlrpc_user_desc { __u32 pud_uid ; __u32 pud_gid ; __u32 pud_fsuid ; __u32 pud_fsgid ; __u32 pud_cap ; __u32 pud_ngroups ; __u32 pud_groups[0U] ; }; struct portals_handle_ops { void (*hop_addref)(void * ) ; void (*hop_free)(void * , int ) ; }; struct portals_handle { struct list_head h_link ; __u64 h_cookie ; struct portals_handle_ops *h_ops ; struct callback_head h_rcu ; spinlock_t h_lock ; unsigned int h_size : 31 ; unsigned char h_in : 1 ; }; struct adaptive_timeout { time_t at_binstart ; unsigned int at_hist[4U] ; unsigned int at_flags ; unsigned int at_current ; unsigned int at_worst_ever ; time_t at_worst_time ; spinlock_t at_lock ; }; struct ptlrpc_at_array { struct list_head *paa_reqs_array ; __u32 paa_size ; __u32 paa_count ; time_t paa_deadline ; __u32 *paa_reqs_count ; }; struct imp_at { int iat_portal[8U] ; struct adaptive_timeout iat_net_latency ; struct adaptive_timeout iat_service_estimate[8U] ; }; enum lustre_imp_state { LUSTRE_IMP_CLOSED = 1, LUSTRE_IMP_NEW = 2, LUSTRE_IMP_DISCON = 3, LUSTRE_IMP_CONNECTING = 4, LUSTRE_IMP_REPLAY = 5, LUSTRE_IMP_REPLAY_LOCKS = 6, LUSTRE_IMP_REPLAY_WAIT = 7, LUSTRE_IMP_RECOVER = 8, LUSTRE_IMP_FULL = 9, LUSTRE_IMP_EVICTED = 10 } ; enum obd_import_event { IMP_EVENT_DISCON = 8421377, IMP_EVENT_INACTIVE = 8421378, IMP_EVENT_INVALIDATE = 8421379, IMP_EVENT_ACTIVE = 8421380, IMP_EVENT_OCD = 8421381, IMP_EVENT_DEACTIVATE = 8421382, IMP_EVENT_ACTIVATE = 8421383 } ; struct ptlrpc_connection; struct obd_import_conn { struct list_head oic_item ; struct ptlrpc_connection *oic_conn ; struct obd_uuid oic_uuid ; __u64 oic_last_attempt ; }; struct import_state_hist { enum lustre_imp_state ish_state ; time_t ish_time ; }; struct ptlrpc_client; struct ptlrpc_request_pool; struct obd_import { struct portals_handle imp_handle ; atomic_t imp_refcount ; struct lustre_handle imp_dlm_handle ; struct ptlrpc_connection *imp_connection ; struct ptlrpc_client *imp_client ; struct list_head imp_pinger_chain ; struct list_head imp_zombie_chain ; struct list_head imp_replay_list ; struct list_head imp_sending_list ; struct list_head imp_delayed_list ; struct list_head imp_committed_list ; struct list_head *imp_replay_cursor ; struct obd_device *imp_obd ; struct ptlrpc_sec *imp_sec ; struct mutex imp_sec_mutex ; unsigned long imp_sec_expire ; wait_queue_head_t imp_recovery_waitq ; atomic_t imp_inflight ; atomic_t imp_unregistering ; atomic_t imp_replay_inflight ; atomic_t imp_inval_count ; atomic_t imp_timeouts ; enum lustre_imp_state imp_state ; enum lustre_imp_state imp_replay_state ; struct import_state_hist imp_state_hist[16U] ; int imp_state_hist_idx ; int imp_generation ; __u32 imp_conn_cnt ; int imp_last_generation_checked ; __u64 imp_last_replay_transno ; __u64 imp_peer_committed_transno ; __u64 imp_last_transno_checked ; struct lustre_handle imp_remote_handle ; unsigned long imp_next_ping ; __u64 imp_last_success_conn ; struct list_head imp_conn_list ; struct obd_import_conn *imp_conn_current ; spinlock_t imp_lock ; unsigned char imp_no_timeout : 1 ; unsigned char imp_invalid : 1 ; unsigned char imp_deactive : 1 ; unsigned char imp_replayable : 1 ; unsigned char imp_dlm_fake : 1 ; unsigned char imp_server_timeout : 1 ; unsigned char imp_delayed_recovery : 1 ; unsigned char imp_no_lock_replay : 1 ; unsigned char imp_vbr_failed : 1 ; unsigned char imp_force_verify : 1 ; unsigned char imp_force_next_verify : 1 ; unsigned char imp_pingable : 1 ; unsigned char imp_resend_replay : 1 ; unsigned char imp_no_pinger_recover : 1 ; unsigned char imp_need_mne_swab : 1 ; unsigned char imp_force_reconnect : 1 ; unsigned char imp_connect_tried : 1 ; __u32 imp_connect_op ; struct obd_connect_data imp_connect_data ; __u64 imp_connect_flags_orig ; int imp_connect_error ; __u32 imp_msg_magic ; __u32 imp_msghdr_flags ; struct ptlrpc_request_pool *imp_rq_pool ; struct imp_at imp_at ; time_t imp_last_reply_time ; }; struct lu_ref { }; struct lu_ref_link { }; struct lu_site; struct lu_object_header; struct lu_device_operations { struct lu_object *(*ldo_object_alloc)(struct lu_env const * , struct lu_object_header const * , struct lu_device * ) ; int (*ldo_process_config)(struct lu_env const * , struct lu_device * , struct lustre_cfg * ) ; int (*ldo_recovery_complete)(struct lu_env const * , struct lu_device * ) ; int (*ldo_prepare)(struct lu_env const * , struct lu_device * , struct lu_device * ) ; }; enum ldv_36624 { LOC_F_NEW = 1 } ; typedef enum ldv_36624 loc_flags_t; struct lu_object_conf { loc_flags_t loc_flags ; }; struct lu_object_operations { int (*loo_object_init)(struct lu_env const * , struct lu_object * , struct lu_object_conf const * ) ; int (*loo_object_start)(struct lu_env const * , struct lu_object * ) ; void (*loo_object_delete)(struct lu_env const * , struct lu_object * ) ; void (*loo_object_free)(struct lu_env const * , struct lu_object * ) ; void (*loo_object_release)(struct lu_env const * , struct lu_object * ) ; int (*loo_object_print)(struct lu_env const * , void * , int (*)(struct lu_env const * , void * , char const * , ...) , struct lu_object const * ) ; int (*loo_object_invariant)(struct lu_object const * ) ; }; struct lu_device { atomic_t ld_ref ; struct lu_device_type *ld_type ; struct lu_device_operations const *ld_ops ; struct lu_site *ld_site ; struct obd_device *ld_obd ; struct lu_ref ld_reference ; struct list_head ld_linkage ; }; struct lu_device_type_operations; struct obd_type; struct lu_device_type { __u32 ldt_tags ; char *ldt_name ; struct lu_device_type_operations const *ldt_ops ; struct obd_type *ldt_obd_type ; __u32 ldt_ctx_tags ; unsigned int ldt_device_nr ; struct list_head ldt_linkage ; }; struct lu_device_type_operations { struct lu_device *(*ldto_device_alloc)(struct lu_env const * , struct lu_device_type * , struct lustre_cfg * ) ; struct lu_device *(*ldto_device_free)(struct lu_env const * , struct lu_device * ) ; int (*ldto_device_init)(struct lu_env const * , struct lu_device * , char const * , struct lu_device * ) ; struct lu_device *(*ldto_device_fini)(struct lu_env const * , struct lu_device * ) ; int (*ldto_init)(struct lu_device_type * ) ; void (*ldto_fini)(struct lu_device_type * ) ; void (*ldto_start)(struct lu_device_type * ) ; void (*ldto_stop)(struct lu_device_type * ) ; }; struct lu_object { struct lu_object_header *lo_header ; struct lu_device *lo_dev ; struct lu_object_operations const *lo_ops ; struct list_head lo_linkage ; struct lu_ref_link lo_dev_ref ; }; struct lu_object_header { struct lu_fid loh_fid ; unsigned long loh_flags ; atomic_t loh_ref ; __u32 loh_attr ; struct hlist_node loh_hash ; struct list_head loh_lru ; struct list_head loh_layers ; struct lu_ref loh_reference ; }; struct seq_server_site; struct lu_site { struct cfs_hash *ls_obj_hash ; int ls_purge_start ; struct lu_device *ls_top_dev ; struct lu_device *ls_bottom_dev ; struct list_head ls_linkage ; struct list_head ls_ld_linkage ; spinlock_t ls_ld_lock ; struct lprocfs_stats *ls_stats ; struct seq_server_site *ld_seq_site ; }; enum lu_context_state { LCS_INITIALIZED = 1, LCS_ENTERED = 2, LCS_LEFT = 3, LCS_FINALIZED = 4 } ; struct ptlrpc_thread; struct lu_context { __u32 lc_tags ; enum lu_context_state lc_state ; struct ptlrpc_thread *lc_thread ; void **lc_value ; struct list_head lc_remember ; unsigned int lc_version ; unsigned int lc_cookie ; }; struct lu_context_key { __u32 lct_tags ; void *(*lct_init)(struct lu_context const * , struct lu_context_key * ) ; void (*lct_fini)(struct lu_context const * , struct lu_context_key * , void * ) ; void (*lct_exit)(struct lu_context const * , struct lu_context_key * , void * ) ; int lct_index ; atomic_t lct_used ; struct module *lct_owner ; struct lu_ref lct_reference ; }; struct lu_env { struct lu_context le_ctx ; struct lu_context *le_ses ; }; struct lu_kmem_descr { struct kmem_cache **ckd_cache ; char const *ckd_name ; size_t const ckd_size ; }; struct req_msg_field; struct req_format; struct req_capsule; enum req_location { RCL_CLIENT = 0, RCL_SERVER = 1, RCL_NR = 2 } ; struct req_capsule { struct ptlrpc_request *rc_req ; struct req_format const *rc_fmt ; enum req_location rc_loc ; __u32 rc_area[2U][9U] ; }; struct ptlrpc_connection { struct hlist_node c_hash ; lnet_nid_t c_self ; lnet_process_id_t c_peer ; struct obd_uuid c_remote_uuid ; atomic_t c_refcount ; }; struct ptlrpc_client { __u32 cli_request_portal ; __u32 cli_reply_portal ; char *cli_name ; }; union ptlrpc_async_args { void *pointer_arg[11U] ; __u64 space[7U] ; }; struct ptlrpc_request_set { atomic_t set_refcount ; atomic_t set_new_count ; atomic_t set_remaining ; wait_queue_head_t set_waitq ; wait_queue_head_t *set_wakeup_ptr ; struct list_head set_requests ; struct list_head set_cblist ; int (*set_interpret)(struct ptlrpc_request_set * , void * , int ) ; void *set_arg ; spinlock_t set_new_req_lock ; struct list_head set_new_requests ; int set_rc ; int set_max_inflight ; int (*set_producer)(struct ptlrpc_request_set * , void * ) ; void *set_producer_arg ; }; struct ptlrpc_service_part; struct ptlrpc_service; struct ptlrpc_cb_id { void (*cbid_fn)(lnet_event_t * ) ; void *cbid_arg ; }; struct ptlrpc_reply_state { struct ptlrpc_cb_id rs_cb_id ; struct list_head rs_list ; struct list_head rs_exp_list ; struct list_head rs_obd_list ; spinlock_t rs_lock ; unsigned char rs_difficult : 1 ; unsigned char rs_no_ack : 1 ; unsigned char rs_scheduled : 1 ; unsigned char rs_scheduled_ever : 1 ; unsigned char rs_handled : 1 ; unsigned char rs_on_net : 1 ; unsigned char rs_prealloc : 1 ; unsigned char rs_committed : 1 ; int rs_size ; __u32 rs_opc ; __u64 rs_transno ; __u64 rs_xid ; struct obd_export *rs_export ; struct ptlrpc_service_part *rs_svcpt ; lnet_handle_md_t rs_md_h ; atomic_t rs_refcount ; struct ptlrpc_svc_ctx *rs_svc_ctx ; struct lustre_msg_v2 *rs_repbuf ; int rs_repbuf_len ; int rs_repdata_len ; struct lustre_msg_v2 *rs_msg ; int rs_nlocks ; struct lustre_handle rs_locks[8U] ; ldlm_mode_t rs_modes[8U] ; }; enum rq_phase { RQ_PHASE_NEW = 3955285504U, RQ_PHASE_RPC = 3955285505U, RQ_PHASE_BULK = 3955285506U, RQ_PHASE_INTERPRET = 3955285507U, RQ_PHASE_COMPLETE = 3955285508U, RQ_PHASE_UNREGISTERING = 3955285509U, RQ_PHASE_UNDEFINED = 3955285510U } ; struct ptlrpc_request_pool { spinlock_t prp_lock ; struct list_head prp_req_list ; int prp_rq_size ; void (*prp_populate)(struct ptlrpc_request_pool * , int ) ; }; struct ldlm_lock; struct ptlrpc_nrs_policy; struct ptlrpc_nrs_resource; struct ptlrpc_nrs_request; enum ptlrpc_nrs_ctl { PTLRPC_NRS_CTL_INVALID = 0, PTLRPC_NRS_CTL_START = 1, PTLRPC_NRS_CTL_STOP = 2, PTLRPC_NRS_CTL_1ST_POL_SPEC = 32 } ; struct ptlrpc_nrs_pol_ops { int (*op_policy_init)(struct ptlrpc_nrs_policy * ) ; void (*op_policy_fini)(struct ptlrpc_nrs_policy * ) ; int (*op_policy_start)(struct ptlrpc_nrs_policy * ) ; void (*op_policy_stop)(struct ptlrpc_nrs_policy * ) ; int (*op_policy_ctl)(struct ptlrpc_nrs_policy * , enum ptlrpc_nrs_ctl , void * ) ; int (*op_res_get)(struct ptlrpc_nrs_policy * , struct ptlrpc_nrs_request * , struct ptlrpc_nrs_resource const * , struct ptlrpc_nrs_resource ** , bool ) ; void (*op_res_put)(struct ptlrpc_nrs_policy * , struct ptlrpc_nrs_resource const * ) ; struct ptlrpc_nrs_request *(*op_req_get)(struct ptlrpc_nrs_policy * , bool , bool ) ; int (*op_req_enqueue)(struct ptlrpc_nrs_policy * , struct ptlrpc_nrs_request * ) ; void (*op_req_dequeue)(struct ptlrpc_nrs_policy * , struct ptlrpc_nrs_request * ) ; void (*op_req_stop)(struct ptlrpc_nrs_policy * , struct ptlrpc_nrs_request * ) ; int (*op_lprocfs_init)(struct ptlrpc_service * ) ; void (*op_lprocfs_fini)(struct ptlrpc_service * ) ; }; enum ptlrpc_nrs_queue_type { PTLRPC_NRS_QUEUE_REG = 1, PTLRPC_NRS_QUEUE_HP = 2, PTLRPC_NRS_QUEUE_BOTH = 3 } ; struct ptlrpc_nrs { spinlock_t nrs_lock ; struct list_head nrs_policy_list ; struct list_head nrs_policy_queued ; struct ptlrpc_service_part *nrs_svcpt ; struct ptlrpc_nrs_policy *nrs_policy_primary ; struct ptlrpc_nrs_policy *nrs_policy_fallback ; enum ptlrpc_nrs_queue_type nrs_queue_type ; unsigned long nrs_req_queued ; unsigned long nrs_req_started ; unsigned int nrs_num_pols ; unsigned char nrs_policy_starting : 1 ; unsigned char nrs_stopping : 1 ; }; struct ptlrpc_nrs_pol_desc; struct ptlrpc_nrs_pol_desc { char pd_name[16U] ; struct list_head pd_list ; struct ptlrpc_nrs_pol_ops const *pd_ops ; bool (*pd_compat)(struct ptlrpc_service const * , struct ptlrpc_nrs_pol_desc const * ) ; char const *pd_compat_svc_name ; struct module *pd_owner ; unsigned int pd_flags ; atomic_t pd_refs ; }; enum ptlrpc_nrs_pol_state { NRS_POL_STATE_INVALID = 0, NRS_POL_STATE_STOPPED = 1, NRS_POL_STATE_STOPPING = 2, NRS_POL_STATE_STARTING = 3, NRS_POL_STATE_STARTED = 4 } ; struct ptlrpc_nrs_policy { struct list_head pol_list ; struct list_head pol_list_queued ; enum ptlrpc_nrs_pol_state pol_state ; unsigned int pol_flags ; long pol_req_queued ; long pol_req_started ; long pol_ref ; struct ptlrpc_nrs *pol_nrs ; void *pol_private ; struct ptlrpc_nrs_pol_desc *pol_desc ; }; struct ptlrpc_nrs_resource { struct ptlrpc_nrs_resource *res_parent ; struct ptlrpc_nrs_policy *res_policy ; }; struct nrs_fifo_req { struct list_head fr_list ; __u64 fr_sequence ; }; union __anonunion_nr_u_384 { struct nrs_fifo_req fifo ; }; struct ptlrpc_nrs_request { struct ptlrpc_nrs_resource *nr_res_ptrs[2U] ; unsigned int nr_res_idx ; unsigned char nr_initialized : 1 ; unsigned char nr_enqueued : 1 ; unsigned char nr_started : 1 ; unsigned char nr_finalized : 1 ; union __anonunion_nr_u_384 nr_u ; void *ext ; }; struct ptlrpc_hpreq_ops { int (*hpreq_lock_match)(struct ptlrpc_request * , struct ldlm_lock * ) ; int (*hpreq_check)(struct ptlrpc_request * ) ; void (*hpreq_fini)(struct ptlrpc_request * ) ; }; struct ptlrpc_request_buffer_desc; struct ptlrpc_request { int rq_type ; int rq_status ; struct list_head rq_list ; struct list_head rq_timed_list ; struct list_head rq_history_list ; struct list_head rq_exp_list ; struct ptlrpc_hpreq_ops *rq_ops ; struct ptlrpc_thread *rq_svc_thread ; __u64 rq_history_seq ; struct ptlrpc_nrs_request rq_nrq ; time_t rq_at_index ; spinlock_t rq_lock ; unsigned char rq_intr : 1 ; unsigned char rq_replied : 1 ; unsigned char rq_err : 1 ; unsigned char rq_timedout : 1 ; unsigned char rq_resend : 1 ; unsigned char rq_restart : 1 ; unsigned char rq_replay : 1 ; unsigned char rq_no_resend : 1 ; unsigned char rq_waiting : 1 ; unsigned char rq_receiving_reply : 1 ; unsigned char rq_no_delay : 1 ; unsigned char rq_net_err : 1 ; unsigned char rq_wait_ctx : 1 ; unsigned char rq_early : 1 ; unsigned char rq_req_unlink : 1 ; unsigned char rq_reply_unlink : 1 ; unsigned char rq_memalloc : 1 ; unsigned char rq_packed_final : 1 ; unsigned char rq_hp : 1 ; unsigned char rq_at_linked : 1 ; unsigned char rq_reply_truncate : 1 ; unsigned char rq_committed : 1 ; unsigned char rq_invalid_rqset : 1 ; unsigned char rq_generation_set : 1 ; unsigned char rq_no_retry_einprogress : 1 ; unsigned char rq_allow_replay : 1 ; unsigned int rq_nr_resend ; enum rq_phase rq_phase ; enum rq_phase rq_next_phase ; atomic_t rq_refcount ; short rq_request_portal ; short rq_reply_portal ; int rq_nob_received ; int rq_reqlen ; int rq_replen ; struct lustre_msg_v2 *rq_reqmsg ; struct lustre_msg_v2 *rq_repmsg ; __u64 rq_transno ; __u64 rq_xid ; struct list_head rq_replay_list ; struct ptlrpc_cli_ctx *rq_cli_ctx ; struct ptlrpc_svc_ctx *rq_svc_ctx ; struct list_head rq_ctx_chain ; struct sptlrpc_flavor rq_flvr ; enum lustre_sec_part rq_sp_from ; unsigned char rq_ctx_init : 1 ; unsigned char rq_ctx_fini : 1 ; unsigned char rq_bulk_read : 1 ; unsigned char rq_bulk_write : 1 ; unsigned char rq_auth_gss : 1 ; unsigned char rq_auth_remote : 1 ; unsigned char rq_auth_usr_root : 1 ; unsigned char rq_auth_usr_mdt : 1 ; unsigned char rq_auth_usr_ost : 1 ; unsigned char rq_pack_udesc : 1 ; unsigned char rq_pack_bulk : 1 ; unsigned char rq_no_reply : 1 ; unsigned char rq_pill_init : 1 ; uid_t rq_auth_uid ; uid_t rq_auth_mapped_uid ; struct ptlrpc_user_desc *rq_user_desc ; struct lustre_msg_v2 *rq_reqbuf ; char *rq_repbuf ; struct lustre_msg_v2 *rq_repdata ; struct lustre_msg_v2 *rq_clrbuf ; int rq_reqbuf_len ; int rq_reqdata_len ; int rq_repbuf_len ; int rq_repdata_len ; int rq_clrbuf_len ; int rq_clrdata_len ; unsigned int rq_reply_off ; __u32 rq_req_swab_mask ; __u32 rq_rep_swab_mask ; int rq_import_generation ; enum lustre_imp_state rq_send_state ; int rq_early_count ; lnet_handle_md_t rq_req_md_h ; struct ptlrpc_cb_id rq_req_cbid ; long rq_delay_limit ; unsigned long rq_queued_time ; struct timeval rq_arrival_time ; struct ptlrpc_reply_state *rq_reply_state ; struct ptlrpc_request_buffer_desc *rq_rqbd ; lnet_handle_md_t rq_reply_md_h ; wait_queue_head_t rq_reply_waitq ; struct ptlrpc_cb_id rq_reply_cbid ; lnet_nid_t rq_self ; lnet_process_id_t rq_peer ; struct obd_export *rq_export ; struct obd_import *rq_import ; void (*rq_replay_cb)(struct ptlrpc_request * ) ; void (*rq_commit_cb)(struct ptlrpc_request * ) ; void *rq_cb_data ; struct ptlrpc_bulk_desc *rq_bulk ; time_t rq_sent ; time_t rq_real_sent ; time_t volatile rq_deadline ; time_t rq_reply_deadline ; time_t rq_bulk_deadline ; int rq_timeout ; wait_queue_head_t rq_set_waitq ; struct list_head rq_set_chain ; struct ptlrpc_request_set *rq_set ; int (*rq_interpret_reply)(struct lu_env const * , struct ptlrpc_request * , void * , int ) ; union ptlrpc_async_args rq_async_args ; struct ptlrpc_request_pool *rq_pool ; struct lu_context rq_session ; struct lu_context rq_recov_session ; struct req_capsule rq_pill ; }; struct ptlrpc_bulk_desc { unsigned char bd_failure : 1 ; unsigned char bd_type : 2 ; unsigned char bd_registered : 1 ; spinlock_t bd_lock ; int bd_import_generation ; __u32 bd_portal ; struct obd_export *bd_export ; struct obd_import *bd_import ; struct ptlrpc_request *bd_req ; wait_queue_head_t bd_waitq ; int bd_iov_count ; int bd_max_iov ; int bd_nob ; int bd_nob_transferred ; __u64 bd_last_xid ; struct ptlrpc_cb_id bd_cbid ; lnet_nid_t bd_sender ; int bd_md_count ; int bd_md_max_brw ; lnet_handle_md_t bd_mds[4U] ; lnet_kiov_t *bd_enc_iov ; lnet_kiov_t bd_iov[0U] ; }; struct ptlrpc_thread { struct list_head t_link ; void *t_data ; __u32 t_flags ; unsigned int t_id ; pid_t t_pid ; struct ptlrpc_service_part *t_svcpt ; wait_queue_head_t t_ctl_waitq ; struct lu_env *t_env ; char t_name[32U] ; }; struct ptlrpc_request_buffer_desc { struct list_head rqbd_list ; struct list_head rqbd_reqs ; struct ptlrpc_service_part *rqbd_svcpt ; lnet_handle_md_t rqbd_md_h ; int rqbd_refcount ; char *rqbd_buffer ; struct ptlrpc_cb_id rqbd_cbid ; struct ptlrpc_request rqbd_req ; }; struct ptlrpc_service_ops { int (*so_thr_init)(struct ptlrpc_thread * ) ; void (*so_thr_done)(struct ptlrpc_thread * ) ; int (*so_req_handler)(struct ptlrpc_request * ) ; int (*so_hpreq_handler)(struct ptlrpc_request * ) ; void (*so_req_printer)(void * , struct ptlrpc_request * ) ; }; struct ptlrpc_service { spinlock_t srv_lock ; struct list_head srv_list ; struct ptlrpc_service_ops srv_ops ; char *srv_name ; char *srv_thread_name ; struct list_head srv_threads ; int srv_nthrs_cpt_init ; int srv_nthrs_cpt_limit ; struct dentry *srv_debugfs_entry ; struct lprocfs_stats *srv_stats ; int srv_hpreq_ratio ; int srv_max_req_size ; int srv_max_reply_size ; int srv_buf_size ; int srv_nbuf_per_group ; __u32 srv_req_portal ; __u32 srv_rep_portal ; __u32 srv_ctx_tags ; int srv_watchdog_factor ; unsigned char srv_is_stopping : 1 ; int srv_hist_nrqbds_cpt_max ; int srv_ncpts ; __u32 *srv_cpts ; int srv_cpt_bits ; struct cfs_cpt_table *srv_cptable ; struct kobject srv_kobj ; struct completion srv_kobj_unregister ; struct ptlrpc_service_part *srv_parts[0U] ; }; struct ptlrpc_service_part { struct ptlrpc_service *scp_service ; int scp_cpt ; int scp_thr_nextid ; int scp_nthrs_starting ; int scp_nthrs_stopping ; int scp_nthrs_running ; struct list_head scp_threads ; spinlock_t scp_lock ; int scp_nrqbds_total ; int scp_nrqbds_posted ; int scp_rqbd_allocating ; int scp_nreqs_incoming ; struct list_head scp_rqbd_idle ; struct list_head scp_rqbd_posted ; struct list_head scp_req_incoming ; long scp_rqbd_timeout ; wait_queue_head_t scp_waitq ; struct list_head scp_hist_reqs ; struct list_head scp_hist_rqbds ; int scp_hist_nrqbds ; __u64 scp_hist_seq ; __u64 scp_hist_seq_culled ; spinlock_t scp_req_lock ; int scp_nreqs_active ; int scp_nhreqs_active ; int scp_hreq_count ; struct ptlrpc_nrs scp_nrs_reg ; struct ptlrpc_nrs *scp_nrs_hp ; spinlock_t scp_at_lock ; struct adaptive_timeout scp_at_estimate ; struct ptlrpc_at_array scp_at_array ; struct timer_list scp_at_timer ; unsigned long scp_at_checktime ; unsigned int scp_at_check ; spinlock_t scp_rep_lock ; struct list_head scp_rep_active ; struct list_head scp_rep_idle ; wait_queue_head_t scp_rep_waitq ; atomic_t scp_nreps_difficult ; }; enum timeout_event { TIMEOUT_GRANT = 1 } ; struct timeout_item; enum ldv_37508 { PDL_POLICY_SAME = 1, PDL_POLICY_LOCAL = 2, PDL_POLICY_ROUND = 3, PDL_POLICY_PREFERRED = 4 } ; typedef enum ldv_37508 pdl_policy_t; struct client_obd; struct md_open_data; struct obd_client_handle { struct lustre_handle och_fh ; struct lu_fid och_fid ; struct md_open_data *och_mod ; struct lustre_handle och_lease_handle ; __u32 och_magic ; fmode_t och_flags ; }; union __anonunion____missing_field_name_385 { __u64 ioc_cookie ; __u64 ioc_u64_1 ; }; union __anonunion____missing_field_name_386 { __u32 ioc_conn1 ; __u32 ioc_u32_1 ; }; union __anonunion____missing_field_name_387 { __u32 ioc_conn2 ; __u32 ioc_u32_2 ; }; struct obd_ioctl_data { __u32 ioc_len ; __u32 ioc_version ; union __anonunion____missing_field_name_385 __annonCompField113 ; union __anonunion____missing_field_name_386 __annonCompField114 ; union __anonunion____missing_field_name_387 __annonCompField115 ; struct obdo ioc_obdo1 ; struct obdo ioc_obdo2 ; u64 ioc_count ; u64 ioc_offset ; __u32 ioc_dev ; __u32 ioc_command ; __u64 ioc_nid ; __u32 ioc_nal ; __u32 ioc_type ; __u32 ioc_plen1 ; char *ioc_pbuf1 ; __u32 ioc_plen2 ; char *ioc_pbuf2 ; __u32 ioc_inllen1 ; char *ioc_inlbuf1 ; __u32 ioc_inllen2 ; char *ioc_inlbuf2 ; __u32 ioc_inllen3 ; char *ioc_inlbuf3 ; __u32 ioc_inllen4 ; char *ioc_inlbuf4 ; char ioc_bulk[0U] ; }; struct l_wait_info { long lwi_timeout ; long lwi_interval ; int lwi_allow_intr ; int (*lwi_on_timeout)(void * ) ; void (*lwi_on_signal)(void * ) ; void *lwi_cb_data ; }; struct interval_node_extent { __u64 start ; __u64 end ; }; struct interval_node { struct interval_node *in_left ; struct interval_node *in_right ; struct interval_node *in_parent ; unsigned char in_color : 1 ; unsigned char in_intree : 1 ; unsigned int in_res1 : 30 ; __u8 in_res2[4U] ; __u64 in_max_high ; struct interval_node_extent in_extent ; }; struct obd_ops; enum ldv_37655 { LDLM_NAMESPACE_SERVER = 1, LDLM_NAMESPACE_CLIENT = 2 } ; typedef enum ldv_37655 ldlm_side_t; struct ldlm_pool; struct ldlm_resource; struct ldlm_namespace; struct ldlm_pool_ops { int (*po_recalc)(struct ldlm_pool * ) ; int (*po_shrink)(struct ldlm_pool * , int , gfp_t ) ; int (*po_setup)(struct ldlm_pool * , int ) ; }; struct ldlm_pool { struct dentry *pl_debugfs_entry ; char pl_name[100U] ; spinlock_t pl_lock ; atomic_t pl_limit ; atomic_t pl_granted ; atomic_t pl_grant_rate ; atomic_t pl_cancel_rate ; __u64 pl_server_lock_volume ; __u64 pl_client_lock_volume ; atomic_t pl_lock_volume_factor ; time_t pl_recalc_time ; time_t pl_recalc_period ; struct ldlm_pool_ops const *pl_ops ; int pl_grant_plan ; struct lprocfs_stats *pl_stats ; struct kobject pl_kobj ; struct completion pl_kobj_unregister ; }; struct ldlm_valblock_ops { int (*lvbo_init)(struct ldlm_resource * ) ; int (*lvbo_update)(struct ldlm_resource * , struct ptlrpc_request * , int ) ; int (*lvbo_free)(struct ldlm_resource * ) ; int (*lvbo_size)(struct ldlm_lock * ) ; int (*lvbo_fill)(struct ldlm_lock * , void * , int ) ; }; typedef int ldlm_appetite_t; struct ldlm_ns_bucket { struct ldlm_namespace *nsb_namespace ; struct adaptive_timeout nsb_at_estimate ; }; struct ldlm_namespace { struct obd_device *ns_obd ; ldlm_side_t ns_client ; struct cfs_hash *ns_rs_hash ; spinlock_t ns_lock ; atomic_t ns_bref ; __u64 ns_connect_flags ; __u64 ns_orig_connect_flags ; struct dentry *ns_debugfs_entry ; struct list_head ns_list_chain ; struct list_head ns_unused_list ; int ns_nr_unused ; unsigned int ns_max_unused ; unsigned int ns_max_age ; unsigned long ns_next_dump ; int (*ns_policy)(struct ldlm_namespace * , struct ldlm_lock ** , void * , ldlm_mode_t , __u64 , void * ) ; struct ldlm_valblock_ops *ns_lvbo ; void *ns_lvbp ; wait_queue_head_t ns_waitq ; struct ldlm_pool ns_pool ; ldlm_appetite_t ns_appetite ; unsigned int ns_max_parallel_ast ; int (*ns_cancel_for_recovery)(struct ldlm_lock * ) ; struct lprocfs_stats *ns_stats ; unsigned char ns_stopping : 1 ; struct kobject ns_kobj ; struct completion ns_kobj_unregister ; }; struct ldlm_interval { struct interval_node li_node ; struct list_head li_group ; }; struct ldlm_interval_tree { int lit_size ; ldlm_mode_t lit_mode ; struct interval_node *lit_root ; }; typedef int ldlm_cancel_flags_t; struct ldlm_flock { __u64 start ; __u64 end ; __u64 owner ; __u64 blocking_owner ; struct obd_export *blocking_export ; __u32 blocking_refs ; __u32 pid ; }; union __anonunion_ldlm_policy_data_t_388 { struct ldlm_extent l_extent ; struct ldlm_flock l_flock ; struct ldlm_inodebits l_inodebits ; }; typedef union __anonunion_ldlm_policy_data_t_388 ldlm_policy_data_t; enum lvb_type { LVB_T_NONE = 0, LVB_T_OST = 1, LVB_T_LQUOTA = 2, LVB_T_LAYOUT = 3 } ; struct ldlm_lock { struct portals_handle l_handle ; atomic_t l_refc ; spinlock_t l_lock ; struct ldlm_resource *l_resource ; struct list_head l_lru ; struct list_head l_res_link ; struct ldlm_interval *l_tree_node ; struct hlist_node l_exp_hash ; struct hlist_node l_exp_flock_hash ; ldlm_mode_t l_req_mode ; ldlm_mode_t l_granted_mode ; int (*l_completion_ast)(struct ldlm_lock * , __u64 , void * ) ; int (*l_blocking_ast)(struct ldlm_lock * , struct ldlm_lock_desc * , void * , int ) ; int (*l_glimpse_ast)(struct ldlm_lock * , void * ) ; struct obd_export *l_export ; struct obd_export *l_conn_export ; struct lustre_handle l_remote_handle ; ldlm_policy_data_t l_policy_data ; __u64 l_flags ; __u32 l_readers ; __u32 l_writers ; wait_queue_head_t l_waitq ; unsigned long l_last_activity ; unsigned long l_last_used ; struct ldlm_extent l_req_extent ; enum lvb_type l_lvb_type ; __u32 l_lvb_len ; void *l_lvb_data ; void *l_ast_data ; __u64 l_client_cookie ; struct list_head l_pending_chain ; unsigned long l_callback_timeout ; __u32 l_pid ; int l_bl_ast_run ; struct list_head l_bl_ast ; struct list_head l_cp_ast ; struct list_head l_rk_ast ; struct ldlm_lock *l_blocking_lock ; struct list_head l_sl_mode ; struct list_head l_sl_policy ; struct lu_ref l_reference ; struct list_head l_exp_list ; }; struct ldlm_resource { struct ldlm_ns_bucket *lr_ns_bucket ; struct hlist_node lr_hash ; spinlock_t lr_lock ; struct list_head lr_granted ; struct list_head lr_converting ; struct list_head lr_waiting ; ldlm_mode_t lr_most_restr ; ldlm_type_t lr_type ; struct ldlm_res_id lr_name ; atomic_t lr_refcount ; struct ldlm_interval_tree lr_itree[8U] ; struct mutex lr_lvb_mutex ; int lr_lvb_len ; void *lr_lvb_data ; unsigned long lr_contention_time ; struct lu_ref lr_reference ; struct inode *lr_lvb_inode ; }; struct ldlm_enqueue_info { __u32 ei_type ; __u32 ei_mode ; void *ei_cb_bl ; void *ei_cb_cp ; void *ei_cb_gl ; void *ei_cbdata ; }; struct vfsmount { struct dentry *mnt_root ; struct super_block *mnt_sb ; int mnt_flags ; }; struct lustre_intent_data { int it_disposition ; int it_status ; __u64 it_lock_handle ; __u64 it_lock_bits ; int it_lock_mode ; int it_remote_lock_mode ; __u64 it_remote_lock_handle ; void *it_data ; unsigned char it_lock_set : 1 ; }; union __anonunion_d_389 { struct lustre_intent_data lustre ; }; struct lookup_intent { int it_op ; int it_create_mode ; __u64 it_flags ; union __anonunion_d_389 d ; }; struct __anonstruct_client_obd_lock_t_390 { spinlock_t lock ; unsigned long time ; struct task_struct *task ; char const *func ; int line ; }; typedef struct __anonstruct_client_obd_lock_t_390 client_obd_lock_t; struct lsd_client_data; struct tg_export_data { struct mutex ted_lcd_lock ; struct lsd_client_data *ted_lcd ; loff_t ted_lr_off ; int ted_lr_idx ; }; struct lustre_idmap_table; struct mdt_export_data { struct tg_export_data med_ted ; struct list_head med_open_head ; spinlock_t med_open_lock ; __u64 med_ibits_known ; struct mutex med_idmap_mutex ; struct lustre_idmap_table *med_idmap ; }; struct ec_export_data { struct list_head eced_locks ; }; struct filter_export_data { struct tg_export_data fed_ted ; spinlock_t fed_lock ; long fed_dirty ; long fed_grant ; struct list_head fed_mod_list ; int fed_mod_count ; long fed_pending ; __u32 fed_group ; __u8 fed_pagesize ; }; struct mgs_export_data { struct list_head med_clients ; spinlock_t med_lock ; }; enum obd_option { OBD_OPT_FORCE = 1, OBD_OPT_FAILOVER = 2, OBD_OPT_ABORT_RECOV = 4 } ; union __anonunion_u_391 { struct tg_export_data eu_target_data ; struct mdt_export_data eu_mdt_data ; struct filter_export_data eu_filter_data ; struct ec_export_data eu_ec_data ; struct mgs_export_data eu_mgs_data ; }; struct obd_export { struct portals_handle exp_handle ; atomic_t exp_refcount ; atomic_t exp_rpc_count ; atomic_t exp_cb_count ; atomic_t exp_replay_count ; atomic_t exp_locks_count ; struct obd_uuid exp_client_uuid ; struct list_head exp_obd_chain ; struct hlist_node exp_uuid_hash ; struct hlist_node exp_nid_hash ; struct list_head exp_obd_chain_timed ; struct obd_device *exp_obd ; struct obd_import *exp_imp_reverse ; struct lprocfs_stats *exp_md_stats ; struct ptlrpc_connection *exp_connection ; __u32 exp_conn_cnt ; struct cfs_hash *exp_lock_hash ; struct cfs_hash *exp_flock_hash ; struct list_head exp_outstanding_replies ; struct list_head exp_uncommitted_replies ; spinlock_t exp_uncommitted_replies_lock ; __u64 exp_last_committed ; unsigned long exp_last_request_time ; struct list_head exp_req_replay_queue ; spinlock_t exp_lock ; struct obd_connect_data exp_connect_data ; enum obd_option exp_flags ; unsigned char exp_failed : 1 ; unsigned char exp_in_recovery : 1 ; unsigned char exp_disconnected : 1 ; unsigned char exp_connecting : 1 ; unsigned char exp_delayed : 1 ; unsigned char exp_vbr_failed : 1 ; unsigned char exp_req_replay_needed : 1 ; unsigned char exp_lock_replay_needed : 1 ; unsigned char exp_need_sync : 1 ; unsigned char exp_flvr_changed : 1 ; unsigned char exp_flvr_adapt : 1 ; unsigned char exp_libclient : 1 ; unsigned char exp_abort_active_req : 1 ; unsigned char exp_need_mne_swab : 1 ; enum lustre_sec_part exp_sp_peer ; struct sptlrpc_flavor exp_flvr ; struct sptlrpc_flavor exp_flvr_old[2U] ; unsigned long exp_flvr_expire[2U] ; spinlock_t exp_rpc_lock ; struct list_head exp_hp_rpcs ; struct list_head exp_bl_list ; spinlock_t exp_bl_list_lock ; union __anonunion_u_391 u ; }; enum lu_cli_type { LUSTRE_SEQ_METADATA = 1, LUSTRE_SEQ_DATA = 2 } ; enum lu_mgr_type { LUSTRE_SEQ_SERVER = 0, LUSTRE_SEQ_CONTROLLER = 1 } ; struct lu_server_seq; struct lu_client_seq { struct obd_export *lcs_exp ; struct mutex lcs_mutex ; struct lu_seq_range lcs_space ; struct dentry *lcs_debugfs_entry ; struct lu_fid lcs_fid ; enum lu_cli_type lcs_type ; char lcs_name[80U] ; __u64 lcs_width ; struct lu_server_seq *lcs_srv ; wait_queue_head_t lcs_waitq ; int lcs_update ; }; struct dt_device; struct dt_object; struct lu_server_seq { struct lu_seq_range lss_space ; struct lu_seq_range lss_lowater_set ; struct lu_seq_range lss_hiwater_set ; struct dt_device *lss_dev ; struct dt_object *lss_obj ; enum lu_mgr_type lss_type ; struct lu_client_seq *lss_cli ; struct mutex lss_mutex ; char lss_name[80U] ; __u64 lss_width ; __u64 lss_set_width ; __u32 lss_need_sync ; struct seq_server_site *lss_site ; }; struct lu_client_fld; struct lu_fld_hash; struct fld_cache; struct lu_client_fld { struct dentry *lcf_debugfs_entry ; struct list_head lcf_targets ; struct lu_fld_hash *lcf_hash ; int lcf_count ; spinlock_t lcf_lock ; struct fld_cache *lcf_cache ; char lcf_name[80U] ; int lcf_flags ; }; struct client_capa { struct inode *inode ; struct list_head lli_list ; }; struct target_capa { struct hlist_node c_hash ; }; union __anonunion_u_394 { struct client_capa cli ; struct target_capa tgt ; }; struct obd_capa { struct list_head c_list ; struct lustre_capa c_capa ; atomic_t c_refc ; unsigned long c_expiry ; spinlock_t c_lock ; int c_site ; union __anonunion_u_394 u ; }; struct osc_async_rc { int ar_rc ; int ar_force_sync ; __u64 ar_min_xid ; }; struct lov_oinfo { struct ost_id loi_oi ; int loi_ost_idx ; int loi_ost_gen ; unsigned char loi_kms_valid : 1 ; __u64 loi_kms ; struct ost_lvb loi_lvb ; struct osc_async_rc loi_ar ; }; struct __anonstruct_lsm_wire_395 { struct ost_id lw_object_oi ; __u32 lw_magic ; __u32 lw_stripe_size ; __u32 lw_pattern ; __u16 lw_stripe_count ; __u16 lw_layout_gen ; char lw_pool_name[16U] ; }; struct lov_stripe_md { atomic_t lsm_refc ; spinlock_t lsm_lock ; pid_t lsm_lock_owner ; __u64 lsm_maxbytes ; struct __anonstruct_lsm_wire_395 lsm_wire ; struct lov_oinfo *lsm_oinfo[0U] ; }; struct obd_info { ldlm_policy_data_t oi_policy ; __u64 oi_flags ; struct lustre_handle *oi_lockh ; struct lov_stripe_md *oi_md ; struct obdo *oi_oa ; struct obd_statfs *oi_osfs ; int (*oi_cb_up)(void * , int ) ; void *oi_capa ; char *oi_jobid ; }; struct md_ops; struct obd_type { struct list_head typ_chain ; struct obd_ops *typ_dt_ops ; struct md_ops *typ_md_ops ; struct dentry *typ_debugfs_entry ; char *typ_name ; int typ_refcnt ; struct lu_device_type *typ_lu ; spinlock_t obd_type_lock ; struct kobject *typ_kobj ; }; struct brw_page { u64 off ; struct page *pg ; int count ; u32 flag ; }; struct timeout_item { enum timeout_event ti_event ; unsigned long ti_timeout ; int (*ti_cb)(struct timeout_item * , void * ) ; void *ti_cb_data ; struct list_head ti_obd_list ; struct list_head ti_chain ; }; struct mdc_rpc_lock; struct cl_client_cache; struct local_oid_storage; struct client_obd { struct rw_semaphore cl_sem ; struct obd_uuid cl_target_uuid ; struct obd_import *cl_import ; int cl_conn_count ; int cl_default_mds_easize ; int cl_max_mds_easize ; int cl_default_mds_cookiesize ; int cl_max_mds_cookiesize ; enum lustre_sec_part cl_sp_me ; enum lustre_sec_part cl_sp_to ; struct sptlrpc_flavor cl_flvr_mgc ; long cl_dirty ; long cl_dirty_max ; long cl_dirty_transit ; long cl_avail_grant ; long cl_lost_grant ; long cl_reserved_grant ; struct list_head cl_cache_waiters ; unsigned long cl_next_shrink_grant ; struct list_head cl_grant_shrink_list ; int cl_grant_shrink_interval ; int cl_chunkbits ; int cl_chunk ; int cl_extent_tax ; client_obd_lock_t cl_loi_list_lock ; struct list_head cl_loi_ready_list ; struct list_head cl_loi_hp_ready_list ; struct list_head cl_loi_write_list ; struct list_head cl_loi_read_list ; int cl_r_in_flight ; int cl_w_in_flight ; atomic_t cl_pending_w_pages ; atomic_t cl_pending_r_pages ; __u32 cl_max_pages_per_rpc ; int cl_max_rpcs_in_flight ; struct obd_histogram cl_read_rpc_hist ; struct obd_histogram cl_write_rpc_hist ; struct obd_histogram cl_read_page_hist ; struct obd_histogram cl_write_page_hist ; struct obd_histogram cl_read_offset_hist ; struct obd_histogram cl_write_offset_hist ; struct cl_client_cache *cl_cache ; struct list_head cl_lru_osc ; atomic_t *cl_lru_left ; atomic_t cl_lru_busy ; atomic_t cl_lru_shrinkers ; atomic_t cl_lru_in_list ; struct list_head cl_lru_list ; client_obd_lock_t cl_lru_list_lock ; atomic_t cl_destroy_in_flight ; wait_queue_head_t cl_destroy_waitq ; struct mdc_rpc_lock *cl_rpc_lock ; struct mdc_rpc_lock *cl_close_lock ; struct mutex cl_mgc_mutex ; struct local_oid_storage *cl_mgc_los ; struct dt_object *cl_mgc_configs_dir ; atomic_t cl_mgc_refcount ; struct obd_export *cl_mgc_mgsexp ; unsigned char cl_checksum : 1 ; __u32 cl_supp_cksum_types ; cksum_type_t cl_cksum_type ; struct osc_async_rc cl_ar ; int cl_qchk_stat ; struct lu_client_seq *cl_seq ; atomic_t cl_resends ; void *cl_writeback_work ; struct cfs_hash *cl_quota_hash[3U] ; }; struct echo_client_obd { struct obd_export *ec_exp ; spinlock_t ec_lock ; struct list_head ec_objects ; struct list_head ec_locks ; int ec_nstripes ; __u64 ec_unique ; }; struct lov_qos_oss { struct obd_uuid lqo_uuid ; struct list_head lqo_oss_list ; __u64 lqo_bavail ; __u64 lqo_penalty ; __u64 lqo_penalty_per_obj ; time_t lqo_used ; __u32 lqo_ost_count ; }; struct ltd_qos { struct lov_qos_oss *ltq_oss ; __u64 ltq_penalty ; __u64 ltq_penalty_per_obj ; __u64 ltq_weight ; time_t ltq_used ; unsigned char ltq_usable : 1 ; }; struct ost_pool { __u32 *op_array ; unsigned int op_count ; unsigned int op_size ; struct rw_semaphore op_rw_sem ; }; struct lov_tgt_desc { struct list_head ltd_kill ; struct obd_uuid ltd_uuid ; struct obd_device *ltd_obd ; struct obd_export *ltd_exp ; struct ltd_qos ltd_qos ; __u32 ltd_gen ; __u32 ltd_index ; unsigned char ltd_active : 1 ; unsigned char ltd_activate : 1 ; unsigned char ltd_reap : 1 ; }; struct lov_obd { struct lov_desc desc ; struct lov_tgt_desc **lov_tgts ; struct ost_pool lov_packed ; struct mutex lov_lock ; struct obd_connect_data lov_ocd ; atomic_t lov_refcount ; __u32 lov_tgt_count ; __u32 lov_active_tgt_count ; __u32 lov_death_row ; __u32 lov_tgt_size ; int lov_connects ; int lov_pool_count ; struct cfs_hash *lov_pools_hash_body ; struct list_head lov_pool_list ; struct dentry *lov_pool_debugfs_entry ; enum lustre_sec_part lov_sp_me ; void *lov_cache ; struct rw_semaphore lov_notify_lock ; struct kobject *lov_tgts_kobj ; }; struct lmv_tgt_desc { struct obd_uuid ltd_uuid ; struct obd_export *ltd_exp ; int ltd_idx ; struct mutex ltd_fid_mutex ; unsigned char ltd_active : 1 ; }; enum placement_policy { PLACEMENT_CHAR_POLICY = 0, PLACEMENT_NID_POLICY = 1, PLACEMENT_INVAL_POLICY = 2, PLACEMENT_MAX_POLICY = 3 } ; struct lmv_obd { int refcount ; struct lu_client_fld lmv_fld ; spinlock_t lmv_lock ; enum placement_policy lmv_placement ; struct lmv_desc desc ; struct obd_uuid cluuid ; struct obd_export *exp ; struct mutex init_mutex ; int connected ; int max_easize ; int max_def_easize ; int max_cookiesize ; int max_def_cookiesize ; int server_timeout ; int tgts_size ; struct lmv_tgt_desc **tgts ; struct obd_connect_data conn_data ; struct kobject *lmv_tgts_kobj ; }; struct niobuf_local { __u64 lnb_file_offset ; __u32 lnb_page_offset ; __u32 len ; __u32 flags ; struct page *page ; struct dentry *dentry ; int lnb_grant_used ; int rc ; }; struct oti_req_ack_lock { struct lustre_handle lock ; __u32 mode ; }; struct obd_trans_info { __u64 oti_transno ; __u64 oti_xid ; struct oti_req_ack_lock oti_ack_locks[4U] ; void *oti_handle ; struct llog_cookie oti_onecookie ; struct llog_cookie *oti_logcookies ; int oti_numcookies ; unsigned char oti_sync_write : 1 ; struct ptlrpc_thread *oti_thread ; __u32 oti_conn_cnt ; __u64 oti_pre_version ; char *oti_jobid ; struct obd_uuid *oti_ost_uuid ; }; enum obd_notify_event { OBD_NOTIFY_CREATE = 0, OBD_NOTIFY_CONNECT = 1, OBD_NOTIFY_ACTIVE = 2, OBD_NOTIFY_INACTIVE = 3, OBD_NOTIFY_DISCON = 4, OBD_NOTIFY_OCD = 5, OBD_NOTIFY_SYNC_NONBLOCK = 6, OBD_NOTIFY_SYNC = 7, OBD_NOTIFY_CONFIG = 8, OBD_NOTIFY_DEACTIVATE = 9, OBD_NOTIFY_ACTIVATE = 10 } ; struct obd_notify_upcall { int (*onu_upcall)(struct obd_device * , struct obd_device * , enum obd_notify_event , void * , void * ) ; void *onu_owner ; }; struct target_recovery_data { int (*trd_recovery_handler)(struct ptlrpc_request * ) ; pid_t trd_processing_task ; struct completion trd_starting ; struct completion trd_finishing ; }; struct llog_ctxt; struct obd_llog_group { int olg_seq ; struct llog_ctxt *olg_ctxts[16U] ; wait_queue_head_t olg_waitq ; spinlock_t olg_lock ; struct mutex olg_cat_processing ; }; struct lvfs_run_ctxt { struct dt_device *dt ; }; union __anonunion_u_396 { struct client_obd cli ; struct echo_client_obd echo_client ; struct lov_obd lov ; struct lmv_obd lmv ; }; struct obd_device { struct obd_type *obd_type ; __u32 obd_magic ; char obd_name[128U] ; struct obd_uuid obd_uuid ; struct lu_device *obd_lu_dev ; int obd_minor ; unsigned char obd_attached : 1 ; unsigned char obd_set_up : 1 ; unsigned char obd_recovering : 1 ; unsigned char obd_abort_recovery : 1 ; unsigned char obd_version_recov : 1 ; unsigned char obd_replayable : 1 ; unsigned char obd_no_transno : 1 ; unsigned char obd_no_recov : 1 ; unsigned char obd_stopping : 1 ; unsigned char obd_starting : 1 ; unsigned char obd_force : 1 ; unsigned char obd_fail : 1 ; unsigned char obd_async_recov : 1 ; unsigned char obd_no_conn : 1 ; unsigned char obd_inactive : 1 ; unsigned char obd_no_ir : 1 ; unsigned char obd_process_conf : 1 ; unsigned char obd_recovery_expired : 1 ; struct cfs_hash *obd_uuid_hash ; struct cfs_hash *obd_nid_hash ; atomic_t obd_refcount ; wait_queue_head_t obd_refcount_waitq ; struct list_head obd_exports ; struct list_head obd_unlinked_exports ; struct list_head obd_delayed_exports ; int obd_num_exports ; spinlock_t obd_nid_lock ; struct ldlm_namespace *obd_namespace ; struct ptlrpc_client obd_ldlm_client ; spinlock_t obd_dev_lock ; struct mutex obd_dev_mutex ; __u64 obd_last_committed ; spinlock_t obd_osfs_lock ; struct obd_statfs obd_osfs ; __u64 obd_osfs_age ; struct lvfs_run_ctxt obd_lvfs_ctxt ; struct obd_llog_group obd_olg ; struct obd_device *obd_observer ; struct rw_semaphore obd_observer_link_sem ; struct obd_notify_upcall obd_upcall ; struct obd_export *obd_self_export ; struct list_head obd_exports_timed ; time_t obd_eviction_timer ; int obd_max_recoverable_clients ; atomic_t obd_connected_clients ; int obd_stale_clients ; int obd_delayed_clients ; spinlock_t obd_recovery_task_lock ; __u64 obd_next_recovery_transno ; int obd_replayed_requests ; int obd_requests_queued_for_recovery ; wait_queue_head_t obd_next_transno_waitq ; struct timer_list obd_recovery_timer ; time_t obd_recovery_start ; time_t obd_recovery_end ; int obd_recovery_time_hard ; int obd_recovery_timeout ; int obd_recovery_ir_factor ; struct target_recovery_data obd_recovery_data ; int obd_replayed_locks ; atomic_t obd_req_replay_clients ; atomic_t obd_lock_replay_clients ; struct list_head obd_req_replay_queue ; struct list_head obd_lock_replay_queue ; struct list_head obd_final_req_queue ; int obd_recovery_stage ; union __anonunion_u_396 u ; unsigned int obd_cntr_base ; struct lprocfs_stats *obd_stats ; unsigned int md_cntr_base ; struct lprocfs_stats *md_stats ; struct dentry *obd_debugfs_entry ; struct dentry *obd_svc_debugfs_entry ; struct lprocfs_stats *obd_svc_stats ; atomic_t obd_evict_inprogress ; wait_queue_head_t obd_evict_inprogress_waitq ; struct list_head obd_evict_list ; rwlock_t obd_pool_lock ; int obd_pool_limit ; __u64 obd_pool_slv ; struct lu_ref obd_reference ; int obd_conn_inprogress ; struct kobject obd_kobj ; struct completion obd_kobj_unregister ; }; enum obd_cleanup_stage { OBD_CLEANUP_EARLY = 0, OBD_CLEANUP_EXPORTS = 1 } ; struct md_op_data { struct lu_fid op_fid1 ; struct lu_fid op_fid2 ; struct lu_fid op_fid3 ; struct lu_fid op_fid4 ; u32 op_mds ; struct lustre_handle op_handle ; s64 op_mod_time ; char const *op_name ; int op_namelen ; __u32 op_mode ; struct lmv_stripe_md *op_mea1 ; struct lmv_stripe_md *op_mea2 ; __u32 op_suppgids[2U] ; __u32 op_fsuid ; __u32 op_fsgid ; cfs_cap_t op_cap ; void *op_data ; struct iattr op_attr ; unsigned int op_attr_flags ; __u64 op_valid ; loff_t op_attr_blocks ; __u64 op_ioepoch ; __u32 op_flags ; struct obd_capa *op_capa1 ; struct obd_capa *op_capa2 ; enum mds_op_bias op_bias ; __u32 op_opc ; __u64 op_offset ; __u32 op_npages ; __u32 op_cli_flags ; __u64 op_data_version ; struct lustre_handle op_lease_handle ; }; struct md_enqueue_info; struct md_enqueue_info { struct md_op_data mi_data ; struct lookup_intent mi_it ; struct lustre_handle mi_lockh ; struct inode *mi_dir ; int (*mi_cb)(struct ptlrpc_request * , struct md_enqueue_info * , int ) ; __u64 mi_cbdata ; unsigned int mi_generation ; }; struct obd_ops { struct module *o_owner ; int (*o_iocontrol)(unsigned int , struct obd_export * , int , void * , void * ) ; int (*o_get_info)(struct lu_env const * , struct obd_export * , __u32 , void * , __u32 * , void * , struct lov_stripe_md * ) ; int (*o_set_info_async)(struct lu_env const * , struct obd_export * , __u32 , void * , __u32 , void * , struct ptlrpc_request_set * ) ; int (*o_attach)(struct obd_device * , u32 , void * ) ; int (*o_detach)(struct obd_device * ) ; int (*o_setup)(struct obd_device * , struct lustre_cfg * ) ; int (*o_precleanup)(struct obd_device * , enum obd_cleanup_stage ) ; int (*o_cleanup)(struct obd_device * ) ; int (*o_process_config)(struct obd_device * , u32 , void * ) ; int (*o_postrecov)(struct obd_device * ) ; int (*o_add_conn)(struct obd_import * , struct obd_uuid * , int ) ; int (*o_del_conn)(struct obd_import * , struct obd_uuid * ) ; int (*o_connect)(struct lu_env const * , struct obd_export ** , struct obd_device * , struct obd_uuid * , struct obd_connect_data * , void * ) ; int (*o_reconnect)(struct lu_env const * , struct obd_export * , struct obd_device * , struct obd_uuid * , struct obd_connect_data * , void * ) ; int (*o_disconnect)(struct obd_export * ) ; int (*o_fid_init)(struct obd_device * , struct obd_export * , enum lu_cli_type ) ; int (*o_fid_fini)(struct obd_device * ) ; int (*o_fid_alloc)(struct obd_export * , struct lu_fid * , struct md_op_data * ) ; int (*o_statfs)(struct lu_env const * , struct obd_export * , struct obd_statfs * , __u64 , __u32 ) ; int (*o_statfs_async)(struct obd_export * , struct obd_info * , __u64 , struct ptlrpc_request_set * ) ; int (*o_packmd)(struct obd_export * , struct lov_mds_md_v1 ** , struct lov_stripe_md * ) ; int (*o_unpackmd)(struct obd_export * , struct lov_stripe_md ** , struct lov_mds_md_v1 * , int ) ; int (*o_preallocate)(struct lustre_handle * , u32 * , u64 * ) ; int (*o_create)(struct lu_env const * , struct obd_export * , struct obdo * , struct lov_stripe_md ** , struct obd_trans_info * ) ; int (*o_destroy)(struct lu_env const * , struct obd_export * , struct obdo * , struct lov_stripe_md * , struct obd_trans_info * , struct obd_export * , void * ) ; int (*o_setattr)(struct lu_env const * , struct obd_export * , struct obd_info * , struct obd_trans_info * ) ; int (*o_setattr_async)(struct obd_export * , struct obd_info * , struct obd_trans_info * , struct ptlrpc_request_set * ) ; int (*o_getattr)(struct lu_env const * , struct obd_export * , struct obd_info * ) ; int (*o_getattr_async)(struct obd_export * , struct obd_info * , struct ptlrpc_request_set * ) ; int (*o_adjust_kms)(struct obd_export * , struct lov_stripe_md * , u64 , int ) ; int (*o_preprw)(struct lu_env const * , int , struct obd_export * , struct obdo * , int , struct obd_ioobj * , struct niobuf_remote * , int * , struct niobuf_local * , struct obd_trans_info * , struct lustre_capa * ) ; int (*o_commitrw)(struct lu_env const * , int , struct obd_export * , struct obdo * , int , struct obd_ioobj * , struct niobuf_remote * , int , struct niobuf_local * , struct obd_trans_info * , int ) ; int (*o_find_cbdata)(struct obd_export * , struct lov_stripe_md * , int (*)(struct ldlm_lock * , void * ) , void * ) ; int (*o_init_export)(struct obd_export * ) ; int (*o_destroy_export)(struct obd_export * ) ; int (*o_import_event)(struct obd_device * , struct obd_import * , enum obd_import_event ) ; int (*o_notify)(struct obd_device * , struct obd_device * , enum obd_notify_event , void * ) ; int (*o_health_check)(struct lu_env const * , struct obd_device * ) ; struct obd_uuid *(*o_get_uuid)(struct obd_export * ) ; int (*o_quotacheck)(struct obd_device * , struct obd_export * , struct obd_quotactl * ) ; int (*o_quotactl)(struct obd_device * , struct obd_export * , struct obd_quotactl * ) ; int (*o_pool_new)(struct obd_device * , char * ) ; int (*o_pool_del)(struct obd_device * , char * ) ; int (*o_pool_add)(struct obd_device * , char * , char * ) ; int (*o_pool_rem)(struct obd_device * , char * , char * ) ; void (*o_getref)(struct obd_device * ) ; void (*o_putref)(struct obd_device * ) ; }; struct lustre_md { struct mdt_body *body ; struct lov_stripe_md *lsm ; struct lmv_stripe_md *mea ; struct posix_acl *posix_acl ; struct mdt_remote_perm *remote_perm ; struct obd_capa *mds_capa ; struct obd_capa *oss_capa ; }; struct md_open_data { struct obd_client_handle *mod_och ; struct ptlrpc_request *mod_open_req ; struct ptlrpc_request *mod_close_req ; atomic_t mod_refcount ; bool mod_is_create ; }; struct md_ops { int (*m_getstatus)(struct obd_export * , struct lu_fid * , struct obd_capa ** ) ; int (*m_null_inode)(struct obd_export * , struct lu_fid const * ) ; int (*m_find_cbdata)(struct obd_export * , struct lu_fid const * , int (*)(struct ldlm_lock * , void * ) , void * ) ; int (*m_close)(struct obd_export * , struct md_op_data * , struct md_open_data * , struct ptlrpc_request ** ) ; int (*m_create)(struct obd_export * , struct md_op_data * , void const * , int , int , __u32 , __u32 , cfs_cap_t , __u64 , struct ptlrpc_request ** ) ; int (*m_done_writing)(struct obd_export * , struct md_op_data * , struct md_open_data * ) ; int (*m_enqueue)(struct obd_export * , struct ldlm_enqueue_info * , struct lookup_intent * , struct md_op_data * , struct lustre_handle * , void * , int , struct ptlrpc_request ** , __u64 ) ; int (*m_getattr)(struct obd_export * , struct md_op_data * , struct ptlrpc_request ** ) ; int (*m_getattr_name)(struct obd_export * , struct md_op_data * , struct ptlrpc_request ** ) ; int (*m_intent_lock)(struct obd_export * , struct md_op_data * , void * , int , struct lookup_intent * , int , struct ptlrpc_request ** , int (*)(struct ldlm_lock * , struct ldlm_lock_desc * , void * , int ) , __u64 ) ; int (*m_link)(struct obd_export * , struct md_op_data * , struct ptlrpc_request ** ) ; int (*m_rename)(struct obd_export * , struct md_op_data * , char const * , int , char const * , int , struct ptlrpc_request ** ) ; int (*m_is_subdir)(struct obd_export * , struct lu_fid const * , struct lu_fid const * , struct ptlrpc_request ** ) ; int (*m_setattr)(struct obd_export * , struct md_op_data * , void * , int , void * , int , struct ptlrpc_request ** , struct md_open_data ** ) ; int (*m_sync)(struct obd_export * , struct lu_fid const * , struct obd_capa * , struct ptlrpc_request ** ) ; int (*m_readpage)(struct obd_export * , struct md_op_data * , struct page ** , struct ptlrpc_request ** ) ; int (*m_unlink)(struct obd_export * , struct md_op_data * , struct ptlrpc_request ** ) ; int (*m_setxattr)(struct obd_export * , struct lu_fid const * , struct obd_capa * , u64 , char const * , char const * , int , int , int , __u32 , struct ptlrpc_request ** ) ; int (*m_getxattr)(struct obd_export * , struct lu_fid const * , struct obd_capa * , u64 , char const * , char const * , int , int , int , struct ptlrpc_request ** ) ; int (*m_init_ea_size)(struct obd_export * , int , int , int , int ) ; int (*m_get_lustre_md)(struct obd_export * , struct ptlrpc_request * , struct obd_export * , struct obd_export * , struct lustre_md * ) ; int (*m_free_lustre_md)(struct obd_export * , struct lustre_md * ) ; int (*m_set_open_replay_data)(struct obd_export * , struct obd_client_handle * , struct lookup_intent * ) ; int (*m_clear_open_replay_data)(struct obd_export * , struct obd_client_handle * ) ; int (*m_set_lock_data)(struct obd_export * , __u64 * , void * , __u64 * ) ; ldlm_mode_t (*m_lock_match)(struct obd_export * , __u64 , struct lu_fid const * , ldlm_type_t , ldlm_policy_data_t * , ldlm_mode_t , struct lustre_handle * ) ; int (*m_cancel_unused)(struct obd_export * , struct lu_fid const * , ldlm_policy_data_t * , ldlm_mode_t , ldlm_cancel_flags_t , void * ) ; int (*m_renew_capa)(struct obd_export * , struct obd_capa * , int (*)(struct obd_capa * , struct lustre_capa * ) ) ; int (*m_unpack_capa)(struct obd_export * , struct ptlrpc_request * , struct req_msg_field const * , struct obd_capa ** ) ; int (*m_get_remote_perm)(struct obd_export * , struct lu_fid const * , struct obd_capa * , __u32 , struct ptlrpc_request ** ) ; int (*m_intent_getattr_async)(struct obd_export * , struct md_enqueue_info * , struct ldlm_enqueue_info * ) ; int (*m_revalidate_lock)(struct obd_export * , struct lookup_intent * , struct lu_fid * , __u64 * ) ; }; enum async_flags { ASYNC_READY = 1, ASYNC_URGENT = 2, ASYNC_COUNT_STABLE = 4, ASYNC_HP = 16 } ; struct osc_object; struct osc_async_page { int oap_magic ; unsigned short oap_cmd ; unsigned char oap_interrupted : 1 ; struct list_head oap_pending_item ; struct list_head oap_rpc_item ; u64 oap_obj_off ; unsigned int oap_page_off ; enum async_flags oap_async_flags ; struct brw_page oap_brw_page ; struct ptlrpc_request *oap_request ; struct client_obd *oap_cli ; struct osc_object *oap_obj ; struct ldlm_lock *oap_ldlm_lock ; spinlock_t oap_lock ; }; struct cl_device; struct cl_device_operations; struct cl_page; struct cl_lock; struct cl_lock_operations; struct cl_page_operations; struct cl_req; struct cl_device_operations { int (*cdo_req_init)(struct lu_env const * , struct cl_device * , struct cl_req * ) ; }; struct cl_device { struct lu_device cd_lu_dev ; struct cl_device_operations const *cd_ops ; }; struct cl_attr { loff_t cat_size ; loff_t cat_kms ; time_t cat_mtime ; time_t cat_atime ; time_t cat_ctime ; __u64 cat_blocks ; uid_t cat_uid ; gid_t cat_gid ; }; struct cl_object_operations; struct cl_object { struct lu_object co_lu ; struct cl_object_operations const *co_ops ; int co_slice_off ; }; union __anonunion_u_397 { struct lustre_md *coc_md ; struct lov_oinfo *coc_oinfo ; }; struct cl_object_conf { struct lu_object_conf coc_lu ; union __anonunion_u_397 u ; struct inode *coc_inode ; struct ldlm_lock *coc_lock ; int coc_opc ; }; struct cl_object_operations { int (*coo_page_init)(struct lu_env const * , struct cl_object * , struct cl_page * , struct page * ) ; int (*coo_lock_init)(struct lu_env const * , struct cl_object * , struct cl_lock * , struct cl_io const * ) ; int (*coo_io_init)(struct lu_env const * , struct cl_object * , struct cl_io * ) ; int (*coo_attr_get)(struct lu_env const * , struct cl_object * , struct cl_attr * ) ; int (*coo_attr_set)(struct lu_env const * , struct cl_object * , struct cl_attr const * , unsigned int ) ; int (*coo_conf_set)(struct lu_env const * , struct cl_object * , struct cl_object_conf const * ) ; int (*coo_glimpse)(struct lu_env const * , struct cl_object const * , struct ost_lvb * ) ; }; enum cl_page_state { CPS_CACHED = 0, CPS_OWNED = 1, CPS_PAGEOUT = 2, CPS_PAGEIN = 3, CPS_FREEING = 4, CPS_NR = 5 } ; enum cl_page_type { CPT_CACHEABLE = 1, CPT_TRANSIENT = 2 } ; struct cl_sync_io; struct cl_page { atomic_t cp_ref ; struct cl_object *cp_obj ; unsigned long cp_index ; struct list_head cp_layers ; struct cl_page *cp_parent ; struct cl_page *cp_child ; enum cl_page_state const cp_state ; struct list_head cp_batch ; struct mutex cp_mutex ; struct list_head cp_flight ; int cp_error ; enum cl_page_type cp_type ; struct cl_io *cp_owner ; struct task_struct *cp_task ; struct cl_req *cp_req ; struct lu_ref cp_reference ; struct lu_ref_link cp_obj_ref ; struct lu_ref_link cp_queue_ref ; unsigned int cp_flags ; struct cl_sync_io *cp_sync_io ; }; struct cl_page_slice { struct cl_page *cpl_page ; struct cl_object *cpl_obj ; struct cl_page_operations const *cpl_ops ; struct list_head cpl_linkage ; }; enum cl_lock_mode { CLM_PHANTOM = 0, CLM_READ = 1, CLM_WRITE = 2, CLM_GROUP = 3 } ; enum cl_req_type { CRT_READ = 0, CRT_WRITE = 1, CRT_NR = 2 } ; struct __anonstruct_io_398 { int (*cpo_prep)(struct lu_env const * , struct cl_page_slice const * , struct cl_io * ) ; void (*cpo_completion)(struct lu_env const * , struct cl_page_slice const * , int ) ; int (*cpo_make_ready)(struct lu_env const * , struct cl_page_slice const * ) ; int (*cpo_cache_add)(struct lu_env const * , struct cl_page_slice const * , struct cl_io * ) ; }; struct cl_page_operations { struct page *(*cpo_vmpage)(struct lu_env const * , struct cl_page_slice const * ) ; int (*cpo_own)(struct lu_env const * , struct cl_page_slice const * , struct cl_io * , int ) ; void (*cpo_disown)(struct lu_env const * , struct cl_page_slice const * , struct cl_io * ) ; void (*cpo_assume)(struct lu_env const * , struct cl_page_slice const * , struct cl_io * ) ; void (*cpo_unassume)(struct lu_env const * , struct cl_page_slice const * , struct cl_io * ) ; void (*cpo_export)(struct lu_env const * , struct cl_page_slice const * , int ) ; int (*cpo_unmap)(struct lu_env const * , struct cl_page_slice const * , struct cl_io * ) ; int (*cpo_is_vmlocked)(struct lu_env const * , struct cl_page_slice const * ) ; void (*cpo_discard)(struct lu_env const * , struct cl_page_slice const * , struct cl_io * ) ; void (*cpo_delete)(struct lu_env const * , struct cl_page_slice const * ) ; void (*cpo_fini)(struct lu_env const * , struct cl_page_slice * ) ; int (*cpo_is_under_lock)(struct lu_env const * , struct cl_page_slice const * , struct cl_io * ) ; int (*cpo_print)(struct lu_env const * , struct cl_page_slice const * , void * , int (*)(struct lu_env const * , void * , char const * , ...) ) ; struct __anonstruct_io_398 io[2U] ; void (*cpo_clip)(struct lu_env const * , struct cl_page_slice const * , int , int ) ; int (*cpo_cancel)(struct lu_env const * , struct cl_page_slice const * ) ; int (*cpo_flush)(struct lu_env const * , struct cl_page_slice const * , struct cl_io * ) ; }; struct cl_lock_descr { struct cl_object *cld_obj ; unsigned long cld_start ; unsigned long cld_end ; __u64 cld_gid ; enum cl_lock_mode cld_mode ; __u32 cld_enq_flags ; }; enum cl_lock_state { CLS_NEW = 0, CLS_QUEUING = 1, CLS_ENQUEUED = 2, CLS_HELD = 3, CLS_INTRANSIT = 4, CLS_CACHED = 5, CLS_FREEING = 6, CLS_NR = 7 } ; struct cl_lock_closure { struct cl_lock *clc_origin ; struct list_head clc_list ; int clc_wait ; int clc_nr ; }; struct cl_lock { atomic_t cll_ref ; struct list_head cll_layers ; struct list_head cll_linkage ; struct cl_lock_descr cll_descr ; enum cl_lock_state cll_state ; wait_queue_head_t cll_wq ; struct mutex cll_guard ; struct task_struct *cll_guarder ; int cll_depth ; struct task_struct *cll_intransit_owner ; int cll_error ; int cll_holds ; int cll_users ; unsigned long cll_flags ; struct list_head cll_inclosure ; struct cl_lock *cll_conflict ; struct lu_ref cll_reference ; struct lu_ref cll_holders ; struct lu_ref_link cll_obj_ref ; struct lockdep_map dep_map ; }; struct cl_lock_slice { struct cl_lock *cls_lock ; struct cl_object *cls_obj ; struct cl_lock_operations const *cls_ops ; struct list_head cls_linkage ; }; struct cl_lock_operations { int (*clo_enqueue)(struct lu_env const * , struct cl_lock_slice const * , struct cl_io * , __u32 ) ; int (*clo_wait)(struct lu_env const * , struct cl_lock_slice const * ) ; int (*clo_unuse)(struct lu_env const * , struct cl_lock_slice const * ) ; int (*clo_use)(struct lu_env const * , struct cl_lock_slice const * ) ; void (*clo_state)(struct lu_env const * , struct cl_lock_slice const * , enum cl_lock_state ) ; int (*clo_fits_into)(struct lu_env const * , struct cl_lock_slice const * , struct cl_lock_descr const * , struct cl_io const * ) ; void (*clo_cancel)(struct lu_env const * , struct cl_lock_slice const * ) ; unsigned long (*clo_weigh)(struct lu_env const * , struct cl_lock_slice const * ) ; int (*clo_closure)(struct lu_env const * , struct cl_lock_slice const * , struct cl_lock_closure * ) ; int (*clo_modify)(struct lu_env const * , struct cl_lock_slice const * , struct cl_lock_descr const * ) ; void (*clo_delete)(struct lu_env const * , struct cl_lock_slice const * ) ; void (*clo_fini)(struct lu_env const * , struct cl_lock_slice * ) ; int (*clo_print)(struct lu_env const * , void * , int (*)(struct lu_env const * , void * , char const * , ...) , struct cl_lock_slice const * ) ; }; struct cl_page_list { unsigned int pl_nr ; struct list_head pl_pages ; struct task_struct *pl_owner ; }; struct cl_2queue { struct cl_page_list c2_qin ; struct cl_page_list c2_qout ; }; enum cl_io_type { CIT_READ = 0, CIT_WRITE = 1, CIT_SETATTR = 2, CIT_FAULT = 3, CIT_FSYNC = 4, CIT_MISC = 5, CIT_OP_NR = 6 } ; enum cl_io_state { CIS_ZERO = 0, CIS_INIT = 1, CIS_IT_STARTED = 2, CIS_LOCKED = 3, CIS_IO_GOING = 4, CIS_IO_FINISHED = 5, CIS_UNLOCKED = 6, CIS_IT_ENDED = 7, CIS_FINI = 8 } ; struct cl_io_operations; struct cl_io_slice { struct cl_io *cis_io ; struct cl_object *cis_obj ; struct cl_io_operations const *cis_iop ; struct list_head cis_linkage ; }; struct __anonstruct_op_399 { int (*cio_iter_init)(struct lu_env const * , struct cl_io_slice const * ) ; void (*cio_iter_fini)(struct lu_env const * , struct cl_io_slice const * ) ; int (*cio_lock)(struct lu_env const * , struct cl_io_slice const * ) ; void (*cio_unlock)(struct lu_env const * , struct cl_io_slice const * ) ; int (*cio_start)(struct lu_env const * , struct cl_io_slice const * ) ; void (*cio_end)(struct lu_env const * , struct cl_io_slice const * ) ; void (*cio_advance)(struct lu_env const * , struct cl_io_slice const * , size_t ) ; void (*cio_fini)(struct lu_env const * , struct cl_io_slice const * ) ; }; struct __anonstruct_req_op_400 { int (*cio_submit)(struct lu_env const * , struct cl_io_slice const * , enum cl_req_type , struct cl_2queue * ) ; }; struct cl_io_operations { struct __anonstruct_op_399 op[6U] ; struct __anonstruct_req_op_400 req_op[2U] ; int (*cio_read_page)(struct lu_env const * , struct cl_io_slice const * , struct cl_page_slice const * ) ; int (*cio_prepare_write)(struct lu_env const * , struct cl_io_slice const * , struct cl_page_slice const * , unsigned int , unsigned int ) ; int (*cio_commit_write)(struct lu_env const * , struct cl_io_slice const * , struct cl_page_slice const * , unsigned int , unsigned int ) ; int (*cio_print)(struct lu_env const * , void * , int (*)(struct lu_env const * , void * , char const * , ...) , struct cl_io_slice const * ) ; }; struct cl_lockset { struct list_head cls_todo ; struct list_head cls_curr ; struct list_head cls_done ; }; enum cl_io_lock_dmd { CILR_MANDATORY = 0, CILR_MAYBE = 1, CILR_NEVER = 2 } ; enum cl_fsync_mode { CL_FSYNC_NONE = 0, CL_FSYNC_LOCAL = 1, CL_FSYNC_DISCARD = 2, CL_FSYNC_ALL = 3 } ; struct cl_io_rw_common { loff_t crw_pos ; size_t crw_count ; int crw_nonblock ; }; struct cl_rd_io { struct cl_io_rw_common rd ; }; struct cl_wr_io { struct cl_io_rw_common wr ; int wr_append ; int wr_sync ; }; struct cl_setattr_io { struct ost_lvb sa_attr ; unsigned int sa_valid ; struct obd_capa *sa_capa ; }; struct cl_fault_io { unsigned long ft_index ; int ft_nob ; int ft_writable ; int ft_executable ; int ft_mkwrite ; struct cl_page *ft_page ; }; struct cl_fsync_io { loff_t fi_start ; loff_t fi_end ; struct obd_capa *fi_capa ; struct lu_fid *fi_fid ; enum cl_fsync_mode fi_mode ; unsigned int fi_nr_written ; }; union __anonunion_u_401 { struct cl_rd_io ci_rd ; struct cl_wr_io ci_wr ; struct cl_io_rw_common ci_rw ; struct cl_setattr_io ci_setattr ; struct cl_fault_io ci_fault ; struct cl_fsync_io ci_fsync ; }; struct cl_io { enum cl_io_type ci_type ; enum cl_io_state ci_state ; struct cl_object *ci_obj ; struct cl_io *ci_parent ; struct list_head ci_layers ; struct cl_lockset ci_lockset ; enum cl_io_lock_dmd ci_lockreq ; union __anonunion_u_401 u ; struct cl_2queue ci_queue ; size_t ci_nob ; int ci_result ; unsigned char ci_continue : 1 ; unsigned char ci_no_srvlock : 1 ; unsigned char ci_need_restart : 1 ; unsigned char ci_ignore_layout : 1 ; unsigned char ci_verify_layout : 1 ; unsigned char ci_restore_needed : 1 ; unsigned char ci_noatime : 1 ; unsigned int ci_owned_nr ; }; struct cl_req_attr { struct obdo *cra_oa ; struct obd_capa *cra_capa ; char cra_jobid[32U] ; }; struct cl_req_operations { int (*cro_prep)(struct lu_env const * , struct cl_req_slice const * ) ; void (*cro_attr_set)(struct lu_env const * , struct cl_req_slice const * , struct cl_object const * , struct cl_req_attr * , u64 ) ; void (*cro_completion)(struct lu_env const * , struct cl_req_slice const * , int ) ; }; struct cl_req_obj { struct cl_object *ro_obj ; struct lu_ref_link ro_obj_ref ; }; struct cl_req { enum cl_req_type crq_type ; struct list_head crq_pages ; unsigned int crq_nrpages ; struct cl_req_obj *crq_o ; unsigned int crq_nrobjs ; struct list_head crq_layers ; }; struct cl_req_slice { struct cl_req *crs_req ; struct cl_device *crs_dev ; struct list_head crs_linkage ; struct cl_req_operations const *crs_ops ; }; struct cl_sync_io { atomic_t csi_sync_nr ; int csi_sync_rc ; atomic_t csi_barrier ; wait_queue_head_t csi_waitq ; }; struct cl_client_cache { atomic_t ccc_users ; struct list_head ccc_lru ; spinlock_t ccc_lru_lock ; atomic_t ccc_lru_left ; unsigned long ccc_lru_max ; unsigned int ccc_lru_shrinkers ; }; struct osc_extent; struct osc_thread_info { struct ldlm_res_id oti_resname ; ldlm_policy_data_t oti_policy ; struct cl_lock_descr oti_descr ; struct cl_attr oti_attr ; struct lustre_handle oti_handle ; struct cl_page_list oti_plist ; struct cl_io oti_io ; struct cl_page *oti_pvec[64U] ; }; struct osc_object { struct cl_object oo_cl ; struct lov_oinfo *oo_oinfo ; int oo_contended ; unsigned long oo_contention_time ; struct list_head oo_inflight[2U] ; spinlock_t oo_seatbelt ; struct list_head oo_ready_item ; struct list_head oo_hp_ready_item ; struct list_head oo_write_item ; struct list_head oo_read_item ; struct rb_root oo_root ; struct list_head oo_hp_exts ; struct list_head oo_urgent_exts ; struct list_head oo_rpc_exts ; struct list_head oo_reading_exts ; atomic_t oo_nr_reads ; atomic_t oo_nr_writes ; spinlock_t oo_lock ; }; union __anonunion____missing_field_name_404 { struct list_head ops_lru ; struct list_head ops_inflight ; }; struct osc_page { struct cl_page_slice ops_cl ; struct osc_async_page ops_oap ; int ops_from ; int ops_to ; unsigned char ops_transfer_pinned : 1 ; unsigned char ops_temp : 1 ; unsigned char ops_in_lru : 1 ; unsigned char ops_srvlock : 1 ; union __anonunion____missing_field_name_404 __annonCompField116 ; struct task_struct *ops_submitter ; unsigned long ops_submit_time ; struct cl_lock *ops_lock ; }; struct osc_extent { struct rb_node oe_node ; struct osc_object *oe_obj ; atomic_t oe_refc ; atomic_t oe_users ; struct list_head oe_link ; unsigned int oe_state ; unsigned char oe_intree : 1 ; unsigned char oe_rw : 1 ; unsigned char oe_srvlock : 1 ; unsigned char oe_memalloc : 1 ; unsigned char oe_trunc_pending : 1 ; unsigned char oe_fsync_wait : 1 ; unsigned char oe_hp : 1 ; unsigned char oe_urgent : 1 ; unsigned int oe_grants ; unsigned int oe_nr_pages ; struct list_head oe_pages ; struct osc_page *oe_next_page ; unsigned long oe_start ; unsigned long oe_end ; unsigned long oe_max_end ; wait_queue_head_t oe_waitq ; struct cl_lock *oe_osclock ; struct task_struct *oe_owner ; int oe_rc ; unsigned int oe_mppr ; }; struct osc_brw_async_args { struct obdo *aa_oa ; int aa_requested_nob ; int aa_nio_count ; u32 aa_page_count ; int aa_resends ; struct brw_page **aa_ppga ; struct client_obd *aa_cli ; struct list_head aa_oaps ; struct list_head aa_exts ; struct obd_capa *aa_ocapa ; struct cl_req *aa_clerq ; }; struct osc_async_args { struct obd_info *aa_oi ; }; struct osc_setattr_args { struct obdo *sa_oa ; int (*sa_upcall)(void * , int ) ; void *sa_cookie ; }; struct osc_fsync_args { struct obd_info *fa_oi ; int (*fa_upcall)(void * , int ) ; void *fa_cookie ; }; struct osc_enqueue_args { struct obd_export *oa_exp ; __u64 *oa_flags ; int (*oa_upcall)(void * , int ) ; void *oa_cookie ; struct ost_lvb *oa_lvb ; struct lustre_handle *oa_lockh ; struct ldlm_enqueue_info *oa_ei ; unsigned char oa_agl : 1 ; }; typedef int ldv_func_ret_type; struct va_list; typedef __builtin_va_list __gnuc_va_list; typedef __gnuc_va_list va_list; enum hrtimer_restart; struct osc_stats { uint64_t os_lockless_writes ; uint64_t os_lockless_reads ; uint64_t os_lockless_truncates ; }; struct osc_device { struct cl_device od_cl ; struct obd_export *od_exp ; struct osc_stats od_stats ; int od_contention_time ; int od_lockless_truncate ; }; struct osc_async_cbargs { bool opc_rpc_sent ; int opc_rc ; struct completion opc_sync ; }; struct osc_io { struct cl_io_slice oi_cl ; int oi_lockless ; struct osc_extent *oi_active ; struct osc_extent *oi_trunc ; struct obd_info oi_info ; struct obdo oi_oa ; struct osc_async_cbargs oi_cbarg ; }; struct osc_session { struct osc_io os_io ; }; enum hrtimer_restart; struct cl_object_header { struct lu_object_header coh_lu ; spinlock_t coh_page_guard ; spinlock_t coh_lock_guard ; struct radix_tree_root coh_tree ; unsigned long coh_pages ; struct list_head coh_locks ; struct cl_object_header *coh_parent ; spinlock_t coh_attr_guard ; unsigned short coh_page_bufsize ; unsigned char coh_nesting ; }; enum hrtimer_restart; struct cl_env_nest { int cen_refcheck ; void *cen_cookie ; }; enum osc_lock_state { OLS_NEW = 0, OLS_ENQUEUED = 1, OLS_UPCALL_RECEIVED = 2, OLS_GRANTED = 3, OLS_RELEASED = 4, OLS_BLOCKED = 5, OLS_CANCELLED = 6 } ; struct osc_lock { struct cl_lock_slice ols_cl ; struct ldlm_lock *ols_lock ; struct ost_lvb ols_lvb ; __u64 ols_flags ; struct lustre_handle ols_handle ; struct ldlm_enqueue_info ols_einfo ; enum osc_lock_state ols_state ; atomic_t ols_pageref ; unsigned char ols_hold : 1 ; unsigned char ols_has_ref : 1 ; unsigned char ols_locklessable : 1 ; unsigned char ols_ast_wait : 1 ; unsigned char ols_flush : 1 ; unsigned char ols_glimpse : 1 ; unsigned char ols_agl : 1 ; struct osc_io *ols_owner ; }; enum hrtimer_restart; typedef int ldlm_error_t; enum hrtimer_restart; struct osc_req { struct cl_req_slice or_cl ; }; enum hrtimer_restart; typedef struct cfs_hash_ops cfs_hash_ops_t; struct osc_quota_info { struct hlist_node oqi_hash ; u32 oqi_id ; }; enum hrtimer_restart; struct osc_cache_waiter { struct list_head ocw_entry ; wait_queue_head_t ocw_waitq ; struct osc_async_page *ocw_oap ; int ocw_grant ; int ocw_rc ; }; struct __anonstruct___kernel_fsid_t_5 { int val[2U] ; }; typedef struct __anonstruct___kernel_fsid_t_5 __kernel_fsid_t; enum hrtimer_restart; struct kstatfs { long f_type ; long f_bsize ; u64 f_blocks ; u64 f_bfree ; u64 f_bavail ; u64 f_files ; u64 f_ffree ; __kernel_fsid_t f_fsid ; long f_namelen ; long f_frsize ; long f_flags ; long f_spare[4U] ; }; struct lustre_attr { struct attribute attr ; ssize_t (*show)(struct kobject * , struct attribute * , char * ) ; ssize_t (*store)(struct kobject * , struct attribute * , char const * , size_t ) ; }; __inline static long ldv__builtin_expect(long exp , long c ) ; extern struct module __this_module ; __inline static int constant_test_bit(long nr , unsigned long const volatile *addr ) { { return ((int )((unsigned long )*(addr + (unsigned long )(nr >> 6)) >> ((int )nr & 63)) & 1); } } extern void dump_stack(void) ; extern void __might_sleep(char const * , int , int ) ; extern void __might_fault(char const * , int ) ; bool ldv_is_err(void const *ptr ) ; long ldv_ptr_err(void const *ptr ) ; void ldv_spin_lock(void) ; void ldv_spin_unlock(void) ; int ldv_spin_trylock(void) ; extern void *malloc(size_t ) ; extern void *calloc(size_t , size_t ) ; extern void *memset(void * , int , size_t ) ; extern int __VERIFIER_nondet_int(void) ; extern unsigned long __VERIFIER_nondet_ulong(void) ; extern void abort(void); void assume_abort_if_not(int cond) { if(!cond) {abort();} } __inline static bool IS_ERR(void const *ptr ) ; void *ldv_malloc(size_t size ) { void *p ; void *tmp ; int tmp___0 ; { tmp___0 = __VERIFIER_nondet_int(); if (tmp___0 != 0) { return ((void *)0); } else { tmp = malloc(size); p = tmp; assume_abort_if_not((unsigned long )p != (unsigned long )((void *)0)); assume_abort_if_not(IS_ERR(p) == 0); return (p); } } } void *ldv_zalloc(size_t size ) { void *p ; void *tmp ; int tmp___0 ; { tmp___0 = __VERIFIER_nondet_int(); if (tmp___0 != 0) { return ((void *)0); } else { tmp = calloc(1UL, size); p = tmp; assume_abort_if_not((unsigned long )p != (unsigned long )((void *)0)); assume_abort_if_not(IS_ERR(p) == 0); return (p); } } } void *ldv_init_zalloc(size_t size ) { void *p ; void *tmp ; { tmp = calloc(1UL, size); p = tmp; assume_abort_if_not((unsigned long )p != (unsigned long )((void *)0)); return (p); } } void *ldv_memset(void *s , int c , size_t n ) { void *tmp ; { tmp = memset(s, c, n); return (tmp); } } int ldv_undef_int(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); return (tmp); } } unsigned long ldv_undef_ulong(void) { unsigned long tmp ; { tmp = __VERIFIER_nondet_ulong(); return (tmp); } } __inline static void ldv_stop(void) { { LDV_STOP: ; goto LDV_STOP; } } __inline static long ldv__builtin_expect(long exp , long c ) { { return (exp); } } __inline static void INIT_LIST_HEAD(struct list_head *list ) { { list->next = list; list->prev = list; return; } } extern void __list_add(struct list_head * , struct list_head * , struct list_head * ) ; __inline static void list_add(struct list_head *new , struct list_head *head ) { { __list_add(new, head, head->next); return; } } __inline static void list_add_tail(struct list_head *new , struct list_head *head ) { { __list_add(new, head->prev, head); return; } } extern void __list_del_entry(struct list_head * ) ; __inline static void list_del_init(struct list_head *entry ) { { __list_del_entry(entry); INIT_LIST_HEAD(entry); return; } } __inline static int list_empty(struct list_head const *head ) { { return ((unsigned long )((struct list_head const *)head->next) == (unsigned long )head); } } __inline static void __list_splice(struct list_head const *list , struct list_head *prev , struct list_head *next ) { struct list_head *first ; struct list_head *last ; { first = list->next; last = list->prev; first->prev = prev; prev->next = first; last->next = next; next->prev = last; return; } } __inline static void list_splice_init(struct list_head *list , struct list_head *head ) { int tmp ; { tmp = list_empty((struct list_head const *)list); if (tmp == 0) { __list_splice((struct list_head const *)list, head, head->next); INIT_LIST_HEAD(list); } else { } return; } } extern void __bad_percpu_size(void) ; extern struct task_struct *current_task ; __inline static struct task_struct *get_current(void) { struct task_struct *pfo_ret__ ; { switch (8UL) { case 1UL: __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "p" (& current_task)); goto ldv_3233; case 2UL: __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& current_task)); goto ldv_3233; case 4UL: __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& current_task)); goto ldv_3233; case 8UL: __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& current_task)); goto ldv_3233; default: __bad_percpu_size(); } ldv_3233: ; return (pfo_ret__); } } extern void *memcpy(void * , void const * , size_t ) ; extern void *memset(void * , int , size_t ) ; extern int memcmp(void const * , void const * , size_t ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; __inline static void rep_nop(void) { { __asm__ volatile ("rep; nop": : : "memory"); return; } } __inline static void cpu_relax(void) { { rep_nop(); return; } } extern void __xchg_wrong_size(void) ; extern void __xadd_wrong_size(void) ; __inline static int atomic_read(atomic_t const *v ) { int __var ; { __var = 0; return ((int )*((int const volatile *)(& v->counter))); } } __inline static void atomic_inc(atomic_t *v ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; incl %0": "+m" (v->counter)); return; } } __inline static void atomic_dec(atomic_t *v ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; decl %0": "+m" (v->counter)); return; } } __inline static int atomic_dec_and_test(atomic_t *v ) { char c ; { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; decl %0; sete %1": "+m" (v->counter), "=qm" (c): : "memory"); return ((int )((signed char )c) != 0); } } __inline static int atomic_add_return(int i , atomic_t *v ) { int __ret ; { __ret = i; switch (4UL) { case 1UL: __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; xaddb %b0, %1\n": "+q" (__ret), "+m" (v->counter): : "memory", "cc"); goto ldv_5763; case 2UL: __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; xaddw %w0, %1\n": "+r" (__ret), "+m" (v->counter): : "memory", "cc"); goto ldv_5763; case 4UL: __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; xaddl %0, %1\n": "+r" (__ret), "+m" (v->counter): : "memory", "cc"); goto ldv_5763; case 8UL: __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; xaddq %q0, %1\n": "+r" (__ret), "+m" (v->counter): : "memory", "cc"); goto ldv_5763; default: __xadd_wrong_size(); } ldv_5763: ; return (__ret + i); } } __inline static int atomic_sub_return(int i , atomic_t *v ) { int tmp ; { tmp = atomic_add_return(- i, v); return (tmp); } } extern int __preempt_count ; __inline static int preempt_count(void) { int pfo_ret__ ; { switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret__): "m" (__preempt_count)); goto ldv_6106; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6106; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6106; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6106; default: __bad_percpu_size(); } ldv_6106: ; return (pfo_ret__ & 2147483647); } } extern void lockdep_init_map(struct lockdep_map * , char const * , struct lock_class_key * , int ) ; __inline static int queued_spin_is_locked(struct qspinlock *lock ) { int tmp ; { tmp = atomic_read((atomic_t const *)(& lock->val)); return (tmp); } } extern void __raw_spin_lock_init(raw_spinlock_t * , char const * , struct lock_class_key * ) ; extern void _raw_spin_lock(raw_spinlock_t * ) ; extern int _raw_spin_trylock(raw_spinlock_t * ) ; extern void _raw_spin_unlock(raw_spinlock_t * ) ; __inline static raw_spinlock_t *spinlock_check(spinlock_t *lock ) { { return (& lock->__annonCompField18.rlock); } } __inline static void ldv_spin_lock_5(spinlock_t *lock ) { { _raw_spin_lock(& lock->__annonCompField18.rlock); return; } } __inline static void spin_lock(spinlock_t *lock ) ; __inline static int ldv_spin_trylock_7(spinlock_t *lock ) { int tmp ; { tmp = _raw_spin_trylock(& lock->__annonCompField18.rlock); return (tmp); } } __inline static int spin_trylock(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_9(spinlock_t *lock ) { { _raw_spin_unlock(& lock->__annonCompField18.rlock); return; } } __inline static void spin_unlock(spinlock_t *lock ) ; extern int default_wake_function(wait_queue_t * , unsigned int , int , void * ) ; __inline static void init_waitqueue_entry(wait_queue_t *q , struct task_struct *p ) { { q->flags = 0U; q->private = (void *)p; q->func = & default_wake_function; return; } } extern void add_wait_queue_exclusive(wait_queue_head_t * , wait_queue_t * ) ; extern void remove_wait_queue(wait_queue_head_t * , wait_queue_t * ) ; extern void __wake_up(wait_queue_head_t * , unsigned int , int , void * ) ; extern void down_read(struct rw_semaphore * ) ; extern void down_write(struct rw_semaphore * ) ; extern void up_read(struct rw_semaphore * ) ; extern void up_write(struct rw_semaphore * ) ; extern unsigned long volatile jiffies ; extern unsigned long get_seconds(void) ; extern bool try_module_get(struct module * ) ; extern void module_put(struct module * ) ; extern long schedule_timeout(long ) ; extern void schedule(void) ; extern void kfree(void const * ) ; void *ldv_kmem_cache_alloc_38(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; void *ldv_kmem_cache_alloc_39(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; extern void kmem_cache_free(struct kmem_cache * , void * ) ; __inline static void *kcalloc(size_t n , size_t size , gfp_t flags ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; void ldv_check_alloc_flags(gfp_t flags ) ; struct inode *osc_import_fops_group1 ; struct file *osc_stats_fops_group2 ; int ldv_state_variable_20 ; int ldv_state_variable_30 ; struct lu_env const *osc_lock_lockless_ops_group0 ; struct obd_device *osc_obd_ops_group8 ; int ldv_state_variable_0 ; struct kobject *lustre_attr_cur_grant_bytes_group0 ; int ldv_state_variable_12 ; int ldv_state_variable_22 ; struct inode *osc_ping_fops_group1 ; int ldv_state_variable_14 ; struct kobject *lustre_attr_max_pages_per_rpc_group0 ; struct cl_req_slice const *osc_req_ops_group1 ; struct file *osc_conn_uuid_fops_group2 ; struct kobject *lustre_attr_max_rpcs_in_flight_group0 ; int ldv_state_variable_37 ; int ldv_state_variable_29 ; struct attribute *lustre_attr_contention_seconds_group1 ; int ldv_state_variable_17 ; struct obd_import *osc_obd_ops_group5 ; int ldv_state_variable_19 ; struct cl_page_slice const *osc_page_ops_group2 ; int ldv_state_variable_27 ; int ldv_state_variable_9 ; struct obd_info *osc_obd_ops_group11 ; int ref_cnt ; struct inode *osc_checksum_type_fops_group1 ; struct lu_context const *osc_key_group0 ; int ldv_state_variable_7 ; int ldv_state_variable_23 ; struct lu_env const *osc_ops_group1 ; struct kobject *lustre_attr_checksums_group0 ; struct attribute *lustre_attr_checksums_group1 ; struct inode *osc_timeouts_fops_group1 ; struct obd_quotactl *osc_obd_ops_group10 ; struct inode *osc_cached_mb_fops_group1 ; struct inode *osc_rpc_stats_fops_group1 ; struct lu_context_key *osc_session_key_group1 ; struct cl_page_slice const *osc_io_ops_group2 ; int ldv_state_variable_6 ; struct lu_device *osc_device_type_ops_group1 ; struct lu_env const *osc_page_ops_group0 ; struct attribute *lustre_attr_cur_grant_bytes_group1 ; struct obd_uuid *osc_obd_ops_group9 ; int ldv_state_variable_26 ; int ldv_state_variable_28 ; struct file *osc_pinger_recov_fops_group2 ; struct file *osc_state_fops_group2 ; int LDV_IN_INTERRUPT = 1; int ldv_state_variable_38 ; struct file *osc_import_fops_group2 ; struct lu_env const *osc_lu_obj_ops_group0 ; struct lu_env const *osc_lu_ops_group1 ; struct inode *osc_stats_fops_group1 ; struct inode *osc_server_uuid_fops_group1 ; struct kobject *lustre_attr_max_dirty_mb_group0 ; struct obd_connect_data *osc_obd_ops_group7 ; int ldv_state_variable_3 ; struct kobject *lustre_attr_lockless_truncate_group0 ; struct obdo *osc_obd_ops_group0 ; int ldv_state_variable_31 ; int ldv_state_variable_4 ; int ldv_state_variable_36 ; struct lu_env const *osc_device_type_ops_group2 ; int ldv_state_variable_8 ; int ldv_state_variable_15 ; struct inode *osc_pinger_recov_fops_group1 ; struct inode *osc_conn_uuid_fops_group1 ; struct lov_stripe_md *osc_obd_ops_group6 ; struct cl_object *osc_ops_group0 ; struct obd_trans_info *osc_obd_ops_group12 ; int ldv_state_variable_5 ; int ldv_state_variable_21 ; struct attribute *lustre_attr_active_group1 ; int ldv_state_variable_33 ; int ldv_state_variable_13 ; struct kobject *lustre_attr_grant_shrink_interval_group0 ; struct kobject *lustre_attr_resend_count_group0 ; struct kobject *lustre_attr_contention_seconds_group0 ; struct file *osc_checksum_type_fops_group2 ; struct lu_env const *osc_req_ops_group0 ; struct lu_context_key *osc_key_group1 ; struct attribute *lustre_attr_max_pages_per_rpc_group1 ; struct attribute *lustre_attr_grant_shrink_interval_group1 ; struct cl_lock_slice const *osc_lock_lockless_ops_group1 ; struct lu_env const *osc_obd_ops_group3 ; int ldv_state_variable_24 ; struct attribute *lustre_attr_max_rpcs_in_flight_group1 ; struct attribute *lustre_attr_max_dirty_mb_group1 ; struct lu_env const *osc_io_ops_group0 ; struct ptlrpc_request_set *osc_obd_ops_group1 ; int ldv_state_variable_1 ; struct attribute *lustre_attr_resend_count_group1 ; struct cl_lock_slice const *osc_lock_ops_group1 ; int ldv_state_variable_10 ; struct inode *osc_connect_flags_fops_group1 ; struct lov_stripe_md **osc_obd_ops_group4 ; struct file *osc_rpc_stats_fops_group2 ; int ldv_state_variable_16 ; struct file *osc_timeouts_fops_group2 ; int ldv_state_variable_2 ; struct lu_device *osc_lu_ops_group0 ; int ldv_state_variable_25 ; struct cl_io *osc_page_ops_group1 ; struct file *osc_cached_mb_fops_group2 ; struct cl_io_slice const *osc_io_ops_group1 ; struct obd_export *osc_obd_ops_group2 ; struct inode *osc_state_fops_group1 ; struct attribute *lustre_attr_lockless_truncate_group1 ; int ldv_state_variable_11 ; struct lu_env const *osc_lock_ops_group0 ; int ldv_state_variable_18 ; struct lu_context const *osc_session_key_group0 ; struct kobject *lustre_attr_active_group0 ; struct lu_device_type *osc_device_type_ops_group0 ; struct lu_object *osc_lu_obj_ops_group1 ; int ldv_state_variable_32 ; int ldv_state_variable_34 ; struct file *osc_ping_fops_group2 ; struct file *osc_connect_flags_fops_group2 ; struct file *osc_server_uuid_fops_group2 ; int ldv_state_variable_35 ; void ldv_file_operations_7(void) ; void ldv_initialize_lustre_attr_17(void) ; void ldv_initialize_lustre_attr_24(void) ; void ldv_initialize_cl_lock_operations_28(void) ; void ldv_initialize_obd_ops_38(void) ; void ldv_file_operations_2(void) ; void ldv_initialize_lustre_attr_20(void) ; void ldv_initialize_cl_object_operations_32(void) ; void ldv_initialize_cl_page_operations_30(void) ; void ldv_initialize_lustre_attr_14(void) ; void ldv_file_operations_9(void) ; void ldv_file_operations_16(void) ; void ldv_file_operations_22(void) ; void ldv_initialize_lustre_attr_11(void) ; void ldv_initialize_lu_context_key_37(void) ; void ldv_file_operations_5(void) ; void ldv_initialize_lu_object_operations_31(void) ; void ldv_initialize_lustre_attr_18(void) ; void ldv_file_operations_4(void) ; void ldv_initialize_lustre_attr_25(void) ; void ldv_file_operations_6(void) ; void ldv_initialize_lu_device_operations_35(void) ; void ldv_initialize_cl_io_operations_27(void) ; void ldv_file_operations_10(void) ; void ldv_file_operations_1(void) ; void ldv_initialize_lustre_attr_13(void) ; void ldv_initialize_cl_lock_operations_29(void) ; void ldv_initialize_lustre_attr_23(void) ; void ldv_file_operations_3(void) ; void ldv_initialize_lustre_attr_15(void) ; void ldv_file_operations_8(void) ; void ldv_initialize_lu_device_type_operations_33(void) ; void ldv_initialize_lu_context_key_36(void) ; void ldv_initialize_cl_req_operations_26(void) ; __inline static int PageTail(struct page const *page ) { int tmp ; { tmp = constant_test_bit(15L, (unsigned long const volatile *)(& page->flags)); return (tmp); } } extern void kvfree(void const * ) ; __inline static struct page *compound_head_by_tail(struct page *tail ) { struct page *head ; int tmp ; long tmp___0 ; { head = tail->__annonCompField46.first_page; __asm__ volatile ("": : : "memory"); tmp = PageTail((struct page const *)tail); tmp___0 = ldv__builtin_expect(tmp != 0, 1L); if (tmp___0 != 0L) { return (head); } else { } return (tail); } } __inline static struct page *compound_head(struct page *page ) { struct page *tmp ; int tmp___0 ; long tmp___1 ; { tmp___0 = PageTail((struct page const *)page); tmp___1 = ldv__builtin_expect(tmp___0 != 0, 0L); if (tmp___1 != 0L) { tmp = compound_head_by_tail(page); return (tmp); } else { } return (page); } } __inline static int page_count(struct page *page ) { struct page *tmp ; int tmp___0 ; { tmp = compound_head(page); tmp___0 = atomic_read((atomic_t const *)(& tmp->__annonCompField42.__annonCompField41.__annonCompField40._count)); return (tmp___0); } } __inline static void *lowmem_page_address(struct page const *page ) { { return ((void *)((unsigned long )((unsigned long long )(((long )page + 24189255811072L) / 64L) << 12) + 0xffff880000000000UL)); } } extern unsigned long _copy_from_user(void * , void const * , unsigned int ) ; extern unsigned long _copy_to_user(void * , void const * , unsigned int ) ; extern void __copy_from_user_overflow(void) ; extern void __copy_to_user_overflow(void) ; __inline static unsigned long copy_from_user(void *to , void const *from , unsigned long n ) { int sz ; unsigned long tmp ; long tmp___0 ; { tmp = __builtin_object_size((void const *)to, 0); sz = (int )tmp; __might_fault("./arch/x86/include/asm/uaccess.h", 697); tmp___0 = ldv__builtin_expect((long )(sz < 0 || (unsigned long )sz >= n), 1L); if (tmp___0 != 0L) { n = _copy_from_user(to, from, (unsigned int )n); } else { __copy_from_user_overflow(); } return (n); } } __inline static unsigned long copy_to_user(void *to , void const *from , unsigned long n ) { int sz ; unsigned long tmp ; long tmp___0 ; { tmp = __builtin_object_size(from, 0); sz = (int )tmp; __might_fault("./arch/x86/include/asm/uaccess.h", 732); tmp___0 = ldv__builtin_expect((long )(sz < 0 || (unsigned long )sz >= n), 1L); if (tmp___0 != 0L) { n = _copy_to_user(to, from, (unsigned int )n); } else { __copy_to_user_overflow(); } return (n); } } __inline static void *kmap(struct page *page ) { void *tmp ; { __might_sleep("include/linux/highmem.h", 58, 0); tmp = lowmem_page_address((struct page const *)page); return (tmp); } } __inline static void kunmap(struct page *page ) { { return; } } struct sk_buff *ldv_skb_clone_28(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_36(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_30(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_26(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_34(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_35(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; void *ldv_malloc(size_t size ) ; struct sk_buff *ldv___netdev_alloc_skb_31(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_32(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_33(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static unsigned long cfs_time_current(void) { { return ((unsigned long )jiffies); } } __inline static long cfs_time_seconds(int seconds ) { { return ((long )seconds * 250L); } } extern sigset_t cfs_block_sigsinv(unsigned long ) ; extern void cfs_restore_sigs(sigset_t ) ; extern int cfs_signal_pending(void) ; extern void cfs_clear_sigpending(void) ; extern unsigned int libcfs_subsystem_debug ; extern unsigned int libcfs_debug ; __inline static int cfs_cdebug_show(unsigned int mask , unsigned int subsystem ) { { return ((mask & 33948672U) != 0U || ((libcfs_debug & mask) != 0U && (libcfs_subsystem_debug & subsystem) != 0U)); } } extern int libcfs_debug_msg(struct libcfs_debug_msg_data * , char const * , ...) ; extern void lbug_with_loc(struct libcfs_debug_msg_data * ) ; __inline static int cfs_memory_pressure_get_and_set(void) { int old ; struct task_struct *tmp ; struct task_struct *tmp___0 ; { tmp = get_current(); old = (int )tmp->flags & 2048; if (old == 0) { tmp___0 = get_current(); tmp___0->flags = tmp___0->flags | 2048U; } else { } return (old); } } __inline static void cfs_memory_pressure_restore(int old ) { struct task_struct *tmp ; struct task_struct *tmp___0 ; { if (old != 0) { tmp = get_current(); tmp->flags = tmp->flags | 2048U; } else { tmp___0 = get_current(); tmp___0->flags = tmp___0->flags & 4294965247U; } return; } } __inline static unsigned long cfs_time_add(unsigned long t , long d ) { { return (t + (unsigned long )d); } } __inline static unsigned long cfs_time_sub(unsigned long t1 , unsigned long t2 ) { { return (t1 - t2); } } __inline static int cfs_time_aftereq(unsigned long t1 , unsigned long t2 ) { { return ((long )(t1 - t2) >= 0L); } } __inline static unsigned long cfs_time_shift(int seconds ) { long tmp ; unsigned long tmp___0 ; unsigned long tmp___1 ; { tmp = cfs_time_seconds(seconds); tmp___0 = cfs_time_current(); tmp___1 = cfs_time_add(tmp___0, tmp); return (tmp___1); } } extern unsigned long cfs_fail_loc ; extern int __cfs_fail_check_set(__u32 , __u32 , int ) ; extern int __cfs_fail_timeout_set(__u32 , __u32 , int , int ) ; __inline static int cfs_fail_check_set(__u32 id , __u32 value , int set , int quiet ) { int ret ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; int tmp___1 ; long tmp___2 ; { ret = 0; if (cfs_fail_loc != 0UL && (((unsigned long )id ^ cfs_fail_loc) & 65535UL) == 0UL) { ret = __cfs_fail_check_set(id, value, set); if (ret != 0) { tmp___1 = 1; } else { tmp___1 = 0; } } else { tmp___1 = 0; } tmp___2 = ldv__builtin_expect((long )tmp___1, 0L); if (tmp___2 != 0L) { if (quiet != 0) { tmp = cfs_cdebug_show(64U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../../include/linux/libcfs/libcfs_fail.h"; msgdata.msg_fn = "cfs_fail_check_set"; msgdata.msg_line = 86; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "*** cfs_fail_loc=%x, val=%u***\n", id, value); } else { } } else { tmp___0 = cfs_cdebug_show(33554432U, 8U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../../include/linux/libcfs/libcfs_fail.h"; msgdata___0.msg_fn = "cfs_fail_check_set"; msgdata___0.msg_line = 89; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 33554432; libcfs_debug_msg(& msgdata___0, "*** cfs_fail_loc=%x, val=%u***\n", id, value); } else { } } } else { } return (ret); } } __inline static int cfs_fail_timeout_set(__u32 id , __u32 value , int ms , int set ) { int tmp ; long tmp___0 ; { tmp___0 = ldv__builtin_expect((long )(cfs_fail_loc != 0UL && (((unsigned long )id ^ cfs_fail_loc) & 65535UL) == 0UL), 0L); if (tmp___0 != 0L) { tmp = __cfs_fail_timeout_set(id, value, ms, set); return (tmp); } else { } return (0); } } static struct cfs_crypto_hash_type hash_types[9U] = { {(char *)"null", 0U, 0U}, {(char *)"adler32", 1U, 4U}, {(char *)"crc32", 4294967295U, 4U}, {(char *)"md5", 0U, 16U}, {(char *)"sha1", 0U, 20U}, {(char *)"sha256", 0U, 32U}, {(char *)"sha384", 0U, 48U}, {(char *)"sha512", 0U, 64U}, {(char *)"crc32c", 4294967295U, 4U}}; __inline static struct cfs_crypto_hash_type const *cfs_crypto_hash_type(unsigned char hash_alg ) { struct cfs_crypto_hash_type *ht ; { if ((unsigned int )hash_alg <= 8U) { ht = (struct cfs_crypto_hash_type *)(& hash_types) + (unsigned long )hash_alg; if ((unsigned long )ht->cht_name != (unsigned long )((char *)0)) { return ((struct cfs_crypto_hash_type const *)ht); } else { } } else { } return ((struct cfs_crypto_hash_type const *)0); } } __inline static char const *cfs_crypto_hash_name(unsigned char hash_alg ) { struct cfs_crypto_hash_type const *ht ; { ht = cfs_crypto_hash_type((int )hash_alg); if ((unsigned long )ht != (unsigned long )((struct cfs_crypto_hash_type const *)0)) { return ((char const *)ht->cht_name); } else { } return ("unknown"); } } extern struct cfs_crypto_hash_desc *cfs_crypto_hash_init(unsigned char , unsigned char * , unsigned int ) ; extern int cfs_crypto_hash_update_page(struct cfs_crypto_hash_desc * , struct page * , unsigned int , unsigned int ) ; extern int cfs_crypto_hash_final(struct cfs_crypto_hash_desc * , unsigned char * , unsigned int * ) ; extern int cfs_crypto_hash_speed(unsigned char ) ; __inline static void *__container_of(void *ptr , unsigned long shift ) { bool tmp ; long tmp___0 ; { tmp = IS_ERR((void const *)ptr); tmp___0 = ldv__builtin_expect((long )((int )tmp || (unsigned long )ptr == (unsigned long )((void *)0)), 0L); if (tmp___0 != 0L) { return (ptr); } else { } return (ptr + - shift); } } extern void *libcfs_kvzalloc(size_t , gfp_t ) ; __inline static __u64 fid_seq(struct lu_fid const *fid ) { { return ((__u64 )fid->f_seq); } } __inline static __u32 fid_oid(struct lu_fid const *fid ) { { return ((__u32 )fid->f_oid); } } __inline static __u32 fid_ver(struct lu_fid const *fid ) { { return ((__u32 )fid->f_ver); } } __inline static __u64 fid_ver_oid(struct lu_fid const *fid ) { __u32 tmp ; __u32 tmp___0 ; { tmp = fid_ver(fid); tmp___0 = fid_oid(fid); return (((unsigned long long )tmp << 32) | (unsigned long long )tmp___0); } } __inline static int fid_seq_is_mdt0(__u64 seq ) { { return (seq == 0ULL); } } __inline static int fid_seq_is_mdt(__u64 const seq ) { { return ((unsigned long long )seq == 0ULL || (unsigned long long )seq > 8589935615ULL); } } __inline static int fid_seq_is_echo(__u64 seq ) { { return (seq == 2ULL); } } __inline static int fid_seq_is_default(__u64 const seq ) { { return ((unsigned long long )seq == 0xffffffffffffffffULL); } } __inline static int fid_seq_is_idif(__u64 const seq ) { { return ((unsigned long long )seq > 4294967295ULL && (unsigned long long )seq <= 8589934591ULL); } } __inline static int fid_is_idif(struct lu_fid const *fid ) { __u64 tmp ; int tmp___0 ; { tmp = fid_seq(fid); tmp___0 = fid_seq_is_idif(tmp); return (tmp___0); } } __inline static __u64 fid_idif_id(__u64 seq , __u32 oid , __u32 ver ) { { return ((((unsigned long long )ver << 48) | ((seq & 65535ULL) << 32)) | (unsigned long long )oid); } } __inline static __u64 ostid_seq(struct ost_id const *ostid ) { int tmp ; int tmp___0 ; int tmp___1 ; __u64 tmp___2 ; { tmp = fid_seq_is_mdt0(ostid->__annonCompField108.oi.oi_seq); if (tmp != 0) { return (0ULL); } else { } tmp___0 = fid_seq_is_default(ostid->__annonCompField108.oi.oi_seq); if (tmp___0 != 0) { return (0xffffffffffffffffULL); } else { } tmp___1 = fid_is_idif(& ostid->__annonCompField108.oi_fid); if (tmp___1 != 0) { return (0ULL); } else { } tmp___2 = fid_seq(& ostid->__annonCompField108.oi_fid); return (tmp___2); } } __inline static __u64 ostid_id(struct ost_id const *ostid ) { __u64 tmp ; int tmp___0 ; __u32 tmp___1 ; __u64 tmp___2 ; __u64 tmp___3 ; int tmp___4 ; __u32 tmp___5 ; { tmp = ostid_seq(ostid); tmp___0 = fid_seq_is_mdt0(tmp); if (tmp___0 != 0) { return ((__u64 )ostid->__annonCompField108.oi.oi_id & 281474976710655ULL); } else { } tmp___4 = fid_is_idif(& ostid->__annonCompField108.oi_fid); if (tmp___4 != 0) { tmp___1 = fid_oid(& ostid->__annonCompField108.oi_fid); tmp___2 = fid_seq(& ostid->__annonCompField108.oi_fid); tmp___3 = fid_idif_id(tmp___2, tmp___1, 0U); return (tmp___3); } else { } tmp___5 = fid_oid(& ostid->__annonCompField108.oi_fid); return ((__u64 )tmp___5); } } __inline static void fid_cpu_to_le(struct lu_fid *dst , struct lu_fid const *src ) { { dst->f_seq = fid_seq(src); dst->f_oid = fid_oid(src); dst->f_ver = fid_ver(src); return; } } __inline static void ostid_cpu_to_le(struct ost_id const *src_oi , struct ost_id *dst_oi ) { __u64 tmp ; int tmp___0 ; { tmp = ostid_seq(src_oi); tmp___0 = fid_seq_is_mdt0(tmp); if (tmp___0 != 0) { dst_oi->__annonCompField108.oi.oi_id = src_oi->__annonCompField108.oi.oi_id; dst_oi->__annonCompField108.oi.oi_seq = src_oi->__annonCompField108.oi.oi_seq; } else { fid_cpu_to_le(& dst_oi->__annonCompField108.oi_fid, & src_oi->__annonCompField108.oi_fid); } return; } } __inline static int lustre_handle_is_used(struct lustre_handle *lh ) { { return (lh->cookie != 0ULL); } } __inline static void lustre_handle_copy(struct lustre_handle *tgt , struct lustre_handle *src ) { { tgt->cookie = src->cookie; return; } } __inline static __u32 lov_mds_md_size(__u16 stripes , __u32 lmm_magic ) { { if (lmm_magic == 198380496U) { return ((__u32 )stripes * 24U + 48U); } else { return ((__u32 )stripes * 24U + 32U); } } } __inline static void lustre_set_wire_obdo(struct obd_connect_data *ocd , struct obdo *wobdo , struct obdo const *lobdo ) { __u32 tmp ; long tmp___0 ; __u64 tmp___1 ; int tmp___2 ; { *wobdo = *lobdo; wobdo->o_flags = wobdo->o_flags & 268435455U; if ((unsigned long )ocd == (unsigned long )((struct obd_connect_data *)0)) { return; } else { } tmp___0 = ldv__builtin_expect((ocd->ocd_connect_flags & 1073741824ULL) == 0ULL, 0L); if (tmp___0 != 0L) { tmp___1 = ostid_seq(& lobdo->o_oi); tmp___2 = fid_seq_is_echo(tmp___1); if (tmp___2 != 0) { tmp = fid_oid(& lobdo->o_oi.__annonCompField108.oi_fid); wobdo->o_oi.__annonCompField108.oi.oi_id = (__u64 )tmp; wobdo->o_oi.__annonCompField108.oi.oi_seq = fid_seq(& lobdo->o_oi.__annonCompField108.oi_fid); } else { } } else { } return; } } __inline static void lustre_get_wire_obdo(struct obd_connect_data *ocd , struct obdo *lobdo , struct obdo const *wobdo ) { __u32 local_flags ; long tmp ; int tmp___0 ; { local_flags = 0U; if ((lobdo->o_valid & 2048ULL) != 0ULL) { local_flags = lobdo->o_flags & 4026531840U; } else { } *lobdo = *wobdo; if (local_flags != 0U) { lobdo->o_valid = lobdo->o_valid | 2048ULL; lobdo->o_flags = lobdo->o_flags & 268435455U; lobdo->o_flags = lobdo->o_flags | local_flags; } else { } if ((unsigned long )ocd == (unsigned long )((struct obd_connect_data *)0)) { return; } else { } tmp = ldv__builtin_expect((ocd->ocd_connect_flags & 1073741824ULL) == 0ULL, 0L); if (tmp != 0L) { tmp___0 = fid_seq_is_echo(wobdo->o_oi.__annonCompField108.oi.oi_seq); if (tmp___0 != 0) { lobdo->o_oi.__annonCompField108.oi_fid.f_seq = wobdo->o_oi.__annonCompField108.oi.oi_seq; lobdo->o_oi.__annonCompField108.oi_fid.f_oid = (__u32 )wobdo->o_oi.__annonCompField108.oi.oi_id; lobdo->o_oi.__annonCompField108.oi_fid.f_ver = 0U; } else { } } else { } return; } } extern void lprocfs_counter_add(struct lprocfs_stats * , int , long ) ; extern void lprocfs_counter_sub(struct lprocfs_stats * , int , long ) ; extern int lprocfs_obd_setup(struct obd_device * , struct lprocfs_vars * , struct attribute_group * ) ; extern int lprocfs_obd_cleanup(struct obd_device * ) ; extern void lprocfs_oh_tally(struct obd_histogram * , unsigned int ) ; extern void lprocfs_oh_tally_log2(struct obd_histogram * , unsigned int ) ; extern struct lprocfs_stats *obd_memory ; extern unsigned int obd_max_dirty_pages ; extern atomic_t obd_dirty_pages ; extern atomic_t obd_dirty_transit_pages ; extern unsigned int obd_alloc_fail_rate ; extern int obd_alloc_fail(void const * , char const * , char const * , size_t , char const * , int ) ; extern int ptlrpc_recover_import(struct obd_import * , char * , int ) ; extern int ptlrpc_set_import_active(struct obd_import * , int ) ; extern void ptlrpc_deactivate_import(struct obd_import * ) ; extern void ptlrpc_invalidate_import(struct obd_import * ) ; extern char *libcfs_nid2str(lnet_nid_t ) ; extern int sptlrpc_flavor_has_bulk(struct sptlrpc_flavor * ) ; extern void sptlrpc_conf_client_adapt(struct obd_device * ) ; extern void sptlrpc_import_flush_my_ctx(struct obd_import * ) ; extern int sptlrpc_lprocfs_cliobd_attach(struct obd_device * ) ; extern int sptlrpc_cli_unwrap_bulk_read(struct ptlrpc_request * , struct ptlrpc_bulk_desc * , int ) ; extern int sptlrpc_cli_unwrap_bulk_write(struct ptlrpc_request * , struct ptlrpc_bulk_desc * ) ; extern struct obd_import *class_exp2cliimp(struct obd_export * ) ; __inline static struct lu_ref_link *lu_ref_add_atomic(struct lu_ref *ref , char const *scope , void const *source ) { { return ((struct lu_ref_link *)0); } } __inline static void lu_ref_del(struct lu_ref *ref , char const *scope , void const *source ) { { return; } } extern void *lu_context_key_get(struct lu_context const * , struct lu_context_key const * ) ; extern int lu_kmem_init(struct lu_kmem_descr * ) ; extern void lu_kmem_fini(struct lu_kmem_descr * ) ; extern void *req_capsule_client_get(struct req_capsule * , struct req_msg_field const * ) ; extern void *req_capsule_server_get(struct req_capsule * , struct req_msg_field const * ) ; extern void *req_capsule_server_sized_get(struct req_capsule * , struct req_msg_field const * , int ) ; extern void req_capsule_set_size(struct req_capsule * , struct req_msg_field const * , enum req_location , int ) ; extern struct req_format RQF_OBD_SET_INFO ; extern struct req_format RQF_OST_GETATTR ; extern struct req_format RQF_OST_SETATTR ; extern struct req_format RQF_OST_CREATE ; extern struct req_format RQF_OST_PUNCH ; extern struct req_format RQF_OST_SYNC ; extern struct req_format RQF_OST_DESTROY ; extern struct req_format RQF_OST_BRW_READ ; extern struct req_format RQF_OST_BRW_WRITE ; extern struct req_format RQF_OST_STATFS ; extern struct req_format RQF_OST_SET_GRANT_INFO ; extern struct req_format RQF_OST_GET_INFO_LAST_ID ; extern struct req_format RQF_OST_GET_INFO_FIEMAP ; extern struct req_format RQF_LDLM_ENQUEUE_LVB ; extern struct req_msg_field RMF_OBD_STATFS ; extern struct req_msg_field RMF_SETINFO_VAL ; extern struct req_msg_field RMF_SETINFO_KEY ; extern struct req_msg_field RMF_DLM_REP ; extern struct req_msg_field RMF_DLM_LVB ; extern struct req_msg_field RMF_CAPA1 ; extern struct req_msg_field RMF_OST_BODY ; extern struct req_msg_field RMF_OBD_IOOBJ ; extern struct req_msg_field RMF_OBD_ID ; extern struct req_msg_field RMF_NIOBUF_REMOTE ; extern struct req_msg_field RMF_RCS ; extern struct req_msg_field RMF_FIEMAP_KEY ; extern struct req_msg_field RMF_FIEMAP_VAL ; extern void _debug_req(struct ptlrpc_request * , struct libcfs_debug_msg_data * , char const * , ...) ; extern int ptlrpc_queue_wait(struct ptlrpc_request * ) ; extern int ptlrpc_check_set(struct lu_env const * , struct ptlrpc_request_set * ) ; extern void ptlrpc_mark_interrupted(struct ptlrpc_request * ) ; extern void ptlrpc_set_add_req(struct ptlrpc_request_set * , struct ptlrpc_request * ) ; extern void ptlrpc_free_rq_pool(struct ptlrpc_request_pool * ) ; extern void ptlrpc_add_rqs_to_pool(struct ptlrpc_request_pool * , int ) ; extern struct ptlrpc_request_pool *ptlrpc_init_rq_pool(int , int , void (*)(struct ptlrpc_request_pool * , int ) ) ; extern void ptlrpc_at_set_req_timeout(struct ptlrpc_request * ) ; extern struct ptlrpc_request *ptlrpc_request_alloc(struct obd_import * , struct req_format const * ) ; extern struct ptlrpc_request *ptlrpc_request_alloc_pool(struct obd_import * , struct ptlrpc_request_pool * , struct req_format const * ) ; extern void ptlrpc_request_free(struct ptlrpc_request * ) ; extern int ptlrpc_request_pack(struct ptlrpc_request * , __u32 , int ) ; extern void ptlrpc_req_finished(struct ptlrpc_request * ) ; extern struct ptlrpc_request *ptlrpc_request_addref(struct ptlrpc_request * ) ; extern struct ptlrpc_bulk_desc *ptlrpc_prep_bulk_imp(struct ptlrpc_request * , unsigned int , unsigned int , unsigned int , unsigned int ) ; extern void __ptlrpc_prep_bulk_page(struct ptlrpc_bulk_desc * , struct page * , int , int , int ) ; __inline static void ptlrpc_prep_bulk_page_pin(struct ptlrpc_bulk_desc *desc , struct page *page , int pageoffset , int len ) { { __ptlrpc_prep_bulk_page(desc, page, pageoffset, len, 1); return; } } extern void *ptlrpcd_alloc_work(struct obd_import * , int (*)(struct lu_env const * , void * ) , void * ) ; extern void ptlrpcd_destroy_work(void * ) ; extern __u32 lustre_msg_get_opc(struct lustre_msg_v2 * ) ; extern __u64 lustre_msg_get_transno(struct lustre_msg_v2 * ) ; extern void ptlrpc_request_set_replen(struct ptlrpc_request * ) ; extern void lustre_msg_set_jobid(struct lustre_msg_v2 * , char * ) ; extern int client_obd_setup(struct obd_device * , struct lustre_cfg * ) ; extern int client_obd_cleanup(struct obd_device * ) ; extern int client_connect_import(struct lu_env const * , struct obd_export ** , struct obd_device * , struct obd_uuid * , struct obd_connect_data * , void * ) ; extern int client_disconnect_export(struct obd_export * ) ; extern int client_import_add_conn(struct obd_import * , struct obd_uuid * , int ) ; extern int client_import_del_conn(struct obd_import * , struct obd_uuid * ) ; extern void client_destroy_import(struct obd_import * ) ; extern int ptlrpc_add_timeout_client(int , enum timeout_event , int (*)(struct timeout_item * , void * ) , void * , struct list_head * ) ; extern int ptlrpc_del_timeout_client(struct list_head * , enum timeout_event ) ; extern int ptlrpc_obd_ping(struct obd_device * ) ; extern void ptlrpcd_add_req(struct ptlrpc_request * , pdl_policy_t , int ) ; extern int ptlrpcd_addref(void) ; extern void ptlrpcd_decref(void) ; extern void ptlrpc_lprocfs_register_obd(struct obd_device * ) ; extern void ptlrpc_lprocfs_unregister_obd(struct obd_device * ) ; extern void ptlrpc_lprocfs_brw(struct ptlrpc_request * , int ) ; extern int obd_ioctl_getdata(char ** , int * , void * ) ; __inline static void obd_ioctl_freedata(char *buf , int len ) { { kvfree((void const *)buf); return; } } __inline static int ns_connect_cancelset(struct ldlm_namespace *ns ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((unsigned long )ns == (unsigned long )((struct ldlm_namespace *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/lustre_dlm.h"; __msg_data.msg_fn = "ns_connect_cancelset"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 505; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"ns != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } return ((ns->ns_connect_flags & 4194304ULL) != 0ULL); } } __inline static void ns_register_cancel(struct ldlm_namespace *ns , int (*arg)(struct ldlm_lock * ) ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((unsigned long )ns == (unsigned long )((struct ldlm_namespace *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/lustre_dlm.h"; __msg_data.msg_fn = "ns_register_cancel"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 521; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"ns != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } ns->ns_cancel_for_recovery = arg; return; } } extern int ldlm_resource_iterate(struct ldlm_namespace * , struct ldlm_res_id const * , int (*)(struct ldlm_lock * , void * ) , void * ) ; extern struct ldlm_lock *__ldlm_handle2lock(struct lustre_handle const * , __u64 ) ; __inline static struct ldlm_lock *ldlm_handle2lock(struct lustre_handle const *h ) { struct ldlm_lock *tmp ; { tmp = __ldlm_handle2lock(h, 0ULL); return (tmp); } } extern void ldlm_lock_put(struct ldlm_lock * ) ; extern void ldlm_lock_addref(struct lustre_handle * , __u32 ) ; extern void ldlm_lock_decref(struct lustre_handle * , __u32 ) ; extern void ldlm_lock_decref_and_cancel(struct lustre_handle * , __u32 ) ; extern ldlm_mode_t ldlm_lock_match(struct ldlm_namespace * , __u64 , struct ldlm_res_id const * , ldlm_type_t , ldlm_policy_data_t * , ldlm_mode_t , struct lustre_handle * , int ) ; extern int ldlm_namespace_cleanup(struct ldlm_namespace * , __u64 ) ; extern struct ldlm_resource *ldlm_resource_get(struct ldlm_namespace * , struct ldlm_resource * , struct ldlm_res_id const * , ldlm_type_t , int ) ; extern int ldlm_resource_putref(struct ldlm_resource * ) ; extern int ldlm_cli_enqueue(struct obd_export * , struct ptlrpc_request ** , struct ldlm_enqueue_info * , struct ldlm_res_id const * , ldlm_policy_data_t const * , __u64 * , void * , __u32 , enum lvb_type , struct lustre_handle * , int ) ; extern int ldlm_prep_enqueue_req(struct obd_export * , struct ptlrpc_request * , struct list_head * , int ) ; extern int ldlm_prep_elc_req(struct obd_export * , struct ptlrpc_request * , int , int , int , struct list_head * , int ) ; extern int ldlm_cli_enqueue_fini(struct obd_export * , struct ptlrpc_request * , ldlm_type_t , __u8 , ldlm_mode_t , __u64 * , void * , __u32 , struct lustre_handle * , int ) ; extern int ldlm_cancel_resource_local(struct ldlm_resource * , struct list_head * , ldlm_policy_data_t * , ldlm_mode_t , __u64 , ldlm_cancel_flags_t , void * ) ; __inline static void check_res_locked(struct ldlm_resource *res ) { int tmp ; long tmp___0 ; { tmp = queued_spin_is_locked(& res->lr_lock.__annonCompField18.rlock.raw_lock); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/lustre_dlm.h"), "i" (1409), "i" (12UL)); ldv_57602: ; goto ldv_57602; } else { } return; } } extern struct ldlm_resource *lock_res_and_lock(struct ldlm_lock * ) ; extern void unlock_res_and_lock(struct ldlm_lock * ) ; __inline static unsigned char cksum_obd2cfs(cksum_type_t cksum_type ) { struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct libcfs_debug_msg_data msgdata___0 ; { switch ((unsigned int )cksum_type) { case 1U: ; return (2U); case 2U: ; return (1U); case 4U: ; return (8U); default: tmp = cfs_cdebug_show(131072U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_cksum.h"; msgdata.msg_fn = "cksum_obd2cfs"; msgdata.msg_line = 50; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Unknown checksum type (%x)!!!\n", (unsigned int )cksum_type); } else { } msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_cksum.h"; msgdata___0.msg_fn = "cksum_obd2cfs"; msgdata___0.msg_subsys = 8; msgdata___0.msg_line = 51; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; lbug_with_loc(& msgdata___0); } return (0U); } } __inline static u32 cksum_type_pack(cksum_type_t cksum_type ) { unsigned int performance ; unsigned int tmp ; u32 flag ; unsigned char tmp___0 ; int tmp___1 ; unsigned char tmp___2 ; int tmp___3 ; unsigned char tmp___4 ; int tmp___5 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___6 ; long tmp___7 ; { performance = 0U; flag = 8192U; if ((int )cksum_type & 1) { tmp___0 = cksum_obd2cfs(1); tmp___1 = cfs_crypto_hash_speed((int )tmp___0); tmp = (unsigned int )tmp___1; if (tmp > performance) { performance = tmp; flag = 4096U; } else { } } else { } if (((unsigned int )cksum_type & 4U) != 0U) { tmp___2 = cksum_obd2cfs(4); tmp___3 = cfs_crypto_hash_speed((int )tmp___2); tmp = (unsigned int )tmp___3; if (tmp > performance) { performance = tmp; flag = 16384U; } else { } } else { } if (((unsigned int )cksum_type & 2U) != 0U) { tmp___4 = cksum_obd2cfs(2); tmp___5 = cfs_crypto_hash_speed((int )tmp___4); tmp = (unsigned int )tmp___5; if (tmp > performance) { performance = tmp; flag = 8192U; } else { } } else { } tmp___7 = ldv__builtin_expect((long )((unsigned int )cksum_type != 0U && ((unsigned int )cksum_type & 7U) == 0U), 0L); if (tmp___7 != 0L) { tmp___6 = cfs_cdebug_show(1024U, 8U); if (tmp___6 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_cksum.h"; msgdata.msg_fn = "cksum_type_pack"; msgdata.msg_line = 96; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "unknown cksum type %x\n", (unsigned int )cksum_type); } else { } } else { } return (flag); } } __inline static cksum_type_t cksum_type_unpack(u32 o_flags ) { { switch (o_flags & 28672U) { case 16384U: ; return (4); case 4096U: ; return (1); default: ; goto ldv_57678; } ldv_57678: ; return (2); } } __inline static void __client_obd_list_lock(client_obd_lock_t *lock , char const *func , int line ) { unsigned long cur ; struct libcfs_debug_msg_data __msg_data ; long tmp ; int tmp___0 ; struct task_struct *task ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; int tmp___3 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___4 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; struct task_struct *tmp___6 ; long volatile __ret ; struct task_struct *tmp___7 ; struct task_struct *tmp___8 ; struct task_struct *tmp___9 ; struct task_struct *tmp___10 ; { cur = jiffies; ldv_57794: tmp___0 = spin_trylock(& lock->lock); if (tmp___0 != 0) { tmp = ldv__builtin_expect((unsigned long )lock->task != (unsigned long )((struct task_struct *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; __msg_data.msg_fn = "__client_obd_list_lock"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 75; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"lock->task == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } lock->task = get_current(); lock->func = func; lock->line = line; lock->time = jiffies; goto ldv_57765; } else { } if ((long )((cur - (unsigned long )jiffies) + 1250UL) < 0L && (long )((lock->time - (unsigned long )jiffies) + 1250UL) < 0L) { task = lock->task; if ((unsigned long )task == (unsigned long )((struct task_struct *)0)) { goto ldv_57779; } else { } tmp___3 = cfs_cdebug_show(33555456U, 8U); if (tmp___3 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; msgdata.msg_fn = "__client_obd_list_lock"; msgdata.msg_line = 94; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 33555456; tmp___1 = get_current(); tmp___2 = get_current(); libcfs_debug_msg(& msgdata, "%s:%d: lock %p was acquired by <%s:%d:%s:%d> for %lu seconds.\n", (char *)(& tmp___2->comm), tmp___1->pid, lock, (char *)(& task->comm), task->pid, lock->func, lock->line, ((unsigned long )jiffies - lock->time) / 250UL); } else { } tmp___4 = cfs_cdebug_show(33555456U, 8U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; msgdata___0.msg_fn = "__client_obd_list_lock"; msgdata___0.msg_line = 95; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 33555456; libcfs_debug_msg(& msgdata___0, "====== for current process =====\n"); } else { } dump_stack(); tmp___5 = cfs_cdebug_show(33555456U, 8U); if (tmp___5 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; msgdata___1.msg_fn = "__client_obd_list_lock"; msgdata___1.msg_line = 97; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 33555456; libcfs_debug_msg(& msgdata___1, "====== end =======\n"); } else { } tmp___6 = get_current(); tmp___6->task_state_change = 0UL; __ret = 2L; switch (8UL) { case 1UL: tmp___7 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret), "+m" (tmp___7->state): : "memory", "cc"); goto ldv_57788; case 2UL: tmp___8 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret), "+m" (tmp___8->state): : "memory", "cc"); goto ldv_57788; case 4UL: tmp___9 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret), "+m" (tmp___9->state): : "memory", "cc"); goto ldv_57788; case 8UL: tmp___10 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret), "+m" (tmp___10->state): : "memory", "cc"); goto ldv_57788; default: __xchg_wrong_size(); } ldv_57788: schedule_timeout(250000L); } else { } cpu_relax(); ldv_57779: ; goto ldv_57794; ldv_57765: ; return; } } __inline static void client_obd_list_unlock(client_obd_lock_t *lock ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((unsigned long )lock->task == (unsigned long )((struct task_struct *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; __msg_data.msg_fn = "client_obd_list_unlock"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 110; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"lock->task != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } lock->task = (struct task_struct *)0; lock->time = jiffies; spin_unlock(& lock->lock); return; } } __inline static __u64 *exp_connect_flags_ptr(struct obd_export *exp ) { { return (& exp->exp_connect_data.ocd_connect_flags); } } __inline static __u64 exp_connect_flags(struct obd_export *exp ) { __u64 *tmp ; { tmp = exp_connect_flags_ptr(exp); return (*tmp); } } __inline static int exp_connect_cancelset(struct obd_export *exp ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; __u64 tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )exp == (unsigned long )((struct obd_export *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/lustre_export.h"; __msg_data.msg_fn = "exp_connect_cancelset"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 277; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"exp != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = exp_connect_flags(exp); return ((tmp___0 & 4194304ULL) != 0ULL); } } __inline static struct ldlm_res_id *fid_build_reg_res_name(struct lu_fid const *fid , struct ldlm_res_id *res ) { { memset((void *)res, 0, 32UL); res->name[0] = fid_seq(fid); res->name[1] = fid_ver_oid(fid); return (res); } } __inline static void ostid_build_res_name(struct ost_id *oi , struct ldlm_res_id *name ) { __u64 tmp ; int tmp___0 ; { memset((void *)name, 0, 32UL); tmp = ostid_seq((struct ost_id const *)oi); tmp___0 = fid_seq_is_mdt0(tmp); if (tmp___0 != 0) { name->name[0] = ostid_id((struct ost_id const *)oi); name->name[1] = ostid_seq((struct ost_id const *)oi); } else { fid_build_reg_res_name((struct lu_fid const *)(& oi->__annonCompField108.oi_fid), name); } return; } } extern void _debug_capa(struct lustre_capa * , struct libcfs_debug_msg_data * , char const * , ...) ; extern struct kmem_cache *capa_cachep ; extern void capa_cpy(void * , struct obd_capa * ) ; __inline static struct obd_capa *capa_get(struct obd_capa *ocapa ) { { if ((unsigned long )ocapa == (unsigned long )((struct obd_capa *)0)) { return ((struct obd_capa *)0); } else { } atomic_inc(& ocapa->c_refc); return (ocapa); } } __inline static void capa_put(struct obd_capa *ocapa ) { struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; int tmp ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___2 ; long tmp___3 ; struct hlist_node *hnode ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___5 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___6 ; int tmp___7 ; { if ((unsigned long )ocapa == (unsigned long )((struct obd_capa *)0)) { return; } else { } tmp = atomic_read((atomic_t const *)(& ocapa->c_refc)); if (tmp == 0) { msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/lustre_capa.h"; msgdata.msg_fn = "capa_put"; msgdata.msg_subsys = 8; msgdata.msg_line = 232; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; _debug_capa(& ocapa->c_capa, & msgdata, "refc is 0 for"); msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/lustre_capa.h"; msgdata___0.msg_fn = "capa_put"; msgdata___0.msg_subsys = 8; msgdata___0.msg_line = 233; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; lbug_with_loc(& msgdata___0); } else { } tmp___7 = atomic_dec_and_test(& ocapa->c_refc); if (tmp___7 != 0) { tmp___0 = list_empty((struct list_head const *)(& ocapa->c_list)); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/lustre_capa.h"; __msg_data.msg_fn = "capa_put"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 237; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&ocapa->c_list)"); lbug_with_loc(& __msg_data); } else { } if (ocapa->c_site == 0) { tmp___2 = list_empty((struct list_head const *)(& ocapa->u.cli.lli_list)); tmp___3 = ldv__builtin_expect(tmp___2 == 0, 0L); if (tmp___3 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/lustre_capa.h"; __msg_data___0.msg_fn = "capa_put"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 239; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&ocapa->u.cli.lli_list)"); lbug_with_loc(& __msg_data___0); } else { } } else { hnode = & ocapa->u.tgt.c_hash; tmp___4 = ldv__builtin_expect((long )((unsigned long )hnode->next != (unsigned long )((struct hlist_node *)0) || (unsigned long )hnode->pprev != (unsigned long )((struct hlist_node **)0)), 0L); if (tmp___4 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/lustre_capa.h"; __msg_data___1.msg_fn = "capa_put"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 244; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"!hnode->next && !hnode->pprev"); lbug_with_loc(& __msg_data___1); } else { } } tmp___5 = ldv__builtin_expect((unsigned long )ocapa == (unsigned long )((struct obd_capa *)0), 0L); if (tmp___5 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/lustre_capa.h"; __msg_data___2.msg_fn = "capa_put"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 246; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"ocapa"); lbug_with_loc(& __msg_data___2); } else { } lprocfs_counter_sub(obd_memory, 0, 256L); tmp___6 = cfs_cdebug_show(16U, 8U); if (tmp___6 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/lustre_capa.h"; msgdata___1.msg_fn = "capa_put"; msgdata___1.msg_line = 246; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; libcfs_debug_msg(& msgdata___1, "slab-freed \'ocapa\': %d at %p.\n", 256, ocapa); } else { } memset((void *)ocapa, 90, 256UL); kmem_cache_free(capa_cachep, (void *)ocapa); ocapa = (struct obd_capa *)3735928559L; } else { } return; } } __inline static void loi_init(struct lov_oinfo *loi ) { { return; } } __inline static int lov_stripe_md_size(unsigned int stripe_count ) { { return ((int )((unsigned int )((unsigned long )stripe_count + 18UL) * 8U)); } } __inline static void oti_alloc_cookies(struct obd_trans_info *oti , int num_cookies ) { void *tmp ; { if ((unsigned long )oti == (unsigned long )((struct obd_trans_info *)0)) { return; } else { } if (num_cookies == 1) { oti->oti_logcookies = & oti->oti_onecookie; } else { tmp = libcfs_kvzalloc((unsigned long )num_cookies * 32UL, 80U); oti->oti_logcookies = (struct llog_cookie *)tmp; } oti->oti_numcookies = num_cookies; return; } } __inline static int client_should_resend(int resend , struct client_obd *cli ) { int tmp ; int tmp___0 ; int tmp___1 ; { tmp = atomic_read((atomic_t const *)(& cli->cl_resends)); if (tmp == 0) { tmp___1 = 1; } else { tmp___0 = atomic_read((atomic_t const *)(& cli->cl_resends)); if (tmp___0 > resend) { tmp___1 = 1; } else { tmp___1 = 0; } } return (tmp___1); } } __inline static int cli_brw_size(struct obd_device *obd ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((unsigned long )obd == (unsigned long )((struct obd_device *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd.h"; __msg_data.msg_fn = "cli_brw_size"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1494; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"obd != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } return ((int )(obd->u.cli.cl_max_pages_per_rpc << 12)); } } extern struct obd_device *class_exp2obd(struct obd_export * ) ; extern int class_register_type(struct obd_ops * , struct md_ops * , char const * , struct lu_device_type * ) ; extern int class_unregister_type(char const * ) ; extern void obd_zombie_barrier(void) ; extern int class_process_proc_param(char * , struct lprocfs_vars * , struct lustre_cfg * , void * ) ; extern struct obd_import *class_import_get(struct obd_import * ) ; extern void class_import_put(struct obd_import * ) ; extern void obdo_to_ioobj(struct obdo * , struct obd_ioobj * ) ; __inline static int obd_check_dev(struct obd_device *obd ) { struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; { if ((unsigned long )obd == (unsigned long )((struct obd_device *)0)) { tmp = cfs_cdebug_show(131072U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_class.h"; msgdata.msg_fn = "obd_check_dev"; msgdata.msg_line = 331; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "NULL device\n"); } else { } return (-19); } else { } return (0); } } __inline static void obd_cleanup_client_import(struct obd_device *obd ) { struct obd_import *imp ; struct libcfs_debug_msg_data msgdata ; int tmp ; { down_write(& obd->u.cli.cl_sem); if ((unsigned long )obd->u.cli.cl_import != (unsigned long )((struct obd_import *)0)) { imp = obd->u.cli.cl_import; tmp = cfs_cdebug_show(16777216U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_class.h"; msgdata.msg_fn = "obd_cleanup_client_import"; msgdata.msg_line = 627; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16777216; libcfs_debug_msg(& msgdata, "%s: client import never connected\n", (char *)(& obd->obd_name)); } else { } ptlrpc_invalidate_import(imp); if ((unsigned long )imp->imp_rq_pool != (unsigned long )((struct ptlrpc_request_pool *)0)) { ptlrpc_free_rq_pool(imp->imp_rq_pool); imp->imp_rq_pool = (struct ptlrpc_request_pool *)0; } else { } client_destroy_import(imp); obd->u.cli.cl_import = (struct obd_import *)0; } else { } up_write(& obd->u.cli.cl_sem); return; } } __inline static int obd_unpackmd(struct obd_export *exp , struct lov_stripe_md **mem_tgt , struct lov_mds_md_v1 *disk_src , int disk_len ) { int rc ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___1 ; unsigned int coffset ; struct libcfs_debug_msg_data __msg_data ; long tmp___2 ; { if ((unsigned long )exp == (unsigned long )((struct obd_export *)0)) { tmp = cfs_cdebug_show(131072U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_class.h"; msgdata.msg_fn = "obd_unpackmd"; msgdata.msg_line = 728; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_unpackmd: NULL export\n"); } else { } return (-19); } else { } if ((unsigned long )exp->exp_obd == (unsigned long )((struct obd_device *)0) || (unsigned long )(exp->exp_obd)->obd_type == (unsigned long )((struct obd_type *)0)) { tmp___0 = cfs_cdebug_show(131072U, 8U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_class.h"; msgdata___0.msg_fn = "obd_unpackmd"; msgdata___0.msg_line = 728; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_unpackmd: cleaned up obd\n"); } else { } return (-95); } else { } if ((unsigned long )(exp->exp_obd)->obd_type == (unsigned long )((struct obd_type *)0) || (unsigned long )(((exp->exp_obd)->obd_type)->typ_dt_ops)->o_unpackmd == (unsigned long )((int (*)(struct obd_export * , struct lov_stripe_md ** , struct lov_mds_md_v1 * , int ))0)) { tmp___1 = cfs_cdebug_show(131072U, 8U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_class.h"; msgdata___1.msg_fn = "obd_unpackmd"; msgdata___1.msg_line = 728; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_unpackmd: dev %d no operation\n", (exp->exp_obd)->obd_minor); } else { } return (-95); } else { } if ((unsigned long )(exp->exp_obd)->obd_stats != (unsigned long )((struct lprocfs_stats *)0)) { coffset = (exp->exp_obd)->obd_cntr_base + 21U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->obd_stats)->ls_num <= coffset, 0L); if (tmp___2 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_class.h"; __msg_data.msg_fn = "obd_unpackmd"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 729; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"coffset < (exp)->exp_obd->obd_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->obd_stats, (int )coffset, 1L); } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_dt_ops)->o_unpackmd))(exp, mem_tgt, disk_src, disk_len); return (rc); } } __inline static int obd_alloc_memmd(struct obd_export *exp , struct lov_stripe_md **mem_tgt ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; int tmp___1 ; { tmp = ldv__builtin_expect((unsigned long )mem_tgt == (unsigned long )((struct lov_stripe_md **)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_class.h"; __msg_data.msg_fn = "obd_alloc_memmd"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 739; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"mem_tgt"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect((unsigned long )*mem_tgt != (unsigned long )((struct lov_stripe_md *)0), 0L); if (tmp___0 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_class.h"; __msg_data___0.msg_fn = "obd_alloc_memmd"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 740; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"*mem_tgt == ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } tmp___1 = obd_unpackmd(exp, mem_tgt, (struct lov_mds_md_v1 *)0, 0); return (tmp___1); } } __inline static int obd_free_memmd(struct obd_export *exp , struct lov_stripe_md **mem_tgt ) { int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )mem_tgt == (unsigned long )((struct lov_stripe_md **)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_class.h"; __msg_data.msg_fn = "obd_free_memmd"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 749; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"mem_tgt"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect((unsigned long )*mem_tgt == (unsigned long )((struct lov_stripe_md *)0), 0L); if (tmp___0 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_class.h"; __msg_data___0.msg_fn = "obd_free_memmd"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 750; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"*mem_tgt"); lbug_with_loc(& __msg_data___0); } else { } rc = obd_unpackmd(exp, mem_tgt, (struct lov_mds_md_v1 *)0, 0); *mem_tgt = (struct lov_stripe_md *)0; return (rc); } } __inline static int obd_notify(struct obd_device *obd , struct obd_device *watched , enum obd_notify_event ev , void *data ) { int rc ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; unsigned int coffset ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; { rc = obd_check_dev(obd); if (rc != 0) { return (rc); } else { } if ((unsigned int )*((unsigned char *)obd + 196UL) == 0U && (unsigned int )*((unsigned char *)obd + 197UL) == 0U) { tmp = cfs_cdebug_show(524288U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_class.h"; msgdata.msg_fn = "obd_notify"; msgdata.msg_line = 1276; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 524288; libcfs_debug_msg(& msgdata, "obd %s not set up\n", (char *)(& obd->obd_name)); } else { } return (-22); } else { } if ((unsigned long )((obd->obd_type)->typ_dt_ops)->o_notify == (unsigned long )((int (*)(struct obd_device * , struct obd_device * , enum obd_notify_event , void * ))0)) { tmp___0 = cfs_cdebug_show(524288U, 8U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_class.h"; msgdata___0.msg_fn = "obd_notify"; msgdata___0.msg_line = 1281; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 524288; libcfs_debug_msg(& msgdata___0, "obd %s has no notify handler\n", (char *)(& obd->obd_name)); } else { } return (-38); } else { } if ((unsigned long )obd->obd_stats != (unsigned long )((struct lprocfs_stats *)0)) { coffset = obd->obd_cntr_base + 36U; tmp___1 = ldv__builtin_expect((unsigned int )(obd->obd_stats)->ls_num <= coffset, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/obd_class.h"; __msg_data.msg_fn = "obd_notify"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1285; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"coffset < (obd)->obd_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add(obd->obd_stats, (int )coffset, 1L); } else { } rc = (*(((obd->obd_type)->typ_dt_ops)->o_notify))(obd, watched, ev, data); return (rc); } } __inline static int obd_notify_observer(struct obd_device *observer , struct obd_device *observed , enum obd_notify_event ev , void *data ) { int rc1 ; int rc2 ; struct obd_notify_upcall *onu ; { if ((unsigned long )observer->obd_observer != (unsigned long )((struct obd_device *)0)) { rc1 = obd_notify(observer->obd_observer, observed, ev, data); } else { rc1 = 0; } onu = & observer->obd_upcall; if ((unsigned long )onu->onu_upcall != (unsigned long )((int (*)(struct obd_device * , struct obd_device * , enum obd_notify_event , void * , void * ))0)) { rc2 = (*(onu->onu_upcall))(observer, observed, ev, onu->onu_owner, (void *)0); } else { rc2 = 0; } return (rc1 != 0 ? rc1 : rc2); } } extern struct kmem_cache *obdo_cachep ; int osc_create(struct lu_env const *env , struct obd_export *exp , struct obdo *oa , struct lov_stripe_md **ea , struct obd_trans_info *oti ) ; int osc_real_create(struct obd_export *exp , struct obdo *oa , struct lov_stripe_md **ea , struct obd_trans_info *oti ) ; void osc_wake_cache_waiters(struct client_obd *cli ) ; int osc_shrink_grant_to_target(struct client_obd *cli , __u64 target_bytes ) ; void osc_update_next_shrink(struct client_obd *cli ) ; extern void cl_object_put(struct lu_env const * , struct cl_object * ) ; extern void cl_object_get(struct cl_object * ) ; extern void cl_object_attr_lock(struct cl_object * ) ; extern void cl_object_attr_unlock(struct cl_object * ) ; extern int cl_object_attr_set(struct lu_env const * , struct cl_object * , struct cl_attr const * , unsigned int ) ; extern struct cl_req *cl_req_alloc(struct lu_env const * , struct cl_page * , enum cl_req_type , int ) ; extern void cl_req_page_add(struct lu_env const * , struct cl_req * , struct cl_page * ) ; extern int cl_req_prep(struct lu_env const * , struct cl_req * ) ; extern void cl_req_attr_set(struct lu_env const * , struct cl_req * , struct cl_req_attr * , u64 ) ; extern void cl_req_completion(struct lu_env const * , struct cl_req * , int ) ; extern struct lu_env *cl_env_get(int * ) ; extern void cl_env_put(struct lu_env * , int * ) ; struct ptlrpc_request_set *PTLRPCD_SET ; int osc_enqueue_base(struct obd_export *exp , struct ldlm_res_id *res_id , __u64 *flags , ldlm_policy_data_t *policy , struct ost_lvb *lvb , int kms_valid , int (*upcall)(void * , int ) , void *cookie , struct ldlm_enqueue_info *einfo , struct lustre_handle *lockh , struct ptlrpc_request_set *rqset , int async , int agl ) ; int osc_cancel_base(struct lustre_handle *lockh , __u32 mode ) ; int osc_match_base(struct obd_export *exp , struct ldlm_res_id *res_id , __u32 type , ldlm_policy_data_t *policy , __u32 mode , __u64 *flags , void *data , struct lustre_handle *lockh , int unref ) ; int osc_setattr_async_base(struct obd_export *exp , struct obd_info *oinfo , struct obd_trans_info *oti , int (*upcall)(void * , int ) , void *cookie , struct ptlrpc_request_set *rqset ) ; int osc_punch_base(struct obd_export *exp , struct obd_info *oinfo , int (*upcall)(void * , int ) , void *cookie , struct ptlrpc_request_set *rqset ) ; int osc_sync_base(struct obd_export *exp , struct obd_info *oinfo , int (*upcall)(void * , int ) , void *cookie , struct ptlrpc_request_set *rqset ) ; int osc_process_config_base(struct obd_device *obd , struct lustre_cfg *lcfg ) ; int osc_build_rpc(struct lu_env const *env , struct client_obd *cli , struct list_head *ext_list , int cmd , pdl_policy_t pol ) ; int osc_lru_shrink(struct client_obd *cli , int target ) ; spinlock_t osc_ast_guard ; int osc_cleanup(struct obd_device *obd ) ; int osc_setup(struct obd_device *obd , struct lustre_cfg *lcfg ) ; int lproc_osc_attach_seqstat(struct obd_device *dev ) ; void lprocfs_osc_init_vars(struct lprocfs_static_vars *lvars ) ; struct lu_device_type osc_device_type ; __inline static int osc_recoverable_error(int rc ) { { return ((((rc == -5 || rc == -30) || rc == -12) || rc == -11) || rc == -115); } } int osc_dlm_lock_pageref(struct ldlm_lock *dlm ) ; int osc_quota_setup(struct obd_device *obd ) ; int osc_quota_cleanup(struct obd_device *obd ) ; int osc_quota_setdq(struct client_obd *cli , unsigned int const *qid , u32 valid , u32 flags ) ; int osc_quotactl(struct obd_device *unused , struct obd_export *exp , struct obd_quotactl *oqctl ) ; int osc_quotacheck(struct obd_device *unused , struct obd_export *exp , struct obd_quotactl *oqctl ) ; int osc_quota_poll_check(struct obd_export *exp , struct if_quotacheck *qchk ) ; struct lu_context_key osc_key ; void osc_io_unplug(struct lu_env const *env , struct client_obd *cli , struct osc_object *osc , pdl_policy_t pol ) ; __inline static struct osc_thread_info *osc_env_info(struct lu_env const *env ) { struct osc_thread_info *info ; void *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; { tmp = lu_context_key_get(& env->le_ctx, (struct lu_context_key const *)(& osc_key)); info = (struct osc_thread_info *)tmp; tmp___0 = ldv__builtin_expect((unsigned long )info == (unsigned long )((struct osc_thread_info *)0), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "osc_env_info"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 476; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"info != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } return (info); } } __inline static struct cl_object *osc2cl(struct osc_object const *obj ) { { return ((struct cl_object *)(& obj->oo_cl)); } } __inline static struct osc_page *oap2osc(struct osc_async_page *oap ) { void *tmp ; { tmp = __container_of((void *)oap, 40UL); return ((struct osc_page *)tmp); } } __inline static struct cl_page *oap2cl_page(struct osc_async_page *oap ) { struct osc_page *tmp ; { tmp = oap2osc(oap); return (tmp->ops_cl.cpl_page); } } int osc_extent_finish(struct lu_env const *env , struct osc_extent *ext , int sent , int rc ) ; static void osc_release_ppga(struct brw_page **ppga , u32 count ) ; static int brw_interpret(struct lu_env const *env , struct ptlrpc_request *req , void *data , int rc ) ; static int osc_packmd(struct obd_export *exp , struct lov_mds_md_v1 **lmmp , struct lov_stripe_md *lsm ) { int lmm_size ; __u64 tmp ; int tmp___0 ; long tmp___1 ; void *tmp___2 ; { lmm_size = 32; if ((unsigned long )lmmp == (unsigned long )((struct lov_mds_md_v1 **)0)) { return (lmm_size); } else { } if ((unsigned long )*lmmp != (unsigned long )((struct lov_mds_md_v1 *)0) && (unsigned long )lsm == (unsigned long )((struct lov_stripe_md *)0)) { kfree((void const *)*lmmp); *lmmp = (struct lov_mds_md_v1 *)0; return (0); } else { if ((unsigned long )lsm != (unsigned long )((struct lov_stripe_md *)0)) { tmp = ostid_id((struct ost_id const *)(& lsm->lsm_wire.lw_object_oi)); if (tmp == 0ULL) { tmp___0 = 1; } else { tmp___0 = 0; } } else { tmp___0 = 0; } tmp___1 = ldv__builtin_expect((long )tmp___0, 0L); if (tmp___1 != 0L) { return (-9); } else { } } if ((unsigned long )*lmmp == (unsigned long )((struct lov_mds_md_v1 *)0)) { tmp___2 = kzalloc((size_t )lmm_size, 80U); *lmmp = (struct lov_mds_md_v1 *)tmp___2; if ((unsigned long )*lmmp == (unsigned long )((struct lov_mds_md_v1 *)0)) { return (-12); } else { } } else { } if ((unsigned long )lsm != (unsigned long )((struct lov_stripe_md *)0)) { ostid_cpu_to_le((struct ost_id const *)(& lsm->lsm_wire.lw_object_oi), & (*lmmp)->lmm_oi); } else { } return (lmm_size); } } static int osc_unpackmd(struct obd_export *exp , struct lov_stripe_md **lsmp , struct lov_mds_md_v1 *lmm , int lmm_bytes ) { int lsm_size ; struct obd_import *imp ; struct obd_import *tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; __u64 tmp___2 ; long tmp___3 ; void *tmp___4 ; long tmp___5 ; void *tmp___6 ; long tmp___7 ; __u64 tmp___8 ; long tmp___9 ; { tmp = class_exp2cliimp(exp); imp = tmp; if ((unsigned long )lmm != (unsigned long )((struct lov_mds_md_v1 *)0)) { if ((unsigned int )lmm_bytes <= 31U) { tmp___0 = cfs_cdebug_show(131072U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_unpackmd"; msgdata.msg_line = 143; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "%s: lov_mds_md too small: %d, need %d\n", (char *)(& (exp->exp_obd)->obd_name), lmm_bytes, 32); } else { } return (-22); } else { } tmp___2 = ostid_id((struct ost_id const *)(& lmm->lmm_oi)); tmp___3 = ldv__builtin_expect(tmp___2 == 0ULL, 0L); if (tmp___3 != 0L) { tmp___1 = cfs_cdebug_show(131072U, 8U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___0.msg_fn = "osc_unpackmd"; msgdata___0.msg_line = 150; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "%s: zero lmm_object_id: rc = %d\n", (char *)(& (exp->exp_obd)->obd_name), -22); } else { } return (-22); } else { } } else { } lsm_size = lov_stripe_md_size(1U); if ((unsigned long )lsmp == (unsigned long )((struct lov_stripe_md **)0)) { return (lsm_size); } else { } if ((unsigned long )*lsmp != (unsigned long )((struct lov_stripe_md *)0) && (unsigned long )lmm == (unsigned long )((struct lov_mds_md_v1 *)0)) { kfree((void const *)(*lsmp)->lsm_oinfo[0]); kfree((void const *)*lsmp); *lsmp = (struct lov_stripe_md *)0; return (0); } else { } if ((unsigned long )*lsmp == (unsigned long )((struct lov_stripe_md *)0)) { tmp___4 = kzalloc((size_t )lsm_size, 80U); *lsmp = (struct lov_stripe_md *)tmp___4; tmp___5 = ldv__builtin_expect((unsigned long )*lsmp == (unsigned long )((struct lov_stripe_md *)0), 0L); if (tmp___5 != 0L) { return (-12); } else { } tmp___6 = kzalloc(112UL, 80U); (*lsmp)->lsm_oinfo[0] = (struct lov_oinfo *)tmp___6; tmp___7 = ldv__builtin_expect((unsigned long )(*lsmp)->lsm_oinfo[0] == (unsigned long )((struct lov_oinfo *)0), 0L); if (tmp___7 != 0L) { kfree((void const *)*lsmp); return (-12); } else { } loi_init((*lsmp)->lsm_oinfo[0]); } else { tmp___8 = ostid_id((struct ost_id const *)(& (*lsmp)->lsm_wire.lw_object_oi)); tmp___9 = ldv__builtin_expect(tmp___8 == 0ULL, 0L); if (tmp___9 != 0L) { return (-9); } else { } } if ((unsigned long )lmm != (unsigned long )((struct lov_mds_md_v1 *)0)) { ostid_cpu_to_le((struct ost_id const *)(& lmm->lmm_oi), & (*lsmp)->lsm_wire.lw_object_oi); } else { } if ((unsigned long )imp != (unsigned long )((struct obd_import *)0) && (imp->imp_connect_data.ocd_connect_flags & 549755813888ULL) != 0ULL) { (*lsmp)->lsm_maxbytes = imp->imp_connect_data.ocd_maxbytes; } else { (*lsmp)->lsm_maxbytes = 2199023251456ULL; } return (lsm_size); } } __inline static void osc_pack_capa(struct ptlrpc_request *req , struct ost_body *body , void *capa ) { struct obd_capa *oc ; struct lustre_capa *c ; void *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; { oc = (struct obd_capa *)capa; if ((unsigned long )capa == (unsigned long )((void *)0)) { return; } else { } tmp = req_capsule_client_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_CAPA1)); c = (struct lustre_capa *)tmp; tmp___0 = ldv__builtin_expect((unsigned long )c == (unsigned long )((struct lustre_capa *)0), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_pack_capa"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 204; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"c"); lbug_with_loc(& __msg_data); } else { } capa_cpy((void *)c, oc); body->oa.o_valid = body->oa.o_valid | 4398046511104ULL; if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 8U) != 0U) { msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_pack_capa"; msgdata.msg_subsys = 8; msgdata.msg_line = 207; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 134217728; _debug_capa(c, & msgdata, "pack"); } else { } return; } } __inline static void osc_pack_req_body(struct ptlrpc_request *req , struct obd_info *oinfo ) { struct ost_body *body ; void *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; { tmp = req_capsule_client_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OST_BODY)); body = (struct ost_body *)tmp; tmp___0 = ldv__builtin_expect((unsigned long )body == (unsigned long )((struct ost_body *)0), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_pack_req_body"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 216; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"body"); lbug_with_loc(& __msg_data); } else { } lustre_set_wire_obdo(& (req->rq_import)->imp_connect_data, & body->oa, (struct obdo const *)oinfo->oi_oa); osc_pack_capa(req, body, oinfo->oi_capa); return; } } __inline static void osc_set_capa_size(struct ptlrpc_request *req , struct req_msg_field const *field , struct obd_capa *oc ) { { if ((unsigned long )oc == (unsigned long )((struct obd_capa *)0)) { req_capsule_set_size(& req->rq_pill, field, 0, 0); } else { } return; } } static int osc_getattr_interpret(struct lu_env const *env , struct ptlrpc_request *req , struct osc_async_args *aa , int rc ) { struct ost_body *body ; void *tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; { if (rc != 0) { goto out; } else { } tmp = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OST_BODY)); body = (struct ost_body *)tmp; if ((unsigned long )body != (unsigned long )((struct ost_body *)0)) { tmp___0 = cfs_cdebug_show(2U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_getattr_interpret"; msgdata.msg_line = 245; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; libcfs_debug_msg(& msgdata, "mode: %o\n", body->oa.o_mode); } else { } lustre_get_wire_obdo(& (req->rq_import)->imp_connect_data, (aa->aa_oi)->oi_oa, (struct obdo const *)(& body->oa)); ((aa->aa_oi)->oi_oa)->o_blksize = 4194304U; ((aa->aa_oi)->oi_oa)->o_valid = ((aa->aa_oi)->oi_oa)->o_valid | 64ULL; } else { tmp___1 = cfs_cdebug_show(64U, 8U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___0.msg_fn = "osc_getattr_interpret"; msgdata___0.msg_line = 253; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 64; libcfs_debug_msg(& msgdata___0, "can\'t unpack ost_body\n"); } else { } rc = -71; ((aa->aa_oi)->oi_oa)->o_valid = 0ULL; } out: rc = (*((aa->aa_oi)->oi_cb_up))((void *)aa->aa_oi, rc); return (rc); } } static int osc_getattr_async(struct obd_export *exp , struct obd_info *oinfo , struct ptlrpc_request_set *set ) { struct ptlrpc_request *req ; struct osc_async_args *aa ; int rc ; struct obd_import *tmp ; { tmp = class_exp2cliimp(exp); req = ptlrpc_request_alloc(tmp, (struct req_format const *)(& RQF_OST_GETATTR)); if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { return (-12); } else { } osc_set_capa_size(req, (struct req_msg_field const *)(& RMF_CAPA1), (struct obd_capa *)oinfo->oi_capa); rc = ptlrpc_request_pack(req, 196608U, 1); if (rc != 0) { ptlrpc_request_free(req); return (rc); } else { } osc_pack_req_body(req, oinfo); ptlrpc_request_set_replen(req); req->rq_interpret_reply = (int (*)(struct lu_env const * , struct ptlrpc_request * , void * , int ))(& osc_getattr_interpret); switch (42) { case 1: ; case 0: ; goto ldv_63999; } ldv_63999: aa = (struct osc_async_args *)(& req->rq_async_args); aa->aa_oi = oinfo; ptlrpc_set_add_req(set, req); return (0); } } static int osc_getattr(struct lu_env const *env , struct obd_export *exp , struct obd_info *oinfo ) { struct ptlrpc_request *req ; struct ost_body *body ; int rc ; struct obd_import *tmp ; void *tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; int tmp___2 ; { tmp = class_exp2cliimp(exp); req = ptlrpc_request_alloc(tmp, (struct req_format const *)(& RQF_OST_GETATTR)); if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { return (-12); } else { } osc_set_capa_size(req, (struct req_msg_field const *)(& RMF_CAPA1), (struct obd_capa *)oinfo->oi_capa); rc = ptlrpc_request_pack(req, 196608U, 1); if (rc != 0) { ptlrpc_request_free(req); return (rc); } else { } osc_pack_req_body(req, oinfo); ptlrpc_request_set_replen(req); rc = ptlrpc_queue_wait(req); if (rc != 0) { goto out; } else { } tmp___0 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OST_BODY)); body = (struct ost_body *)tmp___0; if ((unsigned long )body == (unsigned long )((struct ost_body *)0)) { rc = -71; goto out; } else { } tmp___1 = cfs_cdebug_show(2U, 8U); if (tmp___1 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_getattr"; msgdata.msg_line = 325; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; libcfs_debug_msg(& msgdata, "mode: %o\n", body->oa.o_mode); } else { } lustre_get_wire_obdo(& (req->rq_import)->imp_connect_data, oinfo->oi_oa, (struct obdo const *)(& body->oa)); tmp___2 = cli_brw_size(exp->exp_obd); (oinfo->oi_oa)->o_blksize = (__u32 )tmp___2; (oinfo->oi_oa)->o_valid = (oinfo->oi_oa)->o_valid | 64ULL; out: ptlrpc_req_finished(req); return (rc); } } static int osc_setattr(struct lu_env const *env , struct obd_export *exp , struct obd_info *oinfo , struct obd_trans_info *oti ) { struct ptlrpc_request *req ; struct ost_body *body ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct obd_import *tmp___0 ; void *tmp___1 ; { tmp = ldv__builtin_expect(((oinfo->oi_oa)->o_valid & 16777216ULL) == 0ULL, 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_setattr"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 344; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"oinfo->oi_oa->o_valid & (0x01000000ULL)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = class_exp2cliimp(exp); req = ptlrpc_request_alloc(tmp___0, (struct req_format const *)(& RQF_OST_SETATTR)); if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { return (-12); } else { } osc_set_capa_size(req, (struct req_msg_field const *)(& RMF_CAPA1), (struct obd_capa *)oinfo->oi_capa); rc = ptlrpc_request_pack(req, 196608U, 2); if (rc != 0) { ptlrpc_request_free(req); return (rc); } else { } osc_pack_req_body(req, oinfo); ptlrpc_request_set_replen(req); rc = ptlrpc_queue_wait(req); if (rc != 0) { goto out; } else { } tmp___1 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OST_BODY)); body = (struct ost_body *)tmp___1; if ((unsigned long )body == (unsigned long )((struct ost_body *)0)) { rc = -71; goto out; } else { } lustre_get_wire_obdo(& (req->rq_import)->imp_connect_data, oinfo->oi_oa, (struct obdo const *)(& body->oa)); out: ptlrpc_req_finished(req); return (rc); } } static int osc_setattr_interpret(struct lu_env const *env , struct ptlrpc_request *req , struct osc_setattr_args *sa , int rc ) { struct ost_body *body ; void *tmp ; { if (rc != 0) { goto out; } else { } tmp = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OST_BODY)); body = (struct ost_body *)tmp; if ((unsigned long )body == (unsigned long )((struct ost_body *)0)) { rc = -71; goto out; } else { } lustre_get_wire_obdo(& (req->rq_import)->imp_connect_data, sa->sa_oa, (struct obdo const *)(& body->oa)); out: rc = (*(sa->sa_upcall))(sa->sa_cookie, rc); return (rc); } } int osc_setattr_async_base(struct obd_export *exp , struct obd_info *oinfo , struct obd_trans_info *oti , int (*upcall)(void * , int ) , void *cookie , struct ptlrpc_request_set *rqset ) { struct ptlrpc_request *req ; struct osc_setattr_args *sa ; int rc ; struct obd_import *tmp ; { tmp = class_exp2cliimp(exp); req = ptlrpc_request_alloc(tmp, (struct req_format const *)(& RQF_OST_SETATTR)); if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { return (-12); } else { } osc_set_capa_size(req, (struct req_msg_field const *)(& RMF_CAPA1), (struct obd_capa *)oinfo->oi_capa); rc = ptlrpc_request_pack(req, 196608U, 2); if (rc != 0) { ptlrpc_request_free(req); return (rc); } else { } if ((unsigned long )oti != (unsigned long )((struct obd_trans_info *)0) && ((oinfo->oi_oa)->o_valid & 8388608ULL) != 0ULL) { (oinfo->oi_oa)->o_lcookie = *(oti->oti_logcookies); } else { } osc_pack_req_body(req, oinfo); ptlrpc_request_set_replen(req); if ((unsigned long )rqset == (unsigned long )((struct ptlrpc_request_set *)0)) { ptlrpcd_add_req(req, 3, -1); } else { req->rq_interpret_reply = (int (*)(struct lu_env const * , struct ptlrpc_request * , void * , int ))(& osc_setattr_interpret); switch (42) { case 1: ; case 0: ; goto ldv_64044; } ldv_64044: sa = (struct osc_setattr_args *)(& req->rq_async_args); sa->sa_oa = oinfo->oi_oa; sa->sa_upcall = upcall; sa->sa_cookie = cookie; if ((unsigned long )rqset == (unsigned long )PTLRPCD_SET) { ptlrpcd_add_req(req, 3, -1); } else { ptlrpc_set_add_req(rqset, req); } } return (0); } } static int osc_setattr_async(struct obd_export *exp , struct obd_info *oinfo , struct obd_trans_info *oti , struct ptlrpc_request_set *rqset ) { int tmp ; { tmp = osc_setattr_async_base(exp, oinfo, oti, oinfo->oi_cb_up, (void *)oinfo, rqset); return (tmp); } } int osc_real_create(struct obd_export *exp , struct obdo *oa , struct lov_stripe_md **ea , struct obd_trans_info *oti ) { struct ptlrpc_request *req ; struct ost_body *body ; struct lov_stripe_md *lsm ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; struct obd_import *tmp___1 ; void *tmp___2 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___3 ; struct libcfs_debug_msg_data msgdata___0 ; unsigned char tmp___4 ; void *tmp___5 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___6 ; int tmp___7 ; struct libcfs_debug_msg_data msgdata___2 ; __u64 tmp___8 ; int tmp___9 ; { tmp = ldv__builtin_expect((unsigned long )oa == (unsigned long )((struct obdo *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_real_create"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 467; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"oa"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect((unsigned long )ea == (unsigned long )((struct lov_stripe_md **)0), 0L); if (tmp___0 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___0.msg_fn = "osc_real_create"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 468; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ea"); lbug_with_loc(& __msg_data___0); } else { } lsm = *ea; if ((unsigned long )lsm == (unsigned long )((struct lov_stripe_md *)0)) { rc = obd_alloc_memmd(exp, & lsm); if (rc < 0) { return (rc); } else { } } else { } tmp___1 = class_exp2cliimp(exp); req = ptlrpc_request_alloc(tmp___1, (struct req_format const *)(& RQF_OST_CREATE)); if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { rc = -12; goto out; } else { } rc = ptlrpc_request_pack(req, 196608U, 5); if (rc != 0) { ptlrpc_request_free(req); goto out; } else { } tmp___2 = req_capsule_client_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OST_BODY)); body = (struct ost_body *)tmp___2; tmp___3 = ldv__builtin_expect((unsigned long )body == (unsigned long )((struct ost_body *)0), 0L); if (tmp___3 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___1.msg_fn = "osc_real_create"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 490; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"body"); lbug_with_loc(& __msg_data___1); } else { } lustre_set_wire_obdo(& (req->rq_import)->imp_connect_data, & body->oa, (struct obdo const *)oa); ptlrpc_request_set_replen(req); if ((oa->o_valid & 2048ULL) != 0ULL && oa->o_flags == 4U) { msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___0.msg_fn = "osc_real_create"; msgdata___0.msg_subsys = 8; msgdata___0.msg_line = 499; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 524288; if ((libcfs_debug & 524288U) != 0U && (libcfs_subsystem_debug & 8U) != 0U) { _debug_req(req, & msgdata___0, "@@@ delorphan from OST integration "); } else { } tmp___4 = 1U; req->rq_no_delay = tmp___4; req->rq_no_resend = tmp___4; } else { } rc = ptlrpc_queue_wait(req); if (rc != 0) { goto out_req; } else { } tmp___5 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OST_BODY)); body = (struct ost_body *)tmp___5; if ((unsigned long )body == (unsigned long )((struct ost_body *)0)) { rc = -71; goto out_req; } else { } tmp___6 = cfs_cdebug_show(64U, 8U); if (tmp___6 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___1.msg_fn = "osc_real_create"; msgdata___1.msg_line = 514; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 64; libcfs_debug_msg(& msgdata___1, "oa flags %x\n", oa->o_flags); } else { } lustre_get_wire_obdo(& (req->rq_import)->imp_connect_data, oa, (struct obdo const *)(& body->oa)); tmp___7 = cli_brw_size(exp->exp_obd); oa->o_blksize = (__u32 )tmp___7; oa->o_valid = oa->o_valid | 64ULL; lsm->lsm_wire.lw_object_oi = oa->o_oi; *ea = lsm; if ((unsigned long )oti != (unsigned long )((struct obd_trans_info *)0)) { oti->oti_transno = lustre_msg_get_transno(req->rq_repmsg); if ((oa->o_valid & 8388608ULL) != 0ULL) { if ((unsigned long )oti->oti_logcookies == (unsigned long )((struct llog_cookie *)0)) { oti_alloc_cookies(oti, 1); } else { } *(oti->oti_logcookies) = oa->o_lcookie; } else { } } else { } tmp___9 = cfs_cdebug_show(524288U, 8U); if (tmp___9 != 0) { msgdata___2.msg_subsys = 8; msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___2.msg_fn = "osc_real_create"; msgdata___2.msg_line = 538; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 524288; tmp___8 = lustre_msg_get_transno(req->rq_repmsg); libcfs_debug_msg(& msgdata___2, "transno: %lld\n", tmp___8); } else { } out_req: ptlrpc_req_finished(req); out: ; if (rc != 0 && (unsigned long )*ea == (unsigned long )((struct lov_stripe_md *)0)) { obd_free_memmd(exp, & lsm); } else { } return (rc); } } int osc_punch_base(struct obd_export *exp , struct obd_info *oinfo , int (*upcall)(void * , int ) , void *cookie , struct ptlrpc_request_set *rqset ) { struct ptlrpc_request *req ; struct osc_setattr_args *sa ; struct ost_body *body ; int rc ; struct obd_import *tmp ; void *tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; { tmp = class_exp2cliimp(exp); req = ptlrpc_request_alloc(tmp, (struct req_format const *)(& RQF_OST_PUNCH)); if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { return (-12); } else { } osc_set_capa_size(req, (struct req_msg_field const *)(& RMF_CAPA1), (struct obd_capa *)oinfo->oi_capa); rc = ptlrpc_request_pack(req, 196608U, 10); if (rc != 0) { ptlrpc_request_free(req); return (rc); } else { } req->rq_request_portal = 6; ptlrpc_at_set_req_timeout(req); tmp___0 = req_capsule_client_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OST_BODY)); body = (struct ost_body *)tmp___0; tmp___1 = ldv__builtin_expect((unsigned long )body == (unsigned long )((struct ost_body *)0), 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_punch_base"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 570; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"body"); lbug_with_loc(& __msg_data); } else { } lustre_set_wire_obdo(& (req->rq_import)->imp_connect_data, & body->oa, (struct obdo const *)oinfo->oi_oa); osc_pack_capa(req, body, oinfo->oi_capa); ptlrpc_request_set_replen(req); req->rq_interpret_reply = (int (*)(struct lu_env const * , struct ptlrpc_request * , void * , int ))(& osc_setattr_interpret); switch (42) { case 1: ; case 0: ; goto ldv_64087; } ldv_64087: sa = (struct osc_setattr_args *)(& req->rq_async_args); sa->sa_oa = oinfo->oi_oa; sa->sa_upcall = upcall; sa->sa_cookie = cookie; if ((unsigned long )rqset == (unsigned long )PTLRPCD_SET) { ptlrpcd_add_req(req, 3, -1); } else { ptlrpc_set_add_req(rqset, req); } return (0); } } static int osc_sync_interpret(struct lu_env const *env , struct ptlrpc_request *req , void *arg , int rc ) { struct osc_fsync_args *fa ; struct ost_body *body ; void *tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { fa = (struct osc_fsync_args *)arg; if (rc != 0) { goto out; } else { } tmp = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OST_BODY)); body = (struct ost_body *)tmp; if ((unsigned long )body == (unsigned long )((struct ost_body *)0)) { tmp___0 = cfs_cdebug_show(131072U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_sync_interpret"; msgdata.msg_line = 603; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "can\'t unpack ost_body\n"); } else { } rc = -71; goto out; } else { } *((fa->fa_oi)->oi_oa) = body->oa; out: rc = (*(fa->fa_upcall))(fa->fa_cookie, rc); return (rc); } } int osc_sync_base(struct obd_export *exp , struct obd_info *oinfo , int (*upcall)(void * , int ) , void *cookie , struct ptlrpc_request_set *rqset ) { struct ptlrpc_request *req ; struct ost_body *body ; struct osc_fsync_args *fa ; int rc ; struct obd_import *tmp ; void *tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; { tmp = class_exp2cliimp(exp); req = ptlrpc_request_alloc(tmp, (struct req_format const *)(& RQF_OST_SYNC)); if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { return (-12); } else { } osc_set_capa_size(req, (struct req_msg_field const *)(& RMF_CAPA1), (struct obd_capa *)oinfo->oi_capa); rc = ptlrpc_request_pack(req, 196608U, 16); if (rc != 0) { ptlrpc_request_free(req); return (rc); } else { } tmp___0 = req_capsule_client_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OST_BODY)); body = (struct ost_body *)tmp___0; tmp___1 = ldv__builtin_expect((unsigned long )body == (unsigned long )((struct ost_body *)0), 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_sync_base"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 636; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"body"); lbug_with_loc(& __msg_data); } else { } lustre_set_wire_obdo(& (req->rq_import)->imp_connect_data, & body->oa, (struct obdo const *)oinfo->oi_oa); osc_pack_capa(req, body, oinfo->oi_capa); ptlrpc_request_set_replen(req); req->rq_interpret_reply = & osc_sync_interpret; switch (42) { case 1: ; case 0: ; goto ldv_64115; } ldv_64115: fa = (struct osc_fsync_args *)(& req->rq_async_args); fa->fa_oi = oinfo; fa->fa_upcall = upcall; fa->fa_cookie = cookie; if ((unsigned long )rqset == (unsigned long )PTLRPCD_SET) { ptlrpcd_add_req(req, 3, -1); } else { ptlrpc_set_add_req(rqset, req); } return (0); } } static int osc_resource_get_unused(struct obd_export *exp , struct obdo *oa , struct list_head *cancels , ldlm_mode_t mode , __u64 lock_flags ) { struct ldlm_namespace *ns ; struct ldlm_res_id res_id ; struct ldlm_resource *res ; int count ; int tmp ; int tmp___0 ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; { ns = (exp->exp_obd)->obd_namespace; tmp = exp_connect_cancelset(exp); if (tmp != 0) { tmp___0 = ns_connect_cancelset(ns); if (tmp___0 == 0) { return (0); } else { } } else { } ostid_build_res_name(& oa->o_oi, & res_id); res = ldlm_resource_get(ns, (struct ldlm_resource *)0, (struct ldlm_res_id const *)(& res_id), 0, 0); if ((unsigned long )res == (unsigned long )((struct ldlm_resource *)0)) { return (0); } else { } tmp___1 = get_current(); lu_ref_add_atomic(& res->lr_reference, "osc_resource_get_unused", (void const *)tmp___1); count = ldlm_cancel_resource_local(res, cancels, (ldlm_policy_data_t *)0, mode, lock_flags, 0, (void *)0); tmp___2 = get_current(); lu_ref_del(& res->lr_reference, "osc_resource_get_unused", (void const *)tmp___2); ldlm_resource_putref(res); return (count); } } static int osc_destroy_interpret(struct lu_env const *env , struct ptlrpc_request *req , void *data , int rc ) { struct client_obd *cli ; { cli = & ((req->rq_import)->imp_obd)->u.cli; atomic_dec(& cli->cl_destroy_in_flight); __wake_up(& cli->cl_destroy_waitq, 3U, 1, (void *)0); return (0); } } static int osc_can_send_destroy(struct client_obd *cli ) { int tmp ; int tmp___0 ; { tmp = atomic_add_return(1, & cli->cl_destroy_in_flight); if (tmp <= cli->cl_max_rpcs_in_flight) { return (1); } else { } tmp___0 = atomic_sub_return(1, & cli->cl_destroy_in_flight); if (tmp___0 < cli->cl_max_rpcs_in_flight) { __wake_up(& cli->cl_destroy_waitq, 3U, 1, (void *)0); } else { } return (0); } } int osc_create(struct lu_env const *env , struct obd_export *exp , struct obdo *oa , struct lov_stripe_md **ea , struct obd_trans_info *oti ) { int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___1 ; int tmp___2 ; int tmp___3 ; __u64 tmp___4 ; int tmp___5 ; struct libcfs_debug_msg_data msgdata ; { rc = 0; tmp = ldv__builtin_expect((unsigned long )oa == (unsigned long )((struct obdo *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_create"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 727; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"oa"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect((unsigned long )ea == (unsigned long )((struct lov_stripe_md **)0), 0L); if (tmp___0 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___0.msg_fn = "osc_create"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 728; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ea"); lbug_with_loc(& __msg_data___0); } else { } tmp___1 = ldv__builtin_expect((oa->o_valid & 16777216ULL) == 0ULL, 0L); if (tmp___1 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___1.msg_fn = "osc_create"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 729; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"oa->o_valid & (0x01000000ULL)"); lbug_with_loc(& __msg_data___1); } else { } if ((oa->o_valid & 2048ULL) != 0ULL && oa->o_flags == 32U) { tmp___2 = osc_real_create(exp, oa, ea, oti); return (tmp___2); } else { } tmp___4 = ostid_seq((struct ost_id const *)(& oa->o_oi)); tmp___5 = fid_seq_is_mdt(tmp___4); if (tmp___5 == 0) { tmp___3 = osc_real_create(exp, oa, ea, oti); return (tmp___3); } else { } msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_create"; msgdata.msg_subsys = 8; msgdata.msg_line = 740; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; lbug_with_loc(& msgdata); return (rc); } } static int osc_destroy(struct lu_env const *env , struct obd_export *exp , struct obdo *oa , struct lov_stripe_md *ea , struct obd_trans_info *oti , struct obd_export *md_export , void *capa ) { struct client_obd *cli ; struct ptlrpc_request *req ; struct ost_body *body ; struct list_head cancels ; int rc ; int count ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct obd_import *tmp___0 ; struct ldlm_lock *_lock ; struct ldlm_lock *_next ; int c ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; int tmp___1 ; struct list_head const *__mptr___1 ; struct libcfs_debug_msg_data __msg_data ; long tmp___2 ; void *tmp___3 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___4 ; struct l_wait_info lwi ; int __ret ; struct l_wait_info *__info ; wait_queue_t __wait ; long __timeout ; sigset_t __blocked ; int __allow_intr ; int tmp___5 ; struct task_struct *tmp___6 ; int tmp___7 ; struct task_struct *tmp___8 ; long volatile __ret___0 ; struct task_struct *tmp___9 ; struct task_struct *tmp___10 ; struct task_struct *tmp___11 ; struct task_struct *tmp___12 ; long interval ; long __min1 ; long __min2 ; long tmp___13 ; long remaining ; long tmp___14 ; unsigned long tmp___15 ; unsigned long tmp___16 ; int tmp___17 ; struct task_struct *tmp___18 ; long volatile __ret___1 ; struct task_struct *tmp___19 ; struct task_struct *tmp___20 ; struct task_struct *tmp___21 ; struct task_struct *tmp___22 ; int tmp___23 ; int tmp___24 ; int tmp___25 ; { cli = & (exp->exp_obd)->u.cli; cancels.next = & cancels; cancels.prev = & cancels; if ((unsigned long )oa == (unsigned long )((struct obdo *)0)) { tmp = cfs_cdebug_show(64U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_destroy"; msgdata.msg_line = 767; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "oa NULL\n"); } else { } return (-22); } else { } count = osc_resource_get_unused(exp, oa, & cancels, 2, 65536ULL); tmp___0 = class_exp2cliimp(exp); req = ptlrpc_request_alloc(tmp___0, (struct req_format const *)(& RQF_OST_DESTROY)); if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { c = count; __mptr = (struct list_head const *)cancels.next; _lock = (struct ldlm_lock *)__mptr + 0xfffffffffffffda8UL; __mptr___0 = (struct list_head const *)_lock->l_bl_ast.next; _next = (struct ldlm_lock *)__mptr___0 + 0xfffffffffffffda8UL; goto ldv_64179; ldv_64178: tmp___1 = c; c = c - 1; if (tmp___1 == 0) { goto ldv_64177; } else { } list_del_init(& _lock->l_bl_ast); ldlm_lock_put(_lock); _lock = _next; __mptr___1 = (struct list_head const *)_next->l_bl_ast.next; _next = (struct ldlm_lock *)__mptr___1 + 0xfffffffffffffda8UL; ldv_64179: ; if ((unsigned long )(& _lock->l_bl_ast) != (unsigned long )(& cancels)) { goto ldv_64178; } else { } ldv_64177: tmp___2 = ldv__builtin_expect(c > 0, 0L); if (tmp___2 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_destroy"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 776; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"c <= 0"); lbug_with_loc(& __msg_data); } else { } return (-12); } else { } osc_set_capa_size(req, (struct req_msg_field const *)(& RMF_CAPA1), (struct obd_capa *)capa); rc = ldlm_prep_elc_req(exp, req, 196608, 6, 0, & cancels, count); if (rc != 0) { ptlrpc_request_free(req); return (rc); } else { } req->rq_request_portal = 6; ptlrpc_at_set_req_timeout(req); if ((unsigned long )oti != (unsigned long )((struct obd_trans_info *)0) && (oa->o_valid & 8388608ULL) != 0ULL) { oa->o_lcookie = *(oti->oti_logcookies); } else { } tmp___3 = req_capsule_client_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OST_BODY)); body = (struct ost_body *)tmp___3; tmp___4 = ldv__builtin_expect((unsigned long )body == (unsigned long )((struct ost_body *)0), 0L); if (tmp___4 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___0.msg_fn = "osc_destroy"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 794; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"body"); lbug_with_loc(& __msg_data___0); } else { } lustre_set_wire_obdo(& (req->rq_import)->imp_connect_data, & body->oa, (struct obdo const *)oa); osc_pack_capa(req, body, capa); ptlrpc_request_set_replen(req); if ((oa->o_flags & 4U) == 0U) { req->rq_interpret_reply = & osc_destroy_interpret; tmp___25 = osc_can_send_destroy(cli); if (tmp___25 == 0) { lwi.lwi_timeout = 0L; lwi.lwi_interval = 0L; lwi.lwi_allow_intr = 0; lwi.lwi_on_timeout = (int (*)(void * ))0; lwi.lwi_on_signal = (void (*)(void * ))-1; lwi.lwi_cb_data = (void *)0; __info = & lwi; __timeout = __info->lwi_timeout; __allow_intr = __info->lwi_allow_intr; __ret = 0; tmp___5 = osc_can_send_destroy(cli); if (tmp___5 != 0) { goto ldv_64191; } else { } tmp___6 = get_current(); init_waitqueue_entry(& __wait, tmp___6); add_wait_queue_exclusive(& cli->cl_destroy_waitq, & __wait); if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0) && (__timeout == 0L || __allow_intr != 0)) { __blocked = cfs_block_sigsinv(24838UL); } else { __blocked = cfs_block_sigsinv(0UL); } ldv_64215: tmp___7 = osc_can_send_destroy(cli); if (tmp___7 != 0) { goto ldv_64192; } else { } tmp___8 = get_current(); tmp___8->task_state_change = 0UL; __ret___0 = 1L; switch (8UL) { case 1UL: tmp___9 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___0), "+m" (tmp___9->state): : "memory", "cc"); goto ldv_64195; case 2UL: tmp___10 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___0), "+m" (tmp___10->state): : "memory", "cc"); goto ldv_64195; case 4UL: tmp___11 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___0), "+m" (tmp___11->state): : "memory", "cc"); goto ldv_64195; case 8UL: tmp___12 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___0), "+m" (tmp___12->state): : "memory", "cc"); goto ldv_64195; default: __xchg_wrong_size(); } ldv_64195: ; if (__timeout == 0L) { schedule(); } else { if (__info->lwi_interval != 0L) { __min1 = __info->lwi_interval; __min2 = __timeout; tmp___13 = __min1 < __min2 ? __min1 : __min2; } else { tmp___13 = __timeout; } interval = tmp___13; tmp___14 = schedule_timeout(interval); remaining = tmp___14; tmp___15 = cfs_time_sub((unsigned long )interval, (unsigned long )remaining); tmp___16 = cfs_time_sub((unsigned long )__timeout, tmp___15); __timeout = (long )tmp___16; if (__timeout == 0L) { if ((unsigned long )__info->lwi_on_timeout == (unsigned long )((int (*)(void * ))0)) { __ret = -110; goto ldv_64192; } else { tmp___17 = (*(__info->lwi_on_timeout))(__info->lwi_cb_data); if (tmp___17 != 0) { __ret = -110; goto ldv_64192; } else { } } if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0)) { cfs_block_sigsinv(24838UL); } else { } } else { } } tmp___18 = get_current(); tmp___18->task_state_change = 0UL; __ret___1 = 0L; switch (8UL) { case 1UL: tmp___19 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___1), "+m" (tmp___19->state): : "memory", "cc"); goto ldv_64208; case 2UL: tmp___20 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___1), "+m" (tmp___20->state): : "memory", "cc"); goto ldv_64208; case 4UL: tmp___21 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___1), "+m" (tmp___21->state): : "memory", "cc"); goto ldv_64208; case 8UL: tmp___22 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___1), "+m" (tmp___22->state): : "memory", "cc"); goto ldv_64208; default: __xchg_wrong_size(); } ldv_64208: tmp___23 = osc_can_send_destroy(cli); if (tmp___23 != 0) { goto ldv_64192; } else { } tmp___24 = cfs_signal_pending(); if (tmp___24 != 0) { if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0) && (__timeout == 0L || __allow_intr != 0)) { if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))-1)) { (*(__info->lwi_on_signal))(__info->lwi_cb_data); } else { } __ret = -4; goto ldv_64192; } else { } cfs_clear_sigpending(); } else { } goto ldv_64215; ldv_64192: cfs_restore_sigs(__blocked); remove_wait_queue(& cli->cl_destroy_waitq, & __wait); ldv_64191: ; } else { } } else { } ptlrpcd_add_req(req, 3, -1); return (0); } } static void osc_announce_cached(struct client_obd *cli , struct obdo *oa , long writing_bytes ) { u32 bits ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___4 ; long max_in_flight ; long _max1 ; long _max2 ; long tmp___5 ; int tmp___6 ; int tmp___7 ; long tmp___8 ; long tmp___9 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___10 ; { bits = 134217760U; tmp = ldv__builtin_expect((oa->o_valid & (__u64 )bits) != 0ULL, 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_announce_cached"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 829; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!(oa->o_valid & bits)"); lbug_with_loc(& __msg_data); } else { } oa->o_valid = oa->o_valid | (__u64 )bits; __client_obd_list_lock(& cli->cl_loi_list_lock, "osc_announce_cached", 832); oa->o_blocks = (__u64 )cli->cl_dirty; tmp___9 = ldv__builtin_expect(cli->cl_dirty - cli->cl_dirty_transit > cli->cl_dirty_max, 0L); if (tmp___9 != 0L) { tmp___0 = cfs_cdebug_show(131072U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_announce_cached"; msgdata.msg_line = 837; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "dirty %lu - %lu > dirty_max %lu\n", cli->cl_dirty, cli->cl_dirty_transit, cli->cl_dirty_max); } else { } oa->o_mode = 0U; } else { tmp___6 = atomic_read((atomic_t const *)(& obd_dirty_pages)); tmp___7 = atomic_read((atomic_t const *)(& obd_dirty_transit_pages)); tmp___8 = ldv__builtin_expect((long )(tmp___6 - tmp___7) > (long )(obd_max_dirty_pages + 1U), 0L); if (tmp___8 != 0L) { tmp___3 = cfs_cdebug_show(131072U, 8U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___0.msg_fn = "osc_announce_cached"; msgdata___0.msg_line = 848; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___1 = atomic_read((atomic_t const *)(& obd_dirty_transit_pages)); tmp___2 = atomic_read((atomic_t const *)(& obd_dirty_pages)); libcfs_debug_msg(& msgdata___0, "dirty %d - %d > system dirty_max %d\n", tmp___2, tmp___1, obd_max_dirty_pages); } else { } oa->o_mode = 0U; } else { tmp___5 = ldv__builtin_expect(cli->cl_dirty_max - cli->cl_dirty > 2147483647L, 0L); if (tmp___5 != 0L) { tmp___4 = cfs_cdebug_show(131072U, 8U); if (tmp___4 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___1.msg_fn = "osc_announce_cached"; msgdata___1.msg_line = 852; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "dirty %lu - dirty_max %lu too big???\n", cli->cl_dirty, cli->cl_dirty_max); } else { } oa->o_mode = 0U; } else { max_in_flight = (long )((cli->cl_max_pages_per_rpc << 12) * (__u32 )(cli->cl_max_rpcs_in_flight + 1)); _max1 = cli->cl_dirty_max; _max2 = max_in_flight; oa->o_mode = (__u32 )(_max1 > _max2 ? _max1 : _max2); } } } oa->o_grant = (__u64 )(cli->cl_avail_grant + cli->cl_reserved_grant); oa->o_misc = (__u32 )cli->cl_lost_grant; cli->cl_lost_grant = 0L; client_obd_list_unlock(& cli->cl_loi_list_lock); tmp___10 = cfs_cdebug_show(32U, 8U); if (tmp___10 != 0) { msgdata___2.msg_subsys = 8; msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___2.msg_fn = "osc_announce_cached"; msgdata___2.msg_line = 865; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 32; libcfs_debug_msg(& msgdata___2, "dirty: %llu undirty: %u dropped %u grant: %llu\n", oa->o_blocks, oa->o_mode, oa->o_misc, oa->o_grant); } else { } return; } } void osc_update_next_shrink(struct client_obd *cli ) { struct libcfs_debug_msg_data msgdata ; int tmp ; { cli->cl_next_shrink_grant = cfs_time_shift(cli->cl_grant_shrink_interval); tmp = cfs_cdebug_show(32U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_update_next_shrink"; msgdata.msg_line = 874; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "next time %ld to shrink grant \n", cli->cl_next_shrink_grant); } else { } return; } } static void __osc_update_grant(struct client_obd *cli , u64 grant ) { { __client_obd_list_lock(& cli->cl_loi_list_lock, "__osc_update_grant", 879); cli->cl_avail_grant = (long )((unsigned long long )cli->cl_avail_grant + grant); client_obd_list_unlock(& cli->cl_loi_list_lock); return; } } static void osc_update_grant(struct client_obd *cli , struct ost_body *body ) { struct libcfs_debug_msg_data msgdata ; int tmp ; { if ((body->oa.o_valid & 134217728ULL) != 0ULL) { tmp = cfs_cdebug_show(32U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_update_grant"; msgdata.msg_line = 887; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "got %llu extra grant\n", body->oa.o_grant); } else { } __osc_update_grant(cli, body->oa.o_grant); } else { } return; } } static int osc_set_info_async(struct lu_env const *env , struct obd_export *exp , u32 keylen , void *key , u32 vallen , void *val , struct ptlrpc_request_set *set ) ; static int osc_shrink_grant_interpret(struct lu_env const *env , struct ptlrpc_request *req , void *aa , int rc ) { struct client_obd *cli ; struct obdo *oa ; struct ost_body *body ; void *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; { cli = & ((req->rq_import)->imp_obd)->u.cli; oa = ((struct osc_brw_async_args *)aa)->aa_oa; if (rc != 0) { __osc_update_grant(cli, oa->o_grant); goto out; } else { } tmp = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OST_BODY)); body = (struct ost_body *)tmp; tmp___0 = ldv__builtin_expect((unsigned long )body == (unsigned long )((struct ost_body *)0), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_shrink_grant_interpret"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 910; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"body"); lbug_with_loc(& __msg_data); } else { } osc_update_grant(cli, body); out: tmp___1 = ldv__builtin_expect((unsigned long )oa == (unsigned long )((struct obdo *)0), 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___0.msg_fn = "osc_shrink_grant_interpret"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 913; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"((oa))"); lbug_with_loc(& __msg_data___0); } else { } lprocfs_counter_sub(obd_memory, 0, 208L); tmp___2 = cfs_cdebug_show(16U, 8U); if (tmp___2 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_shrink_grant_interpret"; msgdata.msg_line = 913; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'((oa))\': %d at %p.\n", 208, oa); } else { } memset((void *)oa, 90, 208UL); kmem_cache_free(obdo_cachep, (void *)oa); oa = (struct obdo *)3735928559L; return (rc); } } static void osc_shrink_grant_local(struct client_obd *cli , struct obdo *oa ) { { __client_obd_list_lock(& cli->cl_loi_list_lock, "osc_shrink_grant_local", 919); oa->o_grant = (__u64 )(cli->cl_avail_grant / 4L); cli->cl_avail_grant = (long )((unsigned long long )cli->cl_avail_grant - oa->o_grant); client_obd_list_unlock(& cli->cl_loi_list_lock); if ((oa->o_valid & 2048ULL) == 0ULL) { oa->o_valid = oa->o_valid | 2048ULL; oa->o_flags = 0U; } else { } oa->o_flags = oa->o_flags | 131072U; osc_update_next_shrink(cli); return; } } static int osc_shrink_grant(struct client_obd *cli ) { __u64 target_bytes ; int tmp ; { target_bytes = (__u64 )((__u32 )(cli->cl_max_rpcs_in_flight + 1) * (cli->cl_max_pages_per_rpc << 12)); __client_obd_list_lock(& cli->cl_loi_list_lock, "osc_shrink_grant", 940); if ((unsigned long long )cli->cl_avail_grant <= target_bytes) { target_bytes = (__u64 )(cli->cl_max_pages_per_rpc << 12); } else { } client_obd_list_unlock(& cli->cl_loi_list_lock); tmp = osc_shrink_grant_to_target(cli, target_bytes); return (tmp); } } int osc_shrink_grant_to_target(struct client_obd *cli , __u64 target_bytes ) { int rc ; struct ost_body *body ; void *tmp ; { rc = 0; __client_obd_list_lock(& cli->cl_loi_list_lock, "osc_shrink_grant_to_target", 953); if ((__u64 )(cli->cl_max_pages_per_rpc << 12) > target_bytes) { target_bytes = (__u64 )(cli->cl_max_pages_per_rpc << 12); } else { } if ((unsigned long long )cli->cl_avail_grant <= target_bytes) { client_obd_list_unlock(& cli->cl_loi_list_lock); return (0); } else { } client_obd_list_unlock(& cli->cl_loi_list_lock); tmp = kzalloc(208UL, 80U); body = (struct ost_body *)tmp; if ((unsigned long )body == (unsigned long )((struct ost_body *)0)) { return (-12); } else { } osc_announce_cached(cli, & body->oa, 0L); __client_obd_list_lock(& cli->cl_loi_list_lock, "osc_shrink_grant_to_target", 972); body->oa.o_grant = (unsigned long long )cli->cl_avail_grant - target_bytes; cli->cl_avail_grant = (long )target_bytes; client_obd_list_unlock(& cli->cl_loi_list_lock); if ((body->oa.o_valid & 2048ULL) == 0ULL) { body->oa.o_valid = body->oa.o_valid | 2048ULL; body->oa.o_flags = 0U; } else { } body->oa.o_flags = body->oa.o_flags | 131072U; osc_update_next_shrink(cli); rc = osc_set_info_async((struct lu_env const *)0, ((cli->cl_import)->imp_obd)->obd_self_export, 13U, (void *)"grant_shrink", 208U, (void *)body, (struct ptlrpc_request_set *)0); if (rc != 0) { __osc_update_grant(cli, body->oa.o_grant); } else { } kfree((void const *)body); return (rc); } } static int osc_should_shrink_grant(struct client_obd *client ) { unsigned long time ; unsigned long tmp ; unsigned long next_shrink ; int brw_size ; int tmp___0 ; { tmp = cfs_time_current(); time = tmp; next_shrink = client->cl_next_shrink_grant; if (((client->cl_import)->imp_connect_data.ocd_connect_flags & 8589934592ULL) == 0ULL) { return (0); } else { } tmp___0 = cfs_time_aftereq(time, next_shrink - 5UL); if (tmp___0 != 0) { brw_size = (int )(client->cl_max_pages_per_rpc << 12); if ((unsigned int )(client->cl_import)->imp_state == 9U && client->cl_avail_grant > (long )brw_size) { return (1); } else { } osc_update_next_shrink(client); } else { } return (0); } } static int osc_grant_shrink_grant_cb(struct timeout_item *item , void *data ) { struct client_obd *client ; struct list_head const *__mptr ; int tmp ; struct list_head const *__mptr___0 ; { __mptr = (struct list_head const *)item->ti_obd_list.next; client = (struct client_obd *)__mptr + 0xfffffffffffffec0UL; goto ldv_64307; ldv_64306: tmp = osc_should_shrink_grant(client); if (tmp != 0) { osc_shrink_grant(client); } else { } __mptr___0 = (struct list_head const *)client->cl_grant_shrink_list.next; client = (struct client_obd *)__mptr___0 + 0xfffffffffffffec0UL; ldv_64307: ; if ((unsigned long )(& client->cl_grant_shrink_list) != (unsigned long )(& item->ti_obd_list)) { goto ldv_64306; } else { } return (0); } } static int osc_add_shrink_grant(struct client_obd *client ) { int rc ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; { rc = ptlrpc_add_timeout_client(client->cl_grant_shrink_interval, 1, & osc_grant_shrink_grant_cb, (void *)0, & client->cl_grant_shrink_list); if (rc != 0) { tmp = cfs_cdebug_show(131072U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_add_shrink_grant"; msgdata.msg_line = 1038; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "add grant client %s error %d\n", (char *)(& ((client->cl_import)->imp_obd)->obd_name), rc); } else { } return (rc); } else { } tmp___0 = cfs_cdebug_show(32U, 8U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___0.msg_fn = "osc_add_shrink_grant"; msgdata___0.msg_line = 1042; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32; libcfs_debug_msg(& msgdata___0, "add grant client %s \n", (char *)(& ((client->cl_import)->imp_obd)->obd_name)); } else { } osc_update_next_shrink(client); return (0); } } static int osc_del_shrink_grant(struct client_obd *client ) { int tmp ; { tmp = ptlrpc_del_timeout_client(& client->cl_grant_shrink_list, 1); return (tmp); } } static void osc_init_grant(struct client_obd *cli , struct obd_connect_data *ocd ) { struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; int __max1 ; int __max2 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; int tmp___1 ; { __client_obd_list_lock(& cli->cl_loi_list_lock, "osc_init_grant", 1063); if ((unsigned int )(cli->cl_import)->imp_state == 10U) { cli->cl_avail_grant = (long )ocd->ocd_grant; } else { cli->cl_avail_grant = (long )ocd->ocd_grant - cli->cl_dirty; } if (cli->cl_avail_grant < 0L) { tmp = cfs_cdebug_show(1024U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_init_grant"; msgdata.msg_line = 1072; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "%s: available grant < 0: avail/ocd/dirty %ld/%u/%ld\n", (char *)(& ((cli->cl_import)->imp_obd)->obd_name), cli->cl_avail_grant, ocd->ocd_grant, cli->cl_dirty); } else { } cli->cl_avail_grant = (long )ocd->ocd_grant; } else { } __max1 = 12; __max2 = (int )ocd->ocd_blocksize; cli->cl_chunkbits = __max1 > __max2 ? __max1 : __max2; client_obd_list_unlock(& cli->cl_loi_list_lock); tmp___0 = cfs_cdebug_show(32U, 8U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___0.msg_fn = "osc_init_grant"; msgdata___0.msg_line = 1084; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32; libcfs_debug_msg(& msgdata___0, "%s, setting cl_avail_grant: %ld cl_lost_grant: %ld chunk bits: %d\n", (char *)(& ((cli->cl_import)->imp_obd)->obd_name), cli->cl_avail_grant, cli->cl_lost_grant, cli->cl_chunkbits); } else { } if ((ocd->ocd_connect_flags & 8589934592ULL) != 0ULL) { tmp___1 = list_empty((struct list_head const *)(& cli->cl_grant_shrink_list)); if (tmp___1 != 0) { osc_add_shrink_grant(cli); } else { } } else { } return; } } static void handle_short_read(int nob_read , u32 page_count___0 , struct brw_page **pga ) { char *ptr ; int i ; struct libcfs_debug_msg_data __msg_data ; long tmp ; void *tmp___0 ; void *tmp___1 ; u32 tmp___2 ; { i = 0; goto ldv_64342; ldv_64341: tmp = ldv__builtin_expect(page_count___0 == 0U, 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "handle_short_read"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1103; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"page_count > 0"); lbug_with_loc(& __msg_data); } else { } if ((*(pga + (unsigned long )i))->count > nob_read) { tmp___0 = kmap((*(pga + (unsigned long )i))->pg); ptr = (char *)(tmp___0 + ((*(pga + (unsigned long )i))->off & 4095ULL)); memset((void *)ptr + (unsigned long )nob_read, 0, (size_t )((*(pga + (unsigned long )i))->count - nob_read)); kunmap((*(pga + (unsigned long )i))->pg); page_count___0 = page_count___0 - 1U; i = i + 1; goto ldv_64340; } else { } nob_read = nob_read - (*(pga + (unsigned long )i))->count; page_count___0 = page_count___0 - 1U; i = i + 1; ldv_64342: ; if (nob_read > 0) { goto ldv_64341; } else { } ldv_64340: ; goto ldv_64344; ldv_64343: tmp___1 = kmap((*(pga + (unsigned long )i))->pg); ptr = (char *)(tmp___1 + ((*(pga + (unsigned long )i))->off & 4095ULL)); memset((void *)ptr, 0, (size_t )(*(pga + (unsigned long )i))->count); kunmap((*(pga + (unsigned long )i))->pg); i = i + 1; ldv_64344: tmp___2 = page_count___0; page_count___0 = page_count___0 - 1U; if (tmp___2 != 0U) { goto ldv_64343; } else { } return; } } static int check_write_rcs(struct ptlrpc_request *req , int requested_nob , int niocount , u32 page_count___0 , struct brw_page **pga ) { int i ; __u32 *remote_rcs ; void *tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___2 ; { tmp = req_capsule_server_sized_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_RCS), (int )((unsigned int )niocount * 4U)); remote_rcs = (__u32 *)tmp; if ((unsigned long )remote_rcs == (unsigned long )((__u32 *)0U)) { tmp___0 = cfs_cdebug_show(64U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "check_write_rcs"; msgdata.msg_line = 1141; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "Missing/short RC vector on BRW_WRITE reply\n"); } else { } return (-71); } else { } i = 0; goto ldv_64359; ldv_64358: ; if ((int )*(remote_rcs + (unsigned long )i) < 0) { return ((int )*(remote_rcs + (unsigned long )i)); } else { } if (*(remote_rcs + (unsigned long )i) != 0U) { tmp___1 = cfs_cdebug_show(64U, 8U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___0.msg_fn = "check_write_rcs"; msgdata___0.msg_line = 1152; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 64; libcfs_debug_msg(& msgdata___0, "rc[%d] invalid (%d) req %p\n", i, *(remote_rcs + (unsigned long )i), req); } else { } return (-71); } else { } i = i + 1; ldv_64359: ; if (i < niocount) { goto ldv_64358; } else { } if ((req->rq_bulk)->bd_nob_transferred != requested_nob) { tmp___2 = cfs_cdebug_show(131072U, 8U); if (tmp___2 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___1.msg_fn = "check_write_rcs"; msgdata___1.msg_line = 1159; msgdata___1.msg_cdls = & cdls; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "Unexpected # bytes transferred: %d (requested %d)\n", (req->rq_bulk)->bd_nob_transferred, requested_nob); } else { } return (-71); } else { } return (0); } } __inline static int can_merge_pages(struct brw_page *p1 , struct brw_page *p2 ) { unsigned int mask ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; long tmp___0 ; { if (p1->flag != p2->flag) { mask = 4294965847U; tmp___0 = ldv__builtin_expect(((p1->flag ^ p2->flag) & mask) != 0U, 0L); if (tmp___0 != 0L) { tmp = cfs_cdebug_show(1024U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "can_merge_pages"; msgdata.msg_line = 1176; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "Saw flags 0x%x and 0x%x in the same brw, please report this at http://bugs.whamcloud.com/\n", p1->flag, p2->flag); } else { } } else { } return (0); } else { } return (p1->off + (u64 )p1->count == p2->off); } } static u32 osc_checksum_bulk(int nob , u32 pg_count , struct brw_page **pga , int opc , cksum_type_t cksum_type ) { __u32 cksum ; int i ; struct cfs_crypto_hash_desc *hdesc ; unsigned int bufsize ; int err ; unsigned char cfs_alg ; unsigned char tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; char const *tmp___1 ; int tmp___2 ; long tmp___3 ; bool tmp___4 ; int count ; unsigned char *ptr ; void *tmp___5 ; int off ; int _min1 ; int _min2 ; int tmp___6 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___7 ; int tmp___8 ; int tmp___9 ; { i = 0; tmp = cksum_obd2cfs(cksum_type); cfs_alg = tmp; tmp___0 = ldv__builtin_expect(pg_count == 0U, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_checksum_bulk"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1195; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"pg_count > 0"); lbug_with_loc(& __msg_data); } else { } hdesc = cfs_crypto_hash_init((int )cfs_alg, (unsigned char *)0U, 0U); tmp___4 = IS_ERR((void const *)hdesc); if ((int )tmp___4) { tmp___2 = cfs_cdebug_show(131072U, 8U); if (tmp___2 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_checksum_bulk"; msgdata.msg_line = 1200; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; tmp___1 = cfs_crypto_hash_name((int )cfs_alg); libcfs_debug_msg(& msgdata, "Unable to initialize checksum hash %s\n", tmp___1); } else { } tmp___3 = PTR_ERR((void const *)hdesc); return ((u32 )tmp___3); } else { } goto ldv_64396; ldv_64395: count = nob < (*(pga + (unsigned long )i))->count ? nob : (*(pga + (unsigned long )i))->count; if (i == 0 && opc == 3) { tmp___6 = cfs_fail_check_set(1032U, 0U, 0, 0); if (tmp___6 != 0) { tmp___5 = kmap((*(pga + (unsigned long )i))->pg); ptr = (unsigned char *)tmp___5; off = (int )(*(pga + (unsigned long )i))->off & 4095; _min1 = 4; _min2 = nob; memcpy((void *)ptr + (unsigned long )off, (void const *)"bad1", (size_t )(_min1 < _min2 ? _min1 : _min2)); kunmap((*(pga + (unsigned long )i))->pg); } else { } } else { } cfs_crypto_hash_update_page(hdesc, (*(pga + (unsigned long )i))->pg, (unsigned int )(*(pga + (unsigned long )i))->off & 4095U, (unsigned int )count); tmp___8 = cfs_cdebug_show(32768U, 8U); if (tmp___8 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___0.msg_fn = "osc_checksum_bulk"; msgdata___0.msg_line = 1224; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32768; tmp___7 = page_count((*(pga + (unsigned long )i))->pg); libcfs_debug_msg(& msgdata___0, "page %p map %p index %lu flags %lx count %u priv %0lx: off %d\n", (*(pga + (unsigned long )i))->pg, ((*(pga + (unsigned long )i))->pg)->__annonCompField36.mapping, ((*(pga + (unsigned long )i))->pg)->__annonCompField42.__annonCompField37.index, (long )((*(pga + (unsigned long )i))->pg)->flags, tmp___7, ((*(pga + (unsigned long )i))->pg)->__annonCompField46.private, (int )(*(pga + (unsigned long )i))->off & 4095); } else { } nob = nob - (*(pga + (unsigned long )i))->count; pg_count = pg_count - 1U; i = i + 1; ldv_64396: ; if (nob > 0 && pg_count != 0U) { goto ldv_64395; } else { } bufsize = 4U; err = cfs_crypto_hash_final(hdesc, (unsigned char *)(& cksum), & bufsize); if (err != 0) { cfs_crypto_hash_final(hdesc, (unsigned char *)0U, (unsigned int *)0U); } else { } if (opc == 4) { tmp___9 = cfs_fail_check_set(1033U, 0U, 0, 0); if (tmp___9 != 0) { cksum = cksum + 1U; } else { } } else { } return (cksum); } } static int osc_brw_prep_request(int cmd , struct client_obd *cli , struct obdo *oa , struct lov_stripe_md *lsm , u32 page_count___0 , struct brw_page **pga , struct ptlrpc_request **reqp , struct obd_capa *ocapa , int reserve , int resend ) { struct ptlrpc_request *req ; struct ptlrpc_bulk_desc *desc ; struct ost_body *body ; struct obd_ioobj *ioobj ; struct niobuf_remote *niobuf ; int niocount ; int i ; int requested_nob ; int opc ; int rc ; struct osc_brw_async_args *aa ; struct req_capsule *pill ; struct brw_page *pg_prev ; int tmp ; int tmp___0 ; int tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; struct libcfs_debug_msg_data __msg_data ; long tmp___5 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___6 ; struct brw_page *pg ; int poff ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___7 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___8 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___9 ; struct libcfs_debug_msg_data __msg_data___4 ; long tmp___10 ; int tmp___11 ; struct libcfs_debug_msg_data __msg_data___5 ; void *tmp___12 ; void *tmp___13 ; long tmp___14 ; int tmp___15 ; cksum_type_t cksum_type ; u32 tmp___16 ; struct libcfs_debug_msg_data msgdata ; int tmp___17 ; u32 tmp___18 ; int tmp___19 ; u32 tmp___20 ; int tmp___21 ; { tmp = cfs_fail_check_set(1030U, 0U, 0, 0); if (tmp != 0) { return (-12); } else { } tmp___0 = cfs_fail_check_set(1034U, 0U, 0, 0); if (tmp___0 != 0) { return (-22); } else { } if ((cmd & 2) != 0) { opc = 4; req = ptlrpc_request_alloc_pool(cli->cl_import, (cli->cl_import)->imp_rq_pool, (struct req_format const *)(& RQF_OST_BRW_WRITE)); } else { opc = 3; req = ptlrpc_request_alloc(cli->cl_import, (struct req_format const *)(& RQF_OST_BRW_READ)); } if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { return (-12); } else { } i = 1; niocount = i; goto ldv_64424; ldv_64423: tmp___1 = can_merge_pages(*(pga + ((unsigned long )i + 0xffffffffffffffffUL)), *(pga + (unsigned long )i)); if (tmp___1 == 0) { niocount = niocount + 1; } else { } i = i + 1; ldv_64424: ; if ((u32 )i < page_count___0) { goto ldv_64423; } else { } pill = & req->rq_pill; req_capsule_set_size(pill, (struct req_msg_field const *)(& RMF_OBD_IOOBJ), 0, 24); req_capsule_set_size(pill, (struct req_msg_field const *)(& RMF_NIOBUF_REMOTE), 0, (int )((unsigned int )niocount * 16U)); osc_set_capa_size(req, (struct req_msg_field const *)(& RMF_CAPA1), ocapa); rc = ptlrpc_request_pack(req, 196608U, opc); if (rc != 0) { ptlrpc_request_free(req); return (rc); } else { } req->rq_request_portal = 6; ptlrpc_at_set_req_timeout(req); req->rq_no_retry_einprogress = 1U; desc = ptlrpc_prep_bulk_imp(req, page_count___0, (cli->cl_import)->imp_connect_data.ocd_brw_size >> 20, opc != 4, 8U); if ((unsigned long )desc == (unsigned long )((struct ptlrpc_bulk_desc *)0)) { rc = -12; goto out; } else { } tmp___2 = req_capsule_client_get(pill, (struct req_msg_field const *)(& RMF_OST_BODY)); body = (struct ost_body *)tmp___2; tmp___3 = req_capsule_client_get(pill, (struct req_msg_field const *)(& RMF_OBD_IOOBJ)); ioobj = (struct obd_ioobj *)tmp___3; tmp___4 = req_capsule_client_get(pill, (struct req_msg_field const *)(& RMF_NIOBUF_REMOTE)); niobuf = (struct niobuf_remote *)tmp___4; tmp___5 = ldv__builtin_expect((long )(((unsigned long )body == (unsigned long )((struct ost_body *)0) || (unsigned long )ioobj == (unsigned long )((struct obd_ioobj *)0)) || (unsigned long )niobuf == (unsigned long )((struct niobuf_remote *)0)), 0L); if (tmp___5 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_brw_prep_request"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1317; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"body != ((void *)0) && ioobj != ((void *)0) && niobuf != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } lustre_set_wire_obdo(& (req->rq_import)->imp_connect_data, & body->oa, (struct obdo const *)oa); obdo_to_ioobj(oa, ioobj); ioobj->ioo_bufcnt = (__u32 )niocount; ioobj->ioo_max_brw = (__u32 )((desc->bd_md_max_brw + -1) << 16); osc_pack_capa(req, body, (void *)ocapa); tmp___6 = ldv__builtin_expect(page_count___0 == 0U, 0L); if (tmp___6 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___0.msg_fn = "osc_brw_prep_request"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1330; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"page_count > 0"); lbug_with_loc(& __msg_data___0); } else { } pg_prev = *pga; i = 0; requested_nob = i; goto ldv_64437; ldv_64436: pg = *(pga + (unsigned long )i); poff = (int )pg->off & 4095; tmp___7 = ldv__builtin_expect(pg->count <= 0, 0L); if (tmp___7 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___1.msg_fn = "osc_brw_prep_request"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 1336; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"pg->count > 0"); lbug_with_loc(& __msg_data___1); } else { } tmp___8 = ldv__builtin_expect((long )(page_count___0 != 1U && (((i == 0 && pg->count + poff != 4096) || ((i > 0 && (u32 )i < page_count___0 - 1U) && (poff != 0 || pg->count != 4096))) || ((u32 )i == page_count___0 - 1U && poff != 0))), 0L); if (tmp___8 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___2.msg_fn = "osc_brw_prep_request"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 1344; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: i: %d/%d pg: %p off: %llu, count: %u\n", (char *)"page_count == 1 || (ergo(i == 0, poff + pg->count == PAGE_CACHE_SIZE) && ergo(i > 0 && i < page_count - 1, poff == 0 && pg->count == PAGE_CACHE_SIZE) && ergo(i == page_count - 1, poff == 0))", i, page_count___0, pg, pg->off, pg->count); lbug_with_loc(& __msg_data___2); } else { } tmp___9 = ldv__builtin_expect((long )(i != 0 && pg->off <= pg_prev->off), 0L); if (tmp___9 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___3.msg_fn = "osc_brw_prep_request"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 1350; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: i %d p_c %u pg %p [pri %lu ind %lu] off %llu prev_pg %p [pri %lu ind %lu] off %llu\n", (char *)"i == 0 || pg->off > pg_prev->off", i, page_count___0, pg->pg, (pg->pg)->__annonCompField46.private, (pg->pg)->__annonCompField42.__annonCompField37.index, pg->off, pg_prev->pg, (pg_prev->pg)->__annonCompField46.private, (pg_prev->pg)->__annonCompField42.__annonCompField37.index, pg_prev->off); lbug_with_loc(& __msg_data___3); } else { } tmp___10 = ldv__builtin_expect((((*pga)->flag ^ pg->flag) & 512U) != 0U, 0L); if (tmp___10 != 0L) { __msg_data___4.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___4.msg_fn = "osc_brw_prep_request"; __msg_data___4.msg_subsys = 8; __msg_data___4.msg_line = 1352; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: \n", (char *)"(pga[0]->flag & 0x200) == (pg->flag & 0x200)"); lbug_with_loc(& __msg_data___4); } else { } ptlrpc_prep_bulk_page_pin(desc, pg->pg, poff, pg->count); requested_nob = pg->count + requested_nob; if (i > 0) { tmp___11 = can_merge_pages(pg_prev, pg); if (tmp___11 != 0) { niobuf = niobuf - 1; niobuf->len = niobuf->len + (__u32 )pg->count; } else { niobuf->offset = pg->off; niobuf->len = (__u32 )pg->count; niobuf->flags = pg->flag; } } else { niobuf->offset = pg->off; niobuf->len = (__u32 )pg->count; niobuf->flags = pg->flag; } pg_prev = pg; i = i + 1; niobuf = niobuf + 1; ldv_64437: ; if ((u32 )i < page_count___0) { goto ldv_64436; } else { } tmp___13 = req_capsule_client_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_NIOBUF_REMOTE)); tmp___14 = ldv__builtin_expect((unsigned long )((void *)(niobuf + - ((unsigned long )niocount))) != (unsigned long )tmp___13, 0L); if (tmp___14 != 0L) { __msg_data___5.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___5.msg_fn = "osc_brw_prep_request"; __msg_data___5.msg_subsys = 8; __msg_data___5.msg_line = 1371; __msg_data___5.msg_mask = 0; __msg_data___5.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___5.msg_mask = 262144; tmp___12 = req_capsule_client_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_NIOBUF_REMOTE)); libcfs_debug_msg(& __msg_data___5, "ASSERTION( %s ) failed: want %p - real %p\n", (char *)"(void *)(niobuf - niocount) == req_capsule_client_get(&req->rq_pill, &RMF_NIOBUF_REMOTE)", tmp___12, (void *)(niobuf + - ((unsigned long )niocount))); lbug_with_loc(& __msg_data___5); } else { } osc_announce_cached(cli, & body->oa, opc == 4 ? (long )requested_nob : 0L); if (resend != 0) { if ((body->oa.o_valid & 2048ULL) == 0ULL) { body->oa.o_valid = body->oa.o_valid | 2048ULL; body->oa.o_flags = 0U; } else { } body->oa.o_flags = body->oa.o_flags | 524288U; } else { } tmp___15 = osc_should_shrink_grant(cli); if (tmp___15 != 0) { osc_shrink_grant_local(cli, & body->oa); } else { } if (opc == 4) { if ((unsigned int )*((unsigned char *)cli + 2984UL) != 0U) { tmp___19 = sptlrpc_flavor_has_bulk(& req->rq_flvr); if (tmp___19 == 0) { cksum_type = cli->cl_cksum_type; if ((body->oa.o_valid & 2048ULL) == 0ULL) { oa->o_flags = oa->o_flags & 4026531840U; body->oa.o_flags = 0U; } else { } tmp___16 = cksum_type_pack(cksum_type); body->oa.o_flags = body->oa.o_flags | tmp___16; body->oa.o_valid = body->oa.o_valid | 1050624ULL; body->oa.o_nlink = osc_checksum_bulk(requested_nob, page_count___0, pga, 4, cksum_type); tmp___17 = cfs_cdebug_show(32768U, 8U); if (tmp___17 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_brw_prep_request"; msgdata.msg_line = 1404; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32768; libcfs_debug_msg(& msgdata, "checksum at write origin: %x\n", body->oa.o_nlink); } else { } oa->o_valid = oa->o_valid | 1050624ULL; tmp___18 = cksum_type_pack(cksum_type); oa->o_flags = oa->o_flags | tmp___18; } else { oa->o_valid = oa->o_valid & 0xffffffffffefffffULL; } } else { oa->o_valid = oa->o_valid & 0xffffffffffefffffULL; } oa->o_nlink = body->oa.o_nlink; req_capsule_set_size(pill, (struct req_msg_field const *)(& RMF_RCS), 1, (int )((unsigned int )niocount * 4U)); } else if ((unsigned int )*((unsigned char *)cli + 2984UL) != 0U) { tmp___21 = sptlrpc_flavor_has_bulk(& req->rq_flvr); if (tmp___21 == 0) { if ((body->oa.o_valid & 2048ULL) == 0ULL) { body->oa.o_flags = 0U; } else { } tmp___20 = cksum_type_pack(cli->cl_cksum_type); body->oa.o_flags = body->oa.o_flags | tmp___20; body->oa.o_valid = body->oa.o_valid | 1050624ULL; } else { } } else { } ptlrpc_request_set_replen(req); switch (42) { case 1: ; case 0: ; goto ldv_64444; } ldv_64444: aa = (struct osc_brw_async_args *)(& req->rq_async_args); aa->aa_oa = oa; aa->aa_requested_nob = requested_nob; aa->aa_nio_count = niocount; aa->aa_page_count = page_count___0; aa->aa_resends = 0; aa->aa_ppga = pga; aa->aa_cli = cli; INIT_LIST_HEAD(& aa->aa_oaps); if ((unsigned long )ocapa != (unsigned long )((struct obd_capa *)0) && reserve != 0) { aa->aa_ocapa = capa_get(ocapa); } else { } *reqp = req; return (0); out: ptlrpc_req_finished(req); return (rc); } } static int check_write_checksum(struct obdo *oa , lnet_process_id_t const *peer , __u32 client_cksum , __u32 server_cksum , int nob , u32 page_count___0 , struct brw_page **pga , cksum_type_t client_cksum_type ) { __u32 new_cksum ; char *msg ; cksum_type_t cksum_type ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; __u64 tmp___0 ; __u64 tmp___1 ; char *tmp___2 ; int tmp___3 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___4 ; { if (server_cksum == client_cksum) { tmp = cfs_cdebug_show(32768U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "check_write_checksum"; msgdata.msg_line = 1459; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32768; libcfs_debug_msg(& msgdata, "checksum %x confirmed\n", client_cksum); } else { } return (0); } else { } cksum_type = cksum_type_unpack((oa->o_valid & 2048ULL) != 0ULL ? oa->o_flags : 0U); new_cksum = osc_checksum_bulk(nob, page_count___0, pga, 4, cksum_type); if ((unsigned int )cksum_type != (unsigned int )client_cksum_type) { msg = (char *)"the server did not use the checksum type specified in the original request - likely a protocol problem"; } else if (new_cksum == server_cksum) { msg = (char *)"changed on the client after we checksummed it - likely false positive due to mmap IO (bug 11742)"; } else if (new_cksum == client_cksum) { msg = (char *)"changed in transit before arrival at OST"; } else { msg = (char *)"changed in transit AND doesn\'t match the original - likely false positive due to mmap IO (bug 11742)"; } tmp___3 = cfs_cdebug_show(33685504U, 8U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___0.msg_fn = "check_write_checksum"; msgdata___0.msg_line = 1487; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 33685504; tmp___0 = ostid_id((struct ost_id const *)(& oa->o_oi)); tmp___1 = ostid_seq((struct ost_id const *)(& oa->o_oi)); tmp___2 = libcfs_nid2str(peer->nid); libcfs_debug_msg(& msgdata___0, "%x-%x: BAD WRITE CHECKSUM: %s: from %s inode [%#llx:0x%x:0x%x] object %#llx:%llu extent [%llu-%llu]\n", 306, 0, msg, tmp___2, (oa->o_valid & 33554432ULL) != 0ULL ? oa->o_parent_seq : 0ULL, (oa->o_valid & 33554432ULL) != 0ULL ? oa->o_parent_oid : 0U, (oa->o_valid & 33554432ULL) != 0ULL ? oa->o_parent_ver : 0U, tmp___1, tmp___0, (*pga)->off, ((*(pga + (unsigned long )(page_count___0 - 1U)))->off + (u64 )(*(pga + (unsigned long )(page_count___0 - 1U)))->count) - 1ULL); } else { } tmp___4 = cfs_cdebug_show(131072U, 8U); if (tmp___4 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___1.msg_fn = "check_write_checksum"; msgdata___1.msg_line = 1490; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "original client csum %x (type %x), server csum %x (type %x), client csum now %x\n", client_cksum, (unsigned int )client_cksum_type, server_cksum, (unsigned int )cksum_type, new_cksum); } else { } return (1); } } static int osc_brw_fini_request(struct ptlrpc_request *req , int rc ) { struct osc_brw_async_args *aa ; lnet_process_id_t const *peer ; struct client_obd *cli ; struct ost_body *body ; __u32 client_cksum ; struct libcfs_debug_msg_data msgdata___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp ; void *tmp___0 ; struct libcfs_debug_msg_data msgdata___2 ; unsigned int qid[3U] ; unsigned int tmp___1 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___2 ; __u32 tmp___3 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___4 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___5 ; int tmp___6 ; cksum_type_t tmp___7 ; int tmp___8 ; __u32 tmp___9 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___10 ; struct cfs_debug_limit_state cdls___3 ; struct libcfs_debug_msg_data msgdata___6 ; int tmp___11 ; int cksum_counter ; __u32 server_cksum ; char *via ; char *router ; cksum_type_t cksum_type ; struct cfs_debug_limit_state cdls___4 ; struct libcfs_debug_msg_data msgdata___7 ; __u64 tmp___12 ; __u64 tmp___13 ; char *tmp___14 ; int tmp___15 ; struct cfs_debug_limit_state cdls___5 ; struct libcfs_debug_msg_data msgdata___8 ; int tmp___16 ; struct libcfs_debug_msg_data msgdata___9 ; int tmp___17 ; int cksum_missed ; struct cfs_debug_limit_state cdls___6 ; struct libcfs_debug_msg_data msgdata___10 ; char *tmp___18 ; int tmp___19 ; long tmp___20 ; { aa = (struct osc_brw_async_args *)(& req->rq_async_args); peer = (lnet_process_id_t const *)(& ((req->rq_import)->imp_connection)->c_peer); cli = aa->aa_cli; client_cksum = 0U; if (rc < 0 && rc != -122) { msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___0.msg_fn = "osc_brw_fini_request"; msgdata___0.msg_subsys = 8; msgdata___0.msg_line = 1505; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 64; if ((libcfs_debug & 64U) != 0U && (libcfs_subsystem_debug & 8U) != 0U) { _debug_req(req, & msgdata___0, "@@@ Failed request with rc = %d\n ", rc); } else { } return (rc); } else { } tmp = ldv__builtin_expect((unsigned long )req->rq_repmsg == (unsigned long )((struct lustre_msg_v2 *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_brw_fini_request"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1509; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: rc = %d\n", (char *)"req->rq_repmsg != NULL", rc); lbug_with_loc(& __msg_data); } else { } tmp___0 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OST_BODY)); body = (struct ost_body *)tmp___0; if ((unsigned long )body == (unsigned long )((struct ost_body *)0)) { msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___2.msg_fn = "osc_brw_fini_request"; msgdata___2.msg_subsys = 8; msgdata___2.msg_line = 1512; msgdata___2.msg_mask = 0; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 64; if ((libcfs_debug & 64U) != 0U && (libcfs_subsystem_debug & 8U) != 0U) { _debug_req(req, & msgdata___2, "@@@ Can\'t unpack body\n "); } else { } return (-71); } else { } tmp___3 = lustre_msg_get_opc(req->rq_reqmsg); if (tmp___3 == 4U && (body->oa.o_valid & 1610612736ULL) != 0ULL) { qid[0] = body->oa.o_uid; qid[1] = body->oa.o_gid; tmp___1 = 2U; while (1) { if (tmp___1 >= 3U) { break; } else { } qid[tmp___1] = 0U; tmp___1 = tmp___1 + 1U; } tmp___2 = cfs_cdebug_show(67108864U, 8U); if (tmp___2 != 0) { msgdata___3.msg_subsys = 8; msgdata___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___3.msg_fn = "osc_brw_fini_request"; msgdata___3.msg_line = 1523; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 67108864; libcfs_debug_msg(& msgdata___3, "setdq for [%u %u] with valid %#llx, flags %x\n", body->oa.o_uid, body->oa.o_gid, body->oa.o_valid, body->oa.o_flags); } else { } osc_quota_setdq(cli, (unsigned int const *)(& qid), (u32 )body->oa.o_valid, body->oa.o_flags); } else { } osc_update_grant(cli, body); if (rc < 0) { return (rc); } else { } if (((aa->aa_oa)->o_valid & 1048576ULL) != 0ULL) { client_cksum = (aa->aa_oa)->o_nlink; } else { } tmp___9 = lustre_msg_get_opc(req->rq_reqmsg); if (tmp___9 == 4U) { if (rc > 0) { tmp___4 = cfs_cdebug_show(131072U, 8U); if (tmp___4 != 0) { msgdata___4.msg_subsys = 8; msgdata___4.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___4.msg_fn = "osc_brw_fini_request"; msgdata___4.msg_line = 1537; msgdata___4.msg_cdls = & cdls___1; msgdata___4.msg_mask = 131072; libcfs_debug_msg(& msgdata___4, "Unexpected +ve rc %d\n", rc); } else { } return (-71); } else { } tmp___5 = ldv__builtin_expect((req->rq_bulk)->bd_nob != aa->aa_requested_nob, 0L); if (tmp___5 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___0.msg_fn = "osc_brw_fini_request"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1540; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"req->rq_bulk->bd_nob == aa->aa_requested_nob"); lbug_with_loc(& __msg_data___0); } else { } tmp___6 = sptlrpc_cli_unwrap_bulk_write(req, req->rq_bulk); if (tmp___6 != 0) { return (-11); } else { } if (((aa->aa_oa)->o_valid & 1048576ULL) != 0ULL && client_cksum != 0U) { tmp___7 = cksum_type_unpack((aa->aa_oa)->o_flags); tmp___8 = check_write_checksum(& body->oa, peer, client_cksum, body->oa.o_nlink, aa->aa_requested_nob, aa->aa_page_count, aa->aa_ppga, tmp___7); if (tmp___8 != 0) { return (-11); } else { } } else { } rc = check_write_rcs(req, aa->aa_requested_nob, aa->aa_nio_count, aa->aa_page_count, aa->aa_ppga); goto out; } else { } rc = sptlrpc_cli_unwrap_bulk_read(req, req->rq_bulk, rc); if (rc < 0) { rc = -11; goto out; } else { } if (aa->aa_requested_nob < rc) { tmp___10 = cfs_cdebug_show(131072U, 8U); if (tmp___10 != 0) { msgdata___5.msg_subsys = 8; msgdata___5.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___5.msg_fn = "osc_brw_fini_request"; msgdata___5.msg_line = 1569; msgdata___5.msg_cdls = & cdls___2; msgdata___5.msg_mask = 131072; libcfs_debug_msg(& msgdata___5, "Unexpected rc %d (%d requested)\n", rc, aa->aa_requested_nob); } else { } return (-71); } else { } if ((req->rq_bulk)->bd_nob_transferred != rc) { tmp___11 = cfs_cdebug_show(131072U, 8U); if (tmp___11 != 0) { msgdata___6.msg_subsys = 8; msgdata___6.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___6.msg_fn = "osc_brw_fini_request"; msgdata___6.msg_line = 1575; msgdata___6.msg_cdls = & cdls___3; msgdata___6.msg_mask = 131072; libcfs_debug_msg(& msgdata___6, "Unexpected rc %d (%d transferred)\n", rc, (req->rq_bulk)->bd_nob_transferred); } else { } return (-71); } else { } if (aa->aa_requested_nob > rc) { handle_short_read(rc, aa->aa_page_count, aa->aa_ppga); } else { } if ((body->oa.o_valid & 1048576ULL) != 0ULL) { server_cksum = body->oa.o_nlink; cksum_type = cksum_type_unpack((body->oa.o_valid & 2048ULL) != 0ULL ? body->oa.o_flags : 0U); client_cksum = osc_checksum_bulk(rc, aa->aa_page_count, aa->aa_ppga, 3, cksum_type); if ((unsigned long long )peer->nid == (req->rq_bulk)->bd_sender) { router = (char *)""; via = router; } else { via = (char *)" via "; router = libcfs_nid2str((req->rq_bulk)->bd_sender); } if (server_cksum != client_cksum) { tmp___15 = cfs_cdebug_show(33685504U, 8U); if (tmp___15 != 0) { msgdata___7.msg_subsys = 8; msgdata___7.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___7.msg_fn = "osc_brw_fini_request"; msgdata___7.msg_line = 1617; msgdata___7.msg_cdls = & cdls___4; msgdata___7.msg_mask = 33685504; tmp___12 = ostid_id((struct ost_id const *)(& body->oa.o_oi)); tmp___13 = ostid_seq((struct ost_id const *)(& body->oa.o_oi)); tmp___14 = libcfs_nid2str(peer->nid); libcfs_debug_msg(& msgdata___7, "%x-%x: %s: BAD READ CHECKSUM: from %s%s%s inode [%#llx:0x%x:0x%x] object %#llx:%llu extent [%llu-%llu]\n", 307, 1, (char *)(& ((req->rq_import)->imp_obd)->obd_name), tmp___14, via, router, (body->oa.o_valid & 33554432ULL) != 0ULL ? body->oa.o_parent_seq : 0ULL, (body->oa.o_valid & 33554432ULL) != 0ULL ? body->oa.o_parent_oid : 0U, (body->oa.o_valid & 33554432ULL) != 0ULL ? body->oa.o_parent_ver : 0U, tmp___13, tmp___12, (*(aa->aa_ppga))->off, ((*(aa->aa_ppga + (unsigned long )(aa->aa_page_count - 1U)))->off + (u64 )(*(aa->aa_ppga + (unsigned long )(aa->aa_page_count - 1U)))->count) - 1ULL); } else { } tmp___16 = cfs_cdebug_show(131072U, 8U); if (tmp___16 != 0) { msgdata___8.msg_subsys = 8; msgdata___8.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___8.msg_fn = "osc_brw_fini_request"; msgdata___8.msg_line = 1619; msgdata___8.msg_cdls = & cdls___5; msgdata___8.msg_mask = 131072; libcfs_debug_msg(& msgdata___8, "client %x, server %x, cksum_type %x\n", client_cksum, server_cksum, (unsigned int )cksum_type); } else { } cksum_counter = 0; (aa->aa_oa)->o_nlink = client_cksum; rc = -11; } else { cksum_counter = cksum_counter + 1; tmp___17 = cfs_cdebug_show(32768U, 8U); if (tmp___17 != 0) { msgdata___9.msg_subsys = 8; msgdata___9.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___9.msg_fn = "osc_brw_fini_request"; msgdata___9.msg_line = 1625; msgdata___9.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___9.msg_mask = 32768; libcfs_debug_msg(& msgdata___9, "checksum %x confirmed\n", client_cksum); } else { } rc = 0; } } else { tmp___20 = ldv__builtin_expect(client_cksum != 0U, 0L); if (tmp___20 != 0L) { cksum_missed = cksum_missed + 1; if ((- cksum_missed & cksum_missed) == cksum_missed) { tmp___19 = cfs_cdebug_show(131072U, 8U); if (tmp___19 != 0) { msgdata___10.msg_subsys = 8; msgdata___10.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___10.msg_fn = "osc_brw_fini_request"; msgdata___10.msg_line = 1634; msgdata___10.msg_cdls = & cdls___6; msgdata___10.msg_mask = 131072; tmp___18 = libcfs_nid2str(peer->nid); libcfs_debug_msg(& msgdata___10, "Checksum %u requested from %s but not sent\n", cksum_missed, tmp___18); } else { } } else { } } else { rc = 0; } } out: ; if (rc >= 0) { lustre_get_wire_obdo(& (req->rq_import)->imp_connect_data, aa->aa_oa, (struct obdo const *)(& body->oa)); } else { } return (rc); } } static int osc_brw_redo_request(struct ptlrpc_request *request , struct osc_brw_async_args *aa , int rc ) { struct ptlrpc_request *new_req ; struct osc_brw_async_args *new_aa ; struct osc_async_page *oap ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; __u32 tmp ; struct list_head const *__mptr ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct list_head const *__mptr___0 ; unsigned long tmp___1 ; unsigned long tmp___2 ; struct list_head const *__mptr___1 ; struct list_head const *__mptr___2 ; struct libcfs_debug_msg_data msgdata___2 ; { if (rc != -115) { msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_brw_redo_request"; msgdata.msg_subsys = 8; msgdata.msg_line = 1654; msgdata.msg_mask = 0; msgdata.msg_cdls = & cdls; msgdata.msg_mask = rc == -115 ? 1048576 : 131072; if (rc != -115 || (((rc == -115 ? 1048576U : 131072U) & libcfs_debug) != 0U && (libcfs_subsystem_debug & 8U) != 0U)) { _debug_req(request, & msgdata, "@@@ redo for recoverable error %d ", rc); } else { } } else { msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___0.msg_fn = "osc_brw_redo_request"; msgdata___0.msg_subsys = 8; msgdata___0.msg_line = 1654; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = rc == -115 ? 1048576 : 131072; if (rc != -115 || (((rc == -115 ? 1048576U : 131072U) & libcfs_debug) != 0U && (libcfs_subsystem_debug & 8U) != 0U)) { _debug_req(request, & msgdata___0, "@@@ redo for recoverable error %d ", rc); } else { } } tmp = lustre_msg_get_opc(request->rq_reqmsg); rc = osc_brw_prep_request(tmp == 4U ? 2 : 1, aa->aa_cli, aa->aa_oa, (struct lov_stripe_md *)0, aa->aa_page_count, aa->aa_ppga, & new_req, aa->aa_ocapa, 0, 1); if (rc != 0) { return (rc); } else { } __mptr = (struct list_head const *)aa->aa_oaps.next; oap = (struct osc_async_page *)__mptr + 0xffffffffffffffe8UL; goto ldv_64522; ldv_64521: ; if ((unsigned long )oap->oap_request != (unsigned long )((struct ptlrpc_request *)0)) { tmp___0 = ldv__builtin_expect((unsigned long )oap->oap_request != (unsigned long )request, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_brw_redo_request"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1669; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: request %p != oap_request %p\n", (char *)"request == oap->oap_request", request, oap->oap_request); lbug_with_loc(& __msg_data); } else { } if ((unsigned int )*((unsigned char *)oap + 6UL) != 0U) { ptlrpc_req_finished(new_req); return (-4); } else { } } else { } __mptr___0 = (struct list_head const *)oap->oap_rpc_item.next; oap = (struct osc_async_page *)__mptr___0 + 0xffffffffffffffe8UL; ldv_64522: ; if ((unsigned long )(& oap->oap_rpc_item) != (unsigned long )(& aa->aa_oaps)) { goto ldv_64521; } else { } aa->aa_resends = aa->aa_resends + 1; new_req->rq_interpret_reply = request->rq_interpret_reply; new_req->rq_async_args = request->rq_async_args; if (aa->aa_resends > new_req->rq_timeout) { tmp___1 = get_seconds(); new_req->rq_sent = (time_t )(tmp___1 + (unsigned long )new_req->rq_timeout); } else { tmp___2 = get_seconds(); new_req->rq_sent = (time_t )(tmp___2 + (unsigned long )aa->aa_resends); } new_req->rq_generation_set = 1U; new_req->rq_import_generation = request->rq_import_generation; new_aa = (struct osc_brw_async_args *)(& new_req->rq_async_args); INIT_LIST_HEAD(& new_aa->aa_oaps); list_splice_init(& aa->aa_oaps, & new_aa->aa_oaps); INIT_LIST_HEAD(& new_aa->aa_exts); list_splice_init(& aa->aa_exts, & new_aa->aa_exts); new_aa->aa_resends = aa->aa_resends; __mptr___1 = (struct list_head const *)new_aa->aa_oaps.next; oap = (struct osc_async_page *)__mptr___1 + 0xffffffffffffffe8UL; goto ldv_64529; ldv_64528: ; if ((unsigned long )oap->oap_request != (unsigned long )((struct ptlrpc_request *)0)) { ptlrpc_req_finished(oap->oap_request); oap->oap_request = ptlrpc_request_addref(new_req); } else { } __mptr___2 = (struct list_head const *)oap->oap_rpc_item.next; oap = (struct osc_async_page *)__mptr___2 + 0xffffffffffffffe8UL; ldv_64529: ; if ((unsigned long )(& oap->oap_rpc_item) != (unsigned long )(& new_aa->aa_oaps)) { goto ldv_64528; } else { } new_aa->aa_ocapa = aa->aa_ocapa; aa->aa_ocapa = (struct obd_capa *)0; ptlrpcd_add_req(new_req, 1, -1); msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___2.msg_fn = "osc_brw_redo_request"; msgdata___2.msg_subsys = 8; msgdata___2.msg_line = 1714; msgdata___2.msg_mask = 0; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 64; if ((libcfs_debug & 64U) != 0U && (libcfs_subsystem_debug & 8U) != 0U) { _debug_req(new_req, & msgdata___2, "@@@ new request "); } else { } return (0); } } static void sort_brw_pages(struct brw_page **array , int num ) { int stride ; int i ; int j ; struct brw_page *tmp ; { if (num == 1) { return; } else { } stride = 1; goto ldv_64543; ldv_64542: stride = stride * 3 + 1; ldv_64543: ; if (stride < num) { goto ldv_64542; } else { } ldv_64551: stride = stride / 3; i = stride; goto ldv_64549; ldv_64548: tmp = *(array + (unsigned long )i); j = i; goto ldv_64546; ldv_64545: *(array + (unsigned long )j) = *(array + (unsigned long )(j - stride)); j = j - stride; ldv_64546: ; if (j >= stride && (*(array + (unsigned long )(j - stride)))->off > tmp->off) { goto ldv_64545; } else { } *(array + (unsigned long )j) = tmp; i = i + 1; ldv_64549: ; if (i < num) { goto ldv_64548; } else { } if (stride > 1) { goto ldv_64551; } else { } return; } } static void osc_release_ppga(struct brw_page **ppga , u32 count ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((unsigned long )ppga == (unsigned long )((struct brw_page **)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_release_ppga"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1751; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"ppga != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } kfree((void const *)ppga); return; } } static int brw_interpret(struct lu_env const *env , struct ptlrpc_request *req , void *data , int rc ) { struct osc_brw_async_args *aa ; struct osc_extent *ext ; struct osc_extent *tmp ; struct cl_object *obj ; struct client_obd *cli ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; __u64 tmp___1 ; __u64 tmp___2 ; int tmp___3 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___1 ; __u64 tmp___4 ; __u64 tmp___5 ; int tmp___6 ; int tmp___7 ; int tmp___8 ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; struct libcfs_debug_msg_data __msg_data ; int tmp___9 ; long tmp___10 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___11 ; long tmp___12 ; struct obdo *oa ; struct cl_attr *attr ; struct osc_thread_info *tmp___13 ; unsigned long valid ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___14 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___15 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___16 ; __u32 tmp___17 ; { aa = (struct osc_brw_async_args *)data; obj = (struct cl_object *)0; cli = aa->aa_cli; rc = osc_brw_fini_request(req, rc); tmp___0 = cfs_cdebug_show(2U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "brw_interpret"; msgdata.msg_line = 1765; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; libcfs_debug_msg(& msgdata, "request %p aa %p rc %d\n", req, aa, rc); } else { } tmp___8 = osc_recoverable_error(rc); if (tmp___8 != 0) { if (req->rq_import_generation != (req->rq_import)->imp_generation) { tmp___3 = cfs_cdebug_show(524288U, 8U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___0.msg_fn = "brw_interpret"; msgdata___0.msg_line = 1773; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 524288; tmp___1 = ostid_id((struct ost_id const *)(& (aa->aa_oa)->o_oi)); tmp___2 = ostid_seq((struct ost_id const *)(& (aa->aa_oa)->o_oi)); libcfs_debug_msg(& msgdata___0, "%s: resend cross eviction for object: %#llx:%llu, rc = %d.\n", (char *)(& ((req->rq_import)->imp_obd)->obd_name), tmp___2, tmp___1, rc); } else { } } else if (rc == -115) { rc = osc_brw_redo_request(req, aa, rc); } else { tmp___7 = client_should_resend(aa->aa_resends, aa->aa_cli); if (tmp___7 != 0) { rc = osc_brw_redo_request(req, aa, rc); } else { tmp___6 = cfs_cdebug_show(131072U, 8U); if (tmp___6 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___1.msg_fn = "brw_interpret"; msgdata___1.msg_line = 1780; msgdata___1.msg_cdls = & cdls; msgdata___1.msg_mask = 131072; tmp___4 = ostid_id((struct ost_id const *)(& (aa->aa_oa)->o_oi)); tmp___5 = ostid_seq((struct ost_id const *)(& (aa->aa_oa)->o_oi)); libcfs_debug_msg(& msgdata___1, "%s: too many resent retries for object: %llu:%llu, rc = %d.\n", (char *)(& ((req->rq_import)->imp_obd)->obd_name), tmp___5, tmp___4, rc); } else { } } } if (rc == 0) { return (0); } else if (rc == -11 || rc == -115) { rc = -5; } else { } } else { } if ((unsigned long )aa->aa_ocapa != (unsigned long )((struct obd_capa *)0)) { capa_put(aa->aa_ocapa); aa->aa_ocapa = (struct obd_capa *)0; } else { } __mptr = (struct list_head const *)aa->aa_exts.next; ext = (struct osc_extent *)__mptr + 0xffffffffffffffd8UL; __mptr___0 = (struct list_head const *)ext->oe_link.next; tmp = (struct osc_extent *)__mptr___0 + 0xffffffffffffffd8UL; goto ldv_64582; ldv_64581: ; if ((unsigned long )obj == (unsigned long )((struct cl_object *)0) && rc == 0) { obj = osc2cl((struct osc_object const *)ext->oe_obj); cl_object_get(obj); } else { } list_del_init(& ext->oe_link); osc_extent_finish(env, ext, 1, rc); ext = tmp; __mptr___1 = (struct list_head const *)tmp->oe_link.next; tmp = (struct osc_extent *)__mptr___1 + 0xffffffffffffffd8UL; ldv_64582: ; if ((unsigned long )(& ext->oe_link) != (unsigned long )(& aa->aa_exts)) { goto ldv_64581; } else { } tmp___9 = list_empty((struct list_head const *)(& aa->aa_exts)); tmp___10 = ldv__builtin_expect(tmp___9 == 0, 0L); if (tmp___10 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "brw_interpret"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1803; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&aa->aa_exts)"); lbug_with_loc(& __msg_data); } else { } tmp___11 = list_empty((struct list_head const *)(& aa->aa_oaps)); tmp___12 = ldv__builtin_expect(tmp___11 == 0, 0L); if (tmp___12 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___0.msg_fn = "brw_interpret"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1804; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&aa->aa_oaps)"); lbug_with_loc(& __msg_data___0); } else { } if ((unsigned long )obj != (unsigned long )((struct cl_object *)0)) { oa = aa->aa_oa; tmp___13 = osc_env_info(env); attr = & tmp___13->oti_attr; valid = 0UL; tmp___14 = ldv__builtin_expect(rc != 0, 0L); if (tmp___14 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___1.msg_fn = "brw_interpret"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 1811; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"rc == 0"); lbug_with_loc(& __msg_data___1); } else { } if ((oa->o_valid & 32ULL) != 0ULL) { attr->cat_blocks = oa->o_blocks; valid = valid | 64UL; } else { } if ((oa->o_valid & 4ULL) != 0ULL) { attr->cat_mtime = (time_t )oa->o_mtime; valid = valid | 8UL; } else { } if ((oa->o_valid & 2ULL) != 0ULL) { attr->cat_atime = (time_t )oa->o_atime; valid = valid | 16UL; } else { } if ((oa->o_valid & 8ULL) != 0ULL) { attr->cat_ctime = (time_t )oa->o_ctime; valid = valid | 32UL; } else { } if (valid != 0UL) { cl_object_attr_lock(obj); cl_object_attr_set(env, obj, (struct cl_attr const *)attr, (unsigned int )valid); cl_object_attr_unlock(obj); } else { } cl_object_put(env, obj); } else { } tmp___15 = ldv__builtin_expect((unsigned long )aa->aa_oa == (unsigned long )((struct obdo *)0), 0L); if (tmp___15 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___2.msg_fn = "brw_interpret"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 1835; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"((aa->aa_oa))"); lbug_with_loc(& __msg_data___2); } else { } lprocfs_counter_sub(obd_memory, 0, 208L); tmp___16 = cfs_cdebug_show(16U, 8U); if (tmp___16 != 0) { msgdata___2.msg_subsys = 8; msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___2.msg_fn = "brw_interpret"; msgdata___2.msg_line = 1835; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 16; libcfs_debug_msg(& msgdata___2, "slab-freed \'((aa->aa_oa))\': %d at %p.\n", 208, aa->aa_oa); } else { } memset((void *)aa->aa_oa, 90, 208UL); kmem_cache_free(obdo_cachep, (void *)aa->aa_oa); aa->aa_oa = (struct obdo *)3735928559L; cl_req_completion(env, aa->aa_clerq, rc >= 0 ? (req->rq_bulk)->bd_nob_transferred : rc); osc_release_ppga(aa->aa_ppga, aa->aa_page_count); ptlrpc_lprocfs_brw(req, (req->rq_bulk)->bd_nob_transferred); __client_obd_list_lock(& cli->cl_loi_list_lock, "brw_interpret", 1842); tmp___17 = lustre_msg_get_opc(req->rq_reqmsg); if (tmp___17 == 4U) { cli->cl_w_in_flight = cli->cl_w_in_flight - 1; } else { cli->cl_r_in_flight = cli->cl_r_in_flight - 1; } osc_wake_cache_waiters(cli); client_obd_list_unlock(& cli->cl_loi_list_lock); osc_io_unplug(env, cli, (struct osc_object *)0, 1); return (rc); } } int osc_build_rpc(struct lu_env const *env , struct client_obd *cli , struct list_head *ext_list , int cmd , pdl_policy_t pol ) { struct ptlrpc_request *req ; struct osc_extent *ext ; struct brw_page **pga ; struct osc_brw_async_args *aa ; struct obdo *oa ; struct osc_async_page *oap ; struct osc_async_page *tmp ; struct cl_req *clerq ; enum cl_req_type crt ; struct ldlm_lock *lock ; struct cl_req_attr *crattr ; u64 starting_offset ; u64 ending_offset ; int mpflag ; int mem_tight ; int page_count___0 ; int i ; int rc ; struct ost_body *body ; struct list_head rpc_list ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; struct list_head const *__mptr ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___2 ; struct list_head const *__mptr___0 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___3 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___4 ; struct list_head const *__mptr___1 ; struct list_head const *__mptr___2 ; void *tmp___5 ; void *tmp___6 ; struct libcfs_debug_msg_data __msg_data___3 ; int tmp___7 ; long tmp___8 ; void *tmp___9 ; struct libcfs_debug_msg_data msgdata ; int tmp___10 ; int tmp___11 ; int tmp___12 ; int tmp___13 ; long tmp___14 ; struct list_head const *__mptr___3 ; struct cl_page *page ; struct cl_page *tmp___15 ; long tmp___16 ; bool tmp___17 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___18 ; struct list_head const *__mptr___4 ; struct libcfs_debug_msg_data __msg_data___4 ; long tmp___19 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___20 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___21 ; void *tmp___22 ; struct list_head const *__mptr___5 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___23 ; struct list_head const *__mptr___6 ; struct libcfs_debug_msg_data msgdata___5 ; struct libcfs_debug_msg_data __msg_data___5 ; long tmp___24 ; struct libcfs_debug_msg_data __msg_data___6 ; long tmp___25 ; struct libcfs_debug_msg_data msgdata___6 ; int tmp___26 ; struct list_head const *__mptr___7 ; int tmp___27 ; bool tmp___28 ; int tmp___29 ; { req = (struct ptlrpc_request *)0; pga = (struct brw_page **)0; aa = (struct osc_brw_async_args *)0; oa = (struct obdo *)0; clerq = (struct cl_req *)0; crt = (cmd & 2) != 0; lock = (struct ldlm_lock *)0; crattr = (struct cl_req_attr *)0; starting_offset = 0xffffffffffffffffULL; ending_offset = 0ULL; mpflag = 0; mem_tight = 0; page_count___0 = 0; rpc_list.next = & rpc_list; rpc_list.prev = & rpc_list; tmp___0 = list_empty((struct list_head const *)ext_list); tmp___1 = ldv__builtin_expect(tmp___0 != 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_build_rpc"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1886; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!list_empty(ext_list)"); lbug_with_loc(& __msg_data); } else { } __mptr = (struct list_head const *)ext_list->next; ext = (struct osc_extent *)__mptr + 0xffffffffffffffd8UL; goto ldv_64636; ldv_64635: tmp___2 = ldv__builtin_expect(ext->oe_state != 5U, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___0.msg_fn = "osc_build_rpc"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1890; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_state == OES_RPC"); lbug_with_loc(& __msg_data___0); } else { } mem_tight = (int )ext->oe_memalloc | mem_tight; __mptr___0 = (struct list_head const *)ext->oe_pages.next; oap = (struct osc_async_page *)__mptr___0 + 0xfffffffffffffff8UL; goto ldv_64633; ldv_64632: page_count___0 = page_count___0 + 1; list_add_tail(& oap->oap_rpc_item, & rpc_list); if (oap->oap_obj_off < starting_offset) { starting_offset = oap->oap_obj_off; } else { tmp___3 = ldv__builtin_expect(oap->oap_page_off != 0U, 0L); if (tmp___3 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___1.msg_fn = "osc_build_rpc"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 1898; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"oap->oap_page_off == 0"); lbug_with_loc(& __msg_data___1); } else { } } if (oap->oap_obj_off + (u64 )oap->oap_brw_page.count > ending_offset) { ending_offset = oap->oap_obj_off + (u64 )oap->oap_brw_page.count; } else { tmp___4 = ldv__builtin_expect(oap->oap_page_off + (unsigned int )oap->oap_brw_page.count != 4096U, 0L); if (tmp___4 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___2.msg_fn = "osc_build_rpc"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 1904; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"oap->oap_page_off + oap->oap_brw_page.count == ((1UL) << 12)"); lbug_with_loc(& __msg_data___2); } else { } } __mptr___1 = (struct list_head const *)oap->oap_pending_item.next; oap = (struct osc_async_page *)__mptr___1 + 0xfffffffffffffff8UL; ldv_64633: ; if ((unsigned long )(& oap->oap_pending_item) != (unsigned long )(& ext->oe_pages)) { goto ldv_64632; } else { } __mptr___2 = (struct list_head const *)ext->oe_link.next; ext = (struct osc_extent *)__mptr___2 + 0xffffffffffffffd8UL; ldv_64636: ; if ((unsigned long )(& ext->oe_link) != (unsigned long )ext_list) { goto ldv_64635; } else { } if (mem_tight != 0) { mpflag = cfs_memory_pressure_get_and_set(); } else { } tmp___5 = kzalloc(48UL, 80U); crattr = (struct cl_req_attr *)tmp___5; if ((unsigned long )crattr == (unsigned long )((struct cl_req_attr *)0)) { rc = -12; goto out; } else { } tmp___6 = kcalloc((size_t )page_count___0, 8UL, 80U); pga = (struct brw_page **)tmp___6; if ((unsigned long )pga == (unsigned long )((struct brw_page **)0)) { rc = -12; goto out; } else { } tmp___7 = preempt_count(); tmp___8 = ldv__builtin_expect(((unsigned long )tmp___7 & 2096896UL) != 0UL, 0L); if (tmp___8 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___3.msg_fn = "osc_build_rpc"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 1923; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"(!((((( gfp_t)0x10u) | (( gfp_t)0x40u))) != ((( gfp_t)0x20u))) || (!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4)))))))"); lbug_with_loc(& __msg_data___3); } else { } tmp___9 = ldv_kmem_cache_alloc_38(obdo_cachep, 32848U); oa = (struct obdo *)tmp___9; if ((unsigned long )oa != (unsigned long )((struct obdo *)0)) { tmp___11 = cfs_fail_check_set(3072U, 0U, 0, 0); if (tmp___11 == 0 || obd_alloc_fail_rate == 0U) { tmp___13 = 1; } else { tmp___12 = obd_alloc_fail((void const *)oa, "(oa)", "slab-", 208UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c", 1923); if (tmp___12 == 0) { tmp___13 = 1; } else { kmem_cache_free(obdo_cachep, (void *)oa); oa = (struct obdo *)0; tmp___13 = 0; } } } else { tmp___13 = 0; } tmp___14 = ldv__builtin_expect((long )tmp___13, 1L); if (tmp___14 != 0L) { lprocfs_counter_add(obd_memory, 0, 208L); tmp___10 = cfs_cdebug_show(16U, 8U); if (tmp___10 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_build_rpc"; msgdata.msg_line = 1923; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'(oa)\': %d at %p.\n", 208, oa); } else { } } else { } if ((unsigned long )oa == (unsigned long )((struct obdo *)0)) { rc = -12; goto out; } else { } i = 0; __mptr___3 = (struct list_head const *)rpc_list.next; oap = (struct osc_async_page *)__mptr___3 + 0xffffffffffffffe8UL; goto ldv_64649; ldv_64648: tmp___15 = oap2cl_page(oap); page = tmp___15; if ((unsigned long )clerq == (unsigned long )((struct cl_req *)0)) { clerq = cl_req_alloc(env, page, crt, 1); tmp___17 = IS_ERR((void const *)clerq); if ((int )tmp___17) { tmp___16 = PTR_ERR((void const *)clerq); rc = (int )tmp___16; goto out; } else { } lock = oap->oap_ldlm_lock; } else { } if (mem_tight != 0) { oap->oap_brw_page.flag = oap->oap_brw_page.flag | 2048U; } else { } *(pga + (unsigned long )i) = & oap->oap_brw_page; (*(pga + (unsigned long )i))->off = oap->oap_obj_off + (u64 )oap->oap_page_off; tmp___18 = cfs_cdebug_show(0U, 8U); if (tmp___18 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___0.msg_fn = "osc_build_rpc"; msgdata___0.msg_line = 1947; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 0; libcfs_debug_msg(& msgdata___0, "put page %p index %lu oap %p flg %x to pga\n", (*(pga + (unsigned long )i))->pg, (oap->oap_brw_page.pg)->__annonCompField42.__annonCompField37.index, oap, (*(pga + (unsigned long )i))->flag); } else { } i = i + 1; cl_req_page_add(env, clerq, page); __mptr___4 = (struct list_head const *)oap->oap_rpc_item.next; oap = (struct osc_async_page *)__mptr___4 + 0xffffffffffffffe8UL; ldv_64649: ; if ((unsigned long )(& oap->oap_rpc_item) != (unsigned long )(& rpc_list)) { goto ldv_64648; } else { } tmp___19 = ldv__builtin_expect((unsigned long )clerq == (unsigned long )((struct cl_req *)0), 0L); if (tmp___19 != 0L) { __msg_data___4.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___4.msg_fn = "osc_build_rpc"; __msg_data___4.msg_subsys = 8; __msg_data___4.msg_line = 1953; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: \n", (char *)"clerq != ((void *)0)"); lbug_with_loc(& __msg_data___4); } else { } crattr->cra_oa = oa; cl_req_attr_set(env, clerq, crattr, 0xffffffffffffffffULL); if ((unsigned long )lock != (unsigned long )((struct ldlm_lock *)0)) { oa->o_handle = lock->l_remote_handle; oa->o_valid = oa->o_valid | 524288ULL; } else { } rc = cl_req_prep(env, clerq); if (rc != 0) { tmp___20 = cfs_cdebug_show(131072U, 8U); if (tmp___20 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___1.msg_fn = "osc_build_rpc"; msgdata___1.msg_line = 1963; msgdata___1.msg_cdls = & cdls; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "cl_req_prep failed: %d\n", rc); } else { } goto out; } else { } sort_brw_pages(pga, page_count___0); rc = osc_brw_prep_request(cmd, cli, oa, (struct lov_stripe_md *)0, (u32 )page_count___0, pga, & req, crattr->cra_capa, 1, 0); if (rc != 0) { tmp___21 = cfs_cdebug_show(131072U, 8U); if (tmp___21 != 0) { msgdata___2.msg_subsys = 8; msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___2.msg_fn = "osc_build_rpc"; msgdata___2.msg_line = 1971; msgdata___2.msg_cdls = & cdls___0; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "prep_req failed: %d\n", rc); } else { } goto out; } else { } req->rq_interpret_reply = & brw_interpret; if (mem_tight != 0) { req->rq_memalloc = 1U; } else { } tmp___22 = req_capsule_client_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OST_BODY)); body = (struct ost_body *)tmp___22; crattr->cra_oa = & body->oa; cl_req_attr_set(env, clerq, crattr, 14ULL); lustre_msg_set_jobid(req->rq_reqmsg, (char *)(& crattr->cra_jobid)); switch (42) { case 1: ; case 0: ; goto ldv_64658; } ldv_64658: aa = (struct osc_brw_async_args *)(& req->rq_async_args); INIT_LIST_HEAD(& aa->aa_oaps); list_splice_init(& rpc_list, & aa->aa_oaps); INIT_LIST_HEAD(& aa->aa_exts); list_splice_init(ext_list, & aa->aa_exts); aa->aa_clerq = clerq; tmp = (struct osc_async_page *)0; __mptr___5 = (struct list_head const *)aa->aa_oaps.next; oap = (struct osc_async_page *)__mptr___5 + 0xffffffffffffffe8UL; goto ldv_64665; ldv_64664: ; if ((unsigned long )tmp == (unsigned long )((struct osc_async_page *)0)) { tmp = oap; } else { } if ((unsigned int )*((unsigned char *)oap + 6UL) != 0U && (unsigned int )*((unsigned char *)req + 232UL) == 0U) { tmp___23 = cfs_cdebug_show(2U, 8U); if (tmp___23 != 0) { msgdata___3.msg_subsys = 8; msgdata___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___3.msg_fn = "osc_build_rpc"; msgdata___3.msg_line = 2009; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 2; libcfs_debug_msg(& msgdata___3, "oap %p in req %p interrupted\n", oap, req); } else { } ptlrpc_mark_interrupted(req); } else { } __mptr___6 = (struct list_head const *)oap->oap_rpc_item.next; oap = (struct osc_async_page *)__mptr___6 + 0xffffffffffffffe8UL; ldv_64665: ; if ((unsigned long )(& oap->oap_rpc_item) != (unsigned long )(& aa->aa_oaps)) { goto ldv_64664; } else { } if ((unsigned long )tmp != (unsigned long )((struct osc_async_page *)0)) { tmp->oap_request = ptlrpc_request_addref(req); } else { } __client_obd_list_lock(& cli->cl_loi_list_lock, "osc_build_rpc", 2016); starting_offset = starting_offset >> 12; if (cmd == 1) { cli->cl_r_in_flight = cli->cl_r_in_flight + 1; lprocfs_oh_tally_log2(& cli->cl_read_page_hist, (unsigned int )page_count___0); lprocfs_oh_tally(& cli->cl_read_rpc_hist, (unsigned int )cli->cl_r_in_flight); lprocfs_oh_tally_log2(& cli->cl_read_offset_hist, (unsigned int )starting_offset + 1U); } else { cli->cl_w_in_flight = cli->cl_w_in_flight + 1; lprocfs_oh_tally_log2(& cli->cl_write_page_hist, (unsigned int )page_count___0); lprocfs_oh_tally(& cli->cl_write_rpc_hist, (unsigned int )cli->cl_w_in_flight); lprocfs_oh_tally_log2(& cli->cl_write_offset_hist, (unsigned int )starting_offset + 1U); } client_obd_list_unlock(& cli->cl_loi_list_lock); msgdata___5.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___5.msg_fn = "osc_build_rpc"; msgdata___5.msg_subsys = 8; msgdata___5.msg_line = 2035; msgdata___5.msg_mask = 0; msgdata___5.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___5.msg_mask = 2; if ((libcfs_debug & 2U) != 0U && (libcfs_subsystem_debug & 8U) != 0U) { _debug_req(req, & msgdata___5, "@@@ %d pages, aa %p. now %dr/%dw in flight ", page_count___0, aa, cli->cl_r_in_flight, cli->cl_w_in_flight); } else { } ptlrpcd_add_req(req, pol, -1); rc = 0; out: ; if (mem_tight != 0) { cfs_memory_pressure_restore(mpflag); } else { } if ((unsigned long )crattr != (unsigned long )((struct cl_req_attr *)0)) { capa_put(crattr->cra_capa); kfree((void const *)crattr); } else { } if (rc != 0) { tmp___24 = ldv__builtin_expect((unsigned long )req != (unsigned long )((struct ptlrpc_request *)0), 0L); if (tmp___24 != 0L) { __msg_data___5.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___5.msg_fn = "osc_build_rpc"; __msg_data___5.msg_subsys = 8; __msg_data___5.msg_line = 2062; __msg_data___5.msg_mask = 0; __msg_data___5.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___5.msg_mask = 262144; libcfs_debug_msg(& __msg_data___5, "ASSERTION( %s ) failed: \n", (char *)"req == ((void *)0)"); lbug_with_loc(& __msg_data___5); } else { } if ((unsigned long )oa != (unsigned long )((struct obdo *)0)) { tmp___25 = ldv__builtin_expect((unsigned long )oa == (unsigned long )((struct obdo *)0), 0L); if (tmp___25 != 0L) { __msg_data___6.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___6.msg_fn = "osc_build_rpc"; __msg_data___6.msg_subsys = 8; __msg_data___6.msg_line = 2065; __msg_data___6.msg_mask = 0; __msg_data___6.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___6.msg_mask = 262144; libcfs_debug_msg(& __msg_data___6, "ASSERTION( %s ) failed: \n", (char *)"((oa))"); lbug_with_loc(& __msg_data___6); } else { } lprocfs_counter_sub(obd_memory, 0, 208L); tmp___26 = cfs_cdebug_show(16U, 8U); if (tmp___26 != 0) { msgdata___6.msg_subsys = 8; msgdata___6.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___6.msg_fn = "osc_build_rpc"; msgdata___6.msg_line = 2065; msgdata___6.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___6.msg_mask = 16; libcfs_debug_msg(& msgdata___6, "slab-freed \'((oa))\': %d at %p.\n", 208, oa); } else { } memset((void *)oa, 90, 208UL); kmem_cache_free(obdo_cachep, (void *)oa); oa = (struct obdo *)3735928559L; } else { } kfree((void const *)pga); goto ldv_64676; ldv_64675: __mptr___7 = (struct list_head const *)ext_list->next; ext = (struct osc_extent *)__mptr___7 + 0xffffffffffffffd8UL; list_del_init(& ext->oe_link); osc_extent_finish(env, ext, 0, rc); ldv_64676: tmp___27 = list_empty((struct list_head const *)ext_list); if (tmp___27 == 0) { goto ldv_64675; } else { } if ((unsigned long )clerq != (unsigned long )((struct cl_req *)0)) { tmp___28 = IS_ERR((void const *)clerq); if (tmp___28) { tmp___29 = 0; } else { tmp___29 = 1; } if (tmp___29) { cl_req_completion(env, clerq, rc); } else { } } else { } } else { } return (rc); } } static int osc_set_lock_data_with_check(struct ldlm_lock *lock , struct ldlm_enqueue_info *einfo ) { void *data ; int set ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___3 ; { data = einfo->ei_cbdata; set = 0; tmp = ldv__builtin_expect((unsigned long )lock == (unsigned long )((struct ldlm_lock *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_set_lock_data_with_check"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2087; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"lock != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect((unsigned long )((void *)lock->l_blocking_ast) != (unsigned long )einfo->ei_cb_bl, 0L); if (tmp___0 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___0.msg_fn = "osc_set_lock_data_with_check"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 2088; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"lock->l_blocking_ast == einfo->ei_cb_bl"); lbug_with_loc(& __msg_data___0); } else { } tmp___1 = ldv__builtin_expect((unsigned int )(lock->l_resource)->lr_type != einfo->ei_type, 0L); if (tmp___1 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___1.msg_fn = "osc_set_lock_data_with_check"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 2089; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"lock->l_resource->lr_type == einfo->ei_type"); lbug_with_loc(& __msg_data___1); } else { } tmp___2 = ldv__builtin_expect((unsigned long )((void *)lock->l_completion_ast) != (unsigned long )einfo->ei_cb_cp, 0L); if (tmp___2 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___2.msg_fn = "osc_set_lock_data_with_check"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 2090; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"lock->l_completion_ast == einfo->ei_cb_cp"); lbug_with_loc(& __msg_data___2); } else { } tmp___3 = ldv__builtin_expect((unsigned long )((void *)lock->l_glimpse_ast) != (unsigned long )einfo->ei_cb_gl, 0L); if (tmp___3 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___3.msg_fn = "osc_set_lock_data_with_check"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 2091; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"lock->l_glimpse_ast == einfo->ei_cb_gl"); lbug_with_loc(& __msg_data___3); } else { } lock_res_and_lock(lock); spin_lock(& osc_ast_guard); if ((unsigned long )lock->l_ast_data == (unsigned long )((void *)0)) { lock->l_ast_data = data; } else { } if ((unsigned long )lock->l_ast_data == (unsigned long )data) { set = 1; } else { } spin_unlock(& osc_ast_guard); unlock_res_and_lock(lock); return (set); } } static int osc_set_data_with_check(struct lustre_handle *lockh , struct ldlm_enqueue_info *einfo ) { struct ldlm_lock *lock ; struct ldlm_lock *tmp ; int set ; struct task_struct *tmp___0 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; { tmp = ldlm_handle2lock((struct lustre_handle const *)lockh); lock = tmp; set = 0; if ((unsigned long )lock != (unsigned long )((struct ldlm_lock *)0)) { set = osc_set_lock_data_with_check(lock, einfo); tmp___0 = get_current(); lu_ref_del(& lock->l_reference, "handle", (void const *)tmp___0); ldlm_lock_put(lock); } else { tmp___1 = cfs_cdebug_show(131072U, 8U); if (tmp___1 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_set_data_with_check"; msgdata.msg_line = 2118; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "lockh %p, data %p - client evicted?\n", lockh, einfo->ei_cbdata); } else { } } return (set); } } static int osc_find_cbdata(struct obd_export *exp , struct lov_stripe_md *lsm , int (*replace)(struct ldlm_lock * , void * ) , void *data ) { struct ldlm_res_id res_id ; struct obd_device *obd ; struct obd_device *tmp ; int rc ; { tmp = class_exp2obd(exp); obd = tmp; rc = 0; ostid_build_res_name(& lsm->lsm_wire.lw_object_oi, & res_id); rc = ldlm_resource_iterate(obd->obd_namespace, (struct ldlm_res_id const *)(& res_id), replace, data); if (rc == 2) { return (1); } else { } if (rc == 1) { return (0); } else { } return (rc); } } static int osc_enqueue_fini(struct ptlrpc_request *req , struct ost_lvb *lvb , int (*upcall)(void * , int ) , void *cookie , __u64 *flags , int agl , int rc ) { int intent ; struct ldlm_reply *rep ; void *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; { intent = (int )*flags & 4096; if (intent != 0) { if (rc == 301) { tmp = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_DLM_REP)); rep = (struct ldlm_reply *)tmp; tmp___0 = ldv__builtin_expect((unsigned long )rep == (unsigned long )((struct ldlm_reply *)0), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_enqueue_fini"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2155; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"rep != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } rep->lock_policy_res1 = rep->lock_policy_res1; if (rep->lock_policy_res1 != 0ULL) { rc = (int )rep->lock_policy_res1; } else { } } else { } } else { } if (((intent != 0 && rc == 301) && agl == 0) || rc == 0) { *flags = *flags | 2199023255552ULL; tmp___1 = cfs_cdebug_show(2U, 8U); if (tmp___1 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_enqueue_fini"; msgdata.msg_line = 2167; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; libcfs_debug_msg(& msgdata, "got kms %llu blocks %llu mtime %llu\n", lvb->lvb_size, lvb->lvb_blocks, lvb->lvb_mtime); } else { } } else { } rc = (*upcall)(cookie, rc); return (rc); } } static int osc_enqueue_interpret(struct lu_env const *env , struct ptlrpc_request *req , struct osc_enqueue_args *aa , int rc ) { struct ldlm_lock *lock ; struct lustre_handle handle ; __u32 mode ; struct ost_lvb *lvb ; __u32 lvb_len ; __u64 *flags ; int tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct task_struct *tmp___1 ; { flags = aa->oa_flags; lustre_handle_copy(& handle, aa->oa_lockh); mode = (aa->oa_ei)->ei_mode; lock = ldlm_handle2lock((struct lustre_handle const *)(& handle)); ldlm_lock_addref(& handle, mode); cfs_fail_timeout_set(1040U, 0U, 1000, 0); if ((unsigned int )*((unsigned char *)aa + 56UL) != 0U && rc == 301) { lvb = (struct ost_lvb *)0; lvb_len = 0U; } else { lvb = aa->oa_lvb; lvb_len = 56U; } rc = ldlm_cli_enqueue_fini(aa->oa_exp, req, (ldlm_type_t )(aa->oa_ei)->ei_type, 1, (ldlm_mode_t )mode, flags, (void *)lvb, lvb_len, & handle, rc); rc = osc_enqueue_fini(req, aa->oa_lvb, aa->oa_upcall, aa->oa_cookie, flags, (int )aa->oa_agl, rc); cfs_fail_timeout_set(1039U, 0U, 10000, 0); tmp = lustre_handle_is_used(& handle); if (tmp != 0 && rc == 0) { ldlm_lock_decref(& handle, mode); } else { } tmp___0 = ldv__builtin_expect((unsigned long )lock == (unsigned long )((struct ldlm_lock *)0), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_enqueue_interpret"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2231; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: lockh %p, req %p, aa %p - client evicted?\n", (char *)"lock != NULL", aa->oa_lockh, req, aa); lbug_with_loc(& __msg_data); } else { } ldlm_lock_decref(& handle, mode); tmp___1 = get_current(); lu_ref_del(& lock->l_reference, "handle", (void const *)tmp___1); ldlm_lock_put(lock); return (rc); } } struct ptlrpc_request_set *PTLRPCD_SET = (struct ptlrpc_request_set *)1; int osc_enqueue_base(struct obd_export *exp , struct ldlm_res_id *res_id , __u64 *flags , ldlm_policy_data_t *policy , struct ost_lvb *lvb , int kms_valid , int (*upcall)(void * , int ) , void *cookie , struct ldlm_enqueue_info *einfo , struct lustre_handle *lockh , struct ptlrpc_request_set *rqset , int async , int agl ) { struct obd_device *obd ; struct ptlrpc_request *req ; int intent ; __u64 match_lvb ; ldlm_mode_t mode ; int rc ; struct ldlm_lock *matched ; struct ldlm_lock *tmp ; struct task_struct *tmp___0 ; struct task_struct *tmp___1 ; int tmp___2 ; struct task_struct *tmp___3 ; struct list_head cancels ; struct obd_import *tmp___4 ; struct osc_enqueue_args *aa ; { obd = exp->exp_obd; req = (struct ptlrpc_request *)0; intent = (int )*flags & 4096; match_lvb = agl != 0 ? 0ULL : 2199023255552ULL; policy->l_extent.start = policy->l_extent.start & 0xfffffffffffff000ULL; policy->l_extent.end = policy->l_extent.end | 4095ULL; if (kms_valid == 0) { goto no_match; } else { } mode = (ldlm_mode_t )einfo->ei_mode; if (einfo->ei_mode == 4U) { mode = (ldlm_mode_t )((unsigned int )mode | 2U); } else { } mode = ldlm_lock_match(obd->obd_namespace, *flags | match_lvb, (struct ldlm_res_id const *)res_id, (ldlm_type_t )einfo->ei_type, policy, mode, lockh, 0); if ((unsigned int )mode != 0U) { tmp = ldlm_handle2lock((struct lustre_handle const *)lockh); matched = tmp; if (agl != 0 && (matched->l_flags & 2199023255552ULL) == 0ULL) { ldlm_lock_decref(lockh, (__u32 )mode); tmp___0 = get_current(); lu_ref_del(& matched->l_reference, "handle", (void const *)tmp___0); ldlm_lock_put(matched); return (-125); } else { } tmp___2 = osc_set_lock_data_with_check(matched, einfo); if (tmp___2 != 0) { *flags = *flags | 2199023255552ULL; if ((unsigned long )rqset == (unsigned long )((struct ptlrpc_request_set *)0) && einfo->ei_mode != (__u32 )mode) { ldlm_lock_addref(lockh, 4U); } else { } (*upcall)(cookie, 0); if (einfo->ei_mode != (__u32 )mode) { ldlm_lock_decref(lockh, 2U); } else if ((unsigned long )rqset != (unsigned long )((struct ptlrpc_request_set *)0)) { ldlm_lock_decref(lockh, einfo->ei_mode); } else { } tmp___1 = get_current(); lu_ref_del(& matched->l_reference, "handle", (void const *)tmp___1); ldlm_lock_put(matched); return (0); } else { } ldlm_lock_decref(lockh, (__u32 )mode); tmp___3 = get_current(); lu_ref_del(& matched->l_reference, "handle", (void const *)tmp___3); ldlm_lock_put(matched); } else { } no_match: ; if (intent != 0) { cancels.next = & cancels; cancels.prev = & cancels; tmp___4 = class_exp2cliimp(exp); req = ptlrpc_request_alloc(tmp___4, (struct req_format const *)(& RQF_LDLM_ENQUEUE_LVB)); if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { return (-12); } else { } rc = ldlm_prep_enqueue_req(exp, req, & cancels, 0); if (rc != 0) { ptlrpc_request_free(req); return (rc); } else { } req_capsule_set_size(& req->rq_pill, (struct req_msg_field const *)(& RMF_DLM_LVB), 1, 56); ptlrpc_request_set_replen(req); } else { } *flags = *flags & 0xfffffffffffffffdULL; rc = ldlm_cli_enqueue(exp, & req, einfo, (struct ldlm_res_id const *)res_id, (ldlm_policy_data_t const *)policy, flags, (void *)lvb, 56U, 1, lockh, async); if ((unsigned long )rqset != (unsigned long )((struct ptlrpc_request_set *)0)) { if (rc == 0) { switch (42) { case 1: ; case 0: ; goto ldv_64764; } ldv_64764: aa = (struct osc_enqueue_args *)(& req->rq_async_args); aa->oa_ei = einfo; aa->oa_exp = exp; aa->oa_flags = flags; aa->oa_upcall = upcall; aa->oa_cookie = cookie; aa->oa_lvb = lvb; aa->oa_lockh = lockh; aa->oa_agl = agl != 0; req->rq_interpret_reply = (int (*)(struct lu_env const * , struct ptlrpc_request * , void * , int ))(& osc_enqueue_interpret); if ((unsigned long )rqset == (unsigned long )PTLRPCD_SET) { ptlrpcd_add_req(req, 3, -1); } else { ptlrpc_set_add_req(rqset, req); } } else if (intent != 0) { ptlrpc_req_finished(req); } else { } return (rc); } else { } rc = osc_enqueue_fini(req, lvb, upcall, cookie, flags, agl, rc); if (intent != 0) { ptlrpc_req_finished(req); } else { } return (rc); } } int osc_match_base(struct obd_export *exp , struct ldlm_res_id *res_id , __u32 type , ldlm_policy_data_t *policy , __u32 mode , __u64 *flags , void *data , struct lustre_handle *lockh , int unref ) { struct obd_device *obd ; __u64 lflags ; ldlm_mode_t rc ; int tmp ; int tmp___0 ; { obd = exp->exp_obd; lflags = *flags; tmp = cfs_fail_check_set(1029U, 0U, 0, 0); if (tmp != 0) { return (-5); } else { } policy->l_extent.start = policy->l_extent.start & 0xfffffffffffff000ULL; policy->l_extent.end = policy->l_extent.end | 4095ULL; rc = (ldlm_mode_t )mode; if (mode == 4U) { rc = (ldlm_mode_t )((unsigned int )rc | 2U); } else { } rc = ldlm_lock_match(obd->obd_namespace, lflags, (struct ldlm_res_id const *)res_id, (ldlm_type_t )type, policy, rc, lockh, unref); if ((unsigned int )rc != 0U) { if ((unsigned long )data != (unsigned long )((void *)0)) { tmp___0 = osc_set_data_with_check(lockh, (struct ldlm_enqueue_info *)data); if (tmp___0 == 0) { if ((lflags & 524288ULL) == 0ULL) { ldlm_lock_decref(lockh, (__u32 )rc); } else { } return (0); } else { } } else { } if ((lflags & 524288ULL) == 0ULL && mode != (__u32 )rc) { ldlm_lock_addref(lockh, 4U); ldlm_lock_decref(lockh, 2U); } else { } return ((int )rc); } else { } return ((int )rc); } } int osc_cancel_base(struct lustre_handle *lockh , __u32 mode ) { long tmp ; { tmp = ldv__builtin_expect(mode == 64U, 0L); if (tmp != 0L) { ldlm_lock_decref_and_cancel(lockh, mode); } else { ldlm_lock_decref(lockh, mode); } return (0); } } static int osc_statfs_interpret(struct lu_env const *env , struct ptlrpc_request *req , struct osc_async_args *aa , int rc ) { struct obd_statfs *msfs ; void *tmp ; { if (rc == -53) { return (rc); } else { } if ((rc == -107 || rc == -11) && (int )(aa->aa_oi)->oi_flags & 1) { rc = 0; goto out; } else { } if (rc != 0) { goto out; } else { } tmp = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OBD_STATFS)); msfs = (struct obd_statfs *)tmp; if ((unsigned long )msfs == (unsigned long )((struct obd_statfs *)0)) { rc = -71; goto out; } else { } *((aa->aa_oi)->oi_osfs) = *msfs; out: rc = (*((aa->aa_oi)->oi_cb_up))((void *)aa->aa_oi, rc); return (rc); } } static int osc_statfs_async(struct obd_export *exp , struct obd_info *oinfo , __u64 max_age , struct ptlrpc_request_set *rqset ) { struct obd_device *obd ; struct obd_device *tmp ; struct ptlrpc_request *req ; struct osc_async_args *aa ; int rc ; { tmp = class_exp2obd(exp); obd = tmp; req = ptlrpc_request_alloc(obd->u.cli.cl_import, (struct req_format const *)(& RQF_OST_STATFS)); if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { return (-12); } else { } rc = ptlrpc_request_pack(req, 196608U, 13); if (rc != 0) { ptlrpc_request_free(req); return (rc); } else { } ptlrpc_request_set_replen(req); req->rq_request_portal = 7; ptlrpc_at_set_req_timeout(req); if ((int )oinfo->oi_flags & 1) { req->rq_no_resend = 1U; req->rq_no_delay = 1U; } else { } req->rq_interpret_reply = (int (*)(struct lu_env const * , struct ptlrpc_request * , void * , int ))(& osc_statfs_interpret); switch (42) { case 1: ; case 0: ; goto ldv_64803; } ldv_64803: aa = (struct osc_async_args *)(& req->rq_async_args); aa->aa_oi = oinfo; ptlrpc_set_add_req(rqset, req); return (0); } } static int osc_statfs(struct lu_env const *env , struct obd_export *exp , struct obd_statfs *osfs , __u64 max_age , __u32 flags ) { struct obd_device *obd ; struct obd_device *tmp ; struct obd_statfs *msfs ; struct ptlrpc_request *req ; struct obd_import *imp ; int rc ; void *tmp___0 ; { tmp = class_exp2obd(exp); obd = tmp; imp = (struct obd_import *)0; down_read(& obd->u.cli.cl_sem); if ((unsigned long )obd->u.cli.cl_import != (unsigned long )((struct obd_import *)0)) { imp = class_import_get(obd->u.cli.cl_import); } else { } up_read(& obd->u.cli.cl_sem); if ((unsigned long )imp == (unsigned long )((struct obd_import *)0)) { return (-19); } else { } req = ptlrpc_request_alloc(imp, (struct req_format const *)(& RQF_OST_STATFS)); class_import_put(imp); if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { return (-12); } else { } rc = ptlrpc_request_pack(req, 196608U, 13); if (rc != 0) { ptlrpc_request_free(req); return (rc); } else { } ptlrpc_request_set_replen(req); req->rq_request_portal = 7; ptlrpc_at_set_req_timeout(req); if ((int )flags & 1) { req->rq_no_resend = 1U; req->rq_no_delay = 1U; } else { } rc = ptlrpc_queue_wait(req); if (rc != 0) { goto out; } else { } tmp___0 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OBD_STATFS)); msfs = (struct obd_statfs *)tmp___0; if ((unsigned long )msfs == (unsigned long )((struct obd_statfs *)0)) { rc = -71; goto out; } else { } *osfs = *msfs; out: ptlrpc_req_finished(req); return (rc); } } static int osc_getstripe(struct lov_stripe_md *lsm , struct lov_user_md_v1 *lump ) { struct lov_user_md_v3 lum ; struct lov_user_md_v3 *lumk ; struct lov_user_ost_data_v1 *lmm_objects ; int rc ; int lum_size ; unsigned long tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___2 ; __u32 tmp___3 ; void *tmp___4 ; __u32 tmp___5 ; unsigned long tmp___6 ; { rc = 0; if ((unsigned long )lsm == (unsigned long )((struct lov_stripe_md *)0)) { return (-61); } else { } lum_size = 32; tmp = copy_from_user((void *)(& lum), (void const *)lump, (unsigned long )lum_size); if (tmp != 0UL) { return (-14); } else { } if (lum.lmm_magic != 198249424U && lum.lmm_magic != 198380496U) { return (-22); } else { } tmp___0 = ldv__builtin_expect(0L, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_getstripe"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2613; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"sizeof(struct lov_user_md_v1) == sizeof(struct lov_mds_md_v1)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv__builtin_expect(0L, 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___0.msg_fn = "osc_getstripe"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 2614; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"sizeof(struct lov_user_md_v3) == sizeof(struct lov_mds_md_v3)"); lbug_with_loc(& __msg_data___0); } else { } tmp___2 = ldv__builtin_expect(0L, 0L); if (tmp___2 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___1.msg_fn = "osc_getstripe"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 2615; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"sizeof(lum.lmm_objects[0]) == sizeof(lumk->lmm_objects[0])"); lbug_with_loc(& __msg_data___1); } else { } if ((unsigned int )lum.lmm_stripe_count != 0U) { tmp___3 = lov_mds_md_size((int )lum.lmm_stripe_count, lum.lmm_magic); lum_size = (int )tmp___3; tmp___4 = kzalloc((size_t )lum_size, 80U); lumk = (struct lov_user_md_v3 *)tmp___4; if ((unsigned long )lumk == (unsigned long )((struct lov_user_md_v3 *)0)) { return (-12); } else { } if (lum.lmm_magic == 198249424U) { lmm_objects = (struct lov_user_ost_data_v1 *)(& ((struct lov_user_md_v1 *)lumk)->lmm_objects); } else { lmm_objects = (struct lov_user_ost_data_v1 *)(& lumk->lmm_objects); } lmm_objects->l_ost_oi = lsm->lsm_wire.lw_object_oi; } else { tmp___5 = lov_mds_md_size(0, lum.lmm_magic); lum_size = (int )tmp___5; lumk = & lum; } lumk->lmm_oi = lsm->lsm_wire.lw_object_oi; lumk->lmm_stripe_count = 1U; tmp___6 = copy_to_user((void *)lump, (void const *)lumk, (unsigned long )lum_size); if (tmp___6 != 0UL) { rc = -14; } else { } if ((unsigned long )(& lum) != (unsigned long )lumk) { kfree((void const *)lumk); } else { } return (rc); } } static int osc_iocontrol(unsigned int cmd , struct obd_export *exp , int len , void *karg , void *uarg ) { struct obd_device *obd ; struct obd_ioctl_data *data ; int err ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; bool tmp___0 ; int tmp___1 ; char *buf ; struct lov_desc *desc ; int tmp___2 ; unsigned long tmp___3 ; struct libcfs_debug_msg_data msgdata___0 ; struct task_struct *tmp___4 ; int tmp___5 ; { obd = exp->exp_obd; data = (struct obd_ioctl_data *)karg; err = 0; tmp___0 = try_module_get(& __this_module); if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { tmp = cfs_cdebug_show(131072U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_iocontrol"; msgdata.msg_line = 2657; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Can\'t get module. Is it alive?"); } else { } return (-22); } else { } switch (cmd) { case 3221776004U: buf = (char *)0; len = 0; tmp___2 = obd_ioctl_getdata(& buf, & len, uarg); if (tmp___2 != 0) { err = -22; goto out; } else { } data = (struct obd_ioctl_data *)buf; if (data->ioc_inllen1 <= 87U) { obd_ioctl_freedata(buf, len); err = -22; goto out; } else { } if (data->ioc_inllen2 <= 39U) { obd_ioctl_freedata(buf, len); err = -22; goto out; } else { } desc = (struct lov_desc *)data->ioc_inlbuf1; desc->ld_tgt_count = 1U; desc->ld_active_tgt_count = 1U; desc->ld_default_stripe_count = 1U; desc->ld_default_stripe_size = 0ULL; desc->ld_default_stripe_offset = 0ULL; desc->ld_pattern = 0U; memcpy((void *)(& desc->ld_uuid), (void const *)(& obd->obd_uuid), 40UL); memcpy((void *)data->ioc_inlbuf2, (void const *)(& obd->obd_uuid), 40UL); tmp___3 = copy_to_user(uarg, (void const *)buf, (unsigned long )len); err = (int )tmp___3; if (err != 0) { err = -14; } else { } obd_ioctl_freedata(buf, len); goto out; case 1074292378U: err = obd_alloc_memmd(exp, (struct lov_stripe_md **)karg); if (err > 0) { err = 0; } else { } goto out; case 1074292379U: err = osc_getstripe((struct lov_stripe_md *)karg, (struct lov_user_md_v1 *)uarg); goto out; case 1074292357U: err = ptlrpc_recover_import(obd->u.cli.cl_import, data->ioc_inlbuf1, 0); if (err > 0) { err = 0; } else { } goto out; case 3221776405U: err = ptlrpc_set_import_active(obd->u.cli.cl_import, (int )data->ioc_offset); goto out; case 2148034209U: err = osc_quota_poll_check(exp, (struct if_quotacheck *)karg); goto out; case 1074292360U: err = ptlrpc_obd_ping(obd); goto out; default: tmp___5 = cfs_cdebug_show(2U, 8U); if (tmp___5 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___0.msg_fn = "osc_iocontrol"; msgdata___0.msg_line = 2730; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 2; tmp___4 = get_current(); libcfs_debug_msg(& msgdata___0, "unrecognised ioctl %#x by %s\n", cmd, (char *)(& tmp___4->comm)); } else { } err = -25; goto out; } out: module_put(& __this_module); return (err); } } static int osc_get_info(struct lu_env const *env , struct obd_export *exp , u32 keylen , void *key , __u32 *vallen , void *val , struct lov_stripe_md *lsm ) { __u32 *stripe ; struct ptlrpc_request *req ; u64 *reply ; char *tmp ; int rc ; struct obd_import *tmp___0 ; void *tmp___1 ; unsigned char tmp___2 ; void *tmp___3 ; struct ll_fiemap_info_key *fm_key ; struct ldlm_res_id res_id ; ldlm_policy_data_t policy ; struct lustre_handle lockh ; ldlm_mode_t mode ; struct ptlrpc_request *req___0 ; struct ll_user_fiemap *reply___0 ; char *tmp___4 ; int rc___0 ; struct obd_import *tmp___5 ; void *tmp___6 ; void *tmp___7 ; void *tmp___8 ; int tmp___9 ; int tmp___10 ; int tmp___11 ; { if ((unsigned long )vallen == (unsigned long )((__u32 *)0U) || (unsigned long )val == (unsigned long )((void *)0)) { return (-14); } else { } if (keylen > 13U) { tmp___11 = memcmp((void const *)key, (void const *)"lock_to_stripe", 14UL); if (tmp___11 == 0) { stripe = (__u32 *)val; *vallen = 4U; *stripe = 0U; return (0); } else { goto _L___0; } } else _L___0: /* CIL Label */ if (keylen > 6U) { tmp___10 = memcmp((void const *)key, (void const *)"last_id", 7UL); if (tmp___10 == 0) { tmp___0 = class_exp2cliimp(exp); req = ptlrpc_request_alloc(tmp___0, (struct req_format const *)(& RQF_OST_GET_INFO_LAST_ID)); if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { return (-12); } else { } req_capsule_set_size(& req->rq_pill, (struct req_msg_field const *)(& RMF_SETINFO_KEY), 0, (int )keylen); rc = ptlrpc_request_pack(req, 196608U, 7); if (rc != 0) { ptlrpc_request_free(req); return (rc); } else { } tmp___1 = req_capsule_client_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_SETINFO_KEY)); tmp = (char *)tmp___1; memcpy((void *)tmp, (void const *)key, (size_t )keylen); tmp___2 = 1U; req->rq_no_resend = tmp___2; req->rq_no_delay = tmp___2; ptlrpc_request_set_replen(req); rc = ptlrpc_queue_wait(req); if (rc != 0) { goto out; } else { } tmp___3 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OBD_ID)); reply = (u64 *)tmp___3; if ((unsigned long )reply == (unsigned long )((u64 *)0ULL)) { rc = -71; goto out; } else { } *((u64 *)val) = *reply; out: ptlrpc_req_finished(req); return (rc); } else { goto _L; } } else _L: /* CIL Label */ if (keylen > 5U) { tmp___9 = memcmp((void const *)key, (void const *)"fiemap", 6UL); if (tmp___9 == 0) { fm_key = (struct ll_fiemap_info_key *)key; mode = 0; if ((fm_key->fiemap.fm_flags & 1U) == 0U) { goto skip_locking; } else { } policy.l_extent.start = fm_key->fiemap.fm_start & 0xfffffffffffff000ULL; if (~ fm_key->fiemap.fm_length <= fm_key->fiemap.fm_start + 4095ULL) { policy.l_extent.end = 0xffffffffffffffffULL; } else { policy.l_extent.end = ((fm_key->fiemap.fm_start + fm_key->fiemap.fm_length) + 4095ULL) & 0xfffffffffffff000ULL; } ostid_build_res_name(& fm_key->oa.o_oi, & res_id); mode = ldlm_lock_match((exp->exp_obd)->obd_namespace, 2199023255554ULL, (struct ldlm_res_id const *)(& res_id), 11, & policy, 6, & lockh, 0); if ((unsigned int )mode != 0U) { if ((unsigned int )mode != 4U) { ldlm_lock_addref(& lockh, 4U); ldlm_lock_decref(& lockh, 2U); } else { } } else { fm_key->oa.o_valid = fm_key->oa.o_valid | 2048ULL; fm_key->oa.o_flags = fm_key->oa.o_flags | 2048U; } skip_locking: tmp___5 = class_exp2cliimp(exp); req___0 = ptlrpc_request_alloc(tmp___5, (struct req_format const *)(& RQF_OST_GET_INFO_FIEMAP)); if ((unsigned long )req___0 == (unsigned long )((struct ptlrpc_request *)0)) { rc___0 = -12; goto drop_lock; } else { } req_capsule_set_size(& req___0->rq_pill, (struct req_msg_field const *)(& RMF_FIEMAP_KEY), 0, (int )keylen); req_capsule_set_size(& req___0->rq_pill, (struct req_msg_field const *)(& RMF_FIEMAP_VAL), 0, (int )*vallen); req_capsule_set_size(& req___0->rq_pill, (struct req_msg_field const *)(& RMF_FIEMAP_VAL), 1, (int )*vallen); rc___0 = ptlrpc_request_pack(req___0, 196608U, 7); if (rc___0 != 0) { ptlrpc_request_free(req___0); goto drop_lock; } else { } tmp___6 = req_capsule_client_get(& req___0->rq_pill, (struct req_msg_field const *)(& RMF_FIEMAP_KEY)); tmp___4 = (char *)tmp___6; memcpy((void *)tmp___4, (void const *)key, (size_t )keylen); tmp___7 = req_capsule_client_get(& req___0->rq_pill, (struct req_msg_field const *)(& RMF_FIEMAP_VAL)); tmp___4 = (char *)tmp___7; memcpy((void *)tmp___4, (void const *)val, (size_t )*vallen); ptlrpc_request_set_replen(req___0); rc___0 = ptlrpc_queue_wait(req___0); if (rc___0 != 0) { goto fini_req; } else { } tmp___8 = req_capsule_server_get(& req___0->rq_pill, (struct req_msg_field const *)(& RMF_FIEMAP_VAL)); reply___0 = (struct ll_user_fiemap *)tmp___8; if ((unsigned long )reply___0 == (unsigned long )((struct ll_user_fiemap *)0)) { rc___0 = -71; goto fini_req; } else { } memcpy(val, (void const *)reply___0, (size_t )*vallen); fini_req: ptlrpc_req_finished(req___0); drop_lock: ; if ((unsigned int )mode != 0U) { ldlm_lock_decref(& lockh, 4U); } else { } return (rc___0); } else { } } else { } return (-22); } } static int osc_set_info_async(struct lu_env const *env , struct obd_export *exp , u32 keylen , void *key , u32 vallen , void *val , struct ptlrpc_request_set *set ) { struct ptlrpc_request *req ; struct obd_device *obd ; struct obd_import *imp ; struct obd_import *tmp ; char *tmp___0 ; int rc ; int tmp___1 ; int tmp___2 ; int tmp___3 ; struct client_obd *cli ; struct libcfs_debug_msg_data __msg_data ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___5 ; long tmp___6 ; int tmp___7 ; struct client_obd *cli___0 ; int nr ; int tmp___8 ; int target ; int _min1 ; int _min2 ; int tmp___9 ; int tmp___10 ; struct req_format *tmp___12 ; int tmp___13 ; int tmp___14 ; void *tmp___15 ; struct req_msg_field *tmp___17 ; int tmp___18 ; void *tmp___19 ; struct osc_brw_async_args *aa ; struct obdo *oa ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___20 ; long tmp___21 ; void *tmp___22 ; struct libcfs_debug_msg_data msgdata ; int tmp___23 ; int tmp___24 ; int tmp___25 ; int tmp___26 ; long tmp___27 ; int tmp___28 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___29 ; int tmp___30 ; { obd = exp->exp_obd; tmp = class_exp2cliimp(exp); imp = tmp; cfs_fail_timeout_set(1031U, 0U, 10000, 0); if (keylen > 7U) { tmp___1 = memcmp((void const *)key, (void const *)"checksum", 8UL); if (tmp___1 == 0) { if (vallen != 4U) { return (-22); } else { } (exp->exp_obd)->u.cli.cl_checksum = *((int *)val) != 0; return (0); } else { } } else { } if (keylen > 11U) { tmp___2 = memcmp((void const *)key, (void const *)"sptlrpc_conf", 12UL); if (tmp___2 == 0) { sptlrpc_conf_client_adapt(obd); return (0); } else { } } else { } if (keylen > 8U) { tmp___3 = memcmp((void const *)key, (void const *)"flush_ctx", 9UL); if (tmp___3 == 0) { sptlrpc_import_flush_my_ctx(imp); return (0); } else { } } else { } if (keylen > 8U) { tmp___7 = memcmp((void const *)key, (void const *)"cache_set", 9UL); if (tmp___7 == 0) { cli = & obd->u.cli; tmp___4 = ldv__builtin_expect((unsigned long )cli->cl_cache != (unsigned long )((struct cl_client_cache *)0), 0L); if (tmp___4 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_set_info_async"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2912; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cli->cl_cache == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } cli->cl_cache = (struct cl_client_cache *)val; atomic_inc(& (cli->cl_cache)->ccc_users); cli->cl_lru_left = & (cli->cl_cache)->ccc_lru_left; tmp___5 = list_empty((struct list_head const *)(& cli->cl_lru_osc)); tmp___6 = ldv__builtin_expect(tmp___5 == 0, 0L); if (tmp___6 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___0.msg_fn = "osc_set_info_async"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 2918; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&cli->cl_lru_osc)"); lbug_with_loc(& __msg_data___0); } else { } spin_lock(& (cli->cl_cache)->ccc_lru_lock); list_add(& cli->cl_lru_osc, & (cli->cl_cache)->ccc_lru); spin_unlock(& (cli->cl_cache)->ccc_lru_lock); return (0); } else { } } else { } if (keylen > 15U) { tmp___9 = memcmp((void const *)key, (void const *)"cache_lru_shrink", 16UL); if (tmp___9 == 0) { cli___0 = & obd->u.cli; tmp___8 = atomic_read((atomic_t const *)(& cli___0->cl_lru_in_list)); nr = tmp___8 >> 1; target = *((int *)val); _min1 = nr; _min2 = target; nr = osc_lru_shrink(cli___0, _min1 < _min2 ? _min1 : _min2); *((int *)val) = *((int *)val) - nr; return (0); } else { } } else { } if ((unsigned long )set == (unsigned long )((struct ptlrpc_request_set *)0)) { if (keylen <= 11U) { return (-22); } else { tmp___10 = memcmp((void const *)key, (void const *)"grant_shrink", 12UL); if (tmp___10 != 0) { return (-22); } else { } } } else { } if (keylen > 11U) { tmp___13 = memcmp((void const *)key, (void const *)"grant_shrink", 12UL); if (tmp___13 == 0) { tmp___12 = & RQF_OST_SET_GRANT_INFO; } else { tmp___12 = & RQF_OBD_SET_INFO; } } else { tmp___12 = & RQF_OBD_SET_INFO; } req = ptlrpc_request_alloc(imp, (struct req_format const *)tmp___12); if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { return (-12); } else { } req_capsule_set_size(& req->rq_pill, (struct req_msg_field const *)(& RMF_SETINFO_KEY), 0, (int )keylen); if (keylen <= 11U) { req_capsule_set_size(& req->rq_pill, (struct req_msg_field const *)(& RMF_SETINFO_VAL), 0, (int )vallen); } else { tmp___14 = memcmp((void const *)key, (void const *)"grant_shrink", 12UL); if (tmp___14 != 0) { req_capsule_set_size(& req->rq_pill, (struct req_msg_field const *)(& RMF_SETINFO_VAL), 0, (int )vallen); } else { } } rc = ptlrpc_request_pack(req, 196608U, 17); if (rc != 0) { ptlrpc_request_free(req); return (rc); } else { } tmp___15 = req_capsule_client_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_SETINFO_KEY)); tmp___0 = (char *)tmp___15; memcpy((void *)tmp___0, (void const *)key, (size_t )keylen); if (keylen > 11U) { tmp___18 = memcmp((void const *)key, (void const *)"grant_shrink", 12UL); if (tmp___18 == 0) { tmp___17 = & RMF_OST_BODY; } else { tmp___17 = & RMF_SETINFO_VAL; } } else { tmp___17 = & RMF_SETINFO_VAL; } tmp___19 = req_capsule_client_get(& req->rq_pill, (struct req_msg_field const *)tmp___17); tmp___0 = (char *)tmp___19; memcpy((void *)tmp___0, (void const *)val, (size_t )vallen); if (keylen > 11U) { tmp___28 = memcmp((void const *)key, (void const *)"grant_shrink", 12UL); if (tmp___28 == 0) { switch (42) { case 1: ; case 0: ; goto ldv_64911; } ldv_64911: aa = (struct osc_brw_async_args *)(& req->rq_async_args); tmp___20 = preempt_count(); tmp___21 = ldv__builtin_expect(((unsigned long )tmp___20 & 2096896UL) != 0UL, 0L); if (tmp___21 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___1.msg_fn = "osc_set_info_async"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 2976; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"(!((((( gfp_t)0x10u) | (( gfp_t)0x40u))) != ((( gfp_t)0x20u))) || (!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4)))))))"); lbug_with_loc(& __msg_data___1); } else { } tmp___22 = ldv_kmem_cache_alloc_39(obdo_cachep, 32848U); oa = (struct obdo *)tmp___22; if ((unsigned long )oa != (unsigned long )((struct obdo *)0)) { tmp___24 = cfs_fail_check_set(3072U, 0U, 0, 0); if (tmp___24 == 0 || obd_alloc_fail_rate == 0U) { tmp___26 = 1; } else { tmp___25 = obd_alloc_fail((void const *)oa, "(oa)", "slab-", 208UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c", 2976); if (tmp___25 == 0) { tmp___26 = 1; } else { kmem_cache_free(obdo_cachep, (void *)oa); oa = (struct obdo *)0; tmp___26 = 0; } } } else { tmp___26 = 0; } tmp___27 = ldv__builtin_expect((long )tmp___26, 1L); if (tmp___27 != 0L) { lprocfs_counter_add(obd_memory, 0, 208L); tmp___23 = cfs_cdebug_show(16U, 8U); if (tmp___23 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_set_info_async"; msgdata.msg_line = 2976; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'(oa)\': %d at %p.\n", 208, oa); } else { } } else { } if ((unsigned long )oa == (unsigned long )((struct obdo *)0)) { ptlrpc_req_finished(req); return (-12); } else { } *oa = ((struct ost_body *)val)->oa; aa->aa_oa = oa; req->rq_interpret_reply = & osc_shrink_grant_interpret; } else { } } else { } ptlrpc_request_set_replen(req); if (keylen <= 11U) { goto _L; } else { tmp___30 = memcmp((void const *)key, (void const *)"grant_shrink", 12UL); if (tmp___30 != 0) { _L: /* CIL Label */ tmp___29 = ldv__builtin_expect((unsigned long )set == (unsigned long )((struct ptlrpc_request_set *)0), 0L); if (tmp___29 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data___2.msg_fn = "osc_set_info_async"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 2988; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"set != ((void *)0)"); lbug_with_loc(& __msg_data___2); } else { } ptlrpc_set_add_req(set, req); ptlrpc_check_set((struct lu_env const *)0, set); } else { ptlrpcd_add_req(req, 3, -1); } } return (0); } } static int osc_reconnect(struct lu_env const *env , struct obd_export *exp , struct obd_device *obd , struct obd_uuid *cluuid , struct obd_connect_data *data , void *localdata ) { struct client_obd *cli ; long lost_grant ; int tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { cli = & obd->u.cli; if ((unsigned long )data != (unsigned long )((struct obd_connect_data *)0) && (data->ocd_connect_flags & 8ULL) != 0ULL) { __client_obd_list_lock(& cli->cl_loi_list_lock, "osc_reconnect", 3008); if (cli->cl_avail_grant + cli->cl_dirty != 0L) { data->ocd_grant = (__u32 )(cli->cl_avail_grant + cli->cl_dirty); } else { tmp = cli_brw_size(obd); data->ocd_grant = (__u32 )(tmp * 2); } lost_grant = cli->cl_lost_grant; cli->cl_lost_grant = 0L; client_obd_list_unlock(& cli->cl_loi_list_lock); tmp___0 = cfs_cdebug_show(1048576U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_reconnect"; msgdata.msg_line = 3017; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 1048576; libcfs_debug_msg(& msgdata, "ocd_connect_flags: %#llx ocd_version: %d ocd_grant: %d, lost: %ld.\n", data->ocd_connect_flags, data->ocd_version, data->ocd_grant, lost_grant); } else { } } else { } return (0); } } static int osc_disconnect(struct obd_export *exp ) { struct obd_device *obd ; struct obd_device *tmp ; int rc ; { tmp = class_exp2obd(exp); obd = tmp; rc = client_disconnect_export(exp); if ((unsigned long )obd->u.cli.cl_import == (unsigned long )((struct obd_import *)0)) { osc_del_shrink_grant(& obd->u.cli); } else { } return (rc); } } static int osc_import_event(struct obd_device *obd , struct obd_import *imp , enum obd_import_event event ) { struct client_obd *cli ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct ldlm_namespace *ns ; struct lu_env *env ; int refcheck ; long tmp___0 ; bool tmp___1 ; int tmp___2 ; struct obd_connect_data *ocd ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___3 ; struct libcfs_debug_msg_data msgdata___0 ; { rc = 0; tmp = ldv__builtin_expect((unsigned long )imp->imp_obd != (unsigned long )obd, 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_import_event"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 3058; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"imp->imp_obd == obd"); lbug_with_loc(& __msg_data); } else { } switch ((unsigned int )event) { case 8421377U: cli = & obd->u.cli; __client_obd_list_lock(& cli->cl_loi_list_lock, "osc_import_event", 3063); cli->cl_avail_grant = 0L; cli->cl_lost_grant = 0L; client_obd_list_unlock(& cli->cl_loi_list_lock); goto ldv_64943; case 8421378U: rc = obd_notify_observer(obd, obd, 3, (void *)0); goto ldv_64943; case 8421379U: ns = obd->obd_namespace; env = cl_env_get(& refcheck); tmp___1 = IS_ERR((void const *)env); if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { cli = & obd->u.cli; osc_io_unplug((struct lu_env const *)env, cli, (struct osc_object *)0, 3); ldlm_namespace_cleanup(ns, 137438953472ULL); cl_env_put(env, & refcheck); } else { tmp___0 = PTR_ERR((void const *)env); rc = (int )tmp___0; } goto ldv_64943; case 8421380U: rc = obd_notify_observer(obd, obd, 2, (void *)0); goto ldv_64943; case 8421381U: ocd = & imp->imp_connect_data; if ((ocd->ocd_connect_flags & 8ULL) != 0ULL) { osc_init_grant(& obd->u.cli, ocd); } else { } if ((ocd->ocd_connect_flags & 64ULL) != 0ULL) { (imp->imp_client)->cli_request_portal = 28U; } else { } rc = obd_notify_observer(obd, obd, 5, (void *)0); goto ldv_64943; case 8421382U: rc = obd_notify_observer(obd, obd, 9, (void *)0); goto ldv_64943; case 8421383U: rc = obd_notify_observer(obd, obd, 10, (void *)0); goto ldv_64943; default: tmp___3 = cfs_cdebug_show(131072U, 8U); if (tmp___3 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_import_event"; msgdata.msg_line = 3118; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Unknown import event %d\n", (unsigned int )event); } else { } msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata___0.msg_fn = "osc_import_event"; msgdata___0.msg_subsys = 8; msgdata___0.msg_line = 3119; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; lbug_with_loc(& msgdata___0); } ldv_64943: ; return (rc); } } static int osc_cancel_for_recovery(struct ldlm_lock *lock ) { int tmp ; { check_res_locked(lock->l_resource); if ((unsigned int )(lock->l_resource)->lr_type == 11U && ((unsigned int )lock->l_granted_mode == 4U || (unsigned int )lock->l_granted_mode == 16U)) { tmp = osc_dlm_lock_pageref(lock); if (tmp == 0) { return (1); } else { } } else { } return (0); } } static int brw_queue_work(struct lu_env const *env , void *data ) { struct client_obd *cli ; struct libcfs_debug_msg_data msgdata ; int tmp ; { cli = (struct client_obd *)data; tmp = cfs_cdebug_show(32U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "brw_queue_work"; msgdata.msg_line = 3154; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "Run writeback work for client obd %p.\n", cli); } else { } osc_io_unplug(env, cli, (struct osc_object *)0, 1); return (0); } } int osc_setup(struct obd_device *obd , struct lustre_cfg *lcfg ) { struct lprocfs_static_vars lvars ; struct client_obd *cli ; void *handler ; int rc ; long tmp ; bool tmp___0 ; int tmp___1 ; { lvars.obd_vars = (struct lprocfs_vars *)0; lvars.sysfs_vars = 0; cli = & obd->u.cli; rc = ptlrpcd_addref(); if (rc != 0) { return (rc); } else { } rc = client_obd_setup(obd, lcfg); if (rc != 0) { goto out_ptlrpcd; } else { } handler = ptlrpcd_alloc_work(cli->cl_import, & brw_queue_work, (void *)cli); tmp___0 = IS_ERR((void const *)handler); if ((int )tmp___0) { tmp = PTR_ERR((void const *)handler); rc = (int )tmp; goto out_client_setup; } else { } cli->cl_writeback_work = handler; rc = osc_quota_setup(obd); if (rc != 0) { goto out_ptlrpcd_work; } else { } cli->cl_grant_shrink_interval = 1200; lprocfs_osc_init_vars(& lvars); tmp___1 = lprocfs_obd_setup(obd, lvars.obd_vars, lvars.sysfs_vars); if (tmp___1 == 0) { lproc_osc_attach_seqstat(obd); sptlrpc_lprocfs_cliobd_attach(obd); ptlrpc_lprocfs_register_obd(obd); } else { } (cli->cl_import)->imp_rq_pool = ptlrpc_init_rq_pool(cli->cl_max_rpcs_in_flight + 2, 5120, & ptlrpc_add_rqs_to_pool); INIT_LIST_HEAD(& cli->cl_grant_shrink_list); ns_register_cancel(obd->obd_namespace, & osc_cancel_for_recovery); return (rc); out_ptlrpcd_work: ptlrpcd_destroy_work(handler); out_client_setup: client_obd_cleanup(obd); out_ptlrpcd: ptlrpcd_decref(); return (rc); } } static int osc_precleanup(struct obd_device *obd , enum obd_cleanup_stage stage ) { struct obd_import *imp ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct client_obd *cli ; { switch ((unsigned int )stage) { case 0U: imp = obd->u.cli.cl_import; tmp = cfs_cdebug_show(524288U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_precleanup"; msgdata.msg_line = 3223; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 524288; libcfs_debug_msg(& msgdata, "Deactivating import %s\n", (char *)(& obd->obd_name)); } else { } ptlrpc_deactivate_import(imp); spin_lock(& imp->imp_lock); imp->imp_pingable = 0U; spin_unlock(& imp->imp_lock); goto ldv_64987; case 1U: cli = & obd->u.cli; obd_zombie_barrier(); if ((unsigned long )cli->cl_writeback_work != (unsigned long )((void *)0)) { ptlrpcd_destroy_work(cli->cl_writeback_work); cli->cl_writeback_work = (void *)0; } else { } obd_cleanup_client_import(obd); ptlrpc_lprocfs_unregister_obd(obd); lprocfs_obd_cleanup(obd); goto ldv_64987; } ldv_64987: ; return (0); } } int osc_cleanup(struct obd_device *obd ) { struct client_obd *cli ; int rc ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; { cli = & obd->u.cli; if ((unsigned long )cli->cl_cache != (unsigned long )((struct cl_client_cache *)0)) { tmp = atomic_read((atomic_t const *)(& (cli->cl_cache)->ccc_users)); tmp___0 = ldv__builtin_expect(tmp <= 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; __msg_data.msg_fn = "osc_cleanup"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 3263; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&cli->cl_cache->ccc_users) > 0"); lbug_with_loc(& __msg_data); } else { } spin_lock(& (cli->cl_cache)->ccc_lru_lock); list_del_init(& cli->cl_lru_osc); spin_unlock(& (cli->cl_cache)->ccc_lru_lock); cli->cl_lru_left = (atomic_t *)0; atomic_dec(& (cli->cl_cache)->ccc_users); cli->cl_cache = (struct cl_client_cache *)0; } else { } osc_quota_cleanup(obd); rc = client_obd_cleanup(obd); ptlrpcd_decref(); return (rc); } } int osc_process_config_base(struct obd_device *obd , struct lustre_cfg *lcfg ) { struct lprocfs_static_vars lvars ; int rc ; { lvars.obd_vars = (struct lprocfs_vars *)0; lvars.sysfs_vars = 0; rc = 0; lprocfs_osc_init_vars(& lvars); switch (lcfg->lcfg_command) { default: rc = class_process_proc_param((char *)"osc.", lvars.obd_vars, lcfg, (void *)obd); if (rc > 0) { rc = 0; } else { } goto ldv_65004; } ldv_65004: ; return (rc); } } static int osc_process_config(struct obd_device *obd , u32 len , void *buf ) { int tmp ; { tmp = osc_process_config_base(obd, (struct lustre_cfg *)buf); return (tmp); } } struct obd_ops osc_obd_ops = {& __this_module, & osc_iocontrol, & osc_get_info, & osc_set_info_async, 0, 0, & osc_setup, & osc_precleanup, & osc_cleanup, & osc_process_config, 0, & client_import_add_conn, & client_import_del_conn, & client_connect_import, & osc_reconnect, & osc_disconnect, 0, 0, 0, & osc_statfs, & osc_statfs_async, & osc_packmd, & osc_unpackmd, 0, & osc_create, & osc_destroy, & osc_setattr, & osc_setattr_async, & osc_getattr, & osc_getattr_async, 0, 0, 0, & osc_find_cbdata, 0, 0, & osc_import_event, 0, 0, 0, & osc_quotacheck, & osc_quotactl, 0, 0, 0, 0, 0, 0}; struct lu_kmem_descr osc_caches[8U] ; struct lock_class_key osc_ast_guard_class ; static int osc_init(void) { struct lprocfs_static_vars lvars ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct lock_class_key __key ; { lvars.obd_vars = (struct lprocfs_vars *)0; lvars.sysfs_vars = 0; tmp = cfs_cdebug_show(64U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_request.c"; msgdata.msg_fn = "osc_init"; msgdata.msg_line = 3347; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "Lustre OSC module (%p).\n", & osc_caches); } else { } rc = lu_kmem_init((struct lu_kmem_descr *)(& osc_caches)); if (rc != 0) { return (rc); } else { } lprocfs_osc_init_vars(& lvars); rc = class_register_type(& osc_obd_ops, (struct md_ops *)0, "osc", & osc_device_type); if (rc != 0) { lu_kmem_fini((struct lu_kmem_descr *)(& osc_caches)); return (rc); } else { } spinlock_check(& osc_ast_guard); __raw_spin_lock_init(& osc_ast_guard.__annonCompField18.rlock, "&(&osc_ast_guard)->rlock", & __key); lockdep_init_map(& osc_ast_guard.__annonCompField18.__annonCompField17.dep_map, "&osc_ast_guard_class", & osc_ast_guard_class, 0); return (rc); } } static void osc_exit(void) { { class_unregister_type("osc"); lu_kmem_fini((struct lu_kmem_descr *)(& osc_caches)); return; } } int ldv_retval_6 ; extern void ldv_initialize(void) ; extern void ldv_check_final_state(void) ; extern int ldv_probe_38(void) ; void ldv_initialize_obd_ops_38(void) { void *tmp ; void *tmp___0 ; void *tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; void *tmp___5 ; void *tmp___6 ; void *tmp___7 ; void *tmp___8 ; void *tmp___9 ; void *tmp___10 ; void *tmp___11 ; { tmp = ldv_init_zalloc(208UL); osc_obd_ops_group0 = (struct obdo *)tmp; tmp___0 = ldv_init_zalloc(144UL); osc_obd_ops_group6 = (struct lov_stripe_md *)tmp___0; tmp___1 = ldv_init_zalloc(272UL); osc_obd_ops_group1 = (struct ptlrpc_request_set *)tmp___1; tmp___2 = ldv_init_zalloc(192UL); osc_obd_ops_group7 = (struct obd_connect_data *)tmp___2; tmp___3 = ldv_init_zalloc(1400UL); osc_obd_ops_group2 = (struct obd_export *)tmp___3; tmp___4 = ldv_init_zalloc(5968UL); osc_obd_ops_group8 = (struct obd_device *)tmp___4; tmp___5 = ldv_init_zalloc(56UL); osc_obd_ops_group3 = (struct lu_env const *)tmp___5; tmp___6 = ldv_init_zalloc(40UL); osc_obd_ops_group9 = (struct obd_uuid *)tmp___6; tmp___7 = ldv_init_zalloc(112UL); osc_obd_ops_group10 = (struct obd_quotactl *)tmp___7; tmp___8 = ldv_init_zalloc(112UL); osc_obd_ops_group11 = (struct obd_info *)tmp___8; tmp___9 = ldv_init_zalloc(8UL); osc_obd_ops_group4 = (struct lov_stripe_md **)tmp___9; tmp___10 = ldv_init_zalloc(2336UL); osc_obd_ops_group5 = (struct obd_import *)tmp___10; tmp___11 = ldv_init_zalloc(176UL); osc_obd_ops_group12 = (struct obd_trans_info *)tmp___11; return; } } void ldv_main_exported_35(void) ; void ldv_main_exported_33(void) ; void ldv_main_exported_34(void) ; void ldv_main_exported_36(void) ; void ldv_main_exported_37(void) ; void ldv_main_exported_28(void) ; void ldv_main_exported_29(void) ; void ldv_main_exported_32(void) ; void ldv_main_exported_31(void) ; void ldv_main_exported_11(void) ; void ldv_main_exported_21(void) ; void ldv_main_exported_7(void) ; void ldv_main_exported_17(void) ; void ldv_main_exported_2(void) ; void ldv_main_exported_22(void) ; void ldv_main_exported_1(void) ; void ldv_main_exported_18(void) ; void ldv_main_exported_23(void) ; void ldv_main_exported_16(void) ; void ldv_main_exported_13(void) ; void ldv_main_exported_25(void) ; void ldv_main_exported_6(void) ; void ldv_main_exported_3(void) ; void ldv_main_exported_9(void) ; void ldv_main_exported_12(void) ; void ldv_main_exported_20(void) ; void ldv_main_exported_14(void) ; void ldv_main_exported_15(void) ; void ldv_main_exported_8(void) ; void ldv_main_exported_4(void) ; void ldv_main_exported_24(void) ; void ldv_main_exported_19(void) ; void ldv_main_exported_10(void) ; void ldv_main_exported_5(void) ; void ldv_main_exported_30(void) ; void ldv_main_exported_27(void) ; void ldv_main_exported_26(void) ; int main(void) { u32 ldvarg146 ; struct obd_statfs *ldvarg157 ; void *tmp ; __u32 *ldvarg174 ; void *tmp___0 ; __u32 ldvarg168 ; void *ldvarg165 ; void *tmp___1 ; void *ldvarg155 ; void *tmp___2 ; __u32 ldvarg167 ; void *ldvarg145 ; void *tmp___3 ; void *ldvarg152 ; void *tmp___4 ; __u64 ldvarg170 ; void *ldvarg163 ; void *tmp___5 ; struct lov_mds_md_v1 **ldvarg169 ; void *tmp___6 ; enum obd_cleanup_stage ldvarg149 ; int ldvarg161 ; __u32 ldvarg158 ; void *ldvarg160 ; void *tmp___7 ; struct lustre_cfg *ldvarg175 ; void *tmp___8 ; struct obd_export **ldvarg151 ; void *tmp___9 ; int ldvarg154 ; void *ldvarg172 ; void *tmp___10 ; unsigned int ldvarg153 ; __u64 ldvarg156 ; void *ldvarg166 ; void *tmp___11 ; struct obd_export *ldvarg147 ; void *tmp___12 ; int (*ldvarg164)(struct ldlm_lock * , void * ) ; int ldvarg176 ; __u32 ldvarg173 ; void *ldvarg150 ; void *tmp___13 ; void *ldvarg171 ; void *tmp___14 ; enum obd_import_event ldvarg159 ; struct lov_mds_md_v1 *ldvarg162 ; void *tmp___15 ; void *ldvarg148 ; void *tmp___16 ; int tmp___17 ; int tmp___18 ; int tmp___19 ; { tmp = ldv_init_zalloc(144UL); ldvarg157 = (struct obd_statfs *)tmp; tmp___0 = ldv_init_zalloc(4UL); ldvarg174 = (__u32 *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg165 = tmp___1; tmp___2 = ldv_init_zalloc(1UL); ldvarg155 = tmp___2; tmp___3 = ldv_init_zalloc(1UL); ldvarg145 = tmp___3; tmp___4 = ldv_init_zalloc(1UL); ldvarg152 = tmp___4; tmp___5 = ldv_init_zalloc(1UL); ldvarg163 = tmp___5; tmp___6 = ldv_init_zalloc(8UL); ldvarg169 = (struct lov_mds_md_v1 **)tmp___6; tmp___7 = ldv_init_zalloc(1UL); ldvarg160 = tmp___7; tmp___8 = ldv_init_zalloc(32UL); ldvarg175 = (struct lustre_cfg *)tmp___8; tmp___9 = ldv_init_zalloc(8UL); ldvarg151 = (struct obd_export **)tmp___9; tmp___10 = ldv_init_zalloc(1UL); ldvarg172 = tmp___10; tmp___11 = ldv_init_zalloc(1UL); ldvarg166 = tmp___11; tmp___12 = ldv_init_zalloc(1400UL); ldvarg147 = (struct obd_export *)tmp___12; tmp___13 = ldv_init_zalloc(1UL); ldvarg150 = tmp___13; tmp___14 = ldv_init_zalloc(1UL); ldvarg171 = tmp___14; tmp___15 = ldv_init_zalloc(32UL); ldvarg162 = (struct lov_mds_md_v1 *)tmp___15; tmp___16 = ldv_init_zalloc(1UL); ldvarg148 = tmp___16; ldv_initialize(); ldv_memset((void *)(& ldvarg146), 0, 4UL); ldv_memset((void *)(& ldvarg168), 0, 4UL); ldv_memset((void *)(& ldvarg167), 0, 4UL); ldv_memset((void *)(& ldvarg170), 0, 8UL); ldv_memset((void *)(& ldvarg149), 0, 4UL); ldv_memset((void *)(& ldvarg161), 0, 4UL); ldv_memset((void *)(& ldvarg158), 0, 4UL); ldv_memset((void *)(& ldvarg154), 0, 4UL); ldv_memset((void *)(& ldvarg153), 0, 4UL); ldv_memset((void *)(& ldvarg156), 0, 8UL); ldv_memset((void *)(& ldvarg164), 0, 8UL); ldv_memset((void *)(& ldvarg176), 0, 4UL); ldv_memset((void *)(& ldvarg173), 0, 4UL); ldv_memset((void *)(& ldvarg159), 0, 4UL); ldv_state_variable_33 = 0; ldv_state_variable_32 = 0; ldv_state_variable_21 = 0; ldv_state_variable_7 = 0; ldv_state_variable_26 = 0; ldv_state_variable_17 = 0; ldv_state_variable_2 = 0; ldv_state_variable_1 = 0; ldv_state_variable_18 = 0; ldv_state_variable_30 = 0; ldv_state_variable_16 = 0; ldv_state_variable_27 = 0; ldv_state_variable_25 = 0; ldv_state_variable_28 = 0; ldv_state_variable_20 = 0; ldv_state_variable_14 = 0; ldv_state_variable_24 = 0; ldv_state_variable_10 = 0; ldv_state_variable_31 = 0; ldv_state_variable_35 = 0; ldv_state_variable_11 = 0; ldv_state_variable_22 = 0; ref_cnt = 0; ldv_state_variable_0 = 1; ldv_state_variable_13 = 0; ldv_state_variable_23 = 0; ldv_state_variable_29 = 0; ldv_state_variable_6 = 0; ldv_state_variable_36 = 0; ldv_state_variable_3 = 0; ldv_state_variable_9 = 0; ldv_state_variable_12 = 0; ldv_state_variable_15 = 0; ldv_state_variable_38 = 0; ldv_state_variable_8 = 0; ldv_state_variable_4 = 0; ldv_state_variable_34 = 0; ldv_state_variable_37 = 0; ldv_state_variable_19 = 0; ldv_state_variable_5 = 0; ldv_65243: tmp___17 = __VERIFIER_nondet_int(); switch (tmp___17) { case 0: ; if (ldv_state_variable_33 != 0) { ldv_main_exported_33(); } else { } goto ldv_65169; case 1: ; if (ldv_state_variable_32 != 0) { ldv_main_exported_32(); } else { } goto ldv_65169; case 2: ; if (ldv_state_variable_21 != 0) { ldv_main_exported_21(); } else { } goto ldv_65169; case 3: ; if (ldv_state_variable_7 != 0) { ldv_main_exported_7(); } else { } goto ldv_65169; case 4: ; if (ldv_state_variable_26 != 0) { ldv_main_exported_26(); } else { } goto ldv_65169; case 5: ; if (ldv_state_variable_17 != 0) { ldv_main_exported_17(); } else { } goto ldv_65169; case 6: ; if (ldv_state_variable_2 != 0) { ldv_main_exported_2(); } else { } goto ldv_65169; case 7: ; if (ldv_state_variable_1 != 0) { ldv_main_exported_1(); } else { } goto ldv_65169; case 8: ; if (ldv_state_variable_18 != 0) { ldv_main_exported_18(); } else { } goto ldv_65169; case 9: ; if (ldv_state_variable_30 != 0) { ldv_main_exported_30(); } else { } goto ldv_65169; case 10: ; if (ldv_state_variable_16 != 0) { ldv_main_exported_16(); } else { } goto ldv_65169; case 11: ; if (ldv_state_variable_27 != 0) { ldv_main_exported_27(); } else { } goto ldv_65169; case 12: ; if (ldv_state_variable_25 != 0) { ldv_main_exported_25(); } else { } goto ldv_65169; case 13: ; if (ldv_state_variable_28 != 0) { ldv_main_exported_28(); } else { } goto ldv_65169; case 14: ; if (ldv_state_variable_20 != 0) { ldv_main_exported_20(); } else { } goto ldv_65169; case 15: ; if (ldv_state_variable_14 != 0) { ldv_main_exported_14(); } else { } goto ldv_65169; case 16: ; if (ldv_state_variable_24 != 0) { ldv_main_exported_24(); } else { } goto ldv_65169; case 17: ; if (ldv_state_variable_10 != 0) { ldv_main_exported_10(); } else { } goto ldv_65169; case 18: ; if (ldv_state_variable_31 != 0) { ldv_main_exported_31(); } else { } goto ldv_65169; case 19: ; if (ldv_state_variable_35 != 0) { ldv_main_exported_35(); } else { } goto ldv_65169; case 20: ; if (ldv_state_variable_11 != 0) { ldv_main_exported_11(); } else { } goto ldv_65169; case 21: ; if (ldv_state_variable_22 != 0) { ldv_main_exported_22(); } else { } goto ldv_65169; case 22: ; if (ldv_state_variable_0 != 0) { tmp___18 = __VERIFIER_nondet_int(); switch (tmp___18) { case 0: ; if (ldv_state_variable_0 == 3 && ref_cnt == 0) { osc_exit(); ldv_state_variable_0 = 2; goto ldv_final; } else { } goto ldv_65194; case 1: ; if (ldv_state_variable_0 == 1) { ldv_retval_6 = osc_init(); if (ldv_retval_6 == 0) { ldv_state_variable_0 = 3; ldv_state_variable_5 = 1; ldv_file_operations_5(); ldv_state_variable_19 = 1; ldv_state_variable_37 = 1; ldv_initialize_lu_context_key_37(); ldv_state_variable_34 = 1; ldv_state_variable_4 = 1; ldv_file_operations_4(); ldv_state_variable_8 = 1; ldv_file_operations_8(); ldv_state_variable_38 = 1; ldv_initialize_obd_ops_38(); ldv_state_variable_15 = 1; ldv_initialize_lustre_attr_15(); ldv_state_variable_12 = 1; ldv_state_variable_9 = 1; ldv_file_operations_9(); ldv_state_variable_3 = 1; ldv_file_operations_3(); ldv_state_variable_36 = 1; ldv_initialize_lu_context_key_36(); ldv_state_variable_6 = 1; ldv_file_operations_6(); ldv_state_variable_29 = 1; ldv_initialize_cl_lock_operations_29(); ldv_state_variable_23 = 1; ldv_initialize_lustre_attr_23(); ldv_state_variable_13 = 1; ldv_initialize_lustre_attr_13(); ldv_state_variable_22 = 1; ldv_file_operations_22(); ldv_state_variable_11 = 1; ldv_initialize_lustre_attr_11(); ldv_state_variable_35 = 1; ldv_initialize_lu_device_operations_35(); ldv_state_variable_31 = 1; ldv_initialize_lu_object_operations_31(); ldv_state_variable_10 = 1; ldv_file_operations_10(); ldv_state_variable_24 = 1; ldv_initialize_lustre_attr_24(); ldv_state_variable_14 = 1; ldv_initialize_lustre_attr_14(); ldv_state_variable_20 = 1; ldv_initialize_lustre_attr_20(); ldv_state_variable_28 = 1; ldv_initialize_cl_lock_operations_28(); ldv_state_variable_25 = 1; ldv_initialize_lustre_attr_25(); ldv_state_variable_27 = 1; ldv_initialize_cl_io_operations_27(); ldv_state_variable_16 = 1; ldv_file_operations_16(); ldv_state_variable_30 = 1; ldv_initialize_cl_page_operations_30(); ldv_state_variable_18 = 1; ldv_initialize_lustre_attr_18(); ldv_state_variable_1 = 1; ldv_file_operations_1(); ldv_state_variable_2 = 1; ldv_file_operations_2(); ldv_state_variable_17 = 1; ldv_initialize_lustre_attr_17(); ldv_state_variable_26 = 1; ldv_initialize_cl_req_operations_26(); ldv_state_variable_7 = 1; ldv_file_operations_7(); ldv_state_variable_21 = 1; ldv_state_variable_32 = 1; ldv_initialize_cl_object_operations_32(); ldv_state_variable_33 = 1; ldv_initialize_lu_device_type_operations_33(); } else { } if (ldv_retval_6 != 0) { ldv_state_variable_0 = 2; goto ldv_final; } else { } } else { } goto ldv_65194; default: ldv_stop(); } ldv_65194: ; } else { } goto ldv_65169; case 23: ; if (ldv_state_variable_13 != 0) { ldv_main_exported_13(); } else { } goto ldv_65169; case 24: ; if (ldv_state_variable_23 != 0) { ldv_main_exported_23(); } else { } goto ldv_65169; case 25: ; if (ldv_state_variable_29 != 0) { ldv_main_exported_29(); } else { } goto ldv_65169; case 26: ; if (ldv_state_variable_6 != 0) { ldv_main_exported_6(); } else { } goto ldv_65169; case 27: ; if (ldv_state_variable_36 != 0) { ldv_main_exported_36(); } else { } goto ldv_65169; case 28: ; if (ldv_state_variable_3 != 0) { ldv_main_exported_3(); } else { } goto ldv_65169; case 29: ; if (ldv_state_variable_9 != 0) { ldv_main_exported_9(); } else { } goto ldv_65169; case 30: ; if (ldv_state_variable_12 != 0) { ldv_main_exported_12(); } else { } goto ldv_65169; case 31: ; if (ldv_state_variable_15 != 0) { ldv_main_exported_15(); } else { } goto ldv_65169; case 32: ; if (ldv_state_variable_38 != 0) { tmp___19 = __VERIFIER_nondet_int(); switch (tmp___19) { case 0: ; if (ldv_state_variable_38 == 1) { osc_quotacheck(osc_obd_ops_group8, osc_obd_ops_group2, osc_obd_ops_group10); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_quotacheck(osc_obd_ops_group8, osc_obd_ops_group2, osc_obd_ops_group10); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 1: ; if (ldv_state_variable_38 == 1) { client_import_add_conn(osc_obd_ops_group5, osc_obd_ops_group9, ldvarg176); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { client_import_add_conn(osc_obd_ops_group5, osc_obd_ops_group9, ldvarg176); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 2: ; if (ldv_state_variable_38 == 2) { osc_disconnect(osc_obd_ops_group2); ldv_state_variable_38 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_65208; case 3: ; if (ldv_state_variable_38 == 1) { osc_setup(osc_obd_ops_group8, ldvarg175); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_setup(osc_obd_ops_group8, ldvarg175); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 4: ; if (ldv_state_variable_38 == 1) { osc_get_info(osc_obd_ops_group3, osc_obd_ops_group2, ldvarg173, ldvarg172, ldvarg174, ldvarg171, osc_obd_ops_group6); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_get_info(osc_obd_ops_group3, osc_obd_ops_group2, ldvarg173, ldvarg172, ldvarg174, ldvarg171, osc_obd_ops_group6); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 5: ; if (ldv_state_variable_38 == 1) { osc_statfs_async(osc_obd_ops_group2, osc_obd_ops_group11, ldvarg170, osc_obd_ops_group1); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_statfs_async(osc_obd_ops_group2, osc_obd_ops_group11, ldvarg170, osc_obd_ops_group1); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 6: ; if (ldv_state_variable_38 == 1) { osc_packmd(osc_obd_ops_group2, ldvarg169, osc_obd_ops_group6); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_packmd(osc_obd_ops_group2, ldvarg169, osc_obd_ops_group6); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 7: ; if (ldv_state_variable_38 == 1) { osc_create(osc_obd_ops_group3, osc_obd_ops_group2, osc_obd_ops_group0, osc_obd_ops_group4, osc_obd_ops_group12); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_create(osc_obd_ops_group3, osc_obd_ops_group2, osc_obd_ops_group0, osc_obd_ops_group4, osc_obd_ops_group12); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 8: ; if (ldv_state_variable_38 == 1) { osc_set_info_async(osc_obd_ops_group3, osc_obd_ops_group2, ldvarg167, ldvarg166, ldvarg168, ldvarg165, osc_obd_ops_group1); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_set_info_async(osc_obd_ops_group3, osc_obd_ops_group2, ldvarg167, ldvarg166, ldvarg168, ldvarg165, osc_obd_ops_group1); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 9: ; if (ldv_state_variable_38 == 1) { client_import_del_conn(osc_obd_ops_group5, osc_obd_ops_group9); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { client_import_del_conn(osc_obd_ops_group5, osc_obd_ops_group9); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 10: ; if (ldv_state_variable_38 == 1) { osc_find_cbdata(osc_obd_ops_group2, osc_obd_ops_group6, ldvarg164, ldvarg163); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_find_cbdata(osc_obd_ops_group2, osc_obd_ops_group6, ldvarg164, ldvarg163); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 11: ; if (ldv_state_variable_38 == 1) { osc_unpackmd(osc_obd_ops_group2, osc_obd_ops_group4, ldvarg162, ldvarg161); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_unpackmd(osc_obd_ops_group2, osc_obd_ops_group4, ldvarg162, ldvarg161); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 12: ; if (ldv_state_variable_38 == 1) { osc_reconnect(osc_obd_ops_group3, osc_obd_ops_group2, osc_obd_ops_group8, osc_obd_ops_group9, osc_obd_ops_group7, ldvarg160); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_reconnect(osc_obd_ops_group3, osc_obd_ops_group2, osc_obd_ops_group8, osc_obd_ops_group9, osc_obd_ops_group7, ldvarg160); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 13: ; if (ldv_state_variable_38 == 1) { osc_setattr(osc_obd_ops_group3, osc_obd_ops_group2, osc_obd_ops_group11, osc_obd_ops_group12); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_setattr(osc_obd_ops_group3, osc_obd_ops_group2, osc_obd_ops_group11, osc_obd_ops_group12); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 14: ; if (ldv_state_variable_38 == 1) { osc_import_event(osc_obd_ops_group8, osc_obd_ops_group5, ldvarg159); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_import_event(osc_obd_ops_group8, osc_obd_ops_group5, ldvarg159); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 15: ; if (ldv_state_variable_38 == 1) { osc_statfs(osc_obd_ops_group3, osc_obd_ops_group2, ldvarg157, ldvarg156, ldvarg158); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_statfs(osc_obd_ops_group3, osc_obd_ops_group2, ldvarg157, ldvarg156, ldvarg158); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 16: ; if (ldv_state_variable_38 == 1) { osc_getattr(osc_obd_ops_group3, osc_obd_ops_group2, osc_obd_ops_group11); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_getattr(osc_obd_ops_group3, osc_obd_ops_group2, osc_obd_ops_group11); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 17: ; if (ldv_state_variable_38 == 1) { osc_iocontrol(ldvarg153, osc_obd_ops_group2, ldvarg154, ldvarg152, ldvarg155); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_iocontrol(ldvarg153, osc_obd_ops_group2, ldvarg154, ldvarg152, ldvarg155); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 18: ; if (ldv_state_variable_38 == 1) { client_connect_import(osc_obd_ops_group3, ldvarg151, osc_obd_ops_group8, osc_obd_ops_group9, osc_obd_ops_group7, ldvarg150); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { client_connect_import(osc_obd_ops_group3, ldvarg151, osc_obd_ops_group8, osc_obd_ops_group9, osc_obd_ops_group7, ldvarg150); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 19: ; if (ldv_state_variable_38 == 1) { osc_setattr_async(osc_obd_ops_group2, osc_obd_ops_group11, osc_obd_ops_group12, osc_obd_ops_group1); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_setattr_async(osc_obd_ops_group2, osc_obd_ops_group11, osc_obd_ops_group12, osc_obd_ops_group1); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 20: ; if (ldv_state_variable_38 == 1) { osc_getattr_async(osc_obd_ops_group2, osc_obd_ops_group11, osc_obd_ops_group1); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_getattr_async(osc_obd_ops_group2, osc_obd_ops_group11, osc_obd_ops_group1); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 21: ; if (ldv_state_variable_38 == 1) { osc_cleanup(osc_obd_ops_group8); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_cleanup(osc_obd_ops_group8); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 22: ; if (ldv_state_variable_38 == 1) { osc_precleanup(osc_obd_ops_group8, ldvarg149); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_precleanup(osc_obd_ops_group8, ldvarg149); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 23: ; if (ldv_state_variable_38 == 1) { osc_destroy(osc_obd_ops_group3, osc_obd_ops_group2, osc_obd_ops_group0, osc_obd_ops_group6, osc_obd_ops_group12, ldvarg147, ldvarg148); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_destroy(osc_obd_ops_group3, osc_obd_ops_group2, osc_obd_ops_group0, osc_obd_ops_group6, osc_obd_ops_group12, ldvarg147, ldvarg148); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 24: ; if (ldv_state_variable_38 == 1) { osc_quotactl(osc_obd_ops_group8, osc_obd_ops_group2, osc_obd_ops_group10); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_quotactl(osc_obd_ops_group8, osc_obd_ops_group2, osc_obd_ops_group10); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 25: ; if (ldv_state_variable_38 == 1) { osc_process_config(osc_obd_ops_group8, ldvarg146, ldvarg145); ldv_state_variable_38 = 1; } else { } if (ldv_state_variable_38 == 2) { osc_process_config(osc_obd_ops_group8, ldvarg146, ldvarg145); ldv_state_variable_38 = 2; } else { } goto ldv_65208; case 26: ; if (ldv_state_variable_38 == 1) { ldv_probe_38(); ldv_state_variable_38 = 2; ref_cnt = ref_cnt + 1; } else { } goto ldv_65208; default: ldv_stop(); } ldv_65208: ; } else { } goto ldv_65169; case 33: ; if (ldv_state_variable_8 != 0) { ldv_main_exported_8(); } else { } goto ldv_65169; case 34: ; if (ldv_state_variable_4 != 0) { ldv_main_exported_4(); } else { } goto ldv_65169; case 35: ; if (ldv_state_variable_34 != 0) { ldv_main_exported_34(); } else { } goto ldv_65169; case 36: ; if (ldv_state_variable_37 != 0) { ldv_main_exported_37(); } else { } goto ldv_65169; case 37: ; if (ldv_state_variable_19 != 0) { ldv_main_exported_19(); } else { } goto ldv_65169; case 38: ; if (ldv_state_variable_5 != 0) { ldv_main_exported_5(); } else { } goto ldv_65169; default: ldv_stop(); } ldv_65169: ; goto ldv_65243; ldv_final: ldv_check_final_state(); return 0; } } __inline static long PTR_ERR(void const *ptr ) { long tmp ; { tmp = ldv_ptr_err(ptr); return (tmp); } } __inline static bool IS_ERR(void const *ptr ) { bool tmp ; { tmp = ldv_is_err(ptr); return (tmp); } } __inline static void spin_lock(spinlock_t *lock ) { { ldv_spin_lock(); ldv_spin_lock_5(lock); return; } } __inline static int spin_trylock(spinlock_t *lock ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = ldv_spin_trylock_7(lock); ldv_func_res = tmp; tmp___0 = ldv_spin_trylock(); return (tmp___0); return (ldv_func_res); } } __inline static void spin_unlock(spinlock_t *lock ) { { ldv_spin_unlock(); ldv_spin_unlock_9(lock); return; } } void *ldv_calloc(size_t nmemb , size_t size ) ; __inline static void *kcalloc(size_t n , size_t size , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_calloc(n, size); return (tmp); } } void *ldv_zalloc(size_t size ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_zalloc(size); return (tmp); } } int ldv_pskb_expand_head_26(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } void *ldv_malloc(size_t size ) ; struct sk_buff *ldv_skb_clone_28(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv_skb_copy_30(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_31(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_32(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_33(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } int ldv_pskb_expand_head_34(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } int ldv_pskb_expand_head_35(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_36(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } void *ldv_kmem_cache_alloc_38(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(0UL); // no call to kmem_cache_create for obdo_cachep return (tmp); } } void *ldv_kmem_cache_alloc_39(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(0UL); // no call to kmem_cache_create for obdo_cachep return (tmp); } } void ldv__builtin_va_end(__builtin_va_list * ) ; void ldv__builtin_va_arg(__builtin_va_list , unsigned long , void * ) ; __inline static long ldv__builtin_expect(long exp , long c ) ; void ldv__builtin_va_start(__builtin_va_list * ) ; void *ldv_err_ptr(long error ) ; __inline static void *ERR_PTR(long error ) ; __inline static bool IS_ERR(void const *ptr ) ; void *ldv_kmem_cache_alloc_77(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; void *ldv_kmem_cache_alloc_78(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_67(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_75(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_69(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_65(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_73(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_74(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_70(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_71(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_72(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static int cfs_size_round(int val ) { { return ((val + 7) & -8); } } __inline static int cfs_fail_check_set___0(__u32 id , __u32 value , int set , int quiet ) { int ret ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; int tmp___1 ; long tmp___2 ; { ret = 0; if (cfs_fail_loc != 0UL && (((unsigned long )id ^ cfs_fail_loc) & 65535UL) == 0UL) { ret = __cfs_fail_check_set(id, value, set); if (ret != 0) { tmp___1 = 1; } else { tmp___1 = 0; } } else { tmp___1 = 0; } tmp___2 = ldv__builtin_expect((long )tmp___1, 0L); if (tmp___2 != 0L) { if (quiet != 0) { tmp = cfs_cdebug_show(64U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/../../include/linux/libcfs/libcfs_fail.h"; msgdata.msg_fn = "cfs_fail_check_set"; msgdata.msg_line = 86; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "*** cfs_fail_loc=%x, val=%u***\n", id, value); } else { } } else { tmp___0 = cfs_cdebug_show(33554432U, 8U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/../../include/linux/libcfs/libcfs_fail.h"; msgdata___0.msg_fn = "cfs_fail_check_set"; msgdata___0.msg_line = 89; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 33554432; libcfs_debug_msg(& msgdata___0, "*** cfs_fail_loc=%x, val=%u***\n", id, value); } else { } } } else { } return (ret); } } __inline static void *__container_of___0(void *ptr , unsigned long shift ) { bool tmp ; long tmp___0 ; { tmp = IS_ERR((void const *)ptr); tmp___0 = ldv__builtin_expect((long )((int )tmp || (unsigned long )ptr == (unsigned long )((void *)0)), 0L); if (tmp___0 != 0L) { return (ptr); } else { } return (ptr + - shift); } } extern int lu_device_init(struct lu_device * , struct lu_device_type * ) ; extern void lu_device_fini(struct lu_device * ) ; extern int lu_context_key_register_many(struct lu_context_key * , ...) ; extern void lu_context_key_degister_many(struct lu_context_key * , ...) ; extern void lu_context_key_revive_many(struct lu_context_key * , ...) ; extern void lu_context_key_quiesce_many(struct lu_context_key * , ...) ; __inline static void *lustre_cfg_buf(struct lustre_cfg *lcfg , int index ) { int i ; int offset ; int bufcount ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; int tmp___1 ; { tmp = ldv__builtin_expect((unsigned long )lcfg == (unsigned long )((struct lustre_cfg *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/lustre_cfg.h"; __msg_data.msg_fn = "lustre_cfg_buf"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 160; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"lcfg != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect(index < 0, 0L); if (tmp___0 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/lustre_cfg.h"; __msg_data___0.msg_fn = "lustre_cfg_buf"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 161; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"index >= 0"); lbug_with_loc(& __msg_data___0); } else { } bufcount = (int )lcfg->lcfg_bufcount; if (index >= bufcount) { return ((void *)0); } else { } offset = cfs_size_round((int )((unsigned int )((unsigned long )lcfg->lcfg_bufcount + 8UL) * 4U)); i = 0; goto ldv_56764; ldv_56763: tmp___1 = cfs_size_round((int )lcfg->lcfg_buflens[i]); offset = tmp___1 + offset; i = i + 1; ldv_56764: ; if (i < index) { goto ldv_56763; } else { } return ((void *)lcfg + (unsigned long )offset); } } __inline static char *lustre_cfg_string(struct lustre_cfg *lcfg , int index ) { char *s ; void *tmp ; int last ; int _min1 ; int _min2 ; int tmp___0 ; char lost ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; { if (lcfg->lcfg_buflens[index] == 0U) { return ((char *)0); } else { } tmp = lustre_cfg_buf(lcfg, index); s = (char *)tmp; if ((unsigned long )s == (unsigned long )((char *)0)) { return ((char *)0); } else { } if ((int )((signed char )*(s + (unsigned long )(lcfg->lcfg_buflens[index] - 1U))) != 0) { _min1 = (int )lcfg->lcfg_buflens[index]; tmp___0 = cfs_size_round((int )lcfg->lcfg_buflens[index]); _min2 = tmp___0 + -1; last = _min1 < _min2 ? _min1 : _min2; lost = *(s + (unsigned long )last); *(s + (unsigned long )last) = 0; if ((int )((signed char )lost) != 0) { tmp___1 = cfs_cdebug_show(1024U, 8U); if (tmp___1 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/lustre_cfg.h"; msgdata.msg_fn = "lustre_cfg_string"; msgdata.msg_line = 206; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "Truncated buf %d to \'%s\' (lost \'%c\'...)\n", index, s, (int )lost); } else { } } else { } } else { } return (s); } } extern struct obd_device *class_name2obd(char const * ) ; __inline static int lu_device_is_cl(struct lu_device const *d ) { { return ((int )(d->ld_type)->ldt_tags & 4); } } __inline static struct cl_device *lu2cl_dev(struct lu_device const *d ) { struct libcfs_debug_msg_data __msg_data ; bool tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; long tmp___3 ; void *tmp___4 ; { if ((unsigned long )d != (unsigned long )((struct lu_device const *)0)) { tmp = IS_ERR((void const *)d); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { tmp___1 = lu_device_is_cl(d); if (tmp___1 == 0) { tmp___2 = 1; } else { tmp___2 = 0; } } else { tmp___2 = 0; } } else { tmp___2 = 0; } tmp___3 = ldv__builtin_expect((long )tmp___2, 0L); if (tmp___3 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/cl_object.h"; __msg_data.msg_fn = "lu2cl_dev"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2661; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"d == ((void *)0) || IS_ERR(d) || lu_device_is_cl(d)"); lbug_with_loc(& __msg_data); } else { } tmp___4 = __container_of___0((void *)d, 0UL); return ((struct cl_device *)tmp___4); } } __inline static int cl_device_init(struct cl_device *d , struct lu_device_type *t ) { int tmp ; { tmp = lu_device_init(& d->cd_lu_dev, t); return (tmp); } } __inline static void cl_device_fini(struct cl_device *d ) { { lu_device_fini(& d->cd_lu_dev); return; } } struct kmem_cache *osc_quota_kmem ; struct kmem_cache *osc_lock_kmem ; struct kmem_cache *osc_object_kmem ; struct kmem_cache *osc_thread_kmem ; struct kmem_cache *osc_session_kmem ; struct kmem_cache *osc_req_kmem ; struct kmem_cache *osc_extent_kmem ; struct lu_context_key osc_session_key ; int osc_req_init(struct lu_env const *env , struct cl_device *dev , struct cl_req *req ) ; struct lu_object *osc_object_alloc(struct lu_env const *env , struct lu_object_header const *unused , struct lu_device *dev ) ; __inline static struct osc_device *lu2osc_dev(struct lu_device const *d ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; void *tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )((struct lu_device_type *)d->ld_type) != (unsigned long )(& osc_device_type), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "lu2osc_dev"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 501; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"d->ld_type == &osc_device_type"); lbug_with_loc(& __msg_data); } else { } tmp___0 = __container_of___0((void *)d, 0UL); return ((struct osc_device *)tmp___0); } } struct lu_kmem_descr osc_caches[8U] = { {& osc_lock_kmem, "osc_lock_kmem", 184UL}, {& osc_object_kmem, "osc_object_kmem", 400UL}, {& osc_thread_kmem, "osc_thread_kmem", 984UL}, {& osc_session_kmem, "osc_session_kmem", 488UL}, {& osc_req_kmem, "osc_req_kmem", 40UL}, {& osc_extent_kmem, "osc_extent_kmem", 232UL}, {& osc_quota_kmem, "osc_quota_kmem", 24UL}, {(struct kmem_cache **)0, 0, 0UL}}; struct lock_class_key osc_ast_guard_class ; static struct lu_device *osc2lu_dev(struct osc_device *osc ) { { return (& osc->od_cl.cd_lu_dev); } } static void *osc_key_init(struct lu_context const *ctx , struct lu_context_key *key ) { struct osc_thread_info *info ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; long tmp___6 ; void *tmp___7 ; { tmp = preempt_count(); tmp___0 = ldv__builtin_expect(((unsigned long )tmp & 2096896UL) != 0UL, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_dev.c"; __msg_data.msg_fn = "osc_key_init"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 125; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(!((((( gfp_t)0x10u) | (( gfp_t)0x40u))) != ((( gfp_t)0x20u))) || (!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4)))))))"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv_kmem_cache_alloc_77(osc_thread_kmem, 32848U); info = (struct osc_thread_info *)tmp___1; if ((unsigned long )info != (unsigned long )((struct osc_thread_info *)0)) { tmp___3 = cfs_fail_check_set___0(3072U, 0U, 0, 0); if (tmp___3 == 0 || obd_alloc_fail_rate == 0U) { tmp___5 = 1; } else { tmp___4 = obd_alloc_fail((void const *)info, "info", "slab-", 984UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_dev.c", 125); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(osc_thread_kmem, (void *)info); info = (struct osc_thread_info *)0; tmp___5 = 0; } } } else { tmp___5 = 0; } tmp___6 = ldv__builtin_expect((long )tmp___5, 1L); if (tmp___6 != 0L) { lprocfs_counter_add(obd_memory, 0, 984L); tmp___2 = cfs_cdebug_show(16U, 8U); if (tmp___2 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_dev.c"; msgdata.msg_fn = "osc_key_init"; msgdata.msg_line = 125; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'info\': %d at %p.\n", 984, info); } else { } } else { } if ((unsigned long )info == (unsigned long )((struct osc_thread_info *)0)) { tmp___7 = ERR_PTR(-12L); info = (struct osc_thread_info *)tmp___7; } else { } return ((void *)info); } } static void osc_key_fini(struct lu_context const *ctx , struct lu_context_key *key , void *data ) { struct osc_thread_info *info ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { info = (struct osc_thread_info *)data; tmp = ldv__builtin_expect((unsigned long )info == (unsigned long )((struct osc_thread_info *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_dev.c"; __msg_data.msg_fn = "osc_key_fini"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 136; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(info)"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 984L); tmp___0 = cfs_cdebug_show(16U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_dev.c"; msgdata.msg_fn = "osc_key_fini"; msgdata.msg_line = 136; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(info)\': %d at %p.\n", 984, info); } else { } memset((void *)info, 90, 984UL); kmem_cache_free(osc_thread_kmem, (void *)info); info = (struct osc_thread_info *)3735928559L; return; } } struct lu_context_key osc_key = {8U, & osc_key_init, & osc_key_fini, 0, 0, {0}, 0, {}}; static void *osc_session_init(struct lu_context const *ctx , struct lu_context_key *key ) { struct osc_session *info ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; long tmp___6 ; void *tmp___7 ; { tmp = preempt_count(); tmp___0 = ldv__builtin_expect(((unsigned long )tmp & 2096896UL) != 0UL, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_dev.c"; __msg_data.msg_fn = "osc_session_init"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 150; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(!((((( gfp_t)0x10u) | (( gfp_t)0x40u))) != ((( gfp_t)0x20u))) || (!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4)))))))"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv_kmem_cache_alloc_78(osc_session_kmem, 32848U); info = (struct osc_session *)tmp___1; if ((unsigned long )info != (unsigned long )((struct osc_session *)0)) { tmp___3 = cfs_fail_check_set___0(3072U, 0U, 0, 0); if (tmp___3 == 0 || obd_alloc_fail_rate == 0U) { tmp___5 = 1; } else { tmp___4 = obd_alloc_fail((void const *)info, "info", "slab-", 488UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_dev.c", 150); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(osc_session_kmem, (void *)info); info = (struct osc_session *)0; tmp___5 = 0; } } } else { tmp___5 = 0; } tmp___6 = ldv__builtin_expect((long )tmp___5, 1L); if (tmp___6 != 0L) { lprocfs_counter_add(obd_memory, 0, 488L); tmp___2 = cfs_cdebug_show(16U, 8U); if (tmp___2 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_dev.c"; msgdata.msg_fn = "osc_session_init"; msgdata.msg_line = 150; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'info\': %d at %p.\n", 488, info); } else { } } else { } if ((unsigned long )info == (unsigned long )((struct osc_session *)0)) { tmp___7 = ERR_PTR(-12L); info = (struct osc_session *)tmp___7; } else { } return ((void *)info); } } static void osc_session_fini(struct lu_context const *ctx , struct lu_context_key *key , void *data ) { struct osc_session *info ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { info = (struct osc_session *)data; tmp = ldv__builtin_expect((unsigned long )info == (unsigned long )((struct osc_session *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_dev.c"; __msg_data.msg_fn = "osc_session_fini"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 161; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(info)"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 488L); tmp___0 = cfs_cdebug_show(16U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_dev.c"; msgdata.msg_fn = "osc_session_fini"; msgdata.msg_line = 161; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(info)\': %d at %p.\n", 488, info); } else { } memset((void *)info, 90, 488UL); kmem_cache_free(osc_session_kmem, (void *)info); info = (struct osc_session *)3735928559L; return; } } struct lu_context_key osc_session_key = {16U, & osc_session_init, & osc_session_fini, 0, 0, {0}, 0, {}}; static void osc_key_init_generic(struct lu_context_key *k , ...) { struct lu_context_key *key ; va_list args ; struct lu_context_key *tmp ; { key = k; ldv__builtin_va_start((va_list *)(& args)); ldv_63846: key->lct_owner = & __this_module; ldv__builtin_va_arg(args, sizeof(struct lu_context_key *), (void *)(& tmp)); key = tmp; if ((unsigned long )key != (unsigned long )((struct lu_context_key *)0)) { goto ldv_63846; } else { } ldv__builtin_va_end((va_list *)(& args)); return; } } static int osc_type_init(struct lu_device_type *t ) { int tmp ; { osc_key_init_generic(& osc_key, & osc_session_key, (void *)0); tmp = lu_context_key_register_many(& osc_key, & osc_session_key, (void *)0); return (tmp); } } static void osc_type_fini(struct lu_device_type *t ) { { lu_context_key_degister_many(& osc_key, & osc_session_key, (void *)0); return; } } static void osc_type_start(struct lu_device_type *t ) { { lu_context_key_revive_many(& osc_key, & osc_session_key, (void *)0); return; } } static void osc_type_stop(struct lu_device_type *t ) { { lu_context_key_quiesce_many(& osc_key, & osc_session_key, (void *)0); return; } } static int osc_cl_process_config(struct lu_env const *env , struct lu_device *d , struct lustre_cfg *cfg ) { int tmp ; { tmp = osc_process_config_base(d->ld_obd, cfg); return (tmp); } } static struct lu_device_operations const osc_lu_ops = {& osc_object_alloc, & osc_cl_process_config, (int (*)(struct lu_env const * , struct lu_device * ))0, 0}; static struct cl_device_operations const osc_cl_ops = {& osc_req_init}; static int osc_device_init(struct lu_env const *env , struct lu_device *d , char const *name , struct lu_device *next ) { { return (0); } } static struct lu_device *osc_device_fini(struct lu_env const *env , struct lu_device *d ) { { return ((struct lu_device *)0); } } static struct lu_device *osc_device_free(struct lu_env const *env , struct lu_device *d ) { struct osc_device *od ; struct osc_device *tmp ; struct cl_device *tmp___0 ; { tmp = lu2osc_dev((struct lu_device const *)d); od = tmp; tmp___0 = lu2cl_dev((struct lu_device const *)d); cl_device_fini(tmp___0); kfree((void const *)od); return ((struct lu_device *)0); } } static struct lu_device *osc_device_alloc(struct lu_env const *env , struct lu_device_type *t , struct lustre_cfg *cfg ) { struct lu_device *d ; struct osc_device *od ; struct obd_device *obd ; int rc ; void *tmp ; void *tmp___0 ; char *tmp___1 ; struct libcfs_debug_msg_data __msg_data ; long tmp___2 ; void *tmp___3 ; { tmp = kzalloc(104UL, 80U); od = (struct osc_device *)tmp; if ((unsigned long )od == (unsigned long )((struct osc_device *)0)) { tmp___0 = ERR_PTR(-12L); return ((struct lu_device *)tmp___0); } else { } cl_device_init(& od->od_cl, t); d = osc2lu_dev(od); d->ld_ops = & osc_lu_ops; od->od_cl.cd_ops = & osc_cl_ops; tmp___1 = lustre_cfg_string(cfg, 0); obd = class_name2obd((char const *)tmp___1); tmp___2 = ldv__builtin_expect((unsigned long )obd == (unsigned long )((struct obd_device *)0), 0L); if (tmp___2 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_dev.c"; __msg_data.msg_fn = "osc_device_alloc"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 231; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"obd != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } rc = osc_setup(obd, cfg); if (rc != 0) { osc_device_free(env, d); tmp___3 = ERR_PTR((long )rc); return ((struct lu_device *)tmp___3); } else { } od->od_exp = obd->obd_self_export; return (d); } } static struct lu_device_type_operations const osc_device_type_ops = {& osc_device_alloc, & osc_device_free, & osc_device_init, & osc_device_fini, & osc_type_init, & osc_type_fini, & osc_type_start, & osc_type_stop}; struct lu_device_type osc_device_type = {4U, (char *)"osc", & osc_device_type_ops, 0, 8U, 0U, {0, 0}}; void ldv_initialize_lu_context_key_37(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(48UL); osc_key_group0 = (struct lu_context const *)tmp; tmp___0 = ldv_init_zalloc(48UL); osc_key_group1 = (struct lu_context_key *)tmp___0; return; } } void ldv_initialize_lu_device_operations_35(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(56UL); osc_lu_ops_group1 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(56UL); osc_lu_ops_group0 = (struct lu_device *)tmp___0; return; } } void ldv_initialize_lu_device_type_operations_33(void) { void *tmp ; void *tmp___0 ; void *tmp___1 ; { tmp = ldv_init_zalloc(56UL); osc_device_type_ops_group2 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(56UL); osc_device_type_ops_group0 = (struct lu_device_type *)tmp___0; tmp___1 = ldv_init_zalloc(56UL); osc_device_type_ops_group1 = (struct lu_device *)tmp___1; return; } } void ldv_initialize_lu_context_key_36(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(48UL); osc_session_key_group0 = (struct lu_context const *)tmp; tmp___0 = ldv_init_zalloc(48UL); osc_session_key_group1 = (struct lu_context_key *)tmp___0; return; } } void ldv_main_exported_35(void) { struct lu_object_header *ldvarg94 ; void *tmp ; struct lustre_cfg *ldvarg93 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(80UL); ldvarg94 = (struct lu_object_header *)tmp; tmp___0 = ldv_init_zalloc(32UL); ldvarg93 = (struct lustre_cfg *)tmp___0; tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_35 == 1) { osc_object_alloc(osc_lu_ops_group1, (struct lu_object_header const *)ldvarg94, osc_lu_ops_group0); ldv_state_variable_35 = 1; } else { } goto ldv_63917; case 1: ; if (ldv_state_variable_35 == 1) { osc_cl_process_config(osc_lu_ops_group1, osc_lu_ops_group0, ldvarg93); ldv_state_variable_35 = 1; } else { } goto ldv_63917; default: ldv_stop(); } ldv_63917: ; return; } } void ldv_main_exported_33(void) { char *ldvarg2 ; void *tmp ; struct lustre_cfg *ldvarg0 ; void *tmp___0 ; struct lu_device *ldvarg1 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(1UL); ldvarg2 = (char *)tmp; tmp___0 = ldv_init_zalloc(32UL); ldvarg0 = (struct lustre_cfg *)tmp___0; tmp___1 = ldv_init_zalloc(56UL); ldvarg1 = (struct lu_device *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_33 == 1) { osc_device_init(osc_device_type_ops_group2, osc_device_type_ops_group1, (char const *)ldvarg2, ldvarg1); ldv_state_variable_33 = 1; } else { } goto ldv_63927; case 1: ; if (ldv_state_variable_33 == 1) { osc_type_stop(osc_device_type_ops_group0); ldv_state_variable_33 = 1; } else { } goto ldv_63927; case 2: ; if (ldv_state_variable_33 == 1) { osc_type_fini(osc_device_type_ops_group0); ldv_state_variable_33 = 1; } else { } goto ldv_63927; case 3: ; if (ldv_state_variable_33 == 1) { osc_type_init(osc_device_type_ops_group0); ldv_state_variable_33 = 1; } else { } goto ldv_63927; case 4: ; if (ldv_state_variable_33 == 1) { osc_device_free(osc_device_type_ops_group2, osc_device_type_ops_group1); ldv_state_variable_33 = 1; } else { } goto ldv_63927; case 5: ; if (ldv_state_variable_33 == 1) { osc_device_fini(osc_device_type_ops_group2, osc_device_type_ops_group1); ldv_state_variable_33 = 1; } else { } goto ldv_63927; case 6: ; if (ldv_state_variable_33 == 1) { osc_type_start(osc_device_type_ops_group0); ldv_state_variable_33 = 1; } else { } goto ldv_63927; case 7: ; if (ldv_state_variable_33 == 1) { osc_device_alloc(osc_device_type_ops_group2, osc_device_type_ops_group0, ldvarg0); ldv_state_variable_33 = 1; } else { } goto ldv_63927; default: ldv_stop(); } ldv_63927: ; return; } } void ldv_main_exported_34(void) { struct cl_device *ldvarg192 ; void *tmp ; struct lu_env *ldvarg190 ; void *tmp___0 ; struct cl_req *ldvarg191 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(64UL); ldvarg192 = (struct cl_device *)tmp; tmp___0 = ldv_init_zalloc(56UL); ldvarg190 = (struct lu_env *)tmp___0; tmp___1 = ldv_init_zalloc(64UL); ldvarg191 = (struct cl_req *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_34 == 1) { osc_req_init((struct lu_env const *)ldvarg190, ldvarg192, ldvarg191); ldv_state_variable_34 = 1; } else { } goto ldv_63943; default: ldv_stop(); } ldv_63943: ; return; } } void ldv_main_exported_36(void) { void *ldvarg125 ; void *tmp ; int tmp___0 ; { tmp = ldv_init_zalloc(1UL); ldvarg125 = tmp; tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_36 == 1) { osc_session_fini(osc_session_key_group0, osc_session_key_group1, ldvarg125); ldv_state_variable_36 = 1; } else { } goto ldv_63950; case 1: ; if (ldv_state_variable_36 == 1) { osc_session_init(osc_session_key_group0, osc_session_key_group1); ldv_state_variable_36 = 1; } else { } goto ldv_63950; default: ldv_stop(); } ldv_63950: ; return; } } void ldv_main_exported_37(void) { void *ldvarg193 ; void *tmp ; int tmp___0 ; { tmp = ldv_init_zalloc(1UL); ldvarg193 = tmp; tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_37 == 1) { osc_key_fini(osc_key_group0, osc_key_group1, ldvarg193); ldv_state_variable_37 = 1; } else { } goto ldv_63958; case 1: ; if (ldv_state_variable_37 == 1) { osc_key_init(osc_key_group0, osc_key_group1); ldv_state_variable_37 = 1; } else { } goto ldv_63958; default: ldv_stop(); } ldv_63958: ; return; } } __inline static void *ERR_PTR(long error ) { void *tmp ; { tmp = ldv_err_ptr(error); return (tmp); } } int ldv_pskb_expand_head_65(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_67(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv_skb_copy_69(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_70(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_71(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_72(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } int ldv_pskb_expand_head_73(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } int ldv_pskb_expand_head_74(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_75(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } void *ldv_kmem_cache_alloc_77(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(0UL); // no call to kmem_cache_create for osc_thread_kmem return (tmp); } } void *ldv_kmem_cache_alloc_78(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(0UL); // no call to kmem_cache_create for osc_session_kmem return (tmp); } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static bool IS_ERR(void const *ptr ) ; __inline static void atomic_set(atomic_t *v , int i ) { { v->counter = i; return; } } void *ldv_kmem_cache_alloc_116(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_106(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_114(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_108(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_104(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_112(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_113(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_109(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_110(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_111(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static int cfs_time_after(unsigned long t1 , unsigned long t2 ) { { return ((long )(t2 - t1) < 0L); } } __inline static void *__container_of___1(void *ptr , unsigned long shift ) { bool tmp ; long tmp___0 ; { tmp = IS_ERR((void const *)ptr); tmp___0 = ldv__builtin_expect((long )((int )tmp || (unsigned long )ptr == (unsigned long )((void *)0)), 0L); if (tmp___0 != 0L) { return (ptr); } else { } return (ptr + - shift); } } extern int lu_object_init(struct lu_object * , struct lu_object_header * , struct lu_device * ) ; extern void lu_object_fini(struct lu_object * ) ; __inline static void loi_kms_set(struct lov_oinfo *oinfo , __u64 kms ) { { oinfo->loi_kms = kms; oinfo->loi_kms_valid = 1U; return; } } __inline static struct cl_object *lu2cl(struct lu_object const *o ) { struct libcfs_debug_msg_data __msg_data ; bool tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; long tmp___3 ; void *tmp___4 ; { if ((unsigned long )o != (unsigned long )((struct lu_object const *)0)) { tmp = IS_ERR((void const *)o); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { tmp___1 = lu_device_is_cl((struct lu_device const *)o->lo_dev); if (tmp___1 == 0) { tmp___2 = 1; } else { tmp___2 = 0; } } else { tmp___2 = 0; } } else { tmp___2 = 0; } tmp___3 = ldv__builtin_expect((long )tmp___2, 0L); if (tmp___3 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/cl_object.h"; __msg_data.msg_fn = "lu2cl"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2672; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"o == ((void *)0) || IS_ERR(o) || lu_device_is_cl(o->lo_dev)"); lbug_with_loc(& __msg_data); } else { } tmp___4 = __container_of___1((void *)o, 0UL); return ((struct cl_object *)tmp___4); } } __inline static struct cl_object_conf const *lu2cl_conf(struct lu_object_conf const *conf ) { void *tmp ; { tmp = __container_of___1((void *)conf, 0UL); return ((struct cl_object_conf const *)tmp); } } __inline static struct cl_object_header *luh2coh(struct lu_object_header const *h ) { void *tmp ; { tmp = __container_of___1((void *)h, 0UL); return ((struct cl_object_header *)tmp); } } __inline static struct cl_object_header *cl_object_header(struct cl_object const *obj ) { struct cl_object_header *tmp ; { tmp = luh2coh((struct lu_object_header const *)obj->co_lu.lo_header); return (tmp); } } __inline static void cl_object_page_init(struct cl_object *clob , int size ) { struct cl_object_header *tmp ; struct cl_object_header *tmp___0 ; { tmp = cl_object_header((struct cl_object const *)clob); clob->co_slice_off = (int )tmp->coh_page_bufsize; tmp___0 = cl_object_header((struct cl_object const *)clob); tmp___0->coh_page_bufsize = (unsigned int )tmp___0->coh_page_bufsize + (((unsigned int )((unsigned short )size) + 7U) & 65528U); return; } } extern void cl_lvb2attr(struct cl_attr * , struct ost_lvb const * ) ; int osc_lock_init(struct lu_env const *env , struct cl_object *obj , struct cl_lock *lock , struct cl_io const *unused ) ; int osc_io_init(struct lu_env const *env , struct cl_object *obj , struct cl_io *io ) ; int osc_page_init(struct lu_env const *env , struct cl_object *obj , struct cl_page *page , struct page *vmpage ) ; int osc_lvb_print(struct lu_env const *env , void *cookie , int (*p)(struct lu_env const * , void * , char const * , ...) , struct ost_lvb const *lvb ) ; void osc_object_set_contended(struct osc_object *obj ) ; void osc_object_clear_contended(struct osc_object *obj ) ; int osc_object_is_contended(struct osc_object *obj ) ; __inline static int osc_is_object(struct lu_object const *obj ) { { return ((unsigned long )(obj->lo_dev)->ld_type == (unsigned long )(& osc_device_type)); } } __inline static struct osc_device *lu2osc_dev___0(struct lu_device const *d ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; void *tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )((struct lu_device_type *)d->ld_type) != (unsigned long )(& osc_device_type), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "lu2osc_dev"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 501; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"d->ld_type == &osc_device_type"); lbug_with_loc(& __msg_data); } else { } tmp___0 = __container_of___1((void *)d, 0UL); return ((struct osc_device *)tmp___0); } } __inline static struct osc_object *cl2osc(struct cl_object const *obj ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; { tmp = osc_is_object(& obj->co_lu); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "cl2osc"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 517; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_is_object(&obj->co_lu)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = __container_of___1((void *)obj, 0UL); return ((struct osc_object *)tmp___1); } } static struct lu_object *osc2lu(struct osc_object *osc ) { { return (& osc->oo_cl.co_lu); } } static struct osc_object *lu2osc(struct lu_object const *obj ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; { tmp = osc_is_object(obj); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; __msg_data.msg_fn = "lu2osc"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 62; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_is_object(obj)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = __container_of___1((void *)obj, 0UL); return ((struct osc_object *)tmp___1); } } static int osc_object_init(struct lu_env const *env , struct lu_object *obj , struct lu_object_conf const *conf ) { struct osc_object *osc ; struct osc_object *tmp ; struct cl_object_conf const *cconf ; struct cl_object_conf const *tmp___0 ; int i ; struct lock_class_key __key ; struct lock_class_key __key___0 ; struct cl_object *tmp___1 ; { tmp = lu2osc((struct lu_object const *)obj); osc = tmp; tmp___0 = lu2cl_conf(conf); cconf = tmp___0; osc->oo_oinfo = cconf->u.coc_oinfo; spinlock_check(& osc->oo_seatbelt); __raw_spin_lock_init(& osc->oo_seatbelt.__annonCompField18.rlock, "&(&osc->oo_seatbelt)->rlock", & __key); i = 0; goto ldv_62273; ldv_62272: INIT_LIST_HEAD((struct list_head *)(& osc->oo_inflight) + (unsigned long )i); i = i + 1; ldv_62273: ; if (i <= 1) { goto ldv_62272; } else { } INIT_LIST_HEAD(& osc->oo_ready_item); INIT_LIST_HEAD(& osc->oo_hp_ready_item); INIT_LIST_HEAD(& osc->oo_write_item); INIT_LIST_HEAD(& osc->oo_read_item); osc->oo_root.rb_node = (struct rb_node *)0; INIT_LIST_HEAD(& osc->oo_hp_exts); INIT_LIST_HEAD(& osc->oo_urgent_exts); INIT_LIST_HEAD(& osc->oo_rpc_exts); INIT_LIST_HEAD(& osc->oo_reading_exts); atomic_set(& osc->oo_nr_reads, 0); atomic_set(& osc->oo_nr_writes, 0); spinlock_check(& osc->oo_lock); __raw_spin_lock_init(& osc->oo_lock.__annonCompField18.rlock, "&(&osc->oo_lock)->rlock", & __key___0); tmp___1 = lu2cl((struct lu_object const *)obj); cl_object_page_init(tmp___1, 280); return (0); } } static void osc_object_free(struct lu_env const *env , struct lu_object *obj ) { struct osc_object *osc ; struct osc_object *tmp ; int i ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___2 ; long tmp___3 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___4 ; long tmp___5 ; struct libcfs_debug_msg_data __msg_data___2 ; int tmp___6 ; long tmp___7 ; struct libcfs_debug_msg_data __msg_data___3 ; int tmp___8 ; long tmp___9 ; struct libcfs_debug_msg_data __msg_data___4 ; long tmp___10 ; struct libcfs_debug_msg_data __msg_data___5 ; int tmp___11 ; long tmp___12 ; struct libcfs_debug_msg_data __msg_data___6 ; int tmp___13 ; long tmp___14 ; struct libcfs_debug_msg_data __msg_data___7 ; int tmp___15 ; long tmp___16 ; struct libcfs_debug_msg_data __msg_data___8 ; int tmp___17 ; long tmp___18 ; struct libcfs_debug_msg_data __msg_data___9 ; int tmp___19 ; long tmp___20 ; struct libcfs_debug_msg_data __msg_data___10 ; int tmp___21 ; long tmp___22 ; struct libcfs_debug_msg_data __msg_data___11 ; long tmp___23 ; struct libcfs_debug_msg_data msgdata ; int tmp___24 ; { tmp = lu2osc((struct lu_object const *)obj); osc = tmp; i = 0; goto ldv_62285; ldv_62284: tmp___0 = list_empty((struct list_head const *)(& osc->oo_inflight) + (unsigned long )i); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; __msg_data.msg_fn = "osc_object_free"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 109; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&osc->oo_inflight[i])"); lbug_with_loc(& __msg_data); } else { } i = i + 1; ldv_62285: ; if (i <= 1) { goto ldv_62284; } else { } tmp___2 = list_empty((struct list_head const *)(& osc->oo_ready_item)); tmp___3 = ldv__builtin_expect(tmp___2 == 0, 0L); if (tmp___3 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; __msg_data___0.msg_fn = "osc_object_free"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 111; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&osc->oo_ready_item)"); lbug_with_loc(& __msg_data___0); } else { } tmp___4 = list_empty((struct list_head const *)(& osc->oo_hp_ready_item)); tmp___5 = ldv__builtin_expect(tmp___4 == 0, 0L); if (tmp___5 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; __msg_data___1.msg_fn = "osc_object_free"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 112; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&osc->oo_hp_ready_item)"); lbug_with_loc(& __msg_data___1); } else { } tmp___6 = list_empty((struct list_head const *)(& osc->oo_write_item)); tmp___7 = ldv__builtin_expect(tmp___6 == 0, 0L); if (tmp___7 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; __msg_data___2.msg_fn = "osc_object_free"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 113; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&osc->oo_write_item)"); lbug_with_loc(& __msg_data___2); } else { } tmp___8 = list_empty((struct list_head const *)(& osc->oo_read_item)); tmp___9 = ldv__builtin_expect(tmp___8 == 0, 0L); if (tmp___9 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; __msg_data___3.msg_fn = "osc_object_free"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 114; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&osc->oo_read_item)"); lbug_with_loc(& __msg_data___3); } else { } tmp___10 = ldv__builtin_expect((unsigned long )osc->oo_root.rb_node != (unsigned long )((struct rb_node *)0), 0L); if (tmp___10 != 0L) { __msg_data___4.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; __msg_data___4.msg_fn = "osc_object_free"; __msg_data___4.msg_subsys = 8; __msg_data___4.msg_line = 116; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: \n", (char *)"osc->oo_root.rb_node == ((void *)0)"); lbug_with_loc(& __msg_data___4); } else { } tmp___11 = list_empty((struct list_head const *)(& osc->oo_hp_exts)); tmp___12 = ldv__builtin_expect(tmp___11 == 0, 0L); if (tmp___12 != 0L) { __msg_data___5.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; __msg_data___5.msg_fn = "osc_object_free"; __msg_data___5.msg_subsys = 8; __msg_data___5.msg_line = 117; __msg_data___5.msg_mask = 0; __msg_data___5.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___5.msg_mask = 262144; libcfs_debug_msg(& __msg_data___5, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&osc->oo_hp_exts)"); lbug_with_loc(& __msg_data___5); } else { } tmp___13 = list_empty((struct list_head const *)(& osc->oo_urgent_exts)); tmp___14 = ldv__builtin_expect(tmp___13 == 0, 0L); if (tmp___14 != 0L) { __msg_data___6.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; __msg_data___6.msg_fn = "osc_object_free"; __msg_data___6.msg_subsys = 8; __msg_data___6.msg_line = 118; __msg_data___6.msg_mask = 0; __msg_data___6.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___6.msg_mask = 262144; libcfs_debug_msg(& __msg_data___6, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&osc->oo_urgent_exts)"); lbug_with_loc(& __msg_data___6); } else { } tmp___15 = list_empty((struct list_head const *)(& osc->oo_rpc_exts)); tmp___16 = ldv__builtin_expect(tmp___15 == 0, 0L); if (tmp___16 != 0L) { __msg_data___7.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; __msg_data___7.msg_fn = "osc_object_free"; __msg_data___7.msg_subsys = 8; __msg_data___7.msg_line = 119; __msg_data___7.msg_mask = 0; __msg_data___7.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___7.msg_mask = 262144; libcfs_debug_msg(& __msg_data___7, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&osc->oo_rpc_exts)"); lbug_with_loc(& __msg_data___7); } else { } tmp___17 = list_empty((struct list_head const *)(& osc->oo_reading_exts)); tmp___18 = ldv__builtin_expect(tmp___17 == 0, 0L); if (tmp___18 != 0L) { __msg_data___8.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; __msg_data___8.msg_fn = "osc_object_free"; __msg_data___8.msg_subsys = 8; __msg_data___8.msg_line = 120; __msg_data___8.msg_mask = 0; __msg_data___8.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___8.msg_mask = 262144; libcfs_debug_msg(& __msg_data___8, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&osc->oo_reading_exts)"); lbug_with_loc(& __msg_data___8); } else { } tmp___19 = atomic_read((atomic_t const *)(& osc->oo_nr_reads)); tmp___20 = ldv__builtin_expect(tmp___19 != 0, 0L); if (tmp___20 != 0L) { __msg_data___9.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; __msg_data___9.msg_fn = "osc_object_free"; __msg_data___9.msg_subsys = 8; __msg_data___9.msg_line = 121; __msg_data___9.msg_mask = 0; __msg_data___9.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___9.msg_mask = 262144; libcfs_debug_msg(& __msg_data___9, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&osc->oo_nr_reads) == 0"); lbug_with_loc(& __msg_data___9); } else { } tmp___21 = atomic_read((atomic_t const *)(& osc->oo_nr_writes)); tmp___22 = ldv__builtin_expect(tmp___21 != 0, 0L); if (tmp___22 != 0L) { __msg_data___10.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; __msg_data___10.msg_fn = "osc_object_free"; __msg_data___10.msg_subsys = 8; __msg_data___10.msg_line = 122; __msg_data___10.msg_mask = 0; __msg_data___10.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___10.msg_mask = 262144; libcfs_debug_msg(& __msg_data___10, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&osc->oo_nr_writes) == 0"); lbug_with_loc(& __msg_data___10); } else { } lu_object_fini(obj); tmp___23 = ldv__builtin_expect((unsigned long )osc == (unsigned long )((struct osc_object *)0), 0L); if (tmp___23 != 0L) { __msg_data___11.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; __msg_data___11.msg_fn = "osc_object_free"; __msg_data___11.msg_subsys = 8; __msg_data___11.msg_line = 125; __msg_data___11.msg_mask = 0; __msg_data___11.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___11.msg_mask = 262144; libcfs_debug_msg(& __msg_data___11, "ASSERTION( %s ) failed: \n", (char *)"(osc)"); lbug_with_loc(& __msg_data___11); } else { } lprocfs_counter_sub(obd_memory, 0, 400L); tmp___24 = cfs_cdebug_show(16U, 8U); if (tmp___24 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; msgdata.msg_fn = "osc_object_free"; msgdata.msg_line = 125; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(osc)\': %d at %p.\n", 400, osc); } else { } memset((void *)osc, 90, 400UL); kmem_cache_free(osc_object_kmem, (void *)osc); osc = (struct osc_object *)3735928559L; return; } } int osc_lvb_print(struct lu_env const *env , void *cookie , int (*p)(struct lu_env const * , void * , char const * , ...) , struct ost_lvb const *lvb ) { int tmp ; { tmp = (*p)(env, cookie, "size: %llu mtime: %llu atime: %llu ctime: %llu blocks: %llu", lvb->lvb_size, lvb->lvb_mtime, lvb->lvb_atime, lvb->lvb_ctime, lvb->lvb_blocks); return (tmp); } } static int osc_object_print(struct lu_env const *env , void *cookie , int (*p)(struct lu_env const * , void * , char const * , ...) , struct lu_object const *obj ) { struct osc_object *osc ; struct osc_object *tmp ; struct lov_oinfo *oinfo ; struct osc_async_rc *ar ; __u64 tmp___0 ; __u64 tmp___1 ; { tmp = lu2osc(obj); osc = tmp; oinfo = osc->oo_oinfo; ar = & oinfo->loi_ar; tmp___0 = ostid_id((struct ost_id const *)(& oinfo->loi_oi)); tmp___1 = ostid_seq((struct ost_id const *)(& oinfo->loi_oi)); (*p)(env, cookie, "id: %#llx:%llu idx: %d gen: %d kms_valid: %u kms %llu rc: %d force_sync: %d min_xid: %llu ", tmp___1, tmp___0, oinfo->loi_ost_idx, oinfo->loi_ost_gen, (int )oinfo->loi_kms_valid, oinfo->loi_kms, ar->ar_rc, ar->ar_force_sync, ar->ar_min_xid); osc_lvb_print(env, cookie, p, (struct ost_lvb const *)(& oinfo->loi_lvb)); return (0); } } static int osc_attr_get(struct lu_env const *env , struct cl_object *obj , struct cl_attr *attr ) { struct lov_oinfo *oinfo ; struct osc_object *tmp ; { tmp = cl2osc((struct cl_object const *)obj); oinfo = tmp->oo_oinfo; cl_lvb2attr(attr, (struct ost_lvb const *)(& oinfo->loi_lvb)); attr->cat_kms = (unsigned int )*((unsigned char *)oinfo + 24UL) != 0U ? (loff_t )oinfo->loi_kms : 0LL; return (0); } } int osc_attr_set(struct lu_env const *env , struct cl_object *obj , struct cl_attr const *attr , unsigned int valid ) { struct lov_oinfo *oinfo ; struct osc_object *tmp ; struct ost_lvb *lvb ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { tmp = cl2osc((struct cl_object const *)obj); oinfo = tmp->oo_oinfo; lvb = & oinfo->loi_lvb; if ((int )valid & 1) { lvb->lvb_size = (__u64 )attr->cat_size; } else { } if ((valid & 8U) != 0U) { lvb->lvb_mtime = (__s64 )attr->cat_mtime; } else { } if ((valid & 16U) != 0U) { lvb->lvb_atime = (__s64 )attr->cat_atime; } else { } if ((valid & 32U) != 0U) { lvb->lvb_ctime = (__s64 )attr->cat_ctime; } else { } if ((valid & 64U) != 0U) { lvb->lvb_blocks = attr->cat_blocks; } else { } if ((valid & 2U) != 0U) { tmp___0 = cfs_cdebug_show(32U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; msgdata.msg_fn = "osc_attr_set"; msgdata.msg_line = 180; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "set kms from %llu to %llu\n", oinfo->loi_kms, (unsigned long long )attr->cat_kms); } else { } loi_kms_set(oinfo, (__u64 )attr->cat_kms); } else { } return (0); } } static int osc_object_glimpse(struct lu_env const *env , struct cl_object const *obj , struct ost_lvb *lvb ) { struct lov_oinfo *oinfo ; struct osc_object *tmp ; { tmp = cl2osc(obj); oinfo = tmp->oo_oinfo; lvb->lvb_size = oinfo->loi_kms; lvb->lvb_blocks = oinfo->loi_lvb.lvb_blocks; return (0); } } void osc_object_set_contended(struct osc_object *obj ) { { obj->oo_contention_time = cfs_time_current(); obj->oo_contended = 1; return; } } void osc_object_clear_contended(struct osc_object *obj ) { { obj->oo_contended = 0; return; } } int osc_object_is_contended(struct osc_object *obj ) { struct osc_device *dev ; struct osc_device *tmp ; int osc_contention_time ; unsigned long cur_time ; unsigned long tmp___0 ; unsigned long retry_time ; int tmp___1 ; long tmp___2 ; int tmp___3 ; { tmp = lu2osc_dev___0((struct lu_device const *)obj->oo_cl.co_lu.lo_dev); dev = tmp; osc_contention_time = dev->od_contention_time; tmp___0 = cfs_time_current(); cur_time = tmp___0; tmp___1 = cfs_fail_check_set(1038U, 0U, 0, 0); if (tmp___1 != 0) { return (1); } else { } if (obj->oo_contended == 0) { return (0); } else { } tmp___2 = cfs_time_seconds(osc_contention_time); retry_time = cfs_time_add(obj->oo_contention_time, tmp___2); tmp___3 = cfs_time_after(cur_time, retry_time); if (tmp___3 != 0) { osc_object_clear_contended(obj); return (0); } else { } return (1); } } static struct cl_object_operations const osc_ops = {& osc_page_init, & osc_lock_init, & osc_io_init, & osc_attr_get, & osc_attr_set, 0, & osc_object_glimpse}; static struct lu_object_operations const osc_lu_obj_ops = {& osc_object_init, 0, (void (*)(struct lu_env const * , struct lu_object * ))0, & osc_object_free, (void (*)(struct lu_env const * , struct lu_object * ))0, & osc_object_print, (int (*)(struct lu_object const * ))0}; struct lu_object *osc_object_alloc(struct lu_env const *env , struct lu_object_header const *unused , struct lu_device *dev ) { struct osc_object *osc ; struct lu_object *obj ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; long tmp___6 ; { tmp = preempt_count(); tmp___0 = ldv__builtin_expect(((unsigned long )tmp & 2096896UL) != 0UL, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; __msg_data.msg_fn = "osc_object_alloc"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 260; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(!((((( gfp_t)0x10u) | (( gfp_t)0x40u))) != ((( gfp_t)0x20u))) || (!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4)))))))"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv_kmem_cache_alloc_116(osc_object_kmem, 32848U); osc = (struct osc_object *)tmp___1; if ((unsigned long )osc != (unsigned long )((struct osc_object *)0)) { tmp___3 = cfs_fail_check_set(3072U, 0U, 0, 0); if (tmp___3 == 0 || obd_alloc_fail_rate == 0U) { tmp___5 = 1; } else { tmp___4 = obd_alloc_fail((void const *)osc, "osc", "slab-", 400UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c", 260); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(osc_object_kmem, (void *)osc); osc = (struct osc_object *)0; tmp___5 = 0; } } } else { tmp___5 = 0; } tmp___6 = ldv__builtin_expect((long )tmp___5, 1L); if (tmp___6 != 0L) { lprocfs_counter_add(obd_memory, 0, 400L); tmp___2 = cfs_cdebug_show(16U, 8U); if (tmp___2 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_object.c"; msgdata.msg_fn = "osc_object_alloc"; msgdata.msg_line = 260; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'osc\': %d at %p.\n", 400, osc); } else { } } else { } if ((unsigned long )osc != (unsigned long )((struct osc_object *)0)) { obj = osc2lu(osc); lu_object_init(obj, (struct lu_object_header *)0, dev); osc->oo_cl.co_ops = & osc_ops; obj->lo_ops = & osc_lu_obj_ops; } else { obj = (struct lu_object *)0; } return (obj); } } void ldv_initialize_cl_object_operations_32(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(56UL); osc_ops_group1 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(56UL); osc_ops_group0 = (struct cl_object *)tmp___0; return; } } void ldv_initialize_lu_object_operations_31(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(56UL); osc_lu_obj_ops_group0 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(40UL); osc_lu_obj_ops_group1 = (struct lu_object *)tmp___0; return; } } void ldv_main_exported_32(void) { unsigned int ldvarg9 ; struct cl_attr *ldvarg10 ; void *tmp ; struct cl_lock *ldvarg4 ; void *tmp___0 ; struct cl_object *ldvarg8 ; void *tmp___1 ; struct cl_page *ldvarg6 ; void *tmp___2 ; struct page *ldvarg5 ; void *tmp___3 ; struct cl_attr *ldvarg12 ; void *tmp___4 ; struct cl_io *ldvarg3 ; void *tmp___5 ; struct ost_lvb *ldvarg7 ; void *tmp___6 ; struct cl_io *ldvarg11 ; void *tmp___7 ; int tmp___8 ; { tmp = ldv_init_zalloc(56UL); ldvarg10 = (struct cl_attr *)tmp; tmp___0 = ldv_init_zalloc(456UL); ldvarg4 = (struct cl_lock *)tmp___0; tmp___1 = ldv_init_zalloc(56UL); ldvarg8 = (struct cl_object *)tmp___1; tmp___2 = ldv_init_zalloc(304UL); ldvarg6 = (struct cl_page *)tmp___2; tmp___3 = ldv_init_zalloc(64UL); ldvarg5 = (struct page *)tmp___3; tmp___4 = ldv_init_zalloc(56UL); ldvarg12 = (struct cl_attr *)tmp___4; tmp___5 = ldv_init_zalloc(256UL); ldvarg3 = (struct cl_io *)tmp___5; tmp___6 = ldv_init_zalloc(56UL); ldvarg7 = (struct ost_lvb *)tmp___6; tmp___7 = ldv_init_zalloc(256UL); ldvarg11 = (struct cl_io *)tmp___7; ldv_memset((void *)(& ldvarg9), 0, 4UL); tmp___8 = __VERIFIER_nondet_int(); switch (tmp___8) { case 0: ; if (ldv_state_variable_32 == 1) { osc_attr_get(osc_ops_group1, osc_ops_group0, ldvarg12); ldv_state_variable_32 = 1; } else { } goto ldv_62383; case 1: ; if (ldv_state_variable_32 == 1) { osc_io_init(osc_ops_group1, osc_ops_group0, ldvarg11); ldv_state_variable_32 = 1; } else { } goto ldv_62383; case 2: ; if (ldv_state_variable_32 == 1) { osc_attr_set(osc_ops_group1, osc_ops_group0, (struct cl_attr const *)ldvarg10, ldvarg9); ldv_state_variable_32 = 1; } else { } goto ldv_62383; case 3: ; if (ldv_state_variable_32 == 1) { osc_object_glimpse(osc_ops_group1, (struct cl_object const *)ldvarg8, ldvarg7); ldv_state_variable_32 = 1; } else { } goto ldv_62383; case 4: ; if (ldv_state_variable_32 == 1) { osc_page_init(osc_ops_group1, osc_ops_group0, ldvarg6, ldvarg5); ldv_state_variable_32 = 1; } else { } goto ldv_62383; case 5: ; if (ldv_state_variable_32 == 1) { osc_lock_init(osc_ops_group1, osc_ops_group0, ldvarg4, (struct cl_io const *)ldvarg3); ldv_state_variable_32 = 1; } else { } goto ldv_62383; default: ldv_stop(); } ldv_62383: ; return; } } void ldv_main_exported_31(void) { int (*ldvarg90)(struct lu_env * , void * , char const * , ...) ; struct lu_object *ldvarg89 ; void *tmp ; struct lu_object_conf *ldvarg92 ; void *tmp___0 ; void *ldvarg91 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(40UL); ldvarg89 = (struct lu_object *)tmp; tmp___0 = ldv_init_zalloc(4UL); ldvarg92 = (struct lu_object_conf *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg91 = tmp___1; ldv_memset((void *)(& ldvarg90), 0, 8UL); tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_31 == 1) { osc_object_init(osc_lu_obj_ops_group0, osc_lu_obj_ops_group1, (struct lu_object_conf const *)ldvarg92); ldv_state_variable_31 = 1; } else { } goto ldv_62404; case 1: ; if (ldv_state_variable_31 == 1) { osc_object_print(osc_lu_obj_ops_group0, ldvarg91, (int (*)(struct lu_env const * , void * , char const * , ...))ldvarg90, (struct lu_object const *)ldvarg89); ldv_state_variable_31 = 1; } else { } goto ldv_62404; case 2: ; if (ldv_state_variable_31 == 1) { osc_object_free(osc_lu_obj_ops_group0, osc_lu_obj_ops_group1); ldv_state_variable_31 = 1; } else { } goto ldv_62404; default: ldv_stop(); } ldv_62404: ; return; } } int ldv_pskb_expand_head_104(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_106(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv_skb_copy_108(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_109(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_110(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_111(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } int ldv_pskb_expand_head_112(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } int ldv_pskb_expand_head_113(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_114(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } void *ldv_kmem_cache_alloc_116(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(0UL); // no call to kmem_cache_create for osc_object_kmem return (tmp); } } __inline static long ldv__builtin_expect(long exp , long c ) ; extern void ___might_sleep(char const * , int , int ) ; __inline static void list_move_tail(struct list_head *list , struct list_head *head ) { { __list_del_entry(list); list_add_tail(list, head); return; } } __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; extern void __cmpxchg_wrong_size(void) ; __inline static int atomic_cmpxchg(atomic_t *v , int old , int new ) { int __ret ; int __old ; int __new ; u8 volatile *__ptr ; u16 volatile *__ptr___0 ; u32 volatile *__ptr___1 ; u64 volatile *__ptr___2 ; { __old = old; __new = new; switch (4UL) { case 1UL: __ptr = (u8 volatile *)(& v->counter); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgb %2,%1": "=a" (__ret), "+m" (*__ptr): "q" (__new), "0" (__old): "memory"); goto ldv_5783; case 2UL: __ptr___0 = (u16 volatile *)(& v->counter); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgw %2,%1": "=a" (__ret), "+m" (*__ptr___0): "r" (__new), "0" (__old): "memory"); goto ldv_5783; case 4UL: __ptr___1 = (u32 volatile *)(& v->counter); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgl %2,%1": "=a" (__ret), "+m" (*__ptr___1): "r" (__new), "0" (__old): "memory"); goto ldv_5783; case 8UL: __ptr___2 = (u64 volatile *)(& v->counter); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgq %2,%1": "=a" (__ret), "+m" (*__ptr___2): "r" (__new), "0" (__old): "memory"); goto ldv_5783; default: __cmpxchg_wrong_size(); } ldv_5783: ; return (__ret); } } __inline static int __atomic_add_unless(atomic_t *v , int a , int u ) { int c ; int old ; long tmp ; long tmp___0 ; { c = atomic_read((atomic_t const *)v); ldv_5812: tmp = ldv__builtin_expect(c == u, 0L); if (tmp != 0L) { goto ldv_5811; } else { } old = atomic_cmpxchg(v, c, c + a); tmp___0 = ldv__builtin_expect(old == c, 1L); if (tmp___0 != 0L) { goto ldv_5811; } else { } c = old; goto ldv_5812; ldv_5811: ; return (c); } } __inline static int atomic_add_unless(atomic_t *v , int a , int u ) { int tmp ; { tmp = __atomic_add_unless(v, a, u); return (tmp != u); } } __inline static void spin_lock(spinlock_t *lock ) ; __inline static int spin_trylock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; extern void add_wait_queue(wait_queue_head_t * , wait_queue_t * ) ; extern bool capable(int ) ; extern int _cond_resched(void) ; struct sk_buff *ldv_skb_clone_144(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_152(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_146(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_142(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_150(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_151(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_147(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_148(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_149(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static void *__container_of___2(void *ptr , unsigned long shift ) { bool tmp ; long tmp___0 ; { tmp = IS_ERR((void const *)ptr); tmp___0 = ldv__builtin_expect((long )((int )tmp || (unsigned long )ptr == (unsigned long )((void *)0)), 0L); if (tmp___0 != 0L) { return (ptr); } else { } return (ptr + - shift); } } __inline static void __client_obd_list_lock___0(client_obd_lock_t *lock , char const *func , int line ) { unsigned long cur ; struct libcfs_debug_msg_data __msg_data ; long tmp ; int tmp___0 ; struct task_struct *task ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; int tmp___3 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___4 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; struct task_struct *tmp___6 ; long volatile __ret ; struct task_struct *tmp___7 ; struct task_struct *tmp___8 ; struct task_struct *tmp___9 ; struct task_struct *tmp___10 ; { cur = jiffies; ldv_53655: tmp___0 = spin_trylock(& lock->lock); if (tmp___0 != 0) { tmp = ldv__builtin_expect((unsigned long )lock->task != (unsigned long )((struct task_struct *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; __msg_data.msg_fn = "__client_obd_list_lock"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 75; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"lock->task == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } lock->task = get_current(); lock->func = func; lock->line = line; lock->time = jiffies; goto ldv_53626; } else { } if ((long )((cur - (unsigned long )jiffies) + 1250UL) < 0L && (long )((lock->time - (unsigned long )jiffies) + 1250UL) < 0L) { task = lock->task; if ((unsigned long )task == (unsigned long )((struct task_struct *)0)) { goto ldv_53640; } else { } tmp___3 = cfs_cdebug_show(33555456U, 8U); if (tmp___3 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; msgdata.msg_fn = "__client_obd_list_lock"; msgdata.msg_line = 94; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 33555456; tmp___1 = get_current(); tmp___2 = get_current(); libcfs_debug_msg(& msgdata, "%s:%d: lock %p was acquired by <%s:%d:%s:%d> for %lu seconds.\n", (char *)(& tmp___2->comm), tmp___1->pid, lock, (char *)(& task->comm), task->pid, lock->func, lock->line, ((unsigned long )jiffies - lock->time) / 250UL); } else { } tmp___4 = cfs_cdebug_show(33555456U, 8U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; msgdata___0.msg_fn = "__client_obd_list_lock"; msgdata___0.msg_line = 95; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 33555456; libcfs_debug_msg(& msgdata___0, "====== for current process =====\n"); } else { } dump_stack(); tmp___5 = cfs_cdebug_show(33555456U, 8U); if (tmp___5 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; msgdata___1.msg_fn = "__client_obd_list_lock"; msgdata___1.msg_line = 97; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 33555456; libcfs_debug_msg(& msgdata___1, "====== end =======\n"); } else { } tmp___6 = get_current(); tmp___6->task_state_change = 0UL; __ret = 2L; switch (8UL) { case 1UL: tmp___7 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret), "+m" (tmp___7->state): : "memory", "cc"); goto ldv_53649; case 2UL: tmp___8 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret), "+m" (tmp___8->state): : "memory", "cc"); goto ldv_53649; case 4UL: tmp___9 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret), "+m" (tmp___9->state): : "memory", "cc"); goto ldv_53649; case 8UL: tmp___10 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret), "+m" (tmp___10->state): : "memory", "cc"); goto ldv_53649; default: __xchg_wrong_size(); } ldv_53649: schedule_timeout(250000L); } else { } cpu_relax(); ldv_53640: ; goto ldv_53655; ldv_53626: ; return; } } __inline static void client_obd_list_unlock___0(client_obd_lock_t *lock ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((unsigned long )lock->task == (unsigned long )((struct task_struct *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; __msg_data.msg_fn = "client_obd_list_unlock"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 110; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"lock->task != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } lock->task = (struct task_struct *)0; lock->time = jiffies; spin_unlock(& lock->lock); return; } } extern int lu_cdebug_printer(struct lu_env const * , void * , char const * , ...) ; __inline static int client_is_remote(struct obd_export *exp ) { struct obd_import *imp ; struct obd_import *tmp ; { tmp = class_exp2cliimp(exp); imp = tmp; return ((imp->imp_connect_data.ocd_connect_flags & 65536ULL) != 0ULL); } } __inline static int __page_in_use(struct cl_page const *page , int refc ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; int tmp___1 ; { if ((unsigned int )page->cp_type == 1U) { refc = refc + 1; } else { } tmp = atomic_read(& page->cp_ref); tmp___0 = ldv__builtin_expect(tmp <= 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/cl_object.h"; __msg_data.msg_fn = "__page_in_use"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1119; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&page->cp_ref) > 0"); lbug_with_loc(& __msg_data); } else { } tmp___1 = atomic_read(& page->cp_ref); return (tmp___1 > refc); } } __inline static struct cl_object_header *luh2coh___0(struct lu_object_header const *h ) { void *tmp ; { tmp = __container_of___2((void *)h, 0UL); return ((struct cl_object_header *)tmp); } } __inline static struct cl_object_header *cl_object_header___0(struct cl_object const *obj ) { struct cl_object_header *tmp ; { tmp = luh2coh___0((struct lu_object_header const *)obj->co_lu.lo_header); return (tmp); } } extern void cl_page_slice_add(struct cl_page * , struct cl_page_slice * , struct cl_object * , struct cl_page_operations const * ) ; __inline static void *cl_object_page_slice(struct cl_object *clob , struct cl_page *page ) { { return ((void *)page + (unsigned long )clob->co_slice_off); } } extern void cl_page_get(struct cl_page * ) ; extern void cl_page_put(struct lu_env const * , struct cl_page * ) ; extern void cl_page_print(struct lu_env const * , void * , int (*)(struct lu_env const * , void * , char const * , ...) , struct cl_page const * ) ; extern struct cl_page *cl_page_top(struct cl_page * ) ; extern int cl_page_own_try(struct lu_env const * , struct cl_io * , struct cl_page * ) ; extern void cl_page_disown(struct lu_env const * , struct cl_io * , struct cl_page * ) ; extern void cl_page_discard(struct lu_env const * , struct cl_io * , struct cl_page * ) ; extern int cl_page_unmap(struct lu_env const * , struct cl_io * , struct cl_page * ) ; extern loff_t cl_offset(struct cl_object const * , unsigned long ) ; extern struct cl_lock *cl_lock_at_pgoff(struct lu_env const * , struct cl_object * , unsigned long , struct cl_lock * , int , int ) ; __inline static struct cl_lock *cl_lock_at_page(struct lu_env const *env , struct cl_object *obj , struct cl_page *page , struct cl_lock *except , int pending , int canceld ) { struct libcfs_debug_msg_data __msg_data ; struct cl_object_header *tmp ; struct cl_object_header *tmp___0 ; long tmp___1 ; struct cl_lock *tmp___2 ; { tmp = cl_object_header___0((struct cl_object const *)obj); tmp___0 = cl_object_header___0((struct cl_object const *)page->cp_obj); tmp___1 = ldv__builtin_expect((unsigned long )tmp != (unsigned long )tmp___0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/cl_object.h"; __msg_data.msg_fn = "cl_lock_at_page"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2920; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cl_object_header(obj) == cl_object_header(page->cp_obj)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = cl_lock_at_pgoff(env, obj, page->cp_index, except, pending, canceld); return (tmp___2); } } extern struct cl_lock_slice const *cl_lock_at(struct cl_lock const * , struct lu_device_type const * ) ; extern void cl_lock_get(struct cl_lock * ) ; extern void cl_lock_put(struct lu_env const * , struct cl_lock * ) ; extern int cl_io_init(struct lu_env const * , struct cl_io * , enum cl_io_type , struct cl_object * ) ; extern void cl_io_fini(struct lu_env const * , struct cl_io * ) ; __inline static int cl_io_is_sync_write(struct cl_io const *io ) { { return ((unsigned int )io->ci_type == 1U && (int )io->u.ci_wr.wr_sync != 0); } } __inline static int cl_io_is_mkwrite(struct cl_io const *io ) { { return ((unsigned int )io->ci_type == 3U && (int )io->u.ci_fault.ft_mkwrite != 0); } } extern struct lu_env *cl_env_nested_get(struct cl_env_nest * ) ; extern void cl_env_nested_put(struct cl_env_nest * , struct lu_env * ) ; void osc_index2policy(ldlm_policy_data_t *policy , struct cl_object const *obj , unsigned long start , unsigned long end ) ; void osc_page_submit(struct lu_env const *env , struct osc_page *opg , enum cl_req_type crt , int brw_flags ) ; int osc_cancel_async_page(struct lu_env const *env , struct osc_page *ops ) ; int osc_prep_async_page(struct osc_object *osc , struct osc_page *ops , struct page *page , loff_t offset ) ; int osc_queue_async_io(struct lu_env const *env , struct cl_io *io , struct osc_page *ops ) ; int osc_teardown_async_page(struct lu_env const *env , struct osc_object *obj , struct osc_page *ops ) ; int osc_flush_async_page(struct lu_env const *env , struct cl_io *io , struct osc_page *ops ) ; __inline static struct osc_session *osc_env_session(struct lu_env const *env ) { struct osc_session *ses ; void *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; { tmp = lu_context_key_get((struct lu_context const *)env->le_ses, (struct lu_context_key const *)(& osc_session_key)); ses = (struct osc_session *)tmp; tmp___0 = ldv__builtin_expect((unsigned long )ses == (unsigned long )((struct osc_session *)0), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "osc_env_session"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 485; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"ses != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } return (ses); } } __inline static struct osc_io *osc_env_io(struct lu_env const *env ) { struct osc_session *tmp ; { tmp = osc_env_session(env); return (& tmp->os_io); } } __inline static struct osc_device *lu2osc_dev___1(struct lu_device const *d ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; void *tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )((struct lu_device_type *)d->ld_type) != (unsigned long )(& osc_device_type), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "lu2osc_dev"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 501; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"d->ld_type == &osc_device_type"); lbug_with_loc(& __msg_data); } else { } tmp___0 = __container_of___2((void *)d, 0UL); return ((struct osc_device *)tmp___0); } } __inline static struct obd_export *osc_export(struct osc_object const *obj ) { struct osc_device *tmp ; { tmp = lu2osc_dev___1((struct lu_device const *)obj->oo_cl.co_lu.lo_dev); return (tmp->od_exp); } } __inline static struct client_obd *osc_cli(struct osc_object const *obj ) { struct obd_export *tmp ; { tmp = osc_export(obj); return (& (tmp->exp_obd)->u.cli); } } __inline static struct osc_object *cl2osc___0(struct cl_object const *obj ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; { tmp = osc_is_object(& obj->co_lu); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "cl2osc"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 517; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_is_object(&obj->co_lu)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = __container_of___2((void *)obj, 0UL); return ((struct osc_object *)tmp___1); } } __inline static struct osc_page *cl2osc_page(struct cl_page_slice const *slice ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; { tmp = osc_is_object((struct lu_object const *)(& (slice->cpl_obj)->co_lu)); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "cl2osc_page"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 550; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_is_object(&slice->cpl_obj->co_lu)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = __container_of___2((void *)slice, 0UL); return ((struct osc_page *)tmp___1); } } __inline static struct osc_lock *cl2osc_lock(struct cl_lock_slice const *slice ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; { tmp = osc_is_object((struct lu_object const *)(& (slice->cls_obj)->co_lu)); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "cl2osc_lock"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 571; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_is_object(&slice->cls_obj->co_lu)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = __container_of___2((void *)slice, 0UL); return ((struct osc_lock *)tmp___1); } } __inline static struct osc_lock *osc_lock_at(struct cl_lock const *lock ) { struct cl_lock_slice const *tmp ; struct osc_lock *tmp___0 ; { tmp = cl_lock_at(lock, (struct lu_device_type const *)(& osc_device_type)); tmp___0 = cl2osc_lock(tmp); return (tmp___0); } } __inline static int osc_io_srvlock(struct osc_io *oio ) { { return (oio->oi_lockless != 0 && (unsigned int )*((unsigned char *)oio->oi_cl.cis_io + 244UL) == 0U); } } void osc_extent_release(struct lu_env const *env , struct osc_extent *ext ) ; static void osc_lru_del(struct client_obd *cli , struct osc_page *opg , bool del ) ; static void osc_lru_add(struct client_obd *cli , struct osc_page *opg ) ; static int osc_lru_reserve(struct lu_env const *env , struct osc_object *obj , struct osc_page *opg ) ; static int osc_page_protected(struct lu_env const *env , struct osc_page const *opg , enum cl_lock_mode mode , int unref ) { { return (1); } } static void osc_page_fini(struct lu_env const *env , struct cl_page_slice *slice ) { struct osc_page *opg ; struct osc_page *tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; { tmp = cl2osc_page((struct cl_page_slice const *)slice); opg = tmp; tmp___0 = cfs_cdebug_show(1U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; msgdata.msg_fn = "osc_page_fini"; msgdata.msg_line = 169; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 1; libcfs_debug_msg(& msgdata, "%p\n", opg); } else { } tmp___1 = ldv__builtin_expect((unsigned long )opg->ops_lock != (unsigned long )((struct cl_lock *)0), 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data.msg_fn = "osc_page_fini"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 170; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"opg->ops_lock == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } return; } } static void osc_page_transfer_get(struct osc_page *opg , char const *label ) { struct cl_page *page ; struct cl_page *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; { tmp = cl_page_top(opg->ops_cl.cpl_page); page = tmp; tmp___0 = ldv__builtin_expect((long )*((unsigned char *)opg + 232UL) & 1L, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data.msg_fn = "osc_page_transfer_get"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 177; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!opg->ops_transfer_pinned"); lbug_with_loc(& __msg_data); } else { } cl_page_get(page); lu_ref_add_atomic(& page->cp_reference, label, (void const *)page); opg->ops_transfer_pinned = 1U; return; } } static void osc_page_transfer_put(struct lu_env const *env , struct osc_page *opg ) { struct cl_page *page ; struct cl_page *tmp ; { tmp = cl_page_top(opg->ops_cl.cpl_page); page = tmp; if ((unsigned int )*((unsigned char *)opg + 232UL) != 0U) { lu_ref_del(& page->cp_reference, "transfer", (void const *)page); opg->ops_transfer_pinned = 0U; cl_page_put(env, page); } else { } return; } } static void osc_page_transfer_add(struct lu_env const *env , struct osc_page *opg , enum cl_req_type crt ) { struct osc_object *obj ; struct osc_object *tmp ; struct client_obd *tmp___0 ; { tmp = cl2osc___0((struct cl_object const *)opg->ops_cl.cpl_obj); obj = tmp; tmp___0 = osc_cli((struct osc_object const *)obj); osc_lru_del(tmp___0, opg, 0); spin_lock(& obj->oo_seatbelt); list_add(& opg->__annonCompField116.ops_inflight, (struct list_head *)(& obj->oo_inflight) + (unsigned long )crt); opg->ops_submitter = get_current(); spin_unlock(& obj->oo_seatbelt); return; } } static int osc_page_cache_add(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *io ) { struct osc_io *oio ; struct osc_io *tmp ; struct osc_page *opg ; struct osc_page *tmp___0 ; int result ; struct libcfs_debug_msg_data __msg_data ; int tmp___1 ; long tmp___2 ; int tmp___3 ; int tmp___4 ; { tmp = osc_env_io(env); oio = tmp; tmp___0 = cl2osc_page(slice); opg = tmp___0; tmp___1 = osc_page_protected(env, (struct osc_page const *)opg, 2, 0); tmp___2 = ldv__builtin_expect(tmp___1 == 0, 0L); if (tmp___2 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data.msg_fn = "osc_page_cache_add"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 223; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_page_protected(env, opg, CLM_WRITE, 0)"); lbug_with_loc(& __msg_data); } else { } osc_page_transfer_get(opg, "transfer"); result = osc_queue_async_io(env, io, opg); if (result != 0) { osc_page_transfer_put(env, opg); } else { osc_page_transfer_add(env, opg, 1); } tmp___3 = cl_io_is_sync_write((struct cl_io const *)io); if (tmp___3 != 0) { goto _L; } else { tmp___4 = cl_io_is_mkwrite((struct cl_io const *)io); if (tmp___4 != 0) { _L: /* CIL Label */ if ((unsigned long )oio->oi_active != (unsigned long )((struct osc_extent *)0)) { osc_extent_release(env, oio->oi_active); oio->oi_active = (struct osc_extent *)0; } else { } } else { } } return (result); } } void osc_index2policy(ldlm_policy_data_t *policy , struct cl_object const *obj , unsigned long start , unsigned long end ) { loff_t tmp ; loff_t tmp___0 ; { memset((void *)policy, 0, 48UL); tmp = cl_offset(obj, start); policy->l_extent.start = (__u64 )tmp; tmp___0 = cl_offset(obj, end + 1UL); policy->l_extent.end = (__u64 )(tmp___0 + -1LL); return; } } static int osc_page_addref_lock(struct lu_env const *env , struct osc_page *opg , struct cl_lock *lock ) { struct osc_lock *olock ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; int tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )opg->ops_lock != (unsigned long )((struct cl_lock *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data.msg_fn = "osc_page_addref_lock"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 260; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"opg->ops_lock == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } olock = osc_lock_at((struct cl_lock const *)lock); tmp___0 = atomic_add_return(1, & olock->ols_pageref); if (tmp___0 <= 0) { atomic_dec(& olock->ols_pageref); rc = -61; } else { cl_lock_get(lock); opg->ops_lock = lock; rc = 0; } return (rc); } } static void osc_page_putref_lock(struct lu_env const *env , struct osc_page *opg ) { struct cl_lock *lock ; struct osc_lock *olock ; struct libcfs_debug_msg_data __msg_data ; long tmp ; { lock = opg->ops_lock; tmp = ldv__builtin_expect((unsigned long )lock == (unsigned long )((struct cl_lock *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data.msg_fn = "osc_page_putref_lock"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 280; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"lock != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } olock = osc_lock_at((struct cl_lock const *)lock); atomic_dec(& olock->ols_pageref); opg->ops_lock = (struct cl_lock *)0; cl_lock_put(env, lock); return; } } static int osc_page_is_under_lock(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { struct cl_lock *lock ; int result ; struct osc_page *tmp ; int tmp___0 ; { result = -61; lock = cl_lock_at_page(env, slice->cpl_obj, slice->cpl_page, (struct cl_lock *)0, 1, 0); if ((unsigned long )lock != (unsigned long )((struct cl_lock *)0)) { tmp = cl2osc_page(slice); tmp___0 = osc_page_addref_lock(env, tmp, lock); if (tmp___0 == 0) { result = -16; } else { } cl_lock_put(env, lock); } else { } return (result); } } static void osc_page_disown(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *io ) { struct osc_page *opg ; struct osc_page *tmp ; long tmp___0 ; { tmp = cl2osc_page(slice); opg = tmp; tmp___0 = ldv__builtin_expect((unsigned long )opg->ops_lock != (unsigned long )((struct cl_lock *)0), 0L); if (tmp___0 != 0L) { osc_page_putref_lock(env, opg); } else { } return; } } static void osc_page_completion_read(struct lu_env const *env , struct cl_page_slice const *slice , int ioret ) { struct osc_page *opg ; struct osc_page *tmp ; struct osc_object *obj ; struct osc_object *tmp___0 ; long tmp___1 ; struct client_obd *tmp___2 ; { tmp = cl2osc_page(slice); opg = tmp; tmp___0 = cl2osc___0((struct cl_object const *)opg->ops_cl.cpl_obj); obj = tmp___0; tmp___1 = ldv__builtin_expect((unsigned long )opg->ops_lock != (unsigned long )((struct cl_lock *)0), 1L); if (tmp___1 != 0L) { osc_page_putref_lock(env, opg); } else { } tmp___2 = osc_cli((struct osc_object const *)obj); osc_lru_add(tmp___2, opg); return; } } static void osc_page_completion_write(struct lu_env const *env , struct cl_page_slice const *slice , int ioret ) { struct osc_page *opg ; struct osc_page *tmp ; struct osc_object *obj ; struct osc_object *tmp___0 ; struct client_obd *tmp___1 ; { tmp = cl2osc_page(slice); opg = tmp; tmp___0 = cl2osc___0((struct cl_object const *)slice->cpl_obj); obj = tmp___0; tmp___1 = osc_cli((struct osc_object const *)obj); osc_lru_add(tmp___1, opg); return; } } static int osc_page_fail(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { struct libcfs_debug_msg_data msgdata ; { msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; msgdata.msg_fn = "osc_page_fail"; msgdata.msg_subsys = 8; msgdata.msg_line = 345; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; lbug_with_loc(& msgdata); return (0); } } static char const *osc_list(struct list_head *head ) { int tmp ; { tmp = list_empty((struct list_head const *)head); return (tmp != 0 ? "-" : "+"); } } __inline static unsigned long osc_submit_duration(struct osc_page *opg ) { unsigned long tmp ; { if (opg->ops_submit_time == 0UL) { return (0UL); } else { } tmp = cfs_time_current(); return (tmp - opg->ops_submit_time); } } static int osc_page_print(struct lu_env const *env , struct cl_page_slice const *slice , void *cookie , int (*printer)(struct lu_env const * , void * , char const * , ...) ) { struct osc_page *opg ; struct osc_page *tmp ; struct osc_async_page *oap ; struct osc_object *obj ; struct osc_object *tmp___0 ; struct client_obd *cli ; struct obd_export *tmp___1 ; char const *tmp___2 ; char const *tmp___3 ; int tmp___4 ; char const *tmp___5 ; int tmp___6 ; char const *tmp___7 ; char const *tmp___8 ; char const *tmp___9 ; char const *tmp___10 ; char const *tmp___11 ; char const *tmp___12 ; char const *tmp___13 ; char const *tmp___14 ; char const *tmp___15 ; unsigned long tmp___16 ; char const *tmp___17 ; char const *tmp___18 ; char const *tmp___19 ; int tmp___20 ; { tmp = cl2osc_page(slice); opg = tmp; oap = & opg->ops_oap; tmp___0 = cl2osc___0((struct cl_object const *)slice->cpl_obj); obj = tmp___0; tmp___1 = osc_export((struct osc_object const *)obj); cli = & (tmp___1->exp_obd)->u.cli; tmp___2 = osc_list(& obj->oo_urgent_exts); tmp___3 = osc_list(& obj->oo_hp_exts); tmp___4 = atomic_read((atomic_t const *)(& obj->oo_nr_writes)); tmp___5 = osc_list(& obj->oo_reading_exts); tmp___6 = atomic_read((atomic_t const *)(& obj->oo_nr_reads)); tmp___7 = osc_list(& obj->oo_read_item); tmp___8 = osc_list(& obj->oo_write_item); tmp___9 = osc_list(& obj->oo_hp_ready_item); tmp___10 = osc_list(& obj->oo_ready_item); tmp___11 = osc_list(& cli->cl_loi_read_list); tmp___12 = osc_list(& cli->cl_loi_write_list); tmp___13 = osc_list(& cli->cl_loi_hp_ready_list); tmp___14 = osc_list(& cli->cl_loi_ready_list); tmp___15 = osc_list(& cli->cl_cache_waiters); tmp___16 = osc_submit_duration(opg); tmp___17 = osc_list(& opg->__annonCompField116.ops_inflight); tmp___18 = osc_list(& oap->oap_rpc_item); tmp___19 = osc_list(& oap->oap_pending_item); tmp___20 = (*printer)(env, cookie, "osc-page@%p: 1< %#x %d %u %s %s > 2< %llu %u %u %#x %#x | %p %p %p > 3< %s %p %d %lu %d > 4< %d %d %d %lu %s | %s %s %s %s > 5< %s %s %s %s | %d %s | %d %s %s>\n", opg, oap->oap_magic, (int )oap->oap_cmd, (int )oap->oap_interrupted, tmp___19, tmp___18, oap->oap_obj_off, oap->oap_page_off, oap->oap_brw_page.count, (unsigned int )oap->oap_async_flags, oap->oap_brw_page.flag, oap->oap_request, oap->oap_cli, obj, tmp___17, opg->ops_submitter, (int )opg->ops_transfer_pinned, tmp___16, (int )opg->ops_srvlock, cli->cl_r_in_flight, cli->cl_w_in_flight, cli->cl_max_rpcs_in_flight, cli->cl_avail_grant, tmp___15, tmp___14, tmp___13, tmp___12, tmp___11, tmp___10, tmp___9, tmp___8, tmp___7, tmp___6, tmp___5, tmp___4, tmp___3, tmp___2); return (tmp___20); } } static void osc_page_delete(struct lu_env const *env , struct cl_page_slice const *slice ) { struct osc_page *opg ; struct osc_page *tmp ; struct osc_object *obj ; struct osc_object *tmp___0 ; int rc ; struct libcfs_debug_msg_data __msg_data ; int tmp___1 ; int tmp___2 ; long tmp___3 ; struct libcfs_debug_msg_data msgdata ; int tmp___4 ; struct libcfs_debug_msg_data msgdata___0 ; struct cl_page *tmp___5 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___6 ; int tmp___7 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___8 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___9 ; long tmp___10 ; struct client_obd *tmp___11 ; { tmp = cl2osc_page(slice); opg = tmp; tmp___0 = cl2osc___0((struct cl_object const *)opg->ops_cl.cpl_obj); obj = tmp___0; if ((unsigned int )*((unsigned char *)opg + 232UL) == 0U) { tmp___1 = osc_page_protected(env, (struct osc_page const *)opg, 1, 1); if (tmp___1 == 0) { tmp___2 = 1; } else { tmp___2 = 0; } } else { tmp___2 = 0; } tmp___3 = ldv__builtin_expect((long )tmp___2, 0L); if (tmp___3 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data.msg_fn = "osc_page_delete"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 415; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"opg->ops_temp || osc_page_protected(env, opg, CLM_READ, 1)"); lbug_with_loc(& __msg_data); } else { } tmp___4 = cfs_cdebug_show(1U, 8U); if (tmp___4 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; msgdata.msg_fn = "osc_page_delete"; msgdata.msg_line = 417; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 1; libcfs_debug_msg(& msgdata, "%p\n", opg); } else { } osc_page_transfer_put(env, opg); rc = osc_teardown_async_page(env, obj, opg); if (rc != 0) { msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; msgdata___0.msg_fn = "osc_page_delete"; msgdata___0.msg_subsys = 8; msgdata___0.msg_line = 422; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; tmp___7 = cfs_cdebug_show(131072U, 8U); if (tmp___7 != 0) { tmp___5 = cl_page_top(slice->cpl_page); cl_page_print(env, (void *)(& msgdata___0), & lu_cdebug_printer, (struct cl_page const *)tmp___5); tmp___6 = cfs_cdebug_show(131072U, 8U); if (tmp___6 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; msgdata___1.msg_fn = "osc_page_delete"; msgdata___1.msg_line = 422; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "Trying to teardown failed: %d\n", rc); } else { } } else { } tmp___8 = ldv__builtin_expect(1L, 0L); if (tmp___8 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data___0.msg_fn = "osc_page_delete"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 423; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"0"); lbug_with_loc(& __msg_data___0); } else { } } else { } spin_lock(& obj->oo_seatbelt); if ((unsigned long )opg->ops_submitter != (unsigned long )((struct task_struct *)0)) { tmp___9 = list_empty((struct list_head const *)(& opg->__annonCompField116.ops_inflight)); tmp___10 = ldv__builtin_expect(tmp___9 != 0, 0L); if (tmp___10 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data___1.msg_fn = "osc_page_delete"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 428; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"!list_empty(&opg->ops_inflight)"); lbug_with_loc(& __msg_data___1); } else { } list_del_init(& opg->__annonCompField116.ops_inflight); opg->ops_submitter = (struct task_struct *)0; } else { } spin_unlock(& obj->oo_seatbelt); tmp___11 = osc_cli((struct osc_object const *)obj); osc_lru_del(tmp___11, opg, 1); return; } } void osc_page_clip(struct lu_env const *env , struct cl_page_slice const *slice , int from , int to ) { struct osc_page *opg ; struct osc_page *tmp ; struct osc_async_page *oap ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; { tmp = cl2osc_page(slice); opg = tmp; oap = & opg->ops_oap; tmp___0 = osc_page_protected(env, (struct osc_page const *)opg, 1, 0); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data.msg_fn = "osc_page_clip"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 443; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_page_protected(env, opg, CLM_READ, 0)"); lbug_with_loc(& __msg_data); } else { } opg->ops_from = from; opg->ops_to = to; spin_lock(& oap->oap_lock); oap->oap_async_flags = (enum async_flags )((unsigned int )oap->oap_async_flags | 4U); spin_unlock(& oap->oap_lock); return; } } static int osc_page_cancel(struct lu_env const *env , struct cl_page_slice const *slice ) { struct osc_page *opg ; struct osc_page *tmp ; int rc ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___2 ; { tmp = cl2osc_page(slice); opg = tmp; rc = 0; tmp___0 = osc_page_protected(env, (struct osc_page const *)opg, 1, 0); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data.msg_fn = "osc_page_cancel"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 458; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_page_protected(env, opg, CLM_READ, 0)"); lbug_with_loc(& __msg_data); } else { } if ((unsigned int )*((unsigned char *)opg + 232UL) != 0U) { rc = osc_cancel_async_page(env, opg); } else { } tmp___2 = ldv__builtin_expect((long )(rc == 0 && (unsigned int )*((unsigned char *)opg + 232UL) != 0U), 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data___0.msg_fn = "osc_page_cancel"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 465; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"(!(rc == 0) || (opg->ops_transfer_pinned == 0))"); lbug_with_loc(& __msg_data___0); } else { } return (rc); } } static int osc_page_flush(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *io ) { struct osc_page *opg ; struct osc_page *tmp ; int rc ; { tmp = cl2osc_page(slice); opg = tmp; rc = 0; rc = osc_flush_async_page(env, io, opg); return (rc); } } static struct cl_page_operations const osc_page_ops = {0, 0, & osc_page_disown, 0, 0, 0, 0, 0, 0, & osc_page_delete, & osc_page_fini, & osc_page_is_under_lock, & osc_page_print, {{0, & osc_page_completion_read, 0, & osc_page_fail}, {0, & osc_page_completion_write, 0, & osc_page_cache_add}}, & osc_page_clip, & osc_page_cancel, & osc_page_flush}; int osc_page_init(struct lu_env const *env , struct cl_object *obj , struct cl_page *page , struct page *vmpage ) { struct osc_object *osc ; struct osc_object *tmp ; struct osc_page *opg ; void *tmp___0 ; int result ; loff_t tmp___1 ; struct osc_io *oio ; struct osc_io *tmp___2 ; int tmp___3 ; { tmp = cl2osc___0((struct cl_object const *)obj); osc = tmp; tmp___0 = cl_object_page_slice(obj, page); opg = (struct osc_page *)tmp___0; opg->ops_from = 0; opg->ops_to = 4096; tmp___1 = cl_offset((struct cl_object const *)obj, page->cp_index); result = osc_prep_async_page(osc, opg, vmpage, tmp___1); if (result == 0) { tmp___2 = osc_env_io(env); oio = tmp___2; tmp___3 = osc_io_srvlock(oio); opg->ops_srvlock = (unsigned char )tmp___3; cl_page_slice_add(page, & opg->ops_cl, obj, & osc_page_ops); } else { } INIT_LIST_HEAD(& opg->__annonCompField116.ops_inflight); INIT_LIST_HEAD(& opg->__annonCompField116.ops_lru); if ((unsigned int )page->cp_type == 1U && result == 0) { result = osc_lru_reserve(env, osc, opg); } else { } return (result); } } void osc_page_submit(struct lu_env const *env , struct osc_page *opg , enum cl_req_type crt , int brw_flags ) { struct osc_async_page *oap ; struct osc_object *obj ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___3 ; struct obd_export *tmp___4 ; int tmp___5 ; bool tmp___6 ; { oap = & opg->ops_oap; obj = oap->oap_obj; tmp = osc_page_protected(env, (struct osc_page const *)opg, (unsigned int )crt == 1U ? 2 : 1, 1); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data.msg_fn = "osc_page_submit"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 546; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_page_protected(env, opg, crt == CRT_WRITE ? CLM_WRITE : CLM_READ, 1)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv__builtin_expect(oap->oap_magic != 8675309, 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data___0.msg_fn = "osc_page_submit"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 549; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: Bad oap magic: oap %p, magic 0x%x\n", (char *)"oap->oap_magic == OAP_MAGIC", oap, oap->oap_magic); lbug_with_loc(& __msg_data___0); } else { } tmp___2 = ldv__builtin_expect(((unsigned int )oap->oap_async_flags & 1U) == 0U, 0L); if (tmp___2 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data___1.msg_fn = "osc_page_submit"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 550; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"oap->oap_async_flags & ASYNC_READY"); lbug_with_loc(& __msg_data___1); } else { } tmp___3 = ldv__builtin_expect(((unsigned int )oap->oap_async_flags & 4U) == 0U, 0L); if (tmp___3 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data___2.msg_fn = "osc_page_submit"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 551; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"oap->oap_async_flags & ASYNC_COUNT_STABLE"); lbug_with_loc(& __msg_data___2); } else { } oap->oap_cmd = (unsigned int )crt == 1U ? 2U : 1U; oap->oap_page_off = (unsigned int )opg->ops_from; oap->oap_brw_page.count = opg->ops_to - opg->ops_from; oap->oap_brw_page.flag = (u32 )(brw_flags | 8); tmp___4 = osc_export((struct osc_object const *)obj); tmp___5 = client_is_remote(tmp___4); if (tmp___5 == 0) { tmp___6 = capable(24); if ((int )tmp___6) { oap->oap_brw_page.flag = oap->oap_brw_page.flag | 256U; oap->oap_cmd = (unsigned int )oap->oap_cmd | 256U; } else { } } else { } opg->ops_submit_time = cfs_time_current(); osc_page_transfer_get(opg, "transfer"); osc_page_transfer_add(env, opg, crt); return; } } static wait_queue_head_t osc_lru_waitq = {{{{{{0}}, 3735899821U, 4294967295U, (void *)-1, {0, {0, 0}, "osc_lru_waitq.lock", 0, 0UL}}}}, {& osc_lru_waitq.task_list, & osc_lru_waitq.task_list}}; static atomic_t osc_lru_waiters = {0}; static int const lru_shrink_min = 512; static int const lru_shrink_max = 8192; static int osc_cache_too_much(struct client_obd *cli ) { struct cl_client_cache *cache ; int pages ; int tmp ; int _min1 ; int _min2 ; int tmp___0 ; int tmp___1 ; unsigned long tmp___2 ; int tmp___3 ; int _min1___0 ; int _min2___0 ; int tmp___4 ; { cache = cli->cl_cache; tmp = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); pages = tmp >> 1; tmp___0 = atomic_read((atomic_t const *)(& osc_lru_waiters)); if (tmp___0 > 0) { tmp___1 = atomic_read((atomic_t const *)cli->cl_lru_left); if (tmp___1 < (int )lru_shrink_max) { _min1 = pages; _min2 = lru_shrink_max; return ((int )((int const )_min1 < (int const )_min2 ? (int const )_min1 : _min2)); } else { } } else { } tmp___4 = atomic_read((atomic_t const *)cli->cl_lru_left); if ((unsigned long )tmp___4 < cache->ccc_lru_max >> 4) { tmp___3 = atomic_read((atomic_t const *)(& cache->ccc_users)); tmp___2 = cache->ccc_lru_max / (unsigned long )tmp___3; if ((unsigned long )pages > tmp___2) { _min1___0 = pages; _min2___0 = lru_shrink_max; return ((int )((int const )_min1___0 < (int const )_min2___0 ? (int const )_min1___0 : _min2___0)); } else { } return (pages > (int )lru_shrink_min ? (int )lru_shrink_min : 0); } else { } return (0); } } static int discard_pagevec(struct lu_env const *env , struct cl_io *io , struct cl_page **pvec , int max_index ) { int count ; int i ; struct cl_page *page ; int tmp ; int tmp___0 ; { count = 0; i = 0; goto ldv_62466; ldv_62465: page = *(pvec + (unsigned long )i); tmp___0 = cl_page_own_try(env, io, page); if (tmp___0 == 0) { tmp = __page_in_use((struct cl_page const *)page, 1); if (tmp == 0) { cl_page_unmap(env, io, page); cl_page_discard(env, io, page); count = count + 1; } else { } cl_page_disown(env, io, page); } else { } cl_page_put(env, page); *(pvec + (unsigned long )i) = (struct cl_page *)0; i = i + 1; ldv_62466: ; if (i < max_index) { goto ldv_62465; } else { } return (max_index - count); } } int osc_lru_shrink(struct client_obd *cli , int target ) { struct cl_env_nest nest ; struct lu_env *env ; struct cl_io *io ; struct cl_object *clobj ; struct cl_page **pvec ; struct osc_page *opg ; int maxscan ; int count ; int index ; int rc ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; int tmp___1 ; long tmp___2 ; bool tmp___3 ; struct osc_thread_info *tmp___4 ; struct osc_thread_info *tmp___5 ; int _min1 ; int _min2 ; int tmp___6 ; struct cl_page *page ; struct list_head const *__mptr ; int tmp___7 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___8 ; struct cl_object *tmp___9 ; int tmp___10 ; int tmp___11 ; int tmp___12 ; long tmp___13 ; int tmp___14 ; int tmp___15 ; { clobj = (struct cl_object *)0; maxscan = 0; count = 0; index = 0; rc = 0; tmp = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); tmp___0 = ldv__builtin_expect(tmp < 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data.msg_fn = "osc_lru_shrink"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 661; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&cli->cl_lru_in_list) >= 0"); lbug_with_loc(& __msg_data); } else { } tmp___1 = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); if (tmp___1 == 0 || target <= 0) { return (0); } else { } env = cl_env_nested_get(& nest); tmp___3 = IS_ERR((void const *)env); if ((int )tmp___3) { tmp___2 = PTR_ERR((void const *)env); return ((int )tmp___2); } else { } tmp___4 = osc_env_info((struct lu_env const *)env); pvec = (struct cl_page **)(& tmp___4->oti_pvec); tmp___5 = osc_env_info((struct lu_env const *)env); io = & tmp___5->oti_io; __client_obd_list_lock___0(& cli->cl_lru_list_lock, "osc_lru_shrink", 672); atomic_inc(& cli->cl_lru_shrinkers); _min1 = target << 1; tmp___6 = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); _min2 = tmp___6; maxscan = _min1 < _min2 ? _min1 : _min2; goto ldv_62491; ldv_62494: maxscan = maxscan - 1; if (maxscan < 0) { goto ldv_62488; } else { } __mptr = (struct list_head const *)cli->cl_lru_list.next; opg = (struct osc_page *)__mptr + 0xffffffffffffff10UL; page = cl_page_top(opg->ops_cl.cpl_page); tmp___7 = __page_in_use((struct cl_page const *)page, 0); if (tmp___7 != 0) { list_move_tail(& opg->__annonCompField116.ops_lru, & cli->cl_lru_list); goto ldv_62491; } else { } tmp___8 = ldv__builtin_expect((unsigned long )page->cp_obj == (unsigned long )((struct cl_object *)0), 0L); if (tmp___8 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data___0.msg_fn = "osc_lru_shrink"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 689; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"page->cp_obj != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } if ((unsigned long )page->cp_obj != (unsigned long )clobj) { tmp___9 = page->cp_obj; cl_object_get(tmp___9); client_obd_list_unlock___0(& cli->cl_lru_list_lock); if ((unsigned long )clobj != (unsigned long )((struct cl_object *)0)) { tmp___10 = discard_pagevec((struct lu_env const *)env, io, pvec, index); count = count - tmp___10; index = 0; cl_io_fini((struct lu_env const *)env, io); cl_object_put((struct lu_env const *)env, clobj); clobj = (struct cl_object *)0; } else { } clobj = tmp___9; io->ci_obj = clobj; io->ci_ignore_layout = 1U; rc = cl_io_init((struct lu_env const *)env, io, 5, clobj); __client_obd_list_lock___0(& cli->cl_lru_list_lock, "osc_lru_shrink", 710); if (rc != 0) { goto ldv_62488; } else { } maxscan = maxscan + 1; goto ldv_62491; } else { } list_move_tail(& opg->__annonCompField116.ops_lru, & cli->cl_lru_list); cl_page_get(page); tmp___11 = index; index = index + 1; *(pvec + (unsigned long )tmp___11) = page; count = count + 1; if (count >= target) { goto ldv_62488; } else { } tmp___13 = ldv__builtin_expect(index == 64, 0L); if (tmp___13 != 0L) { client_obd_list_unlock___0(& cli->cl_lru_list_lock); tmp___12 = discard_pagevec((struct lu_env const *)env, io, pvec, index); count = count - tmp___12; index = 0; __client_obd_list_lock___0(& cli->cl_lru_list_lock, "osc_lru_shrink", 736); } else { } ldv_62491: tmp___14 = list_empty((struct list_head const *)(& cli->cl_lru_list)); if (tmp___14 == 0) { goto ldv_62494; } else { } ldv_62488: client_obd_list_unlock___0(& cli->cl_lru_list_lock); if ((unsigned long )clobj != (unsigned long )((struct cl_object *)0)) { tmp___15 = discard_pagevec((struct lu_env const *)env, io, pvec, index); count = count - tmp___15; cl_io_fini((struct lu_env const *)env, io); cl_object_put((struct lu_env const *)env, clobj); } else { } cl_env_nested_put(& nest, env); atomic_dec(& cli->cl_lru_shrinkers); return (count > 0 ? count : rc); } } static void osc_lru_add(struct client_obd *cli , struct osc_page *opg ) { bool wakeup ; int tmp ; int tmp___0 ; int tmp___1 ; { wakeup = 0; if ((unsigned int )*((unsigned char *)opg + 232UL) == 0U) { return; } else { } atomic_dec(& cli->cl_lru_busy); __client_obd_list_lock___0(& cli->cl_lru_list_lock, "osc_lru_add", 761); tmp___0 = list_empty((struct list_head const *)(& opg->__annonCompField116.ops_lru)); if (tmp___0 != 0) { list_move_tail(& opg->__annonCompField116.ops_lru, & cli->cl_lru_list); atomic_add_return(1, & cli->cl_lru_in_list); tmp = atomic_read((atomic_t const *)(& osc_lru_waiters)); wakeup = tmp > 0; } else { } client_obd_list_unlock___0(& cli->cl_lru_list_lock); if ((int )wakeup) { tmp___1 = osc_cache_too_much(cli); osc_lru_shrink(cli, tmp___1); __wake_up(& osc_lru_waitq, 3U, 0, (void *)0); } else { } return; } } static void osc_lru_del(struct client_obd *cli , struct osc_page *opg , bool del ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___1 ; long tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; struct task_struct *tmp___6 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___7 ; long tmp___8 ; { if ((unsigned int )*((unsigned char *)opg + 232UL) != 0U) { __client_obd_list_lock___0(& cli->cl_lru_list_lock, "osc_lru_del", 780); tmp___3 = list_empty((struct list_head const *)(& opg->__annonCompField116.ops_lru)); if (tmp___3 == 0) { tmp = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); tmp___0 = ldv__builtin_expect(tmp <= 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data.msg_fn = "osc_lru_del"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 782; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&cli->cl_lru_in_list) > 0"); lbug_with_loc(& __msg_data); } else { } list_del_init(& opg->__annonCompField116.ops_lru); atomic_dec(& cli->cl_lru_in_list); if (! del) { atomic_inc(& cli->cl_lru_busy); } else { } } else if ((int )del) { tmp___1 = atomic_read((atomic_t const *)(& cli->cl_lru_busy)); tmp___2 = ldv__builtin_expect(tmp___1 <= 0, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data___0.msg_fn = "osc_lru_del"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 788; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&cli->cl_lru_busy) > 0"); lbug_with_loc(& __msg_data___0); } else { } atomic_dec(& cli->cl_lru_busy); } else { } client_obd_list_unlock___0(& cli->cl_lru_list_lock); if ((int )del) { atomic_inc(cli->cl_lru_left); tmp___5 = atomic_read((atomic_t const *)(& cli->cl_lru_shrinkers)); if (tmp___5 == 0) { tmp___6 = get_current(); if ((tmp___6->flags & 2048U) == 0U) { tmp___4 = osc_cache_too_much(cli); osc_lru_shrink(cli, tmp___4); } else { } } else { } __wake_up(& osc_lru_waitq, 3U, 1, (void *)0); } else { } } else { tmp___7 = list_empty((struct list_head const *)(& opg->__annonCompField116.ops_lru)); tmp___8 = ldv__builtin_expect(tmp___7 == 0, 0L); if (tmp___8 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data___1.msg_fn = "osc_lru_del"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 805; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&opg->ops_lru)"); lbug_with_loc(& __msg_data___1); } else { } } return; } } __inline static int max_to_shrink(struct client_obd *cli ) { int _min1 ; int tmp ; int _min2 ; { tmp = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); _min1 = tmp >> 1; _min2 = lru_shrink_max; return ((int )((int const )_min1 < (int const )_min2 ? (int const )_min1 : _min2)); } } static int osc_lru_reclaim(struct client_obd *cli ) { struct cl_client_cache *cache ; int max_scans ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; struct list_head const *__mptr ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___6 ; int tmp___7 ; int tmp___8 ; int tmp___9 ; int tmp___10 ; int tmp___11 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___12 ; { cache = cli->cl_cache; tmp = ldv__builtin_expect((unsigned long )cache == (unsigned long )((struct cl_client_cache *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data.msg_fn = "osc_lru_reclaim"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 820; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cache != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = list_empty((struct list_head const *)(& cache->ccc_lru)); tmp___1 = ldv__builtin_expect(tmp___0 != 0, 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data___0.msg_fn = "osc_lru_reclaim"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 821; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!list_empty(&cache->ccc_lru)"); lbug_with_loc(& __msg_data___0); } else { } rc = osc_lru_shrink(cli, lru_shrink_min); if (rc != 0) { tmp___2 = cfs_cdebug_show(32U, 8U); if (tmp___2 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; msgdata.msg_fn = "osc_lru_reclaim"; msgdata.msg_line = 826; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "%s: Free %d pages from own LRU: %p.\n", (char *)(& ((cli->cl_import)->imp_obd)->obd_name), rc, cli); } else { } return (rc); } else { } tmp___5 = cfs_cdebug_show(32U, 8U); if (tmp___5 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; msgdata___0.msg_fn = "osc_lru_reclaim"; msgdata___0.msg_line = 833; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32; tmp___3 = atomic_read((atomic_t const *)(& cli->cl_lru_busy)); tmp___4 = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); libcfs_debug_msg(& msgdata___0, "%s: cli %p no free slots, pages: %d, busy: %d.\n", (char *)(& ((cli->cl_import)->imp_obd)->obd_name), cli, tmp___4, tmp___3); } else { } spin_lock(& cache->ccc_lru_lock); cache->ccc_lru_shrinkers = cache->ccc_lru_shrinkers + 1U; list_move_tail(& cli->cl_lru_osc, & cache->ccc_lru); max_scans = atomic_read((atomic_t const *)(& cache->ccc_users)); goto ldv_62532; ldv_62531: __mptr = (struct list_head const *)cache->ccc_lru.next; cli = (struct client_obd *)__mptr + 0xfffffffffffff628UL; tmp___8 = cfs_cdebug_show(32U, 8U); if (tmp___8 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; msgdata___1.msg_fn = "osc_lru_reclaim"; msgdata___1.msg_line = 849; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 32; tmp___6 = atomic_read((atomic_t const *)(& cli->cl_lru_busy)); tmp___7 = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); libcfs_debug_msg(& msgdata___1, "%s: cli %p LRU pages: %d, busy: %d.\n", (char *)(& ((cli->cl_import)->imp_obd)->obd_name), cli, tmp___7, tmp___6); } else { } list_move_tail(& cli->cl_lru_osc, & cache->ccc_lru); tmp___10 = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); if (tmp___10 > 0) { spin_unlock(& cache->ccc_lru_lock); tmp___9 = max_to_shrink(cli); rc = osc_lru_shrink(cli, tmp___9); spin_lock(& cache->ccc_lru_lock); if (rc != 0) { goto ldv_62530; } else { } } else { } ldv_62532: max_scans = max_scans - 1; if (max_scans > 0) { tmp___11 = list_empty((struct list_head const *)(& cache->ccc_lru)); if (tmp___11 == 0) { goto ldv_62531; } else { goto ldv_62530; } } else { } ldv_62530: spin_unlock(& cache->ccc_lru_lock); tmp___12 = cfs_cdebug_show(32U, 8U); if (tmp___12 != 0) { msgdata___2.msg_subsys = 8; msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; msgdata___2.msg_fn = "osc_lru_reclaim"; msgdata___2.msg_line = 864; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 32; libcfs_debug_msg(& msgdata___2, "%s: cli %p freed %d pages.\n", (char *)(& ((cli->cl_import)->imp_obd)->obd_name), cli, rc); } else { } return (rc); } } static int osc_lru_reserve(struct lu_env const *env , struct osc_object *obj , struct osc_page *opg ) { struct l_wait_info lwi ; struct client_obd *cli ; struct client_obd *tmp ; int rc ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; int gen ; int __ret ; struct l_wait_info *__info ; wait_queue_t __wait ; long __timeout ; sigset_t __blocked ; int __allow_intr ; int tmp___2 ; int tmp___3 ; int tmp___4 ; struct task_struct *tmp___5 ; int tmp___6 ; int tmp___7 ; int tmp___8 ; struct task_struct *tmp___9 ; long volatile __ret___0 ; struct task_struct *tmp___10 ; struct task_struct *tmp___11 ; struct task_struct *tmp___12 ; struct task_struct *tmp___13 ; long interval ; long __min1 ; long __min2 ; long tmp___14 ; long remaining ; long tmp___15 ; unsigned long tmp___16 ; unsigned long tmp___17 ; int tmp___18 ; struct task_struct *tmp___19 ; long volatile __ret___1 ; struct task_struct *tmp___20 ; struct task_struct *tmp___21 ; struct task_struct *tmp___22 ; struct task_struct *tmp___23 ; int tmp___24 ; int tmp___25 ; int tmp___26 ; int tmp___27 ; int tmp___28 ; { lwi.lwi_timeout = 0L; lwi.lwi_interval = 0L; lwi.lwi_allow_intr = 0; lwi.lwi_on_timeout = (int (*)(void * ))0; lwi.lwi_on_signal = (void (*)(void * ))-1; lwi.lwi_cb_data = (void *)0; tmp = osc_cli((struct osc_object const *)obj); cli = tmp; rc = 0; if ((unsigned long )cli->cl_cache == (unsigned long )((struct cl_client_cache *)0)) { return (0); } else { } tmp___0 = atomic_read((atomic_t const *)cli->cl_lru_left); tmp___1 = ldv__builtin_expect(tmp___0 < 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c"; __msg_data.msg_fn = "osc_lru_reserve"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 878; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(cli->cl_lru_left) >= 0"); lbug_with_loc(& __msg_data); } else { } goto ldv_62548; ldv_62582: rc = osc_lru_reclaim(cli); if (rc < 0) { goto ldv_62547; } else { } if (rc > 0) { goto ldv_62548; } else { } ___might_sleep("/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_page.c", 889, 0); _cond_resched(); atomic_inc(& osc_lru_waiters); gen = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); __info = & lwi; __timeout = __info->lwi_timeout; __allow_intr = __info->lwi_allow_intr; __ret = 0; tmp___2 = atomic_read((atomic_t const *)cli->cl_lru_left); if (tmp___2 > 0) { goto ldv_62556; } else { tmp___3 = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); if (tmp___3 > 0) { tmp___4 = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); if (tmp___4 != gen) { goto ldv_62556; } else { } } else { } } tmp___5 = get_current(); init_waitqueue_entry(& __wait, tmp___5); add_wait_queue(& osc_lru_waitq, & __wait); if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0) && (__timeout == 0L || __allow_intr != 0)) { __blocked = cfs_block_sigsinv(24838UL); } else { __blocked = cfs_block_sigsinv(0UL); } ldv_62580: tmp___6 = atomic_read((atomic_t const *)cli->cl_lru_left); if (tmp___6 > 0) { goto ldv_62557; } else { tmp___7 = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); if (tmp___7 > 0) { tmp___8 = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); if (tmp___8 != gen) { goto ldv_62557; } else { } } else { } } tmp___9 = get_current(); tmp___9->task_state_change = 0UL; __ret___0 = 1L; switch (8UL) { case 1UL: tmp___10 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___0), "+m" (tmp___10->state): : "memory", "cc"); goto ldv_62560; case 2UL: tmp___11 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___0), "+m" (tmp___11->state): : "memory", "cc"); goto ldv_62560; case 4UL: tmp___12 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___0), "+m" (tmp___12->state): : "memory", "cc"); goto ldv_62560; case 8UL: tmp___13 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___0), "+m" (tmp___13->state): : "memory", "cc"); goto ldv_62560; default: __xchg_wrong_size(); } ldv_62560: ; if (__timeout == 0L) { schedule(); } else { if (__info->lwi_interval != 0L) { __min1 = __info->lwi_interval; __min2 = __timeout; tmp___14 = __min1 < __min2 ? __min1 : __min2; } else { tmp___14 = __timeout; } interval = tmp___14; tmp___15 = schedule_timeout(interval); remaining = tmp___15; tmp___16 = cfs_time_sub((unsigned long )interval, (unsigned long )remaining); tmp___17 = cfs_time_sub((unsigned long )__timeout, tmp___16); __timeout = (long )tmp___17; if (__timeout == 0L) { if ((unsigned long )__info->lwi_on_timeout == (unsigned long )((int (*)(void * ))0)) { __ret = -110; goto ldv_62557; } else { tmp___18 = (*(__info->lwi_on_timeout))(__info->lwi_cb_data); if (tmp___18 != 0) { __ret = -110; goto ldv_62557; } else { } } if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0)) { cfs_block_sigsinv(24838UL); } else { } } else { } } tmp___19 = get_current(); tmp___19->task_state_change = 0UL; __ret___1 = 0L; switch (8UL) { case 1UL: tmp___20 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___1), "+m" (tmp___20->state): : "memory", "cc"); goto ldv_62573; case 2UL: tmp___21 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___1), "+m" (tmp___21->state): : "memory", "cc"); goto ldv_62573; case 4UL: tmp___22 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___1), "+m" (tmp___22->state): : "memory", "cc"); goto ldv_62573; case 8UL: tmp___23 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___1), "+m" (tmp___23->state): : "memory", "cc"); goto ldv_62573; default: __xchg_wrong_size(); } ldv_62573: tmp___24 = atomic_read((atomic_t const *)cli->cl_lru_left); if (tmp___24 > 0) { goto ldv_62557; } else { tmp___25 = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); if (tmp___25 > 0) { tmp___26 = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); if (tmp___26 != gen) { goto ldv_62557; } else { } } else { } } tmp___27 = cfs_signal_pending(); if (tmp___27 != 0) { if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0) && (__timeout == 0L || __allow_intr != 0)) { if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))-1)) { (*(__info->lwi_on_signal))(__info->lwi_cb_data); } else { } __ret = -4; goto ldv_62557; } else { } cfs_clear_sigpending(); } else { } goto ldv_62580; ldv_62557: cfs_restore_sigs(__blocked); remove_wait_queue(& osc_lru_waitq, & __wait); ldv_62556: rc = __ret; atomic_dec(& osc_lru_waiters); if (rc < 0) { goto ldv_62547; } else { } ldv_62548: tmp___28 = atomic_add_unless(cli->cl_lru_left, -1, 0); if (tmp___28 == 0) { goto ldv_62582; } else { } ldv_62547: ; if (rc >= 0) { atomic_inc(& cli->cl_lru_busy); opg->ops_in_lru = 1U; rc = 0; } else { } return (rc); } } void ldv_initialize_cl_page_operations_30(void) { void *tmp ; void *tmp___0 ; void *tmp___1 ; { tmp = ldv_init_zalloc(56UL); osc_page_ops_group0 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(256UL); osc_page_ops_group1 = (struct cl_io *)tmp___0; tmp___1 = ldv_init_zalloc(40UL); osc_page_ops_group2 = (struct cl_page_slice const *)tmp___1; return; } } void ldv_main_exported_30(void) { int (*ldvarg47)(struct lu_env * , void * , char const * , ...) ; int ldvarg50 ; struct cl_page_slice *ldvarg49 ; void *tmp ; int ldvarg51 ; void *ldvarg48 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(40UL); ldvarg49 = (struct cl_page_slice *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg48 = tmp___0; ldv_memset((void *)(& ldvarg47), 0, 8UL); ldv_memset((void *)(& ldvarg50), 0, 4UL); ldv_memset((void *)(& ldvarg51), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_30 == 1) { osc_page_flush(osc_page_ops_group0, osc_page_ops_group2, osc_page_ops_group1); ldv_state_variable_30 = 1; } else { } goto ldv_62601; case 1: ; if (ldv_state_variable_30 == 1) { osc_page_is_under_lock(osc_page_ops_group0, osc_page_ops_group2, osc_page_ops_group1); ldv_state_variable_30 = 1; } else { } goto ldv_62601; case 2: ; if (ldv_state_variable_30 == 1) { osc_page_clip(osc_page_ops_group0, osc_page_ops_group2, ldvarg51, ldvarg50); ldv_state_variable_30 = 1; } else { } goto ldv_62601; case 3: ; if (ldv_state_variable_30 == 1) { osc_page_disown(osc_page_ops_group0, osc_page_ops_group2, osc_page_ops_group1); ldv_state_variable_30 = 1; } else { } goto ldv_62601; case 4: ; if (ldv_state_variable_30 == 1) { osc_page_fini(osc_page_ops_group0, ldvarg49); ldv_state_variable_30 = 1; } else { } goto ldv_62601; case 5: ; if (ldv_state_variable_30 == 1) { osc_page_delete(osc_page_ops_group0, osc_page_ops_group2); ldv_state_variable_30 = 1; } else { } goto ldv_62601; case 6: ; if (ldv_state_variable_30 == 1) { osc_page_cancel(osc_page_ops_group0, osc_page_ops_group2); ldv_state_variable_30 = 1; } else { } goto ldv_62601; case 7: ; if (ldv_state_variable_30 == 1) { osc_page_print(osc_page_ops_group0, osc_page_ops_group2, ldvarg48, (int (*)(struct lu_env const * , void * , char const * , ...))ldvarg47); ldv_state_variable_30 = 1; } else { } goto ldv_62601; default: ldv_stop(); } ldv_62601: ; return; } } int ldv_pskb_expand_head_142(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_144(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv_skb_copy_146(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_147(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_148(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_149(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } int ldv_pskb_expand_head_150(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } int ldv_pskb_expand_head_151(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_152(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; __inline static void atomic_sub(int i , atomic_t *v ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; subl %1,%0": "+m" (v->counter): "ir" (i)); return; } } __inline static void spin_lock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; void *ldv_kmem_cache_alloc_191(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_181(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_189(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_183(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_179(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_187(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_188(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_184(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_185(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_186(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static void *__container_of___3(void *ptr , unsigned long shift ) { bool tmp ; long tmp___0 ; { tmp = IS_ERR((void const *)ptr); tmp___0 = ldv__builtin_expect((long )((int )tmp || (unsigned long )ptr == (unsigned long )((void *)0)), 0L); if (tmp___0 != 0L) { return (ptr); } else { } return (ptr + - shift); } } extern int req_capsule_server_pack(struct req_capsule * ) ; extern void req_capsule_extend(struct req_capsule * , struct req_format const * ) ; extern void req_capsule_shrink(struct req_capsule * , struct req_msg_field const * , unsigned int , enum req_location ) ; extern struct req_format RQF_LDLM_GL_CALLBACK ; extern int lustre_pack_reply(struct ptlrpc_request * , int , __u32 * , char ** ) ; extern void _ldlm_lock_debug(struct ldlm_lock * , struct libcfs_debug_msg_data * , char const * , ...) ; extern __u64 ldlm_extent_shift_kms(struct ldlm_lock * , __u64 ) ; extern void ldlm_lock2handle(struct ldlm_lock const * , struct lustre_handle * ) ; __inline static struct ldlm_lock *ldlm_handle2lock_long(struct lustre_handle const *h , __u64 flags ) { struct ldlm_lock *lock ; struct task_struct *tmp ; { lock = __ldlm_handle2lock(h, flags); if ((unsigned long )lock != (unsigned long )((struct ldlm_lock *)0)) { tmp = get_current(); lu_ref_del(& lock->l_reference, "handle", (void const *)tmp); } else { } return (lock); } } extern int ldlm_error2errno(ldlm_error_t ) ; extern int ldlm_lock_addref_try(struct lustre_handle * , __u32 ) ; extern void ldlm_lock_fail_match_locked(struct ldlm_lock * ) ; extern void ldlm_lock_allow_match_locked(struct ldlm_lock * ) ; extern int ldlm_completion_ast_async(struct ldlm_lock * , __u64 , void * ) ; extern int ldlm_cli_cancel(struct lustre_handle * , ldlm_cancel_flags_t ) ; __inline static bool exp_connect_lvb_type(struct obd_export *exp ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; __u64 tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )exp == (unsigned long )((struct obd_export *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/lustre_export.h"; __msg_data.msg_fn = "exp_connect_lvb_type"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 335; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"exp != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = exp_connect_flags(exp); if ((tmp___0 & 70368744177664ULL) != 0ULL) { return (1); } else { return (0); } } } __inline static struct cl_object_header *luh2coh___1(struct lu_object_header const *h ) { void *tmp ; { tmp = __container_of___3((void *)h, 0UL); return ((struct cl_object_header *)tmp); } } __inline static struct cl_object_header *cl_object_header___1(struct cl_object const *obj ) { struct cl_object_header *tmp ; { tmp = luh2coh___1((struct lu_object_header const *)obj->co_lu.lo_header); return (tmp); } } extern void cl_lock_slice_add(struct cl_lock * , struct cl_lock_slice * , struct cl_object * , struct cl_lock_operations const * ) ; extern int cl_object_glimpse(struct lu_env const * , struct cl_object * , struct ost_lvb * ) ; __inline static int cl_object_same(struct cl_object *o0 , struct cl_object *o1 ) { struct cl_object_header *tmp ; struct cl_object_header *tmp___0 ; { tmp = cl_object_header___1((struct cl_object const *)o0); tmp___0 = cl_object_header___1((struct cl_object const *)o1); return ((unsigned long )tmp == (unsigned long )tmp___0); } } extern unsigned long cl_index(struct cl_object const * , loff_t ) ; extern void cl_lock_print(struct lu_env const * , void * , int (*)(struct lu_env const * , void * , char const * , ...) , struct cl_lock const * ) ; extern void cl_lock_get_trust(struct cl_lock * ) ; extern void cl_lock_hold_add(struct lu_env const * , struct cl_lock * , char const * , void const * ) ; extern void cl_lock_hold_release(struct lu_env const * , struct cl_lock * , char const * , void const * ) ; extern void cl_lock_unhold(struct lu_env const * , struct cl_lock * , char const * , void const * ) ; extern void cl_lock_user_add(struct lu_env const * , struct cl_lock * ) ; extern void cl_lock_user_del(struct lu_env const * , struct cl_lock * ) ; extern int cl_unuse_try(struct lu_env const * , struct cl_lock * ) ; extern int cl_wait_try(struct lu_env const * , struct cl_lock * ) ; extern void cl_lock_signal(struct lu_env const * , struct cl_lock * ) ; extern void cl_lock_mutex_get(struct lu_env const * , struct cl_lock * ) ; extern void cl_lock_mutex_put(struct lu_env const * , struct cl_lock * ) ; extern int cl_lock_is_mutexed(struct cl_lock * ) ; extern int cl_lock_discard_pages(struct lu_env const * , struct cl_lock * ) ; extern int cl_lock_modify(struct lu_env const * , struct cl_lock * , struct cl_lock_descr const * ) ; extern void cl_lock_cancel(struct lu_env const * , struct cl_lock * ) ; extern void cl_lock_delete(struct lu_env const * , struct cl_lock * ) ; extern void cl_lock_error(struct lu_env const * , struct cl_lock * , int ) ; __inline static int cl_io_is_trunc(struct cl_io const *io ) { { return ((unsigned int )io->ci_type == 2U && ((unsigned int )io->u.ci_setattr.sa_valid & 8U) != 0U); } } spinlock_t osc_ast_guard ; int osc_cache_writeback_range(struct lu_env const *env , struct osc_object *obj , unsigned long start , unsigned long end , int hp , int discard ) ; int osc_lock_is_lockless(struct osc_lock const *olck ) ; __inline static struct osc_device *lu2osc_dev___2(struct lu_device const *d ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; void *tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )((struct lu_device_type *)d->ld_type) != (unsigned long )(& osc_device_type), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "lu2osc_dev"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 501; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"d->ld_type == &osc_device_type"); lbug_with_loc(& __msg_data); } else { } tmp___0 = __container_of___3((void *)d, 0UL); return ((struct osc_device *)tmp___0); } } __inline static struct obd_export *osc_export___0(struct osc_object const *obj ) { struct osc_device *tmp ; { tmp = lu2osc_dev___2((struct lu_device const *)obj->oo_cl.co_lu.lo_dev); return (tmp->od_exp); } } __inline static struct osc_object *cl2osc___1(struct cl_object const *obj ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; { tmp = osc_is_object(& obj->co_lu); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "cl2osc"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 517; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_is_object(&obj->co_lu)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = __container_of___3((void *)obj, 0UL); return ((struct osc_object *)tmp___1); } } __inline static ldlm_mode_t osc_cl_lock2ldlm(enum cl_lock_mode mode ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((long )(((unsigned int )mode != 1U && (unsigned int )mode != 2U) && (unsigned int )mode != 3U), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "osc_cl_lock2ldlm"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 528; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"mode == CLM_READ || mode == CLM_WRITE || mode == CLM_GROUP"); lbug_with_loc(& __msg_data); } else { } if ((unsigned int )mode == 1U) { return (4); } else if ((unsigned int )mode == 2U) { return (2); } else { return (64); } } } __inline static enum cl_lock_mode osc_ldlm2cl_lock(ldlm_mode_t mode ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((long )(((unsigned int )mode != 4U && (unsigned int )mode != 2U) && (unsigned int )mode != 64U), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "osc_ldlm2cl_lock"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 539; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"mode == LCK_PR || mode == LCK_PW || mode == LCK_GROUP"); lbug_with_loc(& __msg_data); } else { } if ((unsigned int )mode == 4U) { return (1); } else if ((unsigned int )mode == 2U) { return (2); } else { return (3); } } } __inline static struct osc_lock *cl2osc_lock___0(struct cl_lock_slice const *slice ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; { tmp = osc_is_object((struct lu_object const *)(& (slice->cls_obj)->co_lu)); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "cl2osc_lock"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 571; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_is_object(&slice->cls_obj->co_lu)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = __container_of___3((void *)slice, 0UL); return ((struct osc_lock *)tmp___1); } } __inline static struct osc_lock *osc_lock_at___0(struct cl_lock const *lock ) { struct cl_lock_slice const *tmp ; struct osc_lock *tmp___0 ; { tmp = cl_lock_at(lock, (struct lu_device_type const *)(& osc_device_type)); tmp___0 = cl2osc_lock___0(tmp); return (tmp___0); } } static struct cl_lock_operations const osc_lock_ops ; static struct cl_lock_operations const osc_lock_lockless_ops ; static void osc_lock_to_lockless(struct lu_env const *env , struct osc_lock *ols , int force ) ; static int osc_lock_has_pages(struct osc_lock *olck ) ; int osc_lock_is_lockless(struct osc_lock const *olck ) { { return ((unsigned long )((struct cl_lock_operations const *)olck->ols_cl.cls_ops) == (unsigned long )(& osc_lock_lockless_ops)); } } static struct ldlm_lock *osc_handle_ptr(struct lustre_handle *handle ) { struct ldlm_lock *lock ; struct task_struct *tmp ; { lock = ldlm_handle2lock((struct lustre_handle const *)handle); if ((unsigned long )lock != (unsigned long )((struct ldlm_lock *)0)) { tmp = get_current(); lu_ref_del(& lock->l_reference, "handle", (void const *)tmp); ldlm_lock_put(lock); } else { } return (lock); } } static int osc_lock_invariant(struct osc_lock *ols ) { struct ldlm_lock *lock ; struct ldlm_lock *tmp ; struct ldlm_lock *olock ; int handle_used ; int tmp___0 ; int tmp___1 ; { tmp = osc_handle_ptr(& ols->ols_handle); lock = tmp; olock = ols->ols_lock; tmp___0 = lustre_handle_is_used(& ols->ols_handle); handle_used = tmp___0; tmp___1 = osc_lock_is_lockless((struct osc_lock const *)ols); if (tmp___1 == 0 || ((unsigned int )*((unsigned char *)ols + 168UL) != 0U && (unsigned long )ols->ols_lock == (unsigned long )((struct ldlm_lock *)0))) { return (1); } else { } if ((unsigned long )olock != (unsigned long )((struct ldlm_lock *)0) && handle_used == 0) { return (0); } else { } if ((unsigned long )olock != (unsigned long )((struct ldlm_lock *)0) && olock->l_handle.h_cookie != ols->ols_handle.cookie) { return (0); } else { } if (handle_used != 0 && ((((unsigned long )lock != (unsigned long )((struct ldlm_lock *)0) && (unsigned long )olock != (unsigned long )((struct ldlm_lock *)0)) && (unsigned long )lock != (unsigned long )olock) || ((unsigned long )lock == (unsigned long )((struct ldlm_lock *)0) && (unsigned long )olock != (unsigned long )((struct ldlm_lock *)0)))) { return (0); } else { } if ((unsigned int )ols->ols_state == 6U && ((unsigned long )olock != (unsigned long )((struct ldlm_lock *)0) || handle_used != 0)) { return (0); } else { } if (((unsigned long )olock != (unsigned long )((struct ldlm_lock *)0) && (unsigned int )ols->ols_state <= 5U) && (olock->l_flags & 1125899906842624ULL) != 0ULL) { return (0); } else { } if ((unsigned int )ols->ols_state == 3U && (((unsigned long )olock == (unsigned long )((struct ldlm_lock *)0) || (unsigned int )olock->l_req_mode != (unsigned int )olock->l_granted_mode) || (unsigned int )*((unsigned char *)ols + 168UL) == 0U)) { return (0); } else { } return (1); } } static void osc_lock_detach(struct lu_env const *env , struct osc_lock *olck ) { struct ldlm_lock *dlmlock ; struct cl_object *obj ; struct cl_attr *attr ; struct osc_thread_info *tmp ; __u64 old_kms ; struct osc_object *tmp___0 ; __u64 tmp___1 ; struct libcfs_debug_msg_data __msg_data ; long tmp___2 ; { spin_lock(& osc_ast_guard); dlmlock = olck->ols_lock; if ((unsigned long )dlmlock == (unsigned long )((struct ldlm_lock *)0)) { spin_unlock(& osc_ast_guard); return; } else { } olck->ols_lock = (struct ldlm_lock *)0; dlmlock->l_ast_data = (void *)0; olck->ols_handle.cookie = 0ULL; spin_unlock(& osc_ast_guard); lock_res_and_lock(dlmlock); if ((unsigned int )dlmlock->l_granted_mode == (unsigned int )dlmlock->l_req_mode) { obj = olck->ols_cl.cls_obj; tmp = osc_env_info(env); attr = & tmp->oti_attr; cl_object_attr_lock(obj); tmp___0 = cl2osc___1((struct cl_object const *)obj); old_kms = (tmp___0->oo_oinfo)->loi_kms; tmp___1 = ldlm_extent_shift_kms(dlmlock, old_kms); attr->cat_kms = (loff_t )tmp___1; cl_object_attr_set(env, obj, (struct cl_attr const *)attr, 2U); cl_object_attr_unlock(obj); } else { } unlock_res_and_lock(dlmlock); tmp___2 = ldv__builtin_expect((unsigned int )*((unsigned char *)olck + 168UL) == 0U, 0L); if (tmp___2 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_detach"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 183; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"olck->ols_has_ref"); lbug_with_loc(& __msg_data); } else { } lu_ref_del(& dlmlock->l_reference, "osc_lock", (void const *)olck); ldlm_lock_put(dlmlock); olck->ols_has_ref = 0U; return; } } static int osc_lock_unhold(struct osc_lock *ols ) { int result ; { result = 0; if ((unsigned int )*((unsigned char *)ols + 168UL) != 0U) { ols->ols_hold = 0U; result = osc_cancel_base(& ols->ols_handle, ols->ols_einfo.ei_mode); } else { } return (result); } } static int osc_lock_unuse(struct lu_env const *env , struct cl_lock_slice const *slice ) { struct osc_lock *ols ; struct osc_lock *tmp ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___3 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___5 ; struct libcfs_debug_msg_data __msg_data___4 ; long tmp___6 ; int tmp___7 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___8 ; struct libcfs_debug_msg_data msgdata___0 ; { tmp = cl2osc_lock___0(slice); ols = tmp; tmp___0 = osc_lock_invariant(ols); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_unuse"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 206; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_lock_invariant(ols)"); lbug_with_loc(& __msg_data); } else { } switch ((unsigned int )ols->ols_state) { case 0U: tmp___2 = ldv__builtin_expect((long )*((unsigned char *)ols + 168UL) & 1L, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_unuse"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 210; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!ols->ols_hold"); lbug_with_loc(& __msg_data___0); } else { } tmp___3 = ldv__builtin_expect((unsigned int )*((unsigned char *)ols + 168UL) == 0U, 0L); if (tmp___3 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___1.msg_fn = "osc_lock_unuse"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 211; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"ols->ols_agl"); lbug_with_loc(& __msg_data___1); } else { } return (0); case 2U: osc_lock_unhold(ols); case 1U: tmp___4 = ldv__builtin_expect((long )*((unsigned char *)ols + 168UL) & 1L, 0L); if (tmp___4 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___2.msg_fn = "osc_lock_unuse"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 216; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"!ols->ols_hold"); lbug_with_loc(& __msg_data___2); } else { } osc_lock_detach(env, ols); ols->ols_state = 0; return (0); case 3U: tmp___5 = ldv__builtin_expect((unsigned int )*((unsigned char *)ols + 168UL) != 0U, 0L); if (tmp___5 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___3.msg_fn = "osc_lock_unuse"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 221; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"!ols->ols_glimpse"); lbug_with_loc(& __msg_data___3); } else { } tmp___6 = ldv__builtin_expect((unsigned int )*((unsigned char *)ols + 168UL) == 0U, 0L); if (tmp___6 != 0L) { __msg_data___4.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___4.msg_fn = "osc_lock_unuse"; __msg_data___4.msg_subsys = 8; __msg_data___4.msg_line = 222; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: \n", (char *)"ols->ols_hold"); lbug_with_loc(& __msg_data___4); } else { } ols->ols_state = 4; tmp___7 = osc_lock_unhold(ols); return (tmp___7); default: tmp___8 = cfs_cdebug_show(131072U, 8U); if (tmp___8 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata.msg_fn = "osc_lock_unuse"; msgdata.msg_line = 232; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Impossible state: %d\n", (unsigned int )ols->ols_state); } else { } msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata___0.msg_fn = "osc_lock_unuse"; msgdata___0.msg_subsys = 8; msgdata___0.msg_line = 233; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; lbug_with_loc(& msgdata___0); } return (0); } } static void osc_lock_fini(struct lu_env const *env , struct cl_lock_slice *slice ) { struct osc_lock *ols ; struct osc_lock *tmp ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; long tmp___6 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___7 ; struct libcfs_debug_msg_data msgdata ; int tmp___8 ; { tmp = cl2osc_lock___0((struct cl_lock_slice const *)slice); ols = tmp; tmp___0 = osc_lock_invariant(ols); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_fini"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 242; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_lock_invariant(ols)"); lbug_with_loc(& __msg_data); } else { } osc_lock_unhold(ols); tmp___2 = ldv__builtin_expect((unsigned long )ols->ols_lock != (unsigned long )((struct ldlm_lock *)0), 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_fini"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 250; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ols->ols_lock == ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } tmp___3 = atomic_read((atomic_t const *)(& ols->ols_pageref)); if (tmp___3 != 0) { tmp___4 = atomic_read((atomic_t const *)(& ols->ols_pageref)); if (tmp___4 != -10000000) { tmp___5 = 1; } else { tmp___5 = 0; } } else { tmp___5 = 0; } tmp___6 = ldv__builtin_expect((long )tmp___5, 0L); if (tmp___6 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___1.msg_fn = "osc_lock_fini"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 252; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&ols->ols_pageref) == 0 || atomic_read(&ols->ols_pageref) == (-10000000)"); lbug_with_loc(& __msg_data___1); } else { } tmp___7 = ldv__builtin_expect((unsigned long )ols == (unsigned long )((struct osc_lock *)0), 0L); if (tmp___7 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___2.msg_fn = "osc_lock_fini"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 254; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"(ols)"); lbug_with_loc(& __msg_data___2); } else { } lprocfs_counter_sub(obd_memory, 0, 184L); tmp___8 = cfs_cdebug_show(16U, 8U); if (tmp___8 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata.msg_fn = "osc_lock_fini"; msgdata.msg_line = 254; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(ols)\': %d at %p.\n", 184, ols); } else { } memset((void *)ols, 90, 184UL); kmem_cache_free(osc_lock_kmem, (void *)ols); ols = (struct osc_lock *)3735928559L; return; } } static void osc_lock_build_policy(struct lu_env const *env , struct cl_lock const *lock , ldlm_policy_data_t *policy ) { struct cl_lock_descr const *d ; { d = & lock->cll_descr; osc_index2policy(policy, (struct cl_object const *)d->cld_obj, d->cld_start, d->cld_end); policy->l_extent.gid = d->cld_gid; return; } } static __u64 osc_enq2ldlm_flags(__u32 enqflags ) { __u64 result ; struct libcfs_debug_msg_data __msg_data ; long tmp ; { result = 0ULL; tmp = ldv__builtin_expect((enqflags & 4294967232U) != 0U, 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_enq2ldlm_flags"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 271; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(enqflags & ~CEF_MASK) == 0"); lbug_with_loc(& __msg_data); } else { } if ((int )enqflags & 1) { result = result | 262144ULL; } else { } if ((enqflags & 2U) != 0U) { result = result | 4096ULL; } else { } if ((enqflags & 4U) != 0U) { result = result | 2147483648ULL; } else { } return (result); } } static struct osc_lock *osc_ast_data_get(struct ldlm_lock *dlm_lock ) { struct osc_lock *olck ; struct cl_lock *lock ; struct task_struct *tmp ; { lock_res_and_lock(dlm_lock); spin_lock(& osc_ast_guard); olck = (struct osc_lock *)dlm_lock->l_ast_data; if ((unsigned long )olck != (unsigned long )((struct osc_lock *)0)) { lock = olck->ols_cl.cls_lock; if ((unsigned int )lock->cll_state <= 5U || (unsigned int )*((unsigned char *)olck + 168UL) != 0U) { cl_lock_get_trust(lock); tmp = get_current(); lu_ref_add_atomic(& lock->cll_reference, "ast", (void const *)tmp); } else { olck = (struct osc_lock *)0; } } else { } spin_unlock(& osc_ast_guard); unlock_res_and_lock(dlm_lock); return (olck); } } static void osc_ast_data_put(struct lu_env const *env , struct osc_lock *olck ) { struct cl_lock *lock ; struct task_struct *tmp ; { lock = olck->ols_cl.cls_lock; tmp = get_current(); lu_ref_del(& lock->cll_reference, "ast", (void const *)tmp); cl_lock_put(env, lock); return; } } static void osc_lock_lvb_update(struct lu_env const *env , struct osc_lock *olck , int rc ) { struct ost_lvb *lvb ; struct cl_object *obj ; struct lov_oinfo *oinfo ; struct cl_attr *attr ; unsigned int valid ; struct osc_object *tmp ; struct osc_thread_info *tmp___0 ; struct ldlm_lock *dlmlock ; __u64 size ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; long tmp___3 ; struct libcfs_debug_msg_data msgdata___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___4 ; long tmp___5 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___6 ; { if ((olck->ols_flags & 2199023255552ULL) == 0ULL) { return; } else { } lvb = & olck->ols_lvb; obj = olck->ols_cl.cls_obj; tmp = cl2osc___1((struct cl_object const *)obj); oinfo = tmp->oo_oinfo; tmp___0 = osc_env_info(env); attr = & tmp___0->oti_attr; valid = 121U; cl_lvb2attr(attr, (struct ost_lvb const *)lvb); cl_object_attr_lock(obj); if (rc == 0) { dlmlock = olck->ols_lock; tmp___1 = ldv__builtin_expect((unsigned long )dlmlock == (unsigned long )((struct ldlm_lock *)0), 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_lvb_update"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 362; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"dlmlock != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } *lvb = *((struct ost_lvb *)dlmlock->l_lvb_data); size = lvb->lvb_size; if (dlmlock->l_policy_data.l_extent.end < size) { size = dlmlock->l_policy_data.l_extent.end + 1ULL; } else { } if (oinfo->loi_kms <= size) { tmp___3 = ldv__builtin_expect((unsigned long )dlmlock != (unsigned long )((struct ldlm_lock *)0), 1L); if (tmp___3 != 0L) { msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata.msg_fn = "osc_lock_lvb_update"; msgdata.msg_subsys = 8; msgdata.msg_line = 373; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 65536; if ((libcfs_debug & 65536U) != 0U && (libcfs_subsystem_debug & 8U) != 0U) { _ldlm_lock_debug(dlmlock, & msgdata, "### lock acquired, setting rss=%llu, kms=%llu", lvb->lvb_size, size); } else { } } else { tmp___2 = cfs_cdebug_show(65536U, 8U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata___0.msg_fn = "osc_lock_lvb_update"; msgdata___0.msg_line = 373; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 65536; libcfs_debug_msg(& msgdata___0, "### no dlm lock: lock acquired, setting rss=%llu, kms=%llu\n", lvb->lvb_size, size); } else { } } valid = valid | 2U; attr->cat_kms = (loff_t )size; } else { tmp___5 = ldv__builtin_expect((unsigned long )dlmlock != (unsigned long )((struct ldlm_lock *)0), 1L); if (tmp___5 != 0L) { msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata___1.msg_fn = "osc_lock_lvb_update"; msgdata___1.msg_subsys = 8; msgdata___1.msg_line = 379; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 65536; if ((libcfs_debug & 65536U) != 0U && (libcfs_subsystem_debug & 8U) != 0U) { _ldlm_lock_debug(dlmlock, & msgdata___1, "### lock acquired, setting rss=%llu; leaving kms=%llu, end=%llu", lvb->lvb_size, oinfo->loi_kms, dlmlock->l_policy_data.l_extent.end); } else { } } else { tmp___4 = cfs_cdebug_show(65536U, 8U); if (tmp___4 != 0) { msgdata___2.msg_subsys = 8; msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata___2.msg_fn = "osc_lock_lvb_update"; msgdata___2.msg_line = 379; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 65536; libcfs_debug_msg(& msgdata___2, "### no dlm lock: lock acquired, setting rss=%llu; leaving kms=%llu, end=%llu\n", lvb->lvb_size, oinfo->loi_kms, dlmlock->l_policy_data.l_extent.end); } else { } } } ldlm_lock_allow_match_locked(dlmlock); } else if (rc == -119 && (unsigned int )*((unsigned char *)olck + 168UL) != 0U) { tmp___6 = cfs_cdebug_show(2U, 8U); if (tmp___6 != 0) { msgdata___3.msg_subsys = 8; msgdata___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata___3.msg_fn = "osc_lock_lvb_update"; msgdata___3.msg_line = 384; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 2; libcfs_debug_msg(& msgdata___3, "glimpsed, setting rss=%llu; leaving kms=%llu\n", lvb->lvb_size, oinfo->loi_kms); } else { } } else { valid = 0U; } if (valid != 0U) { cl_object_attr_set(env, obj, (struct cl_attr const *)attr, valid); } else { } cl_object_attr_unlock(obj); return; } } static void osc_lock_granted(struct lu_env const *env , struct osc_lock *olck , struct ldlm_lock *dlmlock , int rc ) { struct ldlm_extent *ext ; struct cl_lock *lock ; struct cl_lock_descr *descr ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct osc_thread_info *tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___1 ; long tmp___2 ; { tmp = ldv__builtin_expect((unsigned int )dlmlock->l_granted_mode != (unsigned int )dlmlock->l_req_mode, 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_granted"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 408; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"dlmlock->l_granted_mode == dlmlock->l_req_mode"); lbug_with_loc(& __msg_data); } else { } if ((unsigned int )olck->ols_state <= 2U) { lock = olck->ols_cl.cls_lock; ext = & dlmlock->l_policy_data.l_extent; tmp___0 = osc_env_info(env); descr = & tmp___0->oti_descr; descr->cld_obj = lock->cll_descr.cld_obj; descr->cld_mode = osc_ldlm2cl_lock(dlmlock->l_granted_mode); descr->cld_start = cl_index((struct cl_object const *)descr->cld_obj, (loff_t )ext->start); descr->cld_end = cl_index((struct cl_object const *)descr->cld_obj, (loff_t )ext->end); descr->cld_gid = ext->gid; olck->ols_state = 3; osc_lock_lvb_update(env, olck, rc); unlock_res_and_lock(dlmlock); cl_lock_modify(env, lock, (struct cl_lock_descr const *)descr); cl_lock_signal(env, lock); tmp___1 = osc_lock_invariant(olck); tmp___2 = ldv__builtin_expect(tmp___1 == 0, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_granted"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 436; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"osc_lock_invariant(olck)"); lbug_with_loc(& __msg_data___0); } else { } lock_res_and_lock(dlmlock); } else { } return; } } static void osc_lock_upcall0(struct lu_env const *env , struct osc_lock *olck ) { struct ldlm_lock *dlmlock ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___1 ; { dlmlock = ldlm_handle2lock_long((struct lustre_handle const *)(& olck->ols_handle), 0ULL); tmp = ldv__builtin_expect((unsigned long )dlmlock == (unsigned long )((struct ldlm_lock *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_upcall0"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 447; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"dlmlock != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } lock_res_and_lock(dlmlock); spin_lock(& osc_ast_guard); tmp___0 = ldv__builtin_expect((unsigned long )dlmlock->l_ast_data != (unsigned long )((void *)olck), 0L); if (tmp___0 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_upcall0"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 451; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"dlmlock->l_ast_data == olck"); lbug_with_loc(& __msg_data___0); } else { } tmp___1 = ldv__builtin_expect((unsigned long )olck->ols_lock != (unsigned long )((struct ldlm_lock *)0), 0L); if (tmp___1 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___1.msg_fn = "osc_lock_upcall0"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 452; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"olck->ols_lock == ((void *)0)"); lbug_with_loc(& __msg_data___1); } else { } olck->ols_lock = dlmlock; spin_unlock(& osc_ast_guard); if ((unsigned int )dlmlock->l_granted_mode == (unsigned int )dlmlock->l_req_mode) { osc_lock_granted(env, olck, dlmlock, 0); } else { } unlock_res_and_lock(dlmlock); ldlm_lock_addref(& olck->ols_handle, olck->ols_einfo.ei_mode); olck->ols_hold = 1U; lu_ref_add_atomic(& dlmlock->l_reference, "osc_lock", (void const *)olck); olck->ols_has_ref = 1U; return; } } static int osc_lock_upcall(void *cookie , int errcode ) { struct osc_lock *olck ; struct cl_lock_slice *slice ; struct cl_lock *lock ; struct lu_env *env ; struct cl_env_nest nest ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; struct ldlm_lock *dlmlock ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; struct task_struct *tmp___2 ; struct osc_object *tmp___3 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___4 ; struct libcfs_debug_msg_data msgdata___1 ; bool tmp___5 ; int tmp___6 ; { olck = (struct osc_lock *)cookie; slice = & olck->ols_cl; lock = slice->cls_lock; env = cl_env_nested_get(& nest); tmp___5 = IS_ERR((void const *)env); if (tmp___5) { tmp___6 = 0; } else { tmp___6 = 1; } if (tmp___6) { cl_lock_mutex_get((struct lu_env const *)env, lock); tmp = ldv__builtin_expect((unsigned int )lock->cll_state == 0U, 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_upcall"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 497; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"lock->cll_state >= CLS_QUEUING"); lbug_with_loc(& __msg_data); } else { } if ((unsigned int )olck->ols_state == 1U) { olck->ols_state = 2; rc = ldlm_error2errno((ldlm_error_t )errcode); } else if ((unsigned int )olck->ols_state == 6U) { rc = -5; } else { tmp___0 = cfs_cdebug_show(131072U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata.msg_fn = "osc_lock_upcall"; msgdata.msg_line = 504; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Impossible state: %d\n", (unsigned int )olck->ols_state); } else { } msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata___0.msg_fn = "osc_lock_upcall"; msgdata___0.msg_subsys = 8; msgdata___0.msg_line = 505; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; lbug_with_loc(& msgdata___0); } if (rc != 0) { dlmlock = ldlm_handle2lock((struct lustre_handle const *)(& olck->ols_handle)); if ((unsigned long )dlmlock != (unsigned long )((struct ldlm_lock *)0)) { lock_res_and_lock(dlmlock); spin_lock(& osc_ast_guard); tmp___1 = ldv__builtin_expect((unsigned long )olck->ols_lock != (unsigned long )((struct ldlm_lock *)0), 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_upcall"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 514; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"olck->ols_lock == ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } dlmlock->l_ast_data = (void *)0; olck->ols_handle.cookie = 0ULL; spin_unlock(& osc_ast_guard); ldlm_lock_fail_match_locked(dlmlock); unlock_res_and_lock(dlmlock); tmp___2 = get_current(); lu_ref_del(& dlmlock->l_reference, "handle", (void const *)tmp___2); ldlm_lock_put(dlmlock); } else { } } else { if ((unsigned int )*((unsigned char *)olck + 168UL) != 0U) { olck->ols_glimpse = 0U; } else { } osc_lock_upcall0((struct lu_env const *)env, olck); } if ((unsigned int )*((unsigned char *)olck + 168UL) != 0U && rc == -87) { tmp___3 = cl2osc___1((struct cl_object const *)slice->cls_obj); osc_object_set_contended(tmp___3); tmp___4 = ldv__builtin_expect((unsigned long )slice->cls_ops != (unsigned long )(& osc_lock_ops), 0L); if (tmp___4 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___1.msg_fn = "osc_lock_upcall"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 534; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"slice->cls_ops == &osc_lock_ops"); lbug_with_loc(& __msg_data___1); } else { } osc_lock_to_lockless((struct lu_env const *)env, olck, 1); olck->ols_state = 3; rc = 0; } else if ((unsigned int )*((unsigned char *)olck + 168UL) != 0U && rc == -119) { osc_lock_lvb_update((struct lu_env const *)env, olck, rc); cl_lock_delete((struct lu_env const *)env, lock); rc = 0; } else { } if (rc == 0) { if ((unsigned int )*((unsigned char *)olck + 168UL) != 0U) { lock->cll_flags = lock->cll_flags | 8UL; cl_wait_try((struct lu_env const *)env, lock); lock->cll_flags = lock->cll_flags & 0xfffffffffffffff7UL; if ((unsigned int )*((unsigned char *)olck + 168UL) == 0U) { olck->ols_agl = 0U; } else { } } else { } cl_lock_signal((struct lu_env const *)env, lock); cl_unuse_try((struct lu_env const *)env, lock); } else { cl_lock_user_del((struct lu_env const *)env, lock); cl_lock_error((struct lu_env const *)env, lock, rc); } cl_lock_hold_release((struct lu_env const *)env, lock, "upcall", (void const *)lock); cl_lock_mutex_put((struct lu_env const *)env, lock); lu_ref_del(& lock->cll_reference, "upcall", (void const *)lock); cl_lock_put((struct lu_env const *)env, lock); cl_env_nested_put(& nest, env); } else { msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata___1.msg_fn = "osc_lock_upcall"; msgdata___1.msg_subsys = 8; msgdata___1.msg_line = 580; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 262144; lbug_with_loc(& msgdata___1); } return (errcode); } } static void osc_lock_blocking(struct lu_env const *env , struct ldlm_lock *dlmlock , struct osc_lock *olck , int blocking ) { struct cl_lock *lock ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___0 ; long tmp___1 ; { lock = olck->ols_cl.cls_lock; tmp = ldv__builtin_expect((unsigned long )olck->ols_lock != (unsigned long )dlmlock, 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_blocking"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 594; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"olck->ols_lock == dlmlock"); lbug_with_loc(& __msg_data); } else { } switch (42) { case 1: ; case 0: ; goto ldv_62414; } ldv_62414: tmp___0 = osc_lock_is_lockless((struct osc_lock const *)olck); tmp___1 = ldv__builtin_expect(tmp___0 != 0, 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_blocking"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 596; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!osc_lock_is_lockless(olck)"); lbug_with_loc(& __msg_data___0); } else { } osc_lock_unhold(olck); if (blocking != 0 && (unsigned int )olck->ols_state <= 4U) { olck->ols_state = 5; } else { } cl_lock_cancel(env, lock); cl_lock_delete(env, lock); return; } } static int osc_dlm_blocking_ast0(struct lu_env const *env , struct ldlm_lock *dlmlock , void *data , int flag ) { struct osc_lock *olck ; struct cl_lock *lock ; int result ; int cancel ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___2 ; struct lustre_handle *lockh ; struct osc_thread_info *tmp___3 ; { tmp = ldv__builtin_expect((long )(flag != 1 && flag != 2), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_dlm_blocking_ast0"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 633; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"flag == 1 || flag == 2"); lbug_with_loc(& __msg_data); } else { } cancel = 0; olck = osc_ast_data_get(dlmlock); if ((unsigned long )olck != (unsigned long )((struct osc_lock *)0)) { lock = olck->ols_cl.cls_lock; cl_lock_mutex_get(env, lock); tmp___0 = osc_lock_invariant(olck); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_dlm_blocking_ast0"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 640; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"osc_lock_invariant(olck)"); lbug_with_loc(& __msg_data___0); } else { } if ((unsigned int )*((unsigned char *)olck + 168UL) != 0U) { cl_lock_signal(env, lock); olck->ols_ast_wait = 0U; } else { } if ((unsigned long )dlmlock->l_ast_data == (unsigned long )((void *)olck)) { tmp___2 = ldv__builtin_expect((unsigned long )data != (unsigned long )((void *)olck), 0L); if (tmp___2 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___1.msg_fn = "osc_dlm_blocking_ast0"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 664; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"data == olck"); lbug_with_loc(& __msg_data___1); } else { } osc_lock_blocking(env, dlmlock, olck, flag == 1); } else { cancel = 1; } cl_lock_mutex_put(env, lock); osc_ast_data_put(env, olck); } else { cancel = flag == 1; } if (cancel != 0) { tmp___3 = osc_env_info(env); lockh = & tmp___3->oti_handle; ldlm_lock2handle((struct ldlm_lock const *)dlmlock, lockh); result = ldlm_cli_cancel(lockh, 1); } else { result = 0; } return (result); } } static int osc_ldlm_blocking_ast(struct ldlm_lock *dlmlock , struct ldlm_lock_desc *new , void *data , int flag ) { struct lu_env *env ; struct cl_env_nest nest ; int result ; long tmp ; struct libcfs_debug_msg_data msgdata ; bool tmp___0 ; int tmp___1 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; { env = cl_env_nested_get(& nest); tmp___0 = IS_ERR((void const *)env); if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { result = osc_dlm_blocking_ast0((struct lu_env const *)env, dlmlock, data, flag); cl_env_nested_put(& nest, env); } else { tmp = PTR_ERR((void const *)env); result = (int )tmp; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata.msg_fn = "osc_ldlm_blocking_ast"; msgdata.msg_subsys = 8; msgdata.msg_line = 762; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; lbug_with_loc(& msgdata); } if (result != 0) { if (result == -61) { result = 0; } else { tmp___2 = cfs_cdebug_show(131072U, 8U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata___0.msg_fn = "osc_ldlm_blocking_ast"; msgdata___0.msg_line = 768; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "BAST failed: %d\n", result); } else { } } } else { } return (result); } } static int osc_ldlm_completion_ast(struct ldlm_lock *dlmlock , __u64 flags , void *data ) { struct cl_env_nest nest ; struct lu_env *env ; struct osc_lock *olck ; struct cl_lock *lock ; int result ; int dlmrc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; int tmp___1 ; long tmp___2 ; bool tmp___3 ; int tmp___4 ; { dlmrc = ldlm_completion_ast_async(dlmlock, flags, data); env = cl_env_nested_get(& nest); tmp___3 = IS_ERR((void const *)env); if (tmp___3) { tmp___4 = 0; } else { tmp___4 = 1; } if (tmp___4) { olck = osc_ast_data_get(dlmlock); if ((unsigned long )olck != (unsigned long )((struct osc_lock *)0)) { lock = olck->ols_cl.cls_lock; cl_lock_mutex_get((struct lu_env const *)env, lock); tmp = ldv__builtin_expect((unsigned long )dlmlock->l_lvb_data == (unsigned long )((void *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_ldlm_completion_ast"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 796; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"dlmlock->l_lvb_data != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } lock_res_and_lock(dlmlock); olck->ols_lvb = *((struct ost_lvb *)dlmlock->l_lvb_data); if ((unsigned long )olck->ols_lock == (unsigned long )((struct ldlm_lock *)0)) { } else if ((unsigned int )dlmlock->l_granted_mode == (unsigned int )dlmlock->l_req_mode) { osc_lock_granted((struct lu_env const *)env, olck, dlmlock, dlmrc); } else { } unlock_res_and_lock(dlmlock); if (dlmrc != 0) { msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata.msg_fn = "osc_ldlm_completion_ast"; msgdata.msg_subsys = 8; msgdata.msg_line = 817; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___1 = cfs_cdebug_show(131072U, 8U); if (tmp___1 != 0) { cl_lock_print((struct lu_env const *)env, (void *)(& msgdata), & lu_cdebug_printer, (struct cl_lock const *)lock); tmp___0 = cfs_cdebug_show(131072U, 8U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata___0.msg_fn = "osc_ldlm_completion_ast"; msgdata___0.msg_line = 817; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "dlmlock returned %d\n", dlmrc); } else { } } else { } cl_lock_error((struct lu_env const *)env, lock, dlmrc); } else { } cl_lock_mutex_put((struct lu_env const *)env, lock); osc_ast_data_put((struct lu_env const *)env, olck); result = 0; } else { result = -303; } cl_env_nested_put(& nest, env); } else { tmp___2 = PTR_ERR((void const *)env); result = (int )tmp___2; } return (dlmrc != 0 ? dlmrc != 0 : result); } } static int osc_ldlm_glimpse_ast(struct ldlm_lock *dlmlock , void *data ) { struct ptlrpc_request *req ; struct osc_lock *olck ; struct cl_lock *lock ; struct cl_object *obj ; struct cl_env_nest nest ; struct lu_env *env ; struct ost_lvb *lvb ; struct req_capsule *cap ; int result ; struct libcfs_debug_msg_data __msg_data ; __u32 tmp ; long tmp___0 ; void *tmp___1 ; bool tmp___2 ; int tmp___3 ; long tmp___4 ; bool tmp___5 ; int tmp___6 ; { req = (struct ptlrpc_request *)data; tmp = lustre_msg_get_opc(req->rq_reqmsg); tmp___0 = ldv__builtin_expect(tmp != 106U, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_ldlm_glimpse_ast"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 843; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"lustre_msg_get_opc(req->rq_reqmsg) == LDLM_GL_CALLBACK"); lbug_with_loc(& __msg_data); } else { } env = cl_env_nested_get(& nest); tmp___5 = IS_ERR((void const *)env); if (tmp___5) { tmp___6 = 0; } else { tmp___6 = 1; } if (tmp___6) { olck = osc_ast_data_get(dlmlock); if ((unsigned long )olck != (unsigned long )((struct osc_lock *)0)) { lock = olck->ols_cl.cls_lock; cap = & req->rq_pill; req_capsule_extend(cap, (struct req_format const *)(& RQF_LDLM_GL_CALLBACK)); req_capsule_set_size(cap, (struct req_msg_field const *)(& RMF_DLM_LVB), 1, 56); result = req_capsule_server_pack(cap); if (result == 0) { tmp___1 = req_capsule_server_get(cap, (struct req_msg_field const *)(& RMF_DLM_LVB)); lvb = (struct ost_lvb *)tmp___1; obj = lock->cll_descr.cld_obj; result = cl_object_glimpse((struct lu_env const *)env, obj, lvb); } else { } tmp___2 = exp_connect_lvb_type(req->rq_export); if (tmp___2) { tmp___3 = 0; } else { tmp___3 = 1; } if (tmp___3) { req_capsule_shrink(& req->rq_pill, (struct req_msg_field const *)(& RMF_DLM_LVB), 40U, 1); } else { } osc_ast_data_put((struct lu_env const *)env, olck); } else { lustre_pack_reply(req, 1, (__u32 *)0U, (char **)0); result = -303; } cl_env_nested_put(& nest, env); } else { tmp___4 = PTR_ERR((void const *)env); result = (int )tmp___4; } req->rq_status = result; return (result); } } static unsigned long osc_lock_weigh(struct lu_env const *env , struct cl_lock_slice const *slice ) { struct cl_object_header *tmp ; { tmp = cl_object_header___1((struct cl_object const *)slice->cls_obj); return (tmp->coh_pages); } } static void osc_lock_build_einfo(struct lu_env const *env , struct cl_lock const *clock , struct osc_lock *lock , struct ldlm_enqueue_info *einfo ) { enum cl_lock_mode mode ; ldlm_mode_t tmp ; { mode = clock->cll_descr.cld_mode; if ((unsigned int )mode == 0U) { mode = 1; } else { } einfo->ei_type = 11U; tmp = osc_cl_lock2ldlm(mode); einfo->ei_mode = (__u32 )tmp; einfo->ei_cb_bl = (void *)(& osc_ldlm_blocking_ast); einfo->ei_cb_cp = (void *)(& osc_ldlm_completion_ast); einfo->ei_cb_gl = (void *)(& osc_ldlm_glimpse_ast); einfo->ei_cbdata = (void *)lock; return; } } static void osc_lock_to_lockless(struct lu_env const *env , struct osc_lock *ols , int force ) { struct cl_lock_slice *slice ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct osc_io *oio ; struct osc_io *tmp___0 ; struct cl_io *io ; struct cl_object *obj ; struct osc_object *oob ; struct osc_object *tmp___1 ; struct osc_device const *osd ; struct osc_device *tmp___2 ; struct obd_connect_data *ocd ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___3 ; struct obd_export *tmp___4 ; struct obd_import *tmp___5 ; int tmp___6 ; int tmp___7 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___8 ; int tmp___9 ; long tmp___10 ; { slice = & ols->ols_cl; tmp = ldv__builtin_expect((long )((unsigned int )ols->ols_state != 0U && (unsigned int )ols->ols_state != 2U), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_to_lockless"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 945; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"ols->ols_state == OLS_NEW || ols->ols_state == OLS_UPCALL_RECEIVED"); lbug_with_loc(& __msg_data); } else { } if (force != 0) { ols->ols_locklessable = 1U; slice->cls_ops = & osc_lock_lockless_ops; } else { tmp___0 = osc_env_io(env); oio = tmp___0; io = oio->oi_cl.cis_io; obj = slice->cls_obj; tmp___1 = cl2osc___1((struct cl_object const *)obj); oob = tmp___1; tmp___2 = lu2osc_dev___2((struct lu_device const *)obj->co_lu.lo_dev); osd = (struct osc_device const *)tmp___2; tmp___3 = ldv__builtin_expect((long )(((unsigned int )io->ci_lockreq != 0U && (unsigned int )io->ci_lockreq != 1U) && (unsigned int )io->ci_lockreq != 2U), 0L); if (tmp___3 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_to_lockless"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 960; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"io->ci_lockreq == CILR_MANDATORY || io->ci_lockreq == CILR_MAYBE || io->ci_lockreq == CILR_NEVER"); lbug_with_loc(& __msg_data___0); } else { } tmp___4 = osc_export___0((struct osc_object const *)oob); tmp___5 = class_exp2cliimp(tmp___4); ocd = & tmp___5->imp_connect_data; ols->ols_locklessable = (unsigned char )(((unsigned int )io->ci_type != 2U && (unsigned int )io->ci_lockreq == 1U) && (ocd->ocd_connect_flags & 16ULL) != 0ULL); if ((unsigned int )io->ci_lockreq == 2U) { ols->ols_locklessable = 1U; slice->cls_ops = & osc_lock_lockless_ops; } else if ((unsigned int )*((unsigned char *)ols + 168UL) != 0U) { tmp___6 = osc_object_is_contended(oob); if (tmp___6 != 0) { ols->ols_locklessable = 1U; slice->cls_ops = & osc_lock_lockless_ops; } else { goto _L; } } else { _L: /* CIL Label */ tmp___7 = cl_io_is_trunc((struct cl_io const *)io); if ((tmp___7 != 0 && (ocd->ocd_connect_flags & 1024ULL) != 0ULL) && (int )osd->od_lockless_truncate != 0) { ols->ols_locklessable = 1U; slice->cls_ops = & osc_lock_lockless_ops; } else { } } } if ((unsigned int )*((unsigned char *)ols + 168UL) != 0U) { tmp___8 = osc_lock_is_lockless((struct osc_lock const *)ols); if (tmp___8 != 0) { tmp___9 = 1; } else { tmp___9 = 0; } } else { tmp___9 = 0; } tmp___10 = ldv__builtin_expect((long )tmp___9, 0L); if (tmp___10 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___1.msg_fn = "osc_lock_to_lockless"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 977; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"(!(ols->ols_glimpse) || (!osc_lock_is_lockless(ols)))"); lbug_with_loc(& __msg_data___1); } else { } return; } } static int osc_lock_compatible(struct osc_lock const *qing , struct osc_lock const *qed ) { enum cl_lock_mode qing_mode ; enum cl_lock_mode qed_mode ; { qing_mode = (qing->ols_cl.cls_lock)->cll_descr.cld_mode; if ((unsigned int )*((unsigned char *)qed + 168UL) != 0U && ((unsigned int )qed->ols_state > 1U || (unsigned int )qing_mode == 1U)) { return (1); } else { } qed_mode = (qed->ols_cl.cls_lock)->cll_descr.cld_mode; return ((unsigned int )qing_mode == 1U && (unsigned int )qed_mode == 1U); } } static int osc_lock_enqueue_wait(struct lu_env const *env , struct osc_lock const *olck ) { struct cl_lock *lock ; struct cl_lock_descr *descr ; struct cl_object_header *hdr ; struct cl_object_header *tmp ; struct cl_lock *scan ; struct cl_lock *conflict ; int lockless ; int tmp___0 ; int rc ; struct libcfs_debug_msg_data __msg_data ; int tmp___1 ; long tmp___2 ; struct list_head const *__mptr ; struct cl_lock_descr *cld ; struct osc_lock const *scan_ols ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___3 ; struct osc_lock *tmp___4 ; int tmp___5 ; struct list_head const *__mptr___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___6 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___7 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___8 ; { lock = olck->ols_cl.cls_lock; descr = & lock->cll_descr; tmp = cl_object_header___1((struct cl_object const *)descr->cld_obj); hdr = tmp; conflict = (struct cl_lock *)0; tmp___0 = osc_lock_is_lockless(olck); lockless = tmp___0; rc = 0; tmp___1 = cl_lock_is_mutexed(lock); tmp___2 = ldv__builtin_expect(tmp___1 == 0, 0L); if (tmp___2 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_enqueue_wait"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1017; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cl_lock_is_mutexed(lock)"); lbug_with_loc(& __msg_data); } else { } if ((unsigned int )*((unsigned char *)olck + 168UL) != 0U) { return (0); } else { } spin_lock(& hdr->coh_lock_guard); __mptr = (struct list_head const *)hdr->coh_locks.next; scan = (struct cl_lock *)__mptr + 0xffffffffffffffe8UL; goto ldv_62530; ldv_62529: cld = & scan->cll_descr; if ((unsigned long )scan == (unsigned long )lock) { goto ldv_62526; } else { } if ((((unsigned int )scan->cll_state == 0U || (unsigned int )scan->cll_state == 6U) || cld->cld_start > descr->cld_end) || cld->cld_end < descr->cld_start) { goto ldv_62527; } else { } if ((unsigned int )scan->cll_descr.cld_mode == 3U) { tmp___3 = ldv__builtin_expect((long )((unsigned int )descr->cld_mode == 3U && descr->cld_gid == scan->cll_descr.cld_gid), 0L); if (tmp___3 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_enqueue_wait"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1043; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"descr->cld_mode != CLM_GROUP || descr->cld_gid != scan->cll_descr.cld_gid"); lbug_with_loc(& __msg_data___0); } else { } goto ldv_62527; } else { } tmp___4 = osc_lock_at___0((struct cl_lock const *)scan); scan_ols = (struct osc_lock const *)tmp___4; if (lockless == 0) { tmp___5 = osc_lock_compatible(olck, scan_ols); if (tmp___5 != 0) { goto ldv_62527; } else { } } else { } cl_lock_get_trust(scan); conflict = scan; goto ldv_62526; ldv_62527: __mptr___0 = (struct list_head const *)scan->cll_linkage.next; scan = (struct cl_lock *)__mptr___0 + 0xffffffffffffffe8UL; ldv_62530: ; if ((unsigned long )(& scan->cll_linkage) != (unsigned long )(& hdr->coh_locks)) { goto ldv_62529; } else { } ldv_62526: spin_unlock(& hdr->coh_lock_guard); if ((unsigned long )conflict != (unsigned long )((struct cl_lock *)0)) { if ((unsigned int )lock->cll_descr.cld_mode == 3U) { tmp___6 = cfs_cdebug_show(65536U, 8U); if (tmp___6 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata.msg_fn = "osc_lock_enqueue_wait"; msgdata.msg_line = 1071; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 65536; libcfs_debug_msg(& msgdata, "group lock %p is conflicted with %p, no wait, send to server\n", lock, conflict); } else { } cl_lock_put(env, conflict); rc = 0; } else { tmp___7 = cfs_cdebug_show(65536U, 8U); if (tmp___7 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata___0.msg_fn = "osc_lock_enqueue_wait"; msgdata___0.msg_line = 1076; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 65536; libcfs_debug_msg(& msgdata___0, "lock %p is conflicted with %p, will wait\n", lock, conflict); } else { } tmp___8 = ldv__builtin_expect((unsigned long )lock->cll_conflict != (unsigned long )((struct cl_lock *)0), 0L); if (tmp___8 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___1.msg_fn = "osc_lock_enqueue_wait"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 1077; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"lock->cll_conflict == ((void *)0)"); lbug_with_loc(& __msg_data___1); } else { } lu_ref_add_atomic(& conflict->cll_reference, "cancel-wait", (void const *)lock); lock->cll_conflict = conflict; rc = 1; } } else { } return (rc); } } static int osc_lock_enqueue(struct lu_env const *env , struct cl_lock_slice const *slice , struct cl_io *unused , __u32 enqflags ) { struct osc_lock *ols ; struct osc_lock *tmp ; struct cl_lock *lock ; int result ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___3 ; struct osc_object *obj ; struct osc_object *tmp___4 ; struct osc_thread_info *info ; struct osc_thread_info *tmp___5 ; struct ldlm_res_id *resname ; ldlm_policy_data_t *policy ; struct ldlm_enqueue_info *einfo ; struct obd_export *tmp___6 ; long tmp___7 ; int tmp___8 ; struct libcfs_debug_msg_data __msg_data___2 ; int tmp___9 ; int tmp___10 ; long tmp___11 ; { tmp = cl2osc_lock___0(slice); ols = tmp; lock = ols->ols_cl.cls_lock; tmp___0 = cl_lock_is_mutexed(lock); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_enqueue"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1109; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cl_lock_is_mutexed(lock)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = ldv__builtin_expect((unsigned int )ols->ols_state != 0U, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_enqueue"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1111; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: Impossible state: %d\n", (char *)"ols->ols_state == OLS_NEW", (unsigned int )ols->ols_state); lbug_with_loc(& __msg_data___0); } else { } tmp___3 = ldv__builtin_expect((long )((unsigned int )*((unsigned char *)ols + 168UL) != 0U && (unsigned int )lock->cll_descr.cld_mode > 1U), 0L); if (tmp___3 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___1.msg_fn = "osc_lock_enqueue"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 1114; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: lock = %p, ols = %p\n", (char *)"ergo(ols->ols_glimpse, lock->cll_descr.cld_mode <= CLM_READ)", lock, ols); lbug_with_loc(& __msg_data___1); } else { } result = osc_lock_enqueue_wait(env, (struct osc_lock const *)ols); if (result == 0) { tmp___8 = osc_lock_is_lockless((struct osc_lock const *)ols); if (tmp___8 == 0) { tmp___4 = cl2osc___1((struct cl_object const *)slice->cls_obj); obj = tmp___4; tmp___5 = osc_env_info(env); info = tmp___5; resname = & info->oti_resname; policy = & info->oti_policy; einfo = & ols->ols_einfo; cl_lock_hold_add(env, lock, "upcall", (void const *)lock); cl_lock_user_add(env, lock); ols->ols_state = 1; ostid_build_res_name(& (obj->oo_oinfo)->loi_oi, resname); osc_lock_build_policy(env, (struct cl_lock const *)lock, policy); tmp___6 = osc_export___0((struct osc_object const *)obj); result = osc_enqueue_base(tmp___6, resname, & ols->ols_flags, policy, & ols->ols_lvb, (int )(obj->oo_oinfo)->loi_kms_valid, & osc_lock_upcall, (void *)ols, einfo, & ols->ols_handle, PTLRPCD_SET, 1, (int )ols->ols_agl); if (result != 0) { cl_lock_user_del(env, lock); cl_lock_unhold(env, lock, "upcall", (void const *)lock); tmp___7 = ldv__builtin_expect(result == -125, 0L); if (tmp___7 != 0L) { ols->ols_state = 0; result = 0; } else { } } else { } } else { ols->ols_state = 3; ols->ols_owner = osc_env_io(env); } } else { } if ((unsigned int )*((unsigned char *)ols + 168UL) != 0U) { tmp___9 = osc_lock_is_lockless((struct osc_lock const *)ols); if (tmp___9 != 0) { tmp___10 = 1; } else { tmp___10 = 0; } } else { tmp___10 = 0; } tmp___11 = ldv__builtin_expect((long )tmp___10, 0L); if (tmp___11 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___2.msg_fn = "osc_lock_enqueue"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 1159; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"(!(ols->ols_glimpse) || (!osc_lock_is_lockless(ols)))"); lbug_with_loc(& __msg_data___2); } else { } return (result); } } static int osc_lock_wait(struct lu_env const *env , struct cl_lock_slice const *slice ) { struct osc_lock *olck ; struct osc_lock *tmp ; struct cl_lock *lock ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___2 ; int rc ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___3 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___4 ; { tmp = cl2osc_lock___0(slice); olck = tmp; lock = olck->ols_cl.cls_lock; tmp___0 = osc_lock_invariant(olck); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_wait"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1169; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_lock_invariant(olck)"); lbug_with_loc(& __msg_data); } else { } if ((unsigned int )*((unsigned char *)olck + 168UL) != 0U && (unsigned int )olck->ols_state > 1U) { if ((olck->ols_flags & 2199023255552ULL) != 0ULL) { return (0); } else if ((unsigned int )*((unsigned char *)olck + 168UL) != 0U) { if ((lock->cll_flags & 8UL) != 0UL) { return (-119); } else { } olck->ols_state = 0; } else { tmp___2 = ldv__builtin_expect(lock->cll_error == 0, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_wait"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1181; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"lock->cll_error"); lbug_with_loc(& __msg_data___0); } else { } return (lock->cll_error); } } else { } if ((unsigned int )olck->ols_state == 0U) { tmp___3 = ldv__builtin_expect((unsigned int )*((unsigned char *)olck + 168UL) == 0U, 0L); if (tmp___3 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___1.msg_fn = "osc_lock_wait"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 1189; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"olck->ols_agl"); lbug_with_loc(& __msg_data___1); } else { } olck->ols_agl = 0U; olck->ols_flags = olck->ols_flags & 0xfffffffffffbffffULL; rc = osc_lock_enqueue(env, slice, (struct cl_io *)0, 10U); if (rc != 0) { return (rc); } else { return (3); } } else { } tmp___4 = ldv__builtin_expect((long )((int )((_Bool )((unsigned int )olck->ols_state > 1U && lock->cll_error == 0)) ^ ((unsigned long )olck->ols_lock != (unsigned long )((struct ldlm_lock *)0))), 0L); if (tmp___4 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___2.msg_fn = "osc_lock_wait"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 1200; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"(!!(olck->ols_state >= OLS_UPCALL_RECEIVED && lock->cll_error == 0) == !!(olck->ols_lock != ((void *)0)))"); lbug_with_loc(& __msg_data___2); } else { } return (lock->cll_error != 0 ? lock->cll_error != 0 : (unsigned int )olck->ols_state <= 2U); } } static int osc_lock_use(struct lu_env const *env , struct cl_lock_slice const *slice ) { struct osc_lock *olck ; struct osc_lock *tmp ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct cl_lock *lock ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___2 ; { tmp = cl2osc_lock___0(slice); olck = tmp; tmp___0 = ldv__builtin_expect((long )*((unsigned char *)olck + 168UL) & 1L, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_use"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1215; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!olck->ols_hold"); lbug_with_loc(& __msg_data); } else { } rc = ldlm_lock_addref_try(& olck->ols_handle, olck->ols_einfo.ei_mode); if (rc == 0) { olck->ols_hold = 1U; olck->ols_state = 3; } else { lock = slice->cls_lock; tmp___1 = ldv__builtin_expect((unsigned int )lock->cll_state != 4U, 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_use"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1235; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"lock->cll_state == CLS_INTRANSIT"); lbug_with_loc(& __msg_data___0); } else { } tmp___2 = ldv__builtin_expect(lock->cll_users <= 0, 0L); if (tmp___2 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___1.msg_fn = "osc_lock_use"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 1236; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"lock->cll_users > 0"); lbug_with_loc(& __msg_data___1); } else { } olck->ols_ast_wait = 1U; rc = 1; } return (rc); } } static int osc_lock_flush(struct osc_lock *ols , int discard ) { struct cl_lock *lock ; struct cl_env_nest nest ; struct lu_env *env ; int result ; struct osc_object *obj ; struct osc_object *tmp ; struct cl_lock_descr *descr ; int rc ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; long tmp___1 ; long tmp___2 ; bool tmp___3 ; int tmp___4 ; struct libcfs_debug_msg_data __msg_data ; int tmp___5 ; long tmp___6 ; { lock = ols->ols_cl.cls_lock; result = 0; env = cl_env_nested_get(& nest); tmp___3 = IS_ERR((void const *)env); if (tmp___3) { tmp___4 = 0; } else { tmp___4 = 1; } if (tmp___4) { tmp = cl2osc___1((struct cl_object const *)ols->ols_cl.cls_obj); obj = tmp; descr = & lock->cll_descr; rc = 0; if ((unsigned int )descr->cld_mode > 1U) { result = osc_cache_writeback_range((struct lu_env const *)env, obj, descr->cld_start, descr->cld_end, 1, discard); tmp___1 = ldv__builtin_expect((unsigned long )ols->ols_lock != (unsigned long )((struct ldlm_lock *)0), 1L); if (tmp___1 != 0L) { msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata.msg_fn = "osc_lock_flush"; msgdata.msg_subsys = 8; msgdata.msg_line = 1264; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 65536; if ((libcfs_debug & 65536U) != 0U && (libcfs_subsystem_debug & 8U) != 0U) { _ldlm_lock_debug(ols->ols_lock, & msgdata, "### lock %p: %d pages were %s.\n", lock, result, discard != 0 ? (char *)"discarded" : (char *)"written"); } else { } } else { tmp___0 = cfs_cdebug_show(65536U, 8U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata___0.msg_fn = "osc_lock_flush"; msgdata___0.msg_line = 1264; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 65536; libcfs_debug_msg(& msgdata___0, "### no dlm lock: lock %p: %d pages were %s.\n\n", lock, result, discard != 0 ? (char *)"discarded" : (char *)"written"); } else { } } if (result > 0) { result = 0; } else { } } else { } rc = cl_lock_discard_pages((struct lu_env const *)env, lock); if (result == 0 && rc < 0) { result = rc; } else { } cl_env_nested_put(& nest, env); } else { tmp___2 = PTR_ERR((void const *)env); result = (int )tmp___2; } if (result == 0) { ols->ols_flush = 1U; tmp___5 = osc_lock_has_pages(ols); tmp___6 = ldv__builtin_expect(tmp___5 != 0, 0L); if (tmp___6 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_flush"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1278; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!osc_lock_has_pages(ols)"); lbug_with_loc(& __msg_data); } else { } } else { } return (result); } } static void osc_lock_cancel(struct lu_env const *env , struct cl_lock_slice const *slice ) { struct cl_lock *lock ; struct osc_lock *olck ; struct osc_lock *tmp ; struct ldlm_lock *dlmlock ; int result ; int discard ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___2 ; long tmp___3 ; int do_cancel ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___4 ; int tmp___5 ; { lock = slice->cls_lock; tmp = cl2osc_lock___0(slice); olck = tmp; dlmlock = olck->ols_lock; result = 0; tmp___0 = cl_lock_is_mutexed(lock); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_cancel"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1306; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cl_lock_is_mutexed(lock)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = osc_lock_invariant(olck); tmp___3 = ldv__builtin_expect(tmp___2 == 0, 0L); if (tmp___3 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_cancel"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1307; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"osc_lock_invariant(olck)"); lbug_with_loc(& __msg_data___0); } else { } if ((unsigned long )dlmlock != (unsigned long )((struct ldlm_lock *)0)) { discard = (dlmlock->l_flags & 65536ULL) != 0ULL; if ((unsigned int )olck->ols_state > 2U) { result = osc_lock_flush(olck, discard); } else { } osc_lock_unhold(olck); lock_res_and_lock(dlmlock); do_cancel = dlmlock->l_readers == 0U && dlmlock->l_writers == 0U; dlmlock->l_flags = dlmlock->l_flags | 17179869184ULL; unlock_res_and_lock(dlmlock); if (do_cancel != 0) { result = ldlm_cli_cancel(& olck->ols_handle, 1); } else { } if (result < 0) { msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata.msg_fn = "osc_lock_cancel"; msgdata.msg_subsys = 8; msgdata.msg_line = 1331; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___5 = cfs_cdebug_show(131072U, 8U); if (tmp___5 != 0) { cl_lock_print(env, (void *)(& msgdata), & lu_cdebug_printer, (struct cl_lock const *)lock); tmp___4 = cfs_cdebug_show(131072U, 8U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata___0.msg_fn = "osc_lock_cancel"; msgdata___0.msg_line = 1331; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "lock %p cancel failure with error(%d)\n", lock, result); } else { } } else { } } else { } } else { } olck->ols_state = 6; olck->ols_flags = olck->ols_flags & 0xfffffdffffffffffULL; osc_lock_detach(env, olck); return; } } static int osc_lock_has_pages(struct osc_lock *olck ) { { return (0); } } static void osc_lock_delete(struct lu_env const *env , struct cl_lock_slice const *slice ) { struct osc_lock *olck ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___1 ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___2 ; int tmp___3 ; long tmp___4 ; { olck = cl2osc_lock___0(slice); if ((unsigned int )*((unsigned char *)olck + 168UL) != 0U) { tmp = ldv__builtin_expect((long )*((unsigned char *)olck + 168UL) & 1L, 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_delete"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1350; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!olck->ols_hold"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect((unsigned long )olck->ols_lock != (unsigned long )((struct ldlm_lock *)0), 0L); if (tmp___0 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_delete"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1351; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!olck->ols_lock"); lbug_with_loc(& __msg_data___0); } else { } return; } else { } tmp___1 = osc_lock_invariant(olck); tmp___2 = ldv__builtin_expect(tmp___1 == 0, 0L); if (tmp___2 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___1.msg_fn = "osc_lock_delete"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 1355; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"osc_lock_invariant(olck)"); lbug_with_loc(& __msg_data___1); } else { } tmp___3 = osc_lock_has_pages(olck); tmp___4 = ldv__builtin_expect(tmp___3 != 0, 0L); if (tmp___4 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___2.msg_fn = "osc_lock_delete"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 1356; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"!osc_lock_has_pages(olck)"); lbug_with_loc(& __msg_data___2); } else { } osc_lock_unhold(olck); osc_lock_detach(env, olck); return; } } static void osc_lock_state(struct lu_env const *env , struct cl_lock_slice const *slice , enum cl_lock_state state ) { struct osc_lock *lock ; struct osc_lock *tmp ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; struct osc_io *oio ; struct osc_io *tmp___2 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___3 ; { tmp = cl2osc_lock___0(slice); lock = tmp; tmp___0 = osc_lock_invariant(lock); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_state"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1381; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_lock_invariant(lock)"); lbug_with_loc(& __msg_data); } else { } if ((unsigned int )state == 3U && (unsigned int )(slice->cls_lock)->cll_state != 3U) { tmp___2 = osc_env_io(env); oio = tmp___2; tmp___3 = ldv__builtin_expect((unsigned long )lock->ols_owner != (unsigned long )((struct osc_io *)0), 0L); if (tmp___3 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_state"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1385; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"lock->ols_owner == ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } lock->ols_owner = oio; } else if ((unsigned int )state != 3U) { lock->ols_owner = (struct osc_io *)0; } else { } return; } } static int osc_lock_print(struct lu_env const *env , void *cookie , int (*p)(struct lu_env const * , void * , char const * , ...) , struct cl_lock_slice const *slice ) { struct osc_lock *lock ; struct osc_lock *tmp ; { tmp = cl2osc_lock___0(slice); lock = tmp; (*p)(env, cookie, "%p %#16llx %#llx %d %p ", lock->ols_lock, lock->ols_flags, lock->ols_handle.cookie, (unsigned int )lock->ols_state, lock->ols_owner); osc_lvb_print(env, cookie, p, (struct ost_lvb const *)(& lock->ols_lvb)); return (0); } } static int osc_lock_fits_into(struct lu_env const *env , struct cl_lock_slice const *slice , struct cl_lock_descr const *need , struct cl_io const *io ) { struct osc_lock *ols ; struct osc_lock *tmp ; { tmp = cl2osc_lock___0(slice); ols = tmp; if (((unsigned int )need->cld_enq_flags & 16U) != 0U) { return (0); } else { } if ((unsigned int )ols->ols_state > 5U) { return (0); } else { } if ((unsigned int )need->cld_mode == 0U) { if ((unsigned int )*((unsigned char *)ols + 168UL) != 0U) { return ((unsigned int )ols->ols_state <= 4U); } else { } if ((unsigned int )ols->ols_state <= 2U || (unsigned int )ols->ols_state > 4U) { return (0); } else { } } else if (((unsigned int )need->cld_enq_flags & 8U) != 0U) { if ((unsigned int )ols->ols_state <= 1U && (unsigned int )*((unsigned char *)ols + 168UL) != 0U) { return (0); } else { } } else { } return (1); } } static struct cl_lock_operations const osc_lock_ops = {& osc_lock_enqueue, & osc_lock_wait, & osc_lock_unuse, & osc_lock_use, & osc_lock_state, & osc_lock_fits_into, & osc_lock_cancel, & osc_lock_weigh, 0, 0, & osc_lock_delete, & osc_lock_fini, & osc_lock_print}; static int osc_lock_lockless_unuse(struct lu_env const *env , struct cl_lock_slice const *slice ) { struct osc_lock *ols ; struct osc_lock *tmp ; struct cl_lock *lock ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___1 ; long tmp___2 ; { tmp = cl2osc_lock___0(slice); ols = tmp; lock = slice->cls_lock; tmp___0 = ldv__builtin_expect((unsigned int )ols->ols_state != 3U, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_lockless_unuse"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1473; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"ols->ols_state == OLS_GRANTED"); lbug_with_loc(& __msg_data); } else { } tmp___1 = osc_lock_invariant(ols); tmp___2 = ldv__builtin_expect(tmp___1 == 0, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_lockless_unuse"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1474; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"osc_lock_invariant(ols)"); lbug_with_loc(& __msg_data___0); } else { } cl_lock_cancel(env, lock); cl_lock_delete(env, lock); return (0); } } static void osc_lock_lockless_cancel(struct lu_env const *env , struct cl_lock_slice const *slice ) { struct osc_lock *ols ; struct osc_lock *tmp ; int result ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { tmp = cl2osc_lock___0(slice); ols = tmp; result = osc_lock_flush(ols, 0); if (result != 0) { tmp___0 = cfs_cdebug_show(131072U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata.msg_fn = "osc_lock_lockless_cancel"; msgdata.msg_line = 1490; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Pages for lockless lock %p were not purged(%d)\n", ols, result); } else { } } else { } ols->ols_state = 6; return; } } static int osc_lock_lockless_wait(struct lu_env const *env , struct cl_lock_slice const *slice ) { struct osc_lock *olck ; struct osc_lock *tmp ; struct cl_lock *lock ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___2 ; { tmp = cl2osc_lock___0(slice); olck = tmp; lock = olck->ols_cl.cls_lock; tmp___0 = osc_lock_invariant(olck); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_lockless_wait"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1500; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_lock_invariant(olck)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = ldv__builtin_expect((unsigned int )olck->ols_state <= 1U, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_lockless_wait"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1501; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"olck->ols_state >= OLS_UPCALL_RECEIVED"); lbug_with_loc(& __msg_data___0); } else { } return (lock->cll_error); } } static void osc_lock_lockless_state(struct lu_env const *env , struct cl_lock_slice const *slice , enum cl_lock_state state ) { struct osc_lock *lock ; struct osc_lock *tmp ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; struct osc_io *oio ; struct osc_io *tmp___2 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___3 ; int tmp___4 ; { tmp = cl2osc_lock___0(slice); lock = tmp; tmp___0 = osc_lock_invariant(lock); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_lockless_state"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1512; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_lock_invariant(lock)"); lbug_with_loc(& __msg_data); } else { } if ((unsigned int )state == 3U) { tmp___2 = osc_env_io(env); oio = tmp___2; tmp___3 = ldv__builtin_expect((long )((unsigned long )lock->ols_owner != (unsigned long )((struct osc_io *)0) && (unsigned long )lock->ols_owner != (unsigned long )oio), 0L); if (tmp___3 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data___0.msg_fn = "osc_lock_lockless_state"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1516; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"(!(lock->ols_owner) || (lock->ols_owner == oio))"); lbug_with_loc(& __msg_data___0); } else { } lock->ols_owner = oio; tmp___4 = cl_object_same(oio->oi_cl.cis_obj, slice->cls_obj); if (tmp___4 != 0) { oio->oi_lockless = 1; } else { } } else { } return; } } static int osc_lock_lockless_fits_into(struct lu_env const *env , struct cl_lock_slice const *slice , struct cl_lock_descr const *need , struct cl_io const *io ) { struct osc_lock *lock ; struct osc_lock *tmp ; struct osc_io *tmp___0 ; { tmp = cl2osc_lock___0(slice); lock = tmp; if (((unsigned int )need->cld_enq_flags & 16U) == 0U) { return (0); } else { } tmp___0 = osc_env_io(env); return ((unsigned long )lock->ols_owner == (unsigned long )tmp___0); } } static struct cl_lock_operations const osc_lock_lockless_ops = {& osc_lock_enqueue, & osc_lock_lockless_wait, & osc_lock_lockless_unuse, 0, & osc_lock_lockless_state, & osc_lock_lockless_fits_into, & osc_lock_lockless_cancel, 0, 0, 0, 0, & osc_lock_fini, & osc_lock_print}; int osc_lock_init(struct lu_env const *env , struct cl_object *obj , struct cl_lock *lock , struct cl_io const *unused ) { struct osc_lock *clk ; int result ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; long tmp___6 ; __u32 enqflags ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___7 ; { tmp = preempt_count(); tmp___0 = ldv__builtin_expect(((unsigned long )tmp & 2096896UL) != 0UL, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; __msg_data.msg_fn = "osc_lock_init"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1558; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(!((((( gfp_t)0x10u) | (( gfp_t)0x40u))) != ((( gfp_t)0x20u))) || (!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4)))))))"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv_kmem_cache_alloc_191(osc_lock_kmem, 32848U); clk = (struct osc_lock *)tmp___1; if ((unsigned long )clk != (unsigned long )((struct osc_lock *)0)) { tmp___3 = cfs_fail_check_set(3072U, 0U, 0, 0); if (tmp___3 == 0 || obd_alloc_fail_rate == 0U) { tmp___5 = 1; } else { tmp___4 = obd_alloc_fail((void const *)clk, "clk", "slab-", 184UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c", 1558); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(osc_lock_kmem, (void *)clk); clk = (struct osc_lock *)0; tmp___5 = 0; } } } else { tmp___5 = 0; } tmp___6 = ldv__builtin_expect((long )tmp___5, 1L); if (tmp___6 != 0L) { lprocfs_counter_add(obd_memory, 0, 184L); tmp___2 = cfs_cdebug_show(16U, 8U); if (tmp___2 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata.msg_fn = "osc_lock_init"; msgdata.msg_line = 1558; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'clk\': %d at %p.\n", 184, clk); } else { } } else { } if ((unsigned long )clk != (unsigned long )((struct osc_lock *)0)) { enqflags = lock->cll_descr.cld_enq_flags; osc_lock_build_einfo(env, (struct cl_lock const *)lock, clk, & clk->ols_einfo); atomic_set(& clk->ols_pageref, 0); clk->ols_state = 0; clk->ols_flags = osc_enq2ldlm_flags(enqflags); clk->ols_agl = (enqflags & 32U) != 0U; if ((unsigned int )*((unsigned char *)clk + 168UL) != 0U) { clk->ols_flags = clk->ols_flags | 262144ULL; } else { } if ((clk->ols_flags & 4096ULL) != 0ULL) { clk->ols_glimpse = 1U; } else { } cl_lock_slice_add(lock, & clk->ols_cl, obj, & osc_lock_ops); if ((enqflags & 8U) == 0U) { osc_lock_to_lockless(env, clk, (int )enqflags & 16); } else { } if ((unsigned int )*((unsigned char *)clk + 168UL) != 0U && (enqflags & 4U) == 0U) { clk->ols_flags = clk->ols_flags | 1073741824ULL; } else { } tmp___7 = cfs_cdebug_show(65536U, 8U); if (tmp___7 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_lock.c"; msgdata___0.msg_fn = "osc_lock_init"; msgdata___0.msg_line = 1582; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 65536; libcfs_debug_msg(& msgdata___0, "### lock %p, osc lock %p, flags %llx\n\n", lock, clk, clk->ols_flags); } else { } result = 0; } else { result = -12; } return (result); } } int osc_dlm_lock_pageref(struct ldlm_lock *dlm ) { struct osc_lock *olock ; int rc ; int tmp ; { rc = 0; spin_lock(& osc_ast_guard); olock = (struct osc_lock *)dlm->l_ast_data; if ((unsigned long )olock != (unsigned long )((struct osc_lock *)0)) { tmp = atomic_add_return(-10000000, & olock->ols_pageref); if (tmp != -10000000) { atomic_sub(-10000000, & olock->ols_pageref); rc = 1; } else { } } else { } spin_unlock(& osc_ast_guard); return (rc); } } void ldv_initialize_cl_lock_operations_28(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(56UL); osc_lock_lockless_ops_group0 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(40UL); osc_lock_lockless_ops_group1 = (struct cl_lock_slice const *)tmp___0; return; } } void ldv_initialize_cl_lock_operations_29(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(56UL); osc_lock_ops_group0 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(40UL); osc_lock_ops_group1 = (struct cl_lock_slice const *)tmp___0; return; } } void ldv_main_exported_28(void) { struct cl_lock_descr *ldvarg74 ; void *tmp ; void *ldvarg69 ; void *tmp___0 ; enum cl_lock_state ldvarg72 ; int (*ldvarg68)(struct lu_env * , void * , char const * , ...) ; struct cl_io *ldvarg71 ; void *tmp___1 ; struct cl_lock_slice *ldvarg67 ; void *tmp___2 ; __u32 ldvarg70 ; struct cl_io *ldvarg73 ; void *tmp___3 ; int tmp___4 ; { tmp = ldv_init_zalloc(40UL); ldvarg74 = (struct cl_lock_descr *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg69 = tmp___0; tmp___1 = ldv_init_zalloc(256UL); ldvarg71 = (struct cl_io *)tmp___1; tmp___2 = ldv_init_zalloc(40UL); ldvarg67 = (struct cl_lock_slice *)tmp___2; tmp___3 = ldv_init_zalloc(256UL); ldvarg73 = (struct cl_io *)tmp___3; ldv_memset((void *)(& ldvarg72), 0, 4UL); ldv_memset((void *)(& ldvarg68), 0, 8UL); ldv_memset((void *)(& ldvarg70), 0, 4UL); tmp___4 = __VERIFIER_nondet_int(); switch (tmp___4) { case 0: ; if (ldv_state_variable_28 == 1) { osc_lock_lockless_wait(osc_lock_lockless_ops_group0, osc_lock_lockless_ops_group1); ldv_state_variable_28 = 1; } else { } goto ldv_62732; case 1: ; if (ldv_state_variable_28 == 1) { osc_lock_lockless_fits_into(osc_lock_lockless_ops_group0, osc_lock_lockless_ops_group1, (struct cl_lock_descr const *)ldvarg74, (struct cl_io const *)ldvarg73); ldv_state_variable_28 = 1; } else { } goto ldv_62732; case 2: ; if (ldv_state_variable_28 == 1) { osc_lock_lockless_cancel(osc_lock_lockless_ops_group0, osc_lock_lockless_ops_group1); ldv_state_variable_28 = 1; } else { } goto ldv_62732; case 3: ; if (ldv_state_variable_28 == 1) { osc_lock_lockless_state(osc_lock_lockless_ops_group0, osc_lock_lockless_ops_group1, ldvarg72); ldv_state_variable_28 = 1; } else { } goto ldv_62732; case 4: ; if (ldv_state_variable_28 == 1) { osc_lock_lockless_unuse(osc_lock_lockless_ops_group0, osc_lock_lockless_ops_group1); ldv_state_variable_28 = 1; } else { } goto ldv_62732; case 5: ; if (ldv_state_variable_28 == 1) { osc_lock_enqueue(osc_lock_lockless_ops_group0, osc_lock_lockless_ops_group1, ldvarg71, ldvarg70); ldv_state_variable_28 = 1; } else { } goto ldv_62732; case 6: ; if (ldv_state_variable_28 == 1) { osc_lock_print(osc_lock_lockless_ops_group0, ldvarg69, (int (*)(struct lu_env const * , void * , char const * , ...))ldvarg68, osc_lock_lockless_ops_group1); ldv_state_variable_28 = 1; } else { } goto ldv_62732; case 7: ; if (ldv_state_variable_28 == 1) { osc_lock_fini(osc_lock_lockless_ops_group0, ldvarg67); ldv_state_variable_28 = 1; } else { } goto ldv_62732; default: ldv_stop(); } ldv_62732: ; return; } } void ldv_main_exported_29(void) { struct cl_lock_descr *ldvarg119 ; void *tmp ; enum cl_lock_state ldvarg117 ; void *ldvarg114 ; void *tmp___0 ; int (*ldvarg113)(struct lu_env * , void * , char const * , ...) ; struct cl_lock_slice *ldvarg112 ; void *tmp___1 ; __u32 ldvarg115 ; struct cl_io *ldvarg118 ; void *tmp___2 ; struct cl_io *ldvarg116 ; void *tmp___3 ; int tmp___4 ; { tmp = ldv_init_zalloc(40UL); ldvarg119 = (struct cl_lock_descr *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg114 = tmp___0; tmp___1 = ldv_init_zalloc(40UL); ldvarg112 = (struct cl_lock_slice *)tmp___1; tmp___2 = ldv_init_zalloc(256UL); ldvarg118 = (struct cl_io *)tmp___2; tmp___3 = ldv_init_zalloc(256UL); ldvarg116 = (struct cl_io *)tmp___3; ldv_memset((void *)(& ldvarg117), 0, 4UL); ldv_memset((void *)(& ldvarg113), 0, 8UL); ldv_memset((void *)(& ldvarg115), 0, 4UL); tmp___4 = __VERIFIER_nondet_int(); switch (tmp___4) { case 0: ; if (ldv_state_variable_29 == 1) { osc_lock_use(osc_lock_ops_group0, osc_lock_ops_group1); ldv_state_variable_29 = 1; } else { } goto ldv_62759; case 1: ; if (ldv_state_variable_29 == 1) { osc_lock_wait(osc_lock_ops_group0, osc_lock_ops_group1); ldv_state_variable_29 = 1; } else { } goto ldv_62759; case 2: ; if (ldv_state_variable_29 == 1) { osc_lock_fits_into(osc_lock_ops_group0, osc_lock_ops_group1, (struct cl_lock_descr const *)ldvarg119, (struct cl_io const *)ldvarg118); ldv_state_variable_29 = 1; } else { } goto ldv_62759; case 3: ; if (ldv_state_variable_29 == 1) { osc_lock_weigh(osc_lock_ops_group0, osc_lock_ops_group1); ldv_state_variable_29 = 1; } else { } goto ldv_62759; case 4: ; if (ldv_state_variable_29 == 1) { osc_lock_cancel(osc_lock_ops_group0, osc_lock_ops_group1); ldv_state_variable_29 = 1; } else { } goto ldv_62759; case 5: ; if (ldv_state_variable_29 == 1) { osc_lock_state(osc_lock_ops_group0, osc_lock_ops_group1, ldvarg117); ldv_state_variable_29 = 1; } else { } goto ldv_62759; case 6: ; if (ldv_state_variable_29 == 1) { osc_lock_unuse(osc_lock_ops_group0, osc_lock_ops_group1); ldv_state_variable_29 = 1; } else { } goto ldv_62759; case 7: ; if (ldv_state_variable_29 == 1) { osc_lock_enqueue(osc_lock_ops_group0, osc_lock_ops_group1, ldvarg116, ldvarg115); ldv_state_variable_29 = 1; } else { } goto ldv_62759; case 8: ; if (ldv_state_variable_29 == 1) { osc_lock_print(osc_lock_ops_group0, ldvarg114, (int (*)(struct lu_env const * , void * , char const * , ...))ldvarg113, osc_lock_ops_group1); ldv_state_variable_29 = 1; } else { } goto ldv_62759; case 9: ; if (ldv_state_variable_29 == 1) { osc_lock_fini(osc_lock_ops_group0, ldvarg112); ldv_state_variable_29 = 1; } else { } goto ldv_62759; case 10: ; if (ldv_state_variable_29 == 1) { osc_lock_delete(osc_lock_ops_group0, osc_lock_ops_group1); ldv_state_variable_29 = 1; } else { } goto ldv_62759; default: ldv_stop(); } ldv_62759: ; return; } } int ldv_pskb_expand_head_179(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_181(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv_skb_copy_183(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_184(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_185(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_186(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } int ldv_pskb_expand_head_187(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } int ldv_pskb_expand_head_188(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_189(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } void *ldv_kmem_cache_alloc_191(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(0UL); // no call to kmem_cache_create for osc_lock_kmem return (tmp); } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static bool IS_ERR(void const *ptr ) ; extern void __init_waitqueue_head(wait_queue_head_t * , char const * , struct lock_class_key * ) ; __inline static void init_completion(struct completion *x ) { struct lock_class_key __key ; { x->done = 0U; __init_waitqueue_head(& x->wait, "&x->wait", & __key); return; } } extern void wait_for_completion(struct completion * ) ; extern void complete(struct completion * ) ; extern struct timespec current_kernel_time(void) ; void *ldv_kmem_cache_alloc_229(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; __inline static int PageLocked(struct page const *page ) { int tmp ; { tmp = constant_test_bit(0L, (unsigned long const volatile *)(& page->flags)); return (tmp); } } struct sk_buff *ldv_skb_clone_219(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_227(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_221(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_217(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_225(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_226(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_222(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_223(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_224(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static void *__container_of___4(void *ptr , unsigned long shift ) { bool tmp ; long tmp___0 ; { tmp = IS_ERR((void const *)ptr); tmp___0 = ldv__builtin_expect((long )((int )tmp || (unsigned long )ptr == (unsigned long )((void *)0)), 0L); if (tmp___0 != 0L) { return (ptr); } else { } return (ptr + - shift); } } __inline static void ostid_set_seq(struct ost_id *oi , __u64 seq ) { int tmp ; int tmp___0 ; { tmp = fid_seq_is_mdt0(seq); if (tmp != 0) { oi->__annonCompField108.oi.oi_seq = seq; } else { tmp___0 = fid_seq_is_default(seq); if (tmp___0 != 0) { oi->__annonCompField108.oi.oi_seq = seq; } else { oi->__annonCompField108.oi_fid.f_seq = seq; if (oi->__annonCompField108.oi_fid.f_oid == 0U && oi->__annonCompField108.oi_fid.f_ver == 0U) { oi->__annonCompField108.oi_fid.f_oid = 1U; } else { } } } return; } } __inline static void ostid_set_id(struct ost_id *oi , __u64 oid ) { struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; __u64 tmp ; __u64 tmp___0 ; int tmp___1 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; __u64 tmp___2 ; __u64 tmp___3 ; int tmp___4 ; __u64 tmp___5 ; int tmp___6 ; { tmp___5 = ostid_seq((struct ost_id const *)oi); tmp___6 = fid_seq_is_mdt0(tmp___5); if (tmp___6 != 0) { if (oid > 281474976710655ULL) { tmp___1 = cfs_cdebug_show(131072U, 8U); if (tmp___1 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/../lustre/lustre_idl.h"; msgdata.msg_fn = "ostid_set_id"; msgdata.msg_line = 630; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; tmp = ostid_id((struct ost_id const *)oi); tmp___0 = ostid_seq((struct ost_id const *)oi); libcfs_debug_msg(& msgdata, "Bad %llu to set %#llx:%llu\n", oid, tmp___0, tmp); } else { } return; } else { } oi->__annonCompField108.oi.oi_id = oid; } else { if (oid > 4294967296ULL) { tmp___4 = cfs_cdebug_show(131072U, 8U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/../lustre/lustre_idl.h"; msgdata___0.msg_fn = "ostid_set_id"; msgdata___0.msg_line = 637; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___2 = ostid_id((struct ost_id const *)oi); tmp___3 = ostid_seq((struct ost_id const *)oi); libcfs_debug_msg(& msgdata___0, "Bad %llu to set %#llx:%llu\n", oid, tmp___3, tmp___2); } else { } return; } else { } oi->__annonCompField108.oi_fid.f_oid = (__u32 )oid; } return; } } extern void obdo_set_parent_fid(struct obdo * , struct lu_fid const * ) ; __inline static struct cl_object_header *luh2coh___2(struct lu_object_header const *h ) { void *tmp ; { tmp = __container_of___4((void *)h, 0UL); return ((struct cl_object_header *)tmp); } } __inline static struct cl_object_header *cl_object_header___2(struct cl_object const *obj ) { struct cl_object_header *tmp ; { tmp = luh2coh___2((struct lu_object_header const *)obj->co_lu.lo_header); return (tmp); } } extern void cl_io_slice_add(struct cl_io * , struct cl_io_slice * , struct cl_object * , struct cl_io_operations const * ) ; extern void cl_req_slice_add(struct cl_req * , struct cl_req_slice * , struct cl_device * , struct cl_req_operations const * ) ; extern int cl_object_attr_get(struct lu_env const * , struct cl_object * , struct cl_attr * ) ; extern int cl_page_gang_lookup(struct lu_env const * , struct cl_object * , struct cl_io * , unsigned long , unsigned long , int (*)(struct lu_env const * , struct cl_io * , struct cl_page * , void * ) , void * ) ; extern struct page *cl_page_vmpage(struct lu_env const * , struct cl_page * ) ; extern struct cl_page_slice const *cl_page_at(struct cl_page const * , struct lu_device_type const * ) ; extern int cl_page_prep(struct lu_env const * , struct cl_io * , struct cl_page * , enum cl_req_type ) ; extern void cl_page_clip(struct lu_env const * , struct cl_page * , int , int ) ; extern void cl_page_export(struct lu_env const * , struct cl_page * , int ) ; __inline static struct cl_lock *cl_lock_at_page___0(struct lu_env const *env , struct cl_object *obj , struct cl_page *page , struct cl_lock *except , int pending , int canceld ) { struct libcfs_debug_msg_data __msg_data ; struct cl_object_header *tmp ; struct cl_object_header *tmp___0 ; long tmp___1 ; struct cl_lock *tmp___2 ; { tmp = cl_object_header___2((struct cl_object const *)obj); tmp___0 = cl_object_header___2((struct cl_object const *)page->cp_obj); tmp___1 = ldv__builtin_expect((unsigned long )tmp != (unsigned long )tmp___0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/cl_object.h"; __msg_data.msg_fn = "cl_lock_at_page"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2920; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cl_object_header(obj) == cl_object_header(page->cp_obj)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = cl_lock_at_pgoff(env, obj, page->cp_index, except, pending, canceld); return (tmp___2); } } extern void cl_page_list_move(struct cl_page_list * , struct cl_page_list * , struct cl_page * ) ; int osc_queue_sync_pages(struct lu_env const *env , struct osc_object *obj , struct list_head *list , int cmd , int brw_flags ) ; int osc_cache_truncate_start(struct lu_env const *env , struct osc_io *oio , struct osc_object *obj , __u64 size ) ; void osc_cache_truncate_end(struct lu_env const *env , struct osc_io *oio , struct osc_object *obj ) ; int osc_cache_wait_range(struct lu_env const *env , struct osc_object *obj , unsigned long start , unsigned long end ) ; __inline static struct osc_device *lu2osc_dev___3(struct lu_device const *d ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; void *tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )((struct lu_device_type *)d->ld_type) != (unsigned long )(& osc_device_type), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "lu2osc_dev"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 501; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"d->ld_type == &osc_device_type"); lbug_with_loc(& __msg_data); } else { } tmp___0 = __container_of___4((void *)d, 0UL); return ((struct osc_device *)tmp___0); } } __inline static struct obd_export *osc_export___1(struct osc_object const *obj ) { struct osc_device *tmp ; { tmp = lu2osc_dev___3((struct lu_device const *)obj->oo_cl.co_lu.lo_dev); return (tmp->od_exp); } } __inline static struct client_obd *osc_cli___0(struct osc_object const *obj ) { struct obd_export *tmp ; { tmp = osc_export___1(obj); return (& (tmp->exp_obd)->u.cli); } } __inline static struct osc_object *cl2osc___2(struct cl_object const *obj ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; { tmp = osc_is_object(& obj->co_lu); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "cl2osc"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 517; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_is_object(&obj->co_lu)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = __container_of___4((void *)obj, 0UL); return ((struct osc_object *)tmp___1); } } __inline static struct osc_page *cl2osc_page___0(struct cl_page_slice const *slice ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; { tmp = osc_is_object((struct lu_object const *)(& (slice->cpl_obj)->co_lu)); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "cl2osc_page"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 550; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_is_object(&slice->cpl_obj->co_lu)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = __container_of___4((void *)slice, 0UL); return ((struct osc_page *)tmp___1); } } __inline static struct osc_lock *cl2osc_lock___1(struct cl_lock_slice const *slice ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; { tmp = osc_is_object((struct lu_object const *)(& (slice->cls_obj)->co_lu)); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "cl2osc_lock"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 571; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_is_object(&slice->cls_obj->co_lu)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = __container_of___4((void *)slice, 0UL); return ((struct osc_lock *)tmp___1); } } __inline static struct osc_lock *osc_lock_at___1(struct cl_lock const *lock ) { struct cl_lock_slice const *tmp ; struct osc_lock *tmp___0 ; { tmp = cl_lock_at(lock, (struct lu_device_type const *)(& osc_device_type)); tmp___0 = cl2osc_lock___1(tmp); return (tmp___0); } } static struct osc_req *cl2osc_req(struct cl_req_slice const *slice ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; void *tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )(slice->crs_dev)->cd_lu_dev.ld_type != (unsigned long )(& osc_device_type), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data.msg_fn = "cl2osc_req"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 58; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"slice->crs_dev->cd_lu_dev.ld_type == &osc_device_type"); lbug_with_loc(& __msg_data); } else { } tmp___0 = __container_of___4((void *)slice, 0UL); return ((struct osc_req *)tmp___0); } } static struct osc_io *cl2osc_io(struct lu_env const *env , struct cl_io_slice const *slice ) { struct osc_io *oio ; void *tmp ; struct libcfs_debug_msg_data __msg_data ; struct osc_io *tmp___0 ; long tmp___1 ; { tmp = __container_of___4((void *)slice, 0UL); oio = (struct osc_io *)tmp; tmp___0 = osc_env_io(env); tmp___1 = ldv__builtin_expect((unsigned long )tmp___0 != (unsigned long )oio, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data.msg_fn = "cl2osc_io"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 67; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"oio == osc_env_io(env)"); lbug_with_loc(& __msg_data); } else { } return (oio); } } static struct osc_page *osc_cl_page_osc(struct cl_page *page ) { struct cl_page_slice const *slice ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct osc_page *tmp___0 ; { slice = cl_page_at((struct cl_page const *)page, (struct lu_device_type const *)(& osc_device_type)); tmp = ldv__builtin_expect((unsigned long )slice == (unsigned long )((struct cl_page_slice const *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data.msg_fn = "osc_cl_page_osc"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 76; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"slice != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = cl2osc_page___0(slice); return (tmp___0); } } static void osc_io_fini(struct lu_env const *env , struct cl_io_slice const *io ) { { return; } } static int osc_io_submit(struct lu_env const *env , struct cl_io_slice const *ios , enum cl_req_type crt , struct cl_2queue *queue ) { struct cl_page *page ; struct cl_page *tmp ; struct client_obd *cli ; struct osc_object *osc ; struct osc_page *opg ; struct cl_io *io ; struct list_head list ; struct cl_page_list *qin ; struct cl_page_list *qout ; int queued ; int result ; int cmd ; int brw_flags ; int max_pages ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; struct osc_io *tmp___2 ; int tmp___3 ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct osc_async_page *oap ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___5 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___6 ; int tmp___7 ; int tmp___8 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___9 ; struct list_head const *__mptr___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___10 ; { cli = (struct client_obd *)0; osc = (struct osc_object *)0; list.next = & list; list.prev = & list; qin = & queue->c2_qin; qout = & queue->c2_qout; queued = 0; result = 0; tmp___0 = ldv__builtin_expect(qin->pl_nr == 0U, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data.msg_fn = "osc_io_submit"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 119; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"qin->pl_nr > 0"); lbug_with_loc(& __msg_data); } else { } tmp___1 = cfs_cdebug_show(32U, 8U); if (tmp___1 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; msgdata.msg_fn = "osc_io_submit"; msgdata.msg_line = 121; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "%d %d\n", qin->pl_nr, (unsigned int )crt); } else { } osc = cl2osc___2((struct cl_object const *)ios->cis_obj); cli = osc_cli___0((struct osc_object const *)osc); max_pages = (int )cli->cl_max_pages_per_rpc; cmd = (unsigned int )crt == 1U ? 2 : 1; tmp___2 = cl2osc_io(env, ios); tmp___3 = osc_io_srvlock(tmp___2); brw_flags = tmp___3 != 0 ? 512 : 0; __mptr = (struct list_head const *)qin->pl_pages.next; page = (struct cl_page *)__mptr + 0xffffffffffffffc0UL; __mptr___0 = (struct list_head const *)page->cp_batch.next; tmp = (struct cl_page *)__mptr___0 + 0xffffffffffffffc0UL; goto ldv_62314; ldv_62313: io = page->cp_owner; tmp___4 = ldv__builtin_expect((unsigned long )io == (unsigned long )((struct cl_io *)0), 0L); if (tmp___4 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data___0.msg_fn = "osc_io_submit"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 139; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"io != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } opg = osc_cl_page_osc(page); oap = & opg->ops_oap; tmp___5 = ldv__builtin_expect((unsigned long )oap->oap_obj != (unsigned long )osc, 0L); if (tmp___5 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data___1.msg_fn = "osc_io_submit"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 143; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"osc == oap->oap_obj"); lbug_with_loc(& __msg_data___1); } else { } tmp___7 = list_empty((struct list_head const *)(& oap->oap_pending_item)); if (tmp___7 == 0) { goto _L; } else { tmp___8 = list_empty((struct list_head const *)(& oap->oap_rpc_item)); if (tmp___8 == 0) { _L: /* CIL Label */ tmp___6 = cfs_cdebug_show(32U, 8U); if (tmp___6 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; msgdata___0.msg_fn = "osc_io_submit"; msgdata___0.msg_line = 148; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32; libcfs_debug_msg(& msgdata___0, "Busy oap %p page %p for submit.\n", oap, opg); } else { } result = -16; goto ldv_62310; } else { } } result = cl_page_prep(env, io, page, crt); if (result != 0) { tmp___9 = ldv__builtin_expect(result >= 0, 0L); if (tmp___9 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data___2.msg_fn = "osc_io_submit"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 155; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"result < 0"); lbug_with_loc(& __msg_data___2); } else { } if (result != -114) { goto ldv_62310; } else { } result = 0; goto ldv_62312; } else { } cl_page_list_move(qout, qin, page); oap->oap_async_flags = 3; oap->oap_async_flags = (enum async_flags )((unsigned int )oap->oap_async_flags | 4U); osc_page_submit(env, opg, crt, brw_flags); list_add_tail(& oap->oap_pending_item, & list); queued = queued + 1; if (queued == max_pages) { queued = 0; result = osc_queue_sync_pages(env, osc, & list, cmd, brw_flags); if (result < 0) { goto ldv_62310; } else { } } else { } ldv_62312: page = tmp; __mptr___1 = (struct list_head const *)tmp->cp_batch.next; tmp = (struct cl_page *)__mptr___1 + 0xffffffffffffffc0UL; ldv_62314: ; if ((unsigned long )(& page->cp_batch) != (unsigned long )(& qin->pl_pages)) { goto ldv_62313; } else { } ldv_62310: ; if (queued > 0) { result = osc_queue_sync_pages(env, osc, & list, cmd, brw_flags); } else { } tmp___10 = cfs_cdebug_show(64U, 8U); if (tmp___10 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; msgdata___1.msg_fn = "osc_io_submit"; msgdata___1.msg_line = 185; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 64; libcfs_debug_msg(& msgdata___1, "%d/%d %d\n", qin->pl_nr, qout->pl_nr, result); } else { } return (qout->pl_nr == 0U ? result : 0); } } static void osc_page_touch_at(struct lu_env const *env , struct cl_object *obj , unsigned long idx , unsigned int to ) { struct lov_oinfo *loi ; struct osc_object *tmp ; struct cl_attr *attr ; struct osc_thread_info *tmp___0 ; int valid ; __u64 kms ; loff_t tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; { tmp = cl2osc___2((struct cl_object const *)obj); loi = tmp->oo_oinfo; tmp___0 = osc_env_info(env); attr = & tmp___0->oti_attr; tmp___1 = cl_offset((struct cl_object const *)obj, idx); kms = (__u64 )(tmp___1 + (loff_t )to); cl_object_attr_lock(obj); tmp___2 = cfs_cdebug_show(2U, 8U); if (tmp___2 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; msgdata.msg_fn = "osc_page_touch_at"; msgdata.msg_line = 210; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; libcfs_debug_msg(& msgdata, "stripe KMS %sincreasing %llu->%llu %llu\n", loi->loi_kms < kms ? (char *)"" : (char *)"not ", loi->loi_kms, kms, loi->loi_lvb.lvb_size); } else { } valid = 0; if (loi->loi_kms < kms) { attr->cat_kms = (loff_t )kms; valid = valid | 2; } else { } if (loi->loi_lvb.lvb_size < kms) { attr->cat_size = (loff_t )kms; valid = valid | 1; } else { } cl_object_attr_set(env, obj, (struct cl_attr const *)attr, (unsigned int )valid); cl_object_attr_unlock(obj); return; } } static void osc_page_touch(struct lu_env const *env , struct osc_page *opage , unsigned int to ) { struct cl_page *page ; struct cl_object *obj ; { page = opage->ops_cl.cpl_page; obj = opage->ops_cl.cpl_obj; osc_page_touch_at(env, obj, page->cp_index, to); return; } } static int osc_io_prepare_write(struct lu_env const *env , struct cl_io_slice const *ios , struct cl_page_slice const *slice , unsigned int from , unsigned int to ) { struct osc_device *dev ; struct osc_device *tmp ; struct obd_import *imp ; struct obd_import *tmp___0 ; struct osc_io *oio ; struct osc_io *tmp___1 ; int result ; { tmp = lu2osc_dev___3((struct lu_device const *)(slice->cpl_obj)->co_lu.lo_dev); dev = tmp; tmp___0 = class_exp2cliimp(dev->od_exp); imp = tmp___0; tmp___1 = cl2osc_io(env, ios); oio = tmp___1; result = 0; if ((unsigned long )imp == (unsigned long )((struct obd_import *)0) || (unsigned int )*((unsigned char *)imp + 984UL) != 0U) { result = -5; } else { } if (result == 0 && oio->oi_lockless != 0) { cl_page_export(env, slice->cpl_page, 1); } else { } return (result); } } static int osc_io_commit_write(struct lu_env const *env , struct cl_io_slice const *ios , struct cl_page_slice const *slice , unsigned int from , unsigned int to ) { struct osc_io *oio ; struct osc_io *tmp ; struct osc_page *opg ; struct osc_page *tmp___0 ; struct osc_object *obj ; struct osc_object *tmp___1 ; struct osc_async_page *oap ; struct libcfs_debug_msg_data __msg_data ; long tmp___2 ; struct osc_page *tmp___3 ; struct obd_export *tmp___4 ; int tmp___5 ; bool tmp___6 ; { tmp = cl2osc_io(env, ios); oio = tmp; tmp___0 = cl2osc_page___0(slice); opg = tmp___0; tmp___1 = cl2osc___2((struct cl_object const *)opg->ops_cl.cpl_obj); obj = tmp___1; oap = & opg->ops_oap; tmp___2 = ldv__builtin_expect(to == 0U, 0L); if (tmp___2 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data.msg_fn = "osc_io_commit_write"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 292; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"to > 0"); lbug_with_loc(& __msg_data); } else { } tmp___3 = cl2osc_page___0(slice); osc_page_touch(env, tmp___3, to); tmp___4 = osc_export___1((struct osc_object const *)obj); tmp___5 = client_is_remote(tmp___4); if (tmp___5 == 0) { tmp___6 = capable(24); if ((int )tmp___6) { oap->oap_brw_page.flag = oap->oap_brw_page.flag | 256U; } else { } } else { } if (oio->oi_lockless != 0) { cl_page_clip(env, slice->cpl_page, (int )from, (int )to); } else { } return (0); } } static int osc_io_fault_start(struct lu_env const *env , struct cl_io_slice const *ios ) { struct cl_io *io ; struct cl_fault_io *fio ; struct libcfs_debug_msg_data msgdata ; int tmp ; { io = ios->cis_io; fio = & io->u.ci_fault; tmp = cfs_cdebug_show(64U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; msgdata.msg_fn = "osc_io_fault_start"; msgdata.msg_line = 320; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "%lu %d %d\n", fio->ft_index, fio->ft_writable, fio->ft_nob); } else { } if (fio->ft_writable != 0) { osc_page_touch_at(env, ios->cis_obj, fio->ft_index, (unsigned int )fio->ft_nob); } else { } return (0); } } static int osc_async_upcall(void *a , int rc ) { struct osc_async_cbargs *args ; { args = (struct osc_async_cbargs *)a; args->opc_rc = rc; complete(& args->opc_sync); return (0); } } static int trunc_check_cb(struct lu_env const *env , struct cl_io *io , struct cl_page *page , void *cbdata ) { struct cl_page_slice const *slice ; struct osc_page *ops ; struct osc_async_page *oap ; __u64 start ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; struct task_struct *tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; struct page *vmpage ; struct page *tmp___4 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; int tmp___6 ; { start = *((__u64 *)cbdata); slice = cl_page_at((struct cl_page const *)page, (struct lu_device_type const *)(& osc_device_type)); tmp = ldv__builtin_expect((unsigned long )slice == (unsigned long )((struct cl_page_slice const *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data.msg_fn = "trunc_check_cb"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 353; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"slice != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } ops = cl2osc_page___0(slice); oap = & ops->ops_oap; if (((int )oap->oap_cmd & 2) != 0) { tmp___3 = list_empty((struct list_head const *)(& oap->oap_pending_item)); if (tmp___3 == 0) { msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; msgdata.msg_fn = "trunc_check_cb"; msgdata.msg_subsys = 8; msgdata.msg_line = 360; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___2 = cfs_cdebug_show(131072U, 8U); if (tmp___2 != 0) { cl_page_print(env, (void *)(& msgdata), & lu_cdebug_printer, (struct cl_page const *)page); tmp___1 = cfs_cdebug_show(131072U, 8U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; msgdata___0.msg_fn = "trunc_check_cb"; msgdata___0.msg_line = 360; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; tmp___0 = get_current(); libcfs_debug_msg(& msgdata___0, "exists %llu/%s.\n", start, (char *)(& tmp___0->comm)); } else { } } else { } } else { } } else { } tmp___4 = cl_page_vmpage(env, page); vmpage = tmp___4; tmp___6 = PageLocked((struct page const *)vmpage); if (tmp___6 != 0) { tmp___5 = cfs_cdebug_show(32U, 8U); if (tmp___5 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; msgdata___1.msg_fn = "trunc_check_cb"; msgdata___1.msg_line = 368; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 32; libcfs_debug_msg(& msgdata___1, "page %p index %lu locked for %d.\n", ops, page->cp_index, (int )oap->oap_cmd & 3); } else { } } else { } return (0); } } static void osc_trunc_check(struct lu_env const *env , struct cl_io *io , struct osc_io *oio , __u64 size ) { struct cl_object *clob ; int partial ; unsigned long start ; loff_t tmp ; { clob = oio->oi_cl.cis_obj; start = cl_index((struct cl_object const *)clob, (loff_t )size); tmp = cl_offset((struct cl_object const *)clob, start); partial = (unsigned long long )tmp < size; cl_page_gang_lookup(env, clob, io, (unsigned long )partial + start, 0xffffffffffffffffUL, & trunc_check_cb, (void *)(& size)); return; } } static int osc_io_setattr_start(struct lu_env const *env , struct cl_io_slice const *slice ) { struct cl_io *io ; struct osc_io *oio ; struct osc_io *tmp ; struct cl_object *obj ; struct lov_oinfo *loi ; struct osc_object *tmp___0 ; struct cl_attr *attr ; struct osc_thread_info *tmp___1 ; struct obdo *oa ; struct osc_async_cbargs *cbargs ; __u64 size ; unsigned int ia_valid ; int result ; struct obd_info oinfo ; struct osc_object *tmp___2 ; int tmp___3 ; struct ost_lvb *lvb ; unsigned int cl_valid ; loff_t tmp___4 ; struct libcfs_debug_msg_data __msg_data ; long tmp___5 ; struct osc_object *tmp___6 ; struct obd_export *tmp___7 ; struct osc_object *tmp___8 ; struct obd_export *tmp___9 ; { io = slice->cis_io; tmp = cl2osc_io(env, slice); oio = tmp; obj = slice->cis_obj; tmp___0 = cl2osc___2((struct cl_object const *)obj); loi = tmp___0->oo_oinfo; tmp___1 = osc_env_info(env); attr = & tmp___1->oti_attr; oa = & oio->oi_oa; cbargs = & oio->oi_cbarg; size = io->u.ci_setattr.sa_attr.lvb_size; ia_valid = io->u.ci_setattr.sa_valid; result = 0; oinfo.oi_policy.l_extent.start = 0ULL; oinfo.oi_policy.l_extent.end = 0ULL; oinfo.oi_policy.l_extent.gid = 0ULL; oinfo.oi_flags = 0ULL; oinfo.oi_lockh = 0; oinfo.oi_md = 0; oinfo.oi_oa = 0; oinfo.oi_osfs = 0; oinfo.oi_cb_up = 0; oinfo.oi_capa = 0; oinfo.oi_jobid = 0; tmp___3 = cl_io_is_trunc((struct cl_io const *)io); if (tmp___3 != 0) { tmp___2 = cl2osc___2((struct cl_object const *)obj); result = osc_cache_truncate_start(env, oio, tmp___2, size); } else { } if (result == 0 && oio->oi_lockless == 0) { cl_object_attr_lock(obj); result = cl_object_attr_get(env, obj, attr); if (result == 0) { lvb = & io->u.ci_setattr.sa_attr; cl_valid = 0U; if ((ia_valid & 8U) != 0U) { tmp___4 = (loff_t )size; attr->cat_kms = tmp___4; attr->cat_size = tmp___4; cl_valid = 3U; } else { } if ((ia_valid & 256U) != 0U) { attr->cat_mtime = (time_t )lvb->lvb_mtime; cl_valid = cl_valid | 8U; } else { } if ((ia_valid & 128U) != 0U) { attr->cat_atime = (time_t )lvb->lvb_atime; cl_valid = cl_valid | 16U; } else { } if ((ia_valid & 268435456U) != 0U) { attr->cat_ctime = (time_t )lvb->lvb_ctime; cl_valid = cl_valid | 32U; } else { } result = cl_object_attr_set(env, obj, (struct cl_attr const *)attr, cl_valid); } else { } cl_object_attr_unlock(obj); } else { } memset((void *)oa, 0, 208UL); if (result == 0) { oa->o_oi = loi->loi_oi; oa->o_mtime = (__s64 )attr->cat_mtime; oa->o_atime = (__s64 )attr->cat_atime; oa->o_ctime = (__s64 )attr->cat_ctime; oa->o_valid = 16777231ULL; if ((ia_valid & 8U) != 0U) { oa->o_size = size; oa->o_blocks = 0xffffffffffffffffULL; oa->o_valid = oa->o_valid | 48ULL; if (oio->oi_lockless != 0) { oa->o_flags = 2048U; oa->o_valid = oa->o_valid | 2048ULL; } else { } } else { tmp___5 = ldv__builtin_expect(oio->oi_lockless != 0, 0L); if (tmp___5 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data.msg_fn = "osc_io_setattr_start"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 456; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"oio->oi_lockless == 0"); lbug_with_loc(& __msg_data); } else { } } oinfo.oi_oa = oa; oinfo.oi_capa = (void *)io->u.ci_setattr.sa_capa; init_completion(& cbargs->opc_sync); if ((ia_valid & 8U) != 0U) { tmp___6 = cl2osc___2((struct cl_object const *)obj); tmp___7 = osc_export___1((struct osc_object const *)tmp___6); result = osc_punch_base(tmp___7, & oinfo, & osc_async_upcall, (void *)cbargs, PTLRPCD_SET); } else { tmp___8 = cl2osc___2((struct cl_object const *)obj); tmp___9 = osc_export___1((struct osc_object const *)tmp___8); result = osc_setattr_async_base(tmp___9, & oinfo, (struct obd_trans_info *)0, & osc_async_upcall, (void *)cbargs, PTLRPCD_SET); } cbargs->opc_rpc_sent = result == 0; } else { } return (result); } } static void osc_io_setattr_end(struct lu_env const *env , struct cl_io_slice const *slice ) { struct cl_io *io ; struct osc_io *oio ; struct osc_io *tmp ; struct cl_object *obj ; struct osc_async_cbargs *cbargs ; int result ; int tmp___0 ; struct osc_device *osd ; struct osc_device *tmp___1 ; struct libcfs_debug_msg_data __msg_data ; int tmp___2 ; long tmp___3 ; __u64 size ; struct osc_object *tmp___4 ; int tmp___5 ; { io = slice->cis_io; tmp = cl2osc_io(env, slice); oio = tmp; obj = slice->cis_obj; cbargs = & oio->oi_cbarg; result = 0; if ((int )cbargs->opc_rpc_sent) { wait_for_completion(& cbargs->opc_sync); tmp___0 = cbargs->opc_rc; io->ci_result = tmp___0; result = tmp___0; } else { } if (result == 0) { if (oio->oi_lockless != 0) { tmp___1 = lu2osc_dev___3((struct lu_device const *)obj->co_lu.lo_dev); osd = tmp___1; tmp___2 = cl_io_is_trunc((struct cl_io const *)io); tmp___3 = ldv__builtin_expect(tmp___2 == 0, 0L); if (tmp___3 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data.msg_fn = "osc_io_setattr_end"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 495; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cl_io_is_trunc(io)"); lbug_with_loc(& __msg_data); } else { } osd->od_stats.os_lockless_truncates = osd->od_stats.os_lockless_truncates + 1ULL; } else { } } else { } tmp___5 = cl_io_is_trunc((struct cl_io const *)io); if (tmp___5 != 0) { size = io->u.ci_setattr.sa_attr.lvb_size; osc_trunc_check(env, io, oio, size); if ((unsigned long )oio->oi_trunc != (unsigned long )((struct osc_extent *)0)) { tmp___4 = cl2osc___2((struct cl_object const *)obj); osc_cache_truncate_end(env, oio, tmp___4); oio->oi_trunc = (struct osc_extent *)0; } else { } } else { } return; } } static int osc_io_read_start(struct lu_env const *env , struct cl_io_slice const *slice ) { struct cl_object *obj ; struct cl_attr *attr ; struct osc_thread_info *tmp ; int rc ; struct timespec tmp___0 ; { obj = slice->cis_obj; tmp = osc_env_info(env); attr = & tmp->oti_attr; rc = 0; if ((unsigned int )*((unsigned char *)slice->cis_io + 244UL) == 0U) { cl_object_attr_lock(obj); tmp___0 = current_kernel_time(); attr->cat_atime = tmp___0.tv_sec; rc = cl_object_attr_set(env, obj, (struct cl_attr const *)attr, 16U); cl_object_attr_unlock(obj); } else { } return (rc); } } static int osc_io_write_start(struct lu_env const *env , struct cl_io_slice const *slice ) { struct cl_object *obj ; struct cl_attr *attr ; struct osc_thread_info *tmp ; int rc ; time_t tmp___0 ; struct timespec tmp___1 ; { obj = slice->cis_obj; tmp = osc_env_info(env); attr = & tmp->oti_attr; rc = 0; cfs_fail_timeout_set(1042U, 0U, 1000, 0); cl_object_attr_lock(obj); tmp___1 = current_kernel_time(); tmp___0 = tmp___1.tv_sec; attr->cat_ctime = tmp___0; attr->cat_mtime = tmp___0; rc = cl_object_attr_set(env, obj, (struct cl_attr const *)attr, 40U); cl_object_attr_unlock(obj); return (rc); } } static int osc_fsync_ost(struct lu_env const *env , struct osc_object *obj , struct cl_fsync_io *fio ) { struct osc_io *oio ; struct osc_io *tmp ; struct obdo *oa ; struct obd_info *oinfo ; struct lov_oinfo *loi ; struct osc_async_cbargs *cbargs ; int rc ; struct obd_export *tmp___0 ; { tmp = osc_env_io(env); oio = tmp; oa = & oio->oi_oa; oinfo = & oio->oi_info; loi = obj->oo_oinfo; cbargs = & oio->oi_cbarg; rc = 0; memset((void *)oa, 0, 208UL); oa->o_oi = loi->loi_oi; oa->o_valid = 16777217ULL; oa->o_size = (__u64 )fio->fi_start; oa->o_blocks = (__u64 )fio->fi_end; oa->o_valid = oa->o_valid | 48ULL; obdo_set_parent_fid(oa, (struct lu_fid const *)fio->fi_fid); memset((void *)oinfo, 0, 112UL); oinfo->oi_oa = oa; oinfo->oi_capa = (void *)fio->fi_capa; init_completion(& cbargs->opc_sync); tmp___0 = osc_export___1((struct osc_object const *)obj); rc = osc_sync_base(tmp___0, oinfo, & osc_async_upcall, (void *)cbargs, PTLRPCD_SET); return (rc); } } static int osc_io_fsync_start(struct lu_env const *env , struct cl_io_slice const *slice ) { struct cl_io *io ; struct cl_fsync_io *fio ; struct cl_object *obj ; struct osc_object *osc ; struct osc_object *tmp ; unsigned long start ; unsigned long tmp___0 ; unsigned long end ; unsigned long tmp___1 ; int result ; int rc ; { io = slice->cis_io; fio = & io->u.ci_fsync; obj = slice->cis_obj; tmp = cl2osc___2((struct cl_object const *)obj); osc = tmp; tmp___0 = cl_index((struct cl_object const *)obj, fio->fi_start); start = tmp___0; tmp___1 = cl_index((struct cl_object const *)obj, fio->fi_end); end = tmp___1; result = 0; if (fio->fi_end == -1LL) { end = 0xffffffffffffffffUL; } else { } result = osc_cache_writeback_range(env, osc, start, end, 0, (unsigned int )fio->fi_mode == 2U); if (result > 0) { fio->fi_nr_written = fio->fi_nr_written + (unsigned int )result; result = 0; } else { } if ((unsigned int )fio->fi_mode == 3U) { rc = osc_cache_wait_range(env, osc, start, end); if (result == 0) { result = rc; } else { } rc = osc_fsync_ost(env, osc, fio); if (result == 0) { result = rc; } else { } } else { } return (result); } } static void osc_io_fsync_end(struct lu_env const *env , struct cl_io_slice const *slice ) { struct cl_fsync_io *fio ; struct cl_object *obj ; unsigned long start ; unsigned long tmp ; unsigned long end ; unsigned long tmp___0 ; int result ; struct osc_object *tmp___1 ; struct osc_io *oio ; struct osc_io *tmp___2 ; struct osc_async_cbargs *cbargs ; { fio = & (slice->cis_io)->u.ci_fsync; obj = slice->cis_obj; tmp = cl_index((struct cl_object const *)obj, fio->fi_start); start = tmp; tmp___0 = cl_index((struct cl_object const *)obj, fio->fi_end); end = tmp___0; result = 0; if ((unsigned int )fio->fi_mode == 1U) { tmp___1 = cl2osc___2((struct cl_object const *)obj); result = osc_cache_wait_range(env, tmp___1, start, end); } else if ((unsigned int )fio->fi_mode == 3U) { tmp___2 = cl2osc_io(env, slice); oio = tmp___2; cbargs = & oio->oi_cbarg; wait_for_completion(& cbargs->opc_sync); if (result == 0) { result = cbargs->opc_rc; } else { } } else { } (slice->cis_io)->ci_result = result; return; } } static void osc_io_end(struct lu_env const *env , struct cl_io_slice const *slice ) { struct osc_io *oio ; struct osc_io *tmp ; { tmp = cl2osc_io(env, slice); oio = tmp; if ((unsigned long )oio->oi_active != (unsigned long )((struct osc_extent *)0)) { osc_extent_release(env, oio->oi_active); oio->oi_active = (struct osc_extent *)0; } else { } return; } } static struct cl_io_operations const osc_io_ops = {{{0, 0, 0, 0, & osc_io_read_start, 0, 0, & osc_io_fini}, {0, 0, 0, 0, & osc_io_write_start, & osc_io_end, 0, & osc_io_fini}, {0, 0, 0, 0, & osc_io_setattr_start, & osc_io_setattr_end, 0, 0}, {0, 0, 0, 0, & osc_io_fault_start, & osc_io_end, 0, & osc_io_fini}, {0, 0, 0, 0, & osc_io_fsync_start, & osc_io_fsync_end, 0, & osc_io_fini}, {0, 0, 0, 0, 0, 0, 0, & osc_io_fini}}, {{& osc_io_submit}, {& osc_io_submit}}, 0, & osc_io_prepare_write, & osc_io_commit_write, 0}; static int osc_req_prep(struct lu_env const *env , struct cl_req_slice const *slice ) { { return (0); } } static void osc_req_completion(struct lu_env const *env , struct cl_req_slice const *slice , int ioret ) { struct osc_req *or ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { or = cl2osc_req(slice); tmp = ldv__builtin_expect((unsigned long )or == (unsigned long )((struct osc_req *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data.msg_fn = "osc_req_completion"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 706; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(or)"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 40L); tmp___0 = cfs_cdebug_show(16U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; msgdata.msg_fn = "osc_req_completion"; msgdata.msg_line = 706; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(or)\': %d at %p.\n", 40, or); } else { } memset((void *)or, 90, 40UL); kmem_cache_free(osc_req_kmem, (void *)or); or = (struct osc_req *)3735928559L; return; } } static void osc_req_attr_set(struct lu_env const *env , struct cl_req_slice const *slice , struct cl_object const *obj , struct cl_req_attr *attr , u64 flags ) { struct lov_oinfo *oinfo ; struct cl_req *clerq ; struct cl_page *apage ; struct cl_lock *lock ; struct osc_lock *olck ; struct osc_page *opg ; struct obdo *oa ; struct ost_lvb *lvb ; struct osc_object *tmp ; __u64 tmp___0 ; __u64 tmp___1 ; struct libcfs_debug_msg_data __msg_data ; int tmp___2 ; long tmp___3 ; struct list_head const *__mptr ; struct cl_object_header *head ; struct cl_lock *scan ; struct list_head const *__mptr___0 ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___4 ; int tmp___5 ; struct list_head const *__mptr___1 ; struct libcfs_debug_msg_data msgdata___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___6 ; int tmp___7 ; struct libcfs_debug_msg_data msgdata___3 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___8 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___9 ; { tmp = cl2osc___2(obj); oinfo = tmp->oo_oinfo; lvb = & oinfo->loi_lvb; oa = attr->cra_oa; if ((flags & 4ULL) != 0ULL) { oa->o_mtime = lvb->lvb_mtime; oa->o_valid = oa->o_valid | 4ULL; } else { } if ((flags & 2ULL) != 0ULL) { oa->o_atime = lvb->lvb_atime; oa->o_valid = oa->o_valid | 2ULL; } else { } if ((flags & 8ULL) != 0ULL) { oa->o_ctime = lvb->lvb_ctime; oa->o_valid = oa->o_valid | 8ULL; } else { } if ((flags & 16777216ULL) != 0ULL) { tmp___0 = ostid_seq((struct ost_id const *)(& oinfo->loi_oi)); ostid_set_seq(& oa->o_oi, tmp___0); oa->o_valid = oa->o_valid | 16777216ULL; } else { } if ((int )flags & 1) { tmp___1 = ostid_id((struct ost_id const *)(& oinfo->loi_oi)); ostid_set_id(& oa->o_oi, tmp___1); oa->o_valid = oa->o_valid | 1ULL; } else { } if ((flags & 524288ULL) != 0ULL) { clerq = slice->crs_req; tmp___2 = list_empty((struct list_head const *)(& clerq->crq_pages)); tmp___3 = ldv__builtin_expect(tmp___2 != 0, 0L); if (tmp___3 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data.msg_fn = "osc_req_attr_set"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 754; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!list_empty(&clerq->crq_pages)"); lbug_with_loc(& __msg_data); } else { } __mptr = (struct list_head const *)clerq->crq_pages.next; apage = (struct cl_page *)__mptr + 0xffffffffffffff10UL; opg = osc_cl_page_osc(apage); apage = opg->ops_cl.cpl_page; lock = cl_lock_at_page___0(env, apage->cp_obj, apage, (struct cl_lock *)0, 1, 1); if ((unsigned long )lock == (unsigned long )((struct cl_lock *)0)) { head = cl_object_header___2((struct cl_object const *)apage->cp_obj); __mptr___0 = (struct list_head const *)head->coh_locks.next; scan = (struct cl_lock *)__mptr___0 + 0xffffffffffffffe8UL; goto ldv_62524; ldv_62523: msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; msgdata.msg_fn = "osc_req_attr_set"; msgdata.msg_subsys = 8; msgdata.msg_line = 768; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___5 = cfs_cdebug_show(131072U, 8U); if (tmp___5 != 0) { cl_lock_print(env, (void *)(& msgdata), & lu_cdebug_printer, (struct cl_lock const *)scan); tmp___4 = cfs_cdebug_show(131072U, 8U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; msgdata___0.msg_fn = "osc_req_attr_set"; msgdata___0.msg_line = 768; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "no cover page!\n"); } else { } } else { } __mptr___1 = (struct list_head const *)scan->cll_linkage.next; scan = (struct cl_lock *)__mptr___1 + 0xffffffffffffffe8UL; ldv_62524: ; if ((unsigned long )(& scan->cll_linkage) != (unsigned long )(& head->coh_locks)) { goto ldv_62523; } else { } msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; msgdata___1.msg_fn = "osc_req_attr_set"; msgdata___1.msg_subsys = 8; msgdata___1.msg_line = 770; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 131072; tmp___7 = cfs_cdebug_show(131072U, 8U); if (tmp___7 != 0) { cl_page_print(env, (void *)(& msgdata___1), & lu_cdebug_printer, (struct cl_page const *)apage); tmp___6 = cfs_cdebug_show(131072U, 8U); if (tmp___6 != 0) { msgdata___2.msg_subsys = 8; msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; msgdata___2.msg_fn = "osc_req_attr_set"; msgdata___2.msg_line = 770; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "dump uncover page!\n"); } else { } } else { } dump_stack(); msgdata___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; msgdata___3.msg_fn = "osc_req_attr_set"; msgdata___3.msg_subsys = 8; msgdata___3.msg_line = 772; msgdata___3.msg_mask = 0; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 262144; lbug_with_loc(& msgdata___3); } else { } olck = osc_lock_at___1((struct cl_lock const *)lock); tmp___8 = ldv__builtin_expect((unsigned long )olck == (unsigned long )((struct osc_lock *)0), 0L); if (tmp___8 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data___0.msg_fn = "osc_req_attr_set"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 776; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"olck != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } tmp___9 = ldv__builtin_expect((long )((unsigned int )*((unsigned char *)opg + 232UL) != 0U && (unsigned long )olck->ols_lock != (unsigned long )((struct ldlm_lock *)0)), 0L); if (tmp___9 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data___1.msg_fn = "osc_req_attr_set"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 777; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"(!(opg->ops_srvlock) || (olck->ols_lock == ((void *)0)))"); lbug_with_loc(& __msg_data___1); } else { } if ((unsigned long )olck->ols_lock != (unsigned long )((struct ldlm_lock *)0)) { oa->o_handle = (olck->ols_lock)->l_remote_handle; oa->o_valid = oa->o_valid | 524288ULL; } else { } cl_lock_put(env, lock); } else { } return; } } static struct cl_req_operations const osc_req_ops = {& osc_req_prep, & osc_req_attr_set, & osc_req_completion}; int osc_io_init(struct lu_env const *env , struct cl_object *obj , struct cl_io *io ) { struct osc_io *oio ; struct osc_io *tmp ; struct osc_io *__foo_io ; { tmp = osc_env_io(env); oio = tmp; __foo_io = oio; switch (42) { case 1: ; case 0: ; goto ldv_62541; } ldv_62541: memset((void *)(& __foo_io->oi_cl) + 1U, 0, 448UL); cl_io_slice_add(io, & oio->oi_cl, obj, & osc_io_ops); return (0); } } int osc_req_init(struct lu_env const *env , struct cl_device *dev , struct cl_req *req ) { struct osc_req *or ; int result ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; long tmp___6 ; { tmp = preempt_count(); tmp___0 = ldv__builtin_expect(((unsigned long )tmp & 2096896UL) != 0UL, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; __msg_data.msg_fn = "osc_req_init"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 810; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(!((((( gfp_t)0x10u) | (( gfp_t)0x40u))) != ((( gfp_t)0x20u))) || (!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4)))))))"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv_kmem_cache_alloc_229(osc_req_kmem, 32848U); or = (struct osc_req *)tmp___1; if ((unsigned long )or != (unsigned long )((struct osc_req *)0)) { tmp___3 = cfs_fail_check_set(3072U, 0U, 0, 0); if (tmp___3 == 0 || obd_alloc_fail_rate == 0U) { tmp___5 = 1; } else { tmp___4 = obd_alloc_fail((void const *)or, "or", "slab-", 40UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c", 810); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(osc_req_kmem, (void *)or); or = (struct osc_req *)0; tmp___5 = 0; } } } else { tmp___5 = 0; } tmp___6 = ldv__builtin_expect((long )tmp___5, 1L); if (tmp___6 != 0L) { lprocfs_counter_add(obd_memory, 0, 40L); tmp___2 = cfs_cdebug_show(16U, 8U); if (tmp___2 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_io.c"; msgdata.msg_fn = "osc_req_init"; msgdata.msg_line = 810; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'or\': %d at %p.\n", 40, or); } else { } } else { } if ((unsigned long )or != (unsigned long )((struct osc_req *)0)) { cl_req_slice_add(req, & or->or_cl, dev, & osc_req_ops); result = 0; } else { result = -12; } return (result); } } extern int ldv_release_27(void) ; extern int ldv_probe_27(void) ; void ldv_initialize_cl_io_operations_27(void) { void *tmp ; void *tmp___0 ; void *tmp___1 ; { tmp = ldv_init_zalloc(56UL); osc_io_ops_group0 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(40UL); osc_io_ops_group1 = (struct cl_io_slice const *)tmp___0; tmp___1 = ldv_init_zalloc(40UL); osc_io_ops_group2 = (struct cl_page_slice const *)tmp___1; return; } } void ldv_initialize_cl_req_operations_26(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(56UL); osc_req_ops_group0 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(40UL); osc_req_ops_group1 = (struct cl_req_slice const *)tmp___0; return; } } void ldv_main_exported_27(void) { unsigned int ldvarg62 ; unsigned int ldvarg60 ; unsigned int ldvarg61 ; unsigned int ldvarg63 ; int tmp ; { ldv_memset((void *)(& ldvarg62), 0, 4UL); ldv_memset((void *)(& ldvarg60), 0, 4UL); ldv_memset((void *)(& ldvarg61), 0, 4UL); ldv_memset((void *)(& ldvarg63), 0, 4UL); tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_state_variable_27 == 2) { osc_io_prepare_write(osc_io_ops_group0, osc_io_ops_group1, osc_io_ops_group2, ldvarg62, ldvarg63); ldv_state_variable_27 = 2; } else { } goto ldv_62571; case 1: ; if (ldv_state_variable_27 == 1) { osc_io_commit_write(osc_io_ops_group0, osc_io_ops_group1, osc_io_ops_group2, ldvarg60, ldvarg61); ldv_state_variable_27 = 1; } else { } if (ldv_state_variable_27 == 2) { osc_io_commit_write(osc_io_ops_group0, osc_io_ops_group1, osc_io_ops_group2, ldvarg60, ldvarg61); ldv_state_variable_27 = 2; } else { } goto ldv_62571; case 2: ; if (ldv_state_variable_27 == 2) { ldv_release_27(); ldv_state_variable_27 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_62571; case 3: ; if (ldv_state_variable_27 == 1) { ldv_probe_27(); ldv_state_variable_27 = 2; ref_cnt = ref_cnt + 1; } else { } goto ldv_62571; default: ldv_stop(); } ldv_62571: ; return; } } void ldv_main_exported_26(void) { struct cl_req_attr *ldvarg22 ; void *tmp ; struct cl_object *ldvarg23 ; void *tmp___0 ; int ldvarg21 ; u64 ldvarg24 ; int tmp___1 ; { tmp = ldv_init_zalloc(48UL); ldvarg22 = (struct cl_req_attr *)tmp; tmp___0 = ldv_init_zalloc(56UL); ldvarg23 = (struct cl_object *)tmp___0; ldv_memset((void *)(& ldvarg21), 0, 4UL); ldv_memset((void *)(& ldvarg24), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_26 == 1) { osc_req_attr_set(osc_req_ops_group0, osc_req_ops_group1, (struct cl_object const *)ldvarg23, ldvarg22, ldvarg24); ldv_state_variable_26 = 1; } else { } goto ldv_62584; case 1: ; if (ldv_state_variable_26 == 1) { osc_req_prep(osc_req_ops_group0, osc_req_ops_group1); ldv_state_variable_26 = 1; } else { } goto ldv_62584; case 2: ; if (ldv_state_variable_26 == 1) { osc_req_completion(osc_req_ops_group0, osc_req_ops_group1, ldvarg21); ldv_state_variable_26 = 1; } else { } goto ldv_62584; default: ldv_stop(); } ldv_62584: ; return; } } int ldv_pskb_expand_head_217(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_219(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv_skb_copy_221(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_222(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_223(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_224(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } int ldv_pskb_expand_head_225(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } int ldv_pskb_expand_head_226(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_227(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } void *ldv_kmem_cache_alloc_229(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(0UL); // no call to kmem_cache_create for osc_req_kmem return (tmp); } } __inline static long ldv__builtin_expect(long exp , long c ) ; extern size_t strlen(char const * ) ; void *ldv_kmem_cache_alloc_267(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_257(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_265(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_259(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_255(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_263(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_264(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_260(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_261(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_262(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; extern struct cfs_hash *cfs_hash_create(char * , unsigned int , unsigned int , unsigned int , unsigned int , unsigned int , unsigned int , cfs_hash_ops_t * , unsigned int ) ; extern void cfs_hash_putref(struct cfs_hash * ) ; extern int cfs_hash_add_unique(struct cfs_hash * , void const * , struct hlist_node * ) ; extern void *cfs_hash_del_key(struct cfs_hash * , void const * ) ; extern void *cfs_hash_lookup(struct cfs_hash * , void const * ) ; __inline static unsigned int cfs_hash_u32_hash(__u32 const key , unsigned int mask ) { { return ((unsigned int )key * 2654404609U & mask); } } __inline static int cfs_fail_check_set___4(__u32 id , __u32 value , int set , int quiet ) { int ret ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; int tmp___1 ; long tmp___2 ; { ret = 0; if (cfs_fail_loc != 0UL && (((unsigned long )id ^ cfs_fail_loc) & 65535UL) == 0UL) { ret = __cfs_fail_check_set(id, value, set); if (ret != 0) { tmp___1 = 1; } else { tmp___1 = 0; } } else { tmp___1 = 0; } tmp___2 = ldv__builtin_expect((long )tmp___1, 0L); if (tmp___2 != 0L) { if (quiet != 0) { tmp = cfs_cdebug_show(64U, 1U); if (tmp != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/../../include/linux/libcfs/libcfs_fail.h"; msgdata.msg_fn = "cfs_fail_check_set"; msgdata.msg_line = 86; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "*** cfs_fail_loc=%x, val=%u***\n", id, value); } else { } } else { tmp___0 = cfs_cdebug_show(33554432U, 1U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 1; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/../../include/linux/libcfs/libcfs_fail.h"; msgdata___0.msg_fn = "cfs_fail_check_set"; msgdata___0.msg_line = 89; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 33554432; libcfs_debug_msg(& msgdata___0, "*** cfs_fail_loc=%x, val=%u***\n", id, value); } else { } } } else { } return (ret); } } extern struct req_format RQF_OST_QUOTACHECK ; extern struct req_format RQF_OST_QUOTACTL ; extern struct req_msg_field RMF_OBD_QUOTACTL ; extern struct ptlrpc_request *ptlrpc_request_alloc_pack(struct obd_import * , struct req_format const * , __u32 , int ) ; int osc_quota_chkdq(struct client_obd *cli , unsigned int const *qid ) ; __inline static struct osc_quota_info *osc_oqi_alloc(u32 id ) { struct osc_quota_info *oqi ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; long tmp___6 ; { tmp = preempt_count(); tmp___0 = ldv__builtin_expect(((unsigned long )tmp & 2096896UL) != 0UL, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c"; __msg_data.msg_fn = "osc_oqi_alloc"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 38; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(!((((( gfp_t)0x10u) | (( gfp_t)0x40u))) != ((( gfp_t)0x20u))) || (!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4)))))))"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv_kmem_cache_alloc_267(osc_quota_kmem, 32848U); oqi = (struct osc_quota_info *)tmp___1; if ((unsigned long )oqi != (unsigned long )((struct osc_quota_info *)0)) { tmp___3 = cfs_fail_check_set___4(3072U, 0U, 0, 0); if (tmp___3 == 0 || obd_alloc_fail_rate == 0U) { tmp___5 = 1; } else { tmp___4 = obd_alloc_fail((void const *)oqi, "oqi", "slab-", 24UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c", 38); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(osc_quota_kmem, (void *)oqi); oqi = (struct osc_quota_info *)0; tmp___5 = 0; } } } else { tmp___5 = 0; } tmp___6 = ldv__builtin_expect((long )tmp___5, 1L); if (tmp___6 != 0L) { lprocfs_counter_add(obd_memory, 0, 24L); tmp___2 = cfs_cdebug_show(16U, 1U); if (tmp___2 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c"; msgdata.msg_fn = "osc_oqi_alloc"; msgdata.msg_line = 38; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'oqi\': %d at %p.\n", 24, oqi); } else { } } else { } if ((unsigned long )oqi != (unsigned long )((struct osc_quota_info *)0)) { oqi->oqi_id = id; } else { } return (oqi); } } int osc_quota_chkdq(struct client_obd *cli , unsigned int const *qid ) { int type ; struct osc_quota_info *oqi ; void *tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { type = 0; goto ldv_63103; ldv_63102: tmp = cfs_hash_lookup(cli->cl_quota_hash[type], (void const *)qid + (unsigned long )type); oqi = (struct osc_quota_info *)tmp; if ((unsigned long )oqi != (unsigned long )((struct osc_quota_info *)0)) { tmp___0 = cfs_cdebug_show(67108864U, 1U); if (tmp___0 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c"; msgdata.msg_fn = "osc_quota_chkdq"; msgdata.msg_line = 60; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 67108864; libcfs_debug_msg(& msgdata, "chkdq found noquota for %s %d\n", type == 0 ? (char *)"user" : (char *)"grout", *(qid + (unsigned long )type)); } else { } return (-122); } else { } type = type + 1; ldv_63103: ; if (type <= 2) { goto ldv_63102; } else { } return (0); } } int osc_quota_setdq(struct client_obd *cli , unsigned int const *qid , u32 valid , u32 flags ) { int type ; int rc ; struct osc_quota_info *oqi ; void *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; void *tmp___3 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___4 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___6 ; { rc = 0; if (((unsigned long long )valid & 1610612736ULL) == 0ULL) { return (0); } else { } type = 0; goto ldv_63124; ldv_63123: ; if (((unsigned long long )valid & (type == 0 ? 536870912ULL : 1073741824ULL)) == 0ULL) { goto ldv_63114; } else { } tmp = cfs_hash_lookup(cli->cl_quota_hash[type], (void const *)qid + (unsigned long )type); oqi = (struct osc_quota_info *)tmp; if (((type == 0 ? 256U : 512U) & flags) != 0U) { if ((unsigned long )oqi != (unsigned long )((struct osc_quota_info *)0)) { goto ldv_63114; } else { } oqi = osc_oqi_alloc(*(qid + (unsigned long )type)); if ((unsigned long )oqi == (unsigned long )((struct osc_quota_info *)0)) { rc = -12; goto ldv_63115; } else { } rc = cfs_hash_add_unique(cli->cl_quota_hash[type], (void const *)qid + (unsigned long )type, & oqi->oqi_hash); if (rc == -114) { rc = 0; tmp___0 = ldv__builtin_expect((unsigned long )oqi == (unsigned long )((struct osc_quota_info *)0), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c"; __msg_data.msg_fn = "osc_quota_setdq"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 107; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(oqi)"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 24L); tmp___1 = cfs_cdebug_show(16U, 1U); if (tmp___1 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c"; msgdata.msg_fn = "osc_quota_setdq"; msgdata.msg_line = 107; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(oqi)\': %d at %p.\n", 24, oqi); } else { } memset((void *)oqi, 90, 24UL); kmem_cache_free(osc_quota_kmem, (void *)oqi); oqi = (struct osc_quota_info *)3735928559L; } else { } tmp___2 = cfs_cdebug_show(67108864U, 1U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 1; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c"; msgdata___0.msg_fn = "osc_quota_setdq"; msgdata___0.msg_line = 113; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 67108864; libcfs_debug_msg(& msgdata___0, "%s: setdq to insert for %s %d (%d)\n", (char *)(& ((cli->cl_import)->imp_obd)->obd_name), type == 0 ? (char *)"user" : (char *)"group", *(qid + (unsigned long )type), rc); } else { } } else { if ((unsigned long )oqi == (unsigned long )((struct osc_quota_info *)0)) { goto ldv_63114; } else { } tmp___3 = cfs_hash_del_key(cli->cl_quota_hash[type], (void const *)qid + (unsigned long )type); oqi = (struct osc_quota_info *)tmp___3; if ((unsigned long )oqi != (unsigned long )((struct osc_quota_info *)0)) { tmp___4 = ldv__builtin_expect((unsigned long )oqi == (unsigned long )((struct osc_quota_info *)0), 0L); if (tmp___4 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c"; __msg_data___0.msg_fn = "osc_quota_setdq"; __msg_data___0.msg_subsys = 1; __msg_data___0.msg_line = 123; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"(oqi)"); lbug_with_loc(& __msg_data___0); } else { } lprocfs_counter_sub(obd_memory, 0, 24L); tmp___5 = cfs_cdebug_show(16U, 1U); if (tmp___5 != 0) { msgdata___1.msg_subsys = 1; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c"; msgdata___1.msg_fn = "osc_quota_setdq"; msgdata___1.msg_line = 123; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; libcfs_debug_msg(& msgdata___1, "slab-freed \'(oqi)\': %d at %p.\n", 24, oqi); } else { } memset((void *)oqi, 90, 24UL); kmem_cache_free(osc_quota_kmem, (void *)oqi); oqi = (struct osc_quota_info *)3735928559L; } else { } tmp___6 = cfs_cdebug_show(67108864U, 1U); if (tmp___6 != 0) { msgdata___2.msg_subsys = 1; msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c"; msgdata___2.msg_fn = "osc_quota_setdq"; msgdata___2.msg_line = 128; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 67108864; libcfs_debug_msg(& msgdata___2, "%s: setdq to remove for %s %d (%p)\n", (char *)(& ((cli->cl_import)->imp_obd)->obd_name), type == 0 ? (char *)"user" : (char *)"group", *(qid + (unsigned long )type), oqi); } else { } } ldv_63114: type = type + 1; ldv_63124: ; if (type <= 2) { goto ldv_63123; } else { } ldv_63115: ; return (rc); } } static unsigned int oqi_hashfn(struct cfs_hash *hs , void const *key , unsigned int mask ) { unsigned int tmp ; { tmp = cfs_hash_u32_hash(*((__u32 *)key), mask); return (tmp); } } static int oqi_keycmp(void const *key , struct hlist_node *hnode ) { struct osc_quota_info *oqi ; u32 uid ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct hlist_node const *__mptr ; { tmp = ldv__builtin_expect((unsigned long )key == (unsigned long )((void const *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c"; __msg_data.msg_fn = "oqi_keycmp"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 150; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"key != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } uid = *((u32 *)key); __mptr = (struct hlist_node const *)hnode; oqi = (struct osc_quota_info *)__mptr; return (oqi->oqi_id == uid); } } static void *oqi_key(struct hlist_node *hnode ) { struct osc_quota_info *oqi ; struct hlist_node const *__mptr ; { __mptr = (struct hlist_node const *)hnode; oqi = (struct osc_quota_info *)__mptr; return ((void *)(& oqi->oqi_id)); } } static void *oqi_object(struct hlist_node *hnode ) { struct hlist_node const *__mptr ; { __mptr = (struct hlist_node const *)hnode; return ((void *)((struct osc_quota_info *)__mptr)); } } static void oqi_get(struct cfs_hash *hs , struct hlist_node *hnode ) { { return; } } static void oqi_put_locked(struct cfs_hash *hs , struct hlist_node *hnode ) { { return; } } static void oqi_exit(struct cfs_hash *hs , struct hlist_node *hnode ) { struct osc_quota_info *oqi ; struct hlist_node const *__mptr ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { __mptr = (struct hlist_node const *)hnode; oqi = (struct osc_quota_info *)__mptr; tmp = ldv__builtin_expect((unsigned long )oqi == (unsigned long )((struct osc_quota_info *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c"; __msg_data.msg_fn = "oqi_exit"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 188; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(oqi)"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 24L); tmp___0 = cfs_cdebug_show(16U, 1U); if (tmp___0 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c"; msgdata.msg_fn = "oqi_exit"; msgdata.msg_line = 188; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(oqi)\': %d at %p.\n", 24, oqi); } else { } memset((void *)oqi, 90, 24UL); kmem_cache_free(osc_quota_kmem, (void *)oqi); oqi = (struct osc_quota_info *)3735928559L; return; } } static cfs_hash_ops_t quota_hash_ops = {& oqi_hashfn, & oqi_key, 0, & oqi_keycmp, & oqi_object, & oqi_get, 0, & oqi_put_locked, & oqi_exit}; int osc_quota_setup(struct obd_device *obd ) { struct client_obd *cli ; int i ; int type ; { cli = & obd->u.cli; type = 0; goto ldv_63178; ldv_63177: cli->cl_quota_hash[type] = cfs_hash_create((char *)"QUOTA_HASH", 5U, 15U, 5U, 0U, 512U, 2048U, & quota_hash_ops, 644U); if ((unsigned long )cli->cl_quota_hash[type] == (unsigned long )((struct cfs_hash *)0)) { goto ldv_63176; } else { } type = type + 1; ldv_63178: ; if (type <= 2) { goto ldv_63177; } else { } ldv_63176: ; if (type == 3) { return (0); } else { } i = 0; goto ldv_63180; ldv_63179: cfs_hash_putref(cli->cl_quota_hash[i]); i = i + 1; ldv_63180: ; if (i < type) { goto ldv_63179; } else { } return (-12); } } int osc_quota_cleanup(struct obd_device *obd ) { struct client_obd *cli ; int type ; { cli = & obd->u.cli; type = 0; goto ldv_63188; ldv_63187: cfs_hash_putref(cli->cl_quota_hash[type]); type = type + 1; ldv_63188: ; if (type <= 2) { goto ldv_63187; } else { } return (0); } } int osc_quotactl(struct obd_device *unused , struct obd_export *exp , struct obd_quotactl *oqctl ) { struct ptlrpc_request *req ; struct obd_quotactl *oqc ; int rc ; struct obd_import *tmp ; void *tmp___0 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; void *tmp___2 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___4 ; { tmp = class_exp2cliimp(exp); req = ptlrpc_request_alloc_pack(tmp, (struct req_format const *)(& RQF_OST_QUOTACTL), 196608U, 19); if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { return (-12); } else { } tmp___0 = req_capsule_client_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OBD_QUOTACTL)); oqc = (struct obd_quotactl *)tmp___0; *oqc = *oqctl; ptlrpc_request_set_replen(req); ptlrpc_at_set_req_timeout(req); req->rq_no_resend = 1U; rc = ptlrpc_queue_wait(req); if (rc != 0) { tmp___1 = cfs_cdebug_show(131072U, 1U); if (tmp___1 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c"; msgdata.msg_fn = "osc_quotactl"; msgdata.msg_line = 266; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "ptlrpc_queue_wait failed, rc: %d\n", rc); } else { } } else { } if ((unsigned long )req->rq_repmsg != (unsigned long )((struct lustre_msg_v2 *)0)) { tmp___2 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OBD_QUOTACTL)); oqc = (struct obd_quotactl *)tmp___2; if ((unsigned long )oqc != (unsigned long )((struct obd_quotactl *)0)) { *oqctl = *oqc; } else if (rc == 0) { tmp___3 = cfs_cdebug_show(131072U, 1U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 1; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c"; msgdata___0.msg_fn = "osc_quotactl"; msgdata___0.msg_line = 273; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "Can\'t unpack obd_quotactl\n"); } else { } rc = -71; } else { } } else if (rc == 0) { tmp___4 = cfs_cdebug_show(131072U, 1U); if (tmp___4 != 0) { msgdata___1.msg_subsys = 1; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_quota.c"; msgdata___1.msg_fn = "osc_quotactl"; msgdata___1.msg_line = 277; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "Can\'t unpack obd_quotactl\n"); } else { } rc = -71; } else { } ptlrpc_req_finished(req); return (rc); } } int osc_quotacheck(struct obd_device *unused , struct obd_export *exp , struct obd_quotactl *oqctl ) { struct client_obd *cli ; struct ptlrpc_request *req ; struct obd_quotactl *body ; int rc ; struct obd_import *tmp ; void *tmp___0 ; { cli = & (exp->exp_obd)->u.cli; tmp = class_exp2cliimp(exp); req = ptlrpc_request_alloc_pack(tmp, (struct req_format const *)(& RQF_OST_QUOTACHECK), 196608U, 18); if ((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0)) { return (-12); } else { } tmp___0 = req_capsule_client_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_OBD_QUOTACTL)); body = (struct obd_quotactl *)tmp___0; *body = *oqctl; ptlrpc_request_set_replen(req); cli->cl_qchk_stat = -61; rc = ptlrpc_queue_wait(req); if (rc != 0) { cli->cl_qchk_stat = rc; } else { } ptlrpc_req_finished(req); return (rc); } } int osc_quota_poll_check(struct obd_export *exp , struct if_quotacheck *qchk ) { struct client_obd *cli ; int rc ; size_t tmp ; { cli = & (exp->exp_obd)->u.cli; qchk->obd_uuid = cli->cl_target_uuid; tmp = strlen("obdfilter"); memcpy((void *)(& qchk->obd_type), (void const *)"obdfilter", tmp); rc = cli->cl_qchk_stat; if (rc == 1) { rc = -4; } else { } return (rc); } } int ldv_pskb_expand_head_255(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_257(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv_skb_copy_259(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_260(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_261(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_262(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } int ldv_pskb_expand_head_263(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } int ldv_pskb_expand_head_264(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_265(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } void *ldv_kmem_cache_alloc_267(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(0UL); // no call to kmem_cache_create for osc_quota_kmem return (tmp); } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static void *ERR_PTR(long error ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; __inline static void atomic_add(int i , atomic_t *v ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; addl %1,%0": "+m" (v->counter): "ir" (i)); return; } } __inline static void spin_lock(spinlock_t *lock ) ; __inline static int spin_trylock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; __inline static int spin_is_locked(spinlock_t *lock ) { int tmp ; { tmp = queued_spin_is_locked(& lock->__annonCompField18.rlock.raw_lock); return (tmp); } } __inline static int waitqueue_active(wait_queue_head_t *q ) { int tmp ; { tmp = list_empty((struct list_head const *)(& q->task_list)); return (tmp == 0); } } extern void rb_insert_color(struct rb_node * , struct rb_root * ) ; extern void rb_erase(struct rb_node * , struct rb_root * ) ; extern struct rb_node *rb_next(struct rb_node const * ) ; extern struct rb_node *rb_prev(struct rb_node const * ) ; extern struct rb_node *rb_first(struct rb_root const * ) ; __inline static void rb_link_node(struct rb_node *node , struct rb_node *parent , struct rb_node **rb_link ) { struct rb_node *tmp ; { node->__rb_parent_color = (unsigned long )parent; tmp = (struct rb_node *)0; node->rb_right = tmp; node->rb_left = tmp; *rb_link = node; return; } } void *ldv_kmem_cache_alloc_305(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_295(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_303(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_297(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_293(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_301(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_302(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_298(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_299(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_300(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static void *__container_of___5(void *ptr , unsigned long shift ) { bool tmp ; long tmp___0 ; { tmp = IS_ERR((void const *)ptr); tmp___0 = ldv__builtin_expect((long )((int )tmp || (unsigned long )ptr == (unsigned long )((void *)0)), 0L); if (tmp___0 != 0L) { return (ptr); } else { } return (ptr + - shift); } } __inline static void __client_obd_list_lock___1(client_obd_lock_t *lock , char const *func , int line ) { unsigned long cur ; struct libcfs_debug_msg_data __msg_data ; long tmp ; int tmp___0 ; struct task_struct *task ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; int tmp___3 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___4 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; struct task_struct *tmp___6 ; long volatile __ret ; struct task_struct *tmp___7 ; struct task_struct *tmp___8 ; struct task_struct *tmp___9 ; struct task_struct *tmp___10 ; { cur = jiffies; ldv_53661: tmp___0 = spin_trylock(& lock->lock); if (tmp___0 != 0) { tmp = ldv__builtin_expect((unsigned long )lock->task != (unsigned long )((struct task_struct *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; __msg_data.msg_fn = "__client_obd_list_lock"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 75; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"lock->task == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } lock->task = get_current(); lock->func = func; lock->line = line; lock->time = jiffies; goto ldv_53632; } else { } if ((long )((cur - (unsigned long )jiffies) + 1250UL) < 0L && (long )((lock->time - (unsigned long )jiffies) + 1250UL) < 0L) { task = lock->task; if ((unsigned long )task == (unsigned long )((struct task_struct *)0)) { goto ldv_53646; } else { } tmp___3 = cfs_cdebug_show(33555456U, 8U); if (tmp___3 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; msgdata.msg_fn = "__client_obd_list_lock"; msgdata.msg_line = 94; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 33555456; tmp___1 = get_current(); tmp___2 = get_current(); libcfs_debug_msg(& msgdata, "%s:%d: lock %p was acquired by <%s:%d:%s:%d> for %lu seconds.\n", (char *)(& tmp___2->comm), tmp___1->pid, lock, (char *)(& task->comm), task->pid, lock->func, lock->line, ((unsigned long )jiffies - lock->time) / 250UL); } else { } tmp___4 = cfs_cdebug_show(33555456U, 8U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; msgdata___0.msg_fn = "__client_obd_list_lock"; msgdata___0.msg_line = 95; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 33555456; libcfs_debug_msg(& msgdata___0, "====== for current process =====\n"); } else { } dump_stack(); tmp___5 = cfs_cdebug_show(33555456U, 8U); if (tmp___5 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; msgdata___1.msg_fn = "__client_obd_list_lock"; msgdata___1.msg_line = 97; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 33555456; libcfs_debug_msg(& msgdata___1, "====== end =======\n"); } else { } tmp___6 = get_current(); tmp___6->task_state_change = 0UL; __ret = 2L; switch (8UL) { case 1UL: tmp___7 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret), "+m" (tmp___7->state): : "memory", "cc"); goto ldv_53655; case 2UL: tmp___8 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret), "+m" (tmp___8->state): : "memory", "cc"); goto ldv_53655; case 4UL: tmp___9 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret), "+m" (tmp___9->state): : "memory", "cc"); goto ldv_53655; case 8UL: tmp___10 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret), "+m" (tmp___10->state): : "memory", "cc"); goto ldv_53655; default: __xchg_wrong_size(); } ldv_53655: schedule_timeout(250000L); } else { } cpu_relax(); ldv_53646: ; goto ldv_53661; ldv_53632: ; return; } } __inline static void client_obd_list_unlock___1(client_obd_lock_t *lock ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((unsigned long )lock->task == (unsigned long )((struct task_struct *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; __msg_data.msg_fn = "client_obd_list_unlock"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 110; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"lock->task != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } lock->task = (struct task_struct *)0; lock->time = jiffies; spin_unlock(& lock->lock); return; } } __inline static void lu_ref_add_at(struct lu_ref *ref , struct lu_ref_link *link , char const *scope , void const *source ) { { return; } } __inline static void lu_object_ref_add_at(struct lu_object *o , struct lu_ref_link *link , char const *scope , void const *source ) { { lu_ref_add_at(& (o->lo_header)->loh_reference, link, scope, source); return; } } extern __u64 ptlrpc_sample_next_xid(void) ; extern __u64 ptlrpc_req_xid(struct ptlrpc_request * ) ; extern int ptlrpcd_queue_work(void * ) ; extern void ptlrpcd_wake(struct ptlrpc_request * ) ; extern struct cl_object *cl_object_top(struct cl_object * ) ; extern int cl_page_own(struct lu_env const * , struct cl_io * , struct cl_page * ) ; extern void cl_page_completion(struct lu_env const * , struct cl_page * , enum cl_req_type , int ) ; extern int cl_page_make_ready(struct lu_env const * , struct cl_page * , enum cl_req_type ) ; extern void cl_req_page_done(struct lu_env const * , struct cl_page * ) ; __inline static unsigned long rpcs_in_flight(struct client_obd *cli ) { { return ((unsigned long )(cli->cl_r_in_flight + cli->cl_w_in_flight)); } } __inline static void osc_object_lock(struct osc_object *obj ) { { spin_lock(& obj->oo_lock); return; } } __inline static void osc_object_unlock(struct osc_object *obj ) { { spin_unlock(& obj->oo_lock); return; } } __inline static int osc_object_is_locked(struct osc_object *obj ) { int tmp ; { tmp = spin_is_locked(& obj->oo_lock); return (tmp); } } __inline static struct osc_device *lu2osc_dev___4(struct lu_device const *d ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; void *tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )((struct lu_device_type *)d->ld_type) != (unsigned long )(& osc_device_type), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "lu2osc_dev"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 501; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"d->ld_type == &osc_device_type"); lbug_with_loc(& __msg_data); } else { } tmp___0 = __container_of___5((void *)d, 0UL); return ((struct osc_device *)tmp___0); } } __inline static struct obd_export *osc_export___2(struct osc_object const *obj ) { struct osc_device *tmp ; { tmp = lu2osc_dev___4((struct lu_device const *)obj->oo_cl.co_lu.lo_dev); return (tmp->od_exp); } } __inline static struct client_obd *osc_cli___1(struct osc_object const *obj ) { struct obd_export *tmp ; { tmp = osc_export___2(obj); return (& (tmp->exp_obd)->u.cli); } } __inline static struct osc_object *cl2osc___3(struct cl_object const *obj ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; { tmp = osc_is_object(& obj->co_lu); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/osc_cl_internal.h"; __msg_data.msg_fn = "cl2osc"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 517; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_is_object(&obj->co_lu)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = __container_of___5((void *)obj, 0UL); return ((struct osc_object *)tmp___1); } } __inline static struct osc_page *oap2osc___0(struct osc_async_page *oap ) { void *tmp ; { tmp = __container_of___5((void *)oap, 40UL); return ((struct osc_page *)tmp); } } __inline static struct cl_page *oap2cl_page___0(struct osc_async_page *oap ) { struct osc_page *tmp ; { tmp = oap2osc___0(oap); return (tmp->ops_cl.cpl_page); } } __inline static struct osc_page *oap2osc_page(struct osc_async_page *oap ) { struct osc_async_page const *__mptr ; { __mptr = (struct osc_async_page const *)oap; return ((struct osc_page *)__mptr + 0xffffffffffffffd8UL); } } static int extent_debug ; static void osc_update_pending(struct osc_object *obj , int cmd , int delta ) ; static int osc_extent_wait(struct lu_env const *env , struct osc_extent *ext , int state ) ; static void osc_ap_completion(struct lu_env const *env , struct client_obd *cli , struct osc_async_page *oap , int sent , int rc ) ; static int osc_make_ready(struct lu_env const *env , struct osc_async_page *oap , int cmd ) ; static int osc_refresh_count(struct lu_env const *env , struct osc_async_page *oap , int cmd ) ; static int osc_io_unplug_async(struct lu_env const *env , struct client_obd *cli , struct osc_object *osc ) ; static void osc_free_grant(struct client_obd *cli , unsigned int nr_pages , unsigned int lost_grant ) ; static void osc_extent_tree_dump0(int level , struct osc_object *obj , char const *func , int line ) ; __inline static char *ext_flags(struct osc_extent *ext , char *flags ) { char *buf ; char *tmp ; char *tmp___0 ; char *tmp___1 ; char *tmp___2 ; char *tmp___3 ; char *tmp___4 ; char *tmp___5 ; char *tmp___6 ; { buf = flags; tmp = buf; buf = buf + 1; *tmp = (unsigned int )*((unsigned char *)ext + 60UL) != 0U ? 114 : 119; if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U) { tmp___0 = buf; buf = buf + 1; *tmp___0 = 105; } else { } if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U) { tmp___1 = buf; buf = buf + 1; *tmp___1 = 115; } else { } if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U) { tmp___2 = buf; buf = buf + 1; *tmp___2 = 104; } else { } if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U) { tmp___3 = buf; buf = buf + 1; *tmp___3 = 117; } else { } if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U) { tmp___4 = buf; buf = buf + 1; *tmp___4 = 109; } else { } if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U) { tmp___5 = buf; buf = buf + 1; *tmp___5 = 116; } else { } if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U) { tmp___6 = buf; buf = buf + 1; *tmp___6 = 89; } else { } *buf = 0; return (flags); } } __inline static char list_empty_marker(struct list_head *list ) { int tmp ; { tmp = list_empty((struct list_head const *)list); return (tmp != 0 ? 45 : 43); } } static char const *oes_strings[8U] = { "inv", "active", "cache", "locking", "lockdone", "rpc", "trunc", (char const *)0}; __inline static struct osc_extent *rb_extent(struct rb_node *n ) { struct rb_node const *__mptr ; { if ((unsigned long )n == (unsigned long )((struct rb_node *)0)) { return ((struct osc_extent *)0); } else { } __mptr = (struct rb_node const *)n; return ((struct osc_extent *)__mptr); } } __inline static struct osc_extent *next_extent(struct osc_extent *ext ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; struct rb_node *tmp___0 ; struct osc_extent *tmp___1 ; { if ((unsigned long )ext == (unsigned long )((struct osc_extent *)0)) { return ((struct osc_extent *)0); } else { } tmp = ldv__builtin_expect((unsigned int )*((unsigned char *)ext + 60UL) == 0U, 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "next_extent"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 154; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_intree"); lbug_with_loc(& __msg_data); } else { } tmp___0 = rb_next((struct rb_node const *)(& ext->oe_node)); tmp___1 = rb_extent(tmp___0); return (tmp___1); } } __inline static struct osc_extent *prev_extent(struct osc_extent *ext ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; struct rb_node *tmp___0 ; struct osc_extent *tmp___1 ; { if ((unsigned long )ext == (unsigned long )((struct osc_extent *)0)) { return ((struct osc_extent *)0); } else { } tmp = ldv__builtin_expect((unsigned int )*((unsigned char *)ext + 60UL) == 0U, 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "prev_extent"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 163; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_intree"); lbug_with_loc(& __msg_data); } else { } tmp___0 = rb_prev((struct rb_node const *)(& ext->oe_node)); tmp___1 = rb_extent(tmp___0); return (tmp___1); } } __inline static struct osc_extent *first_extent(struct osc_object *obj ) { struct rb_node *tmp ; struct osc_extent *tmp___0 ; { tmp = rb_first((struct rb_root const *)(& obj->oo_root)); tmp___0 = rb_extent(tmp); return (tmp___0); } } static int osc_extent_sanity_check0(struct osc_extent *ext , char const *func , int const line ) { struct osc_object *obj ; struct osc_async_page *oap ; int page_count___0 ; int rc ; int tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; struct cl_lock_descr *descr ; struct list_head const *__mptr ; unsigned long index ; struct cl_page *tmp___6 ; struct list_head const *__mptr___0 ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp___7 ; char tmp___8 ; char *tmp___9 ; char tmp___10 ; int tmp___11 ; int tmp___12 ; int tmp___13 ; { obj = ext->oe_obj; rc = 0; tmp = osc_object_is_locked(obj); if (tmp == 0) { rc = 9; goto out; } else { } if (ext->oe_state > 6U) { rc = 10; goto out; } else { } tmp___0 = atomic_read((atomic_t const *)(& ext->oe_refc)); if (tmp___0 <= 0) { rc = 20; goto out; } else { } tmp___1 = atomic_read((atomic_t const *)(& ext->oe_refc)); tmp___2 = atomic_read((atomic_t const *)(& ext->oe_users)); if (tmp___1 < tmp___2) { rc = 30; goto out; } else { } switch (ext->oe_state) { case 0U: ; if (ext->oe_nr_pages != 0U) { rc = 35; } else { tmp___3 = list_empty((struct list_head const *)(& ext->oe_pages)); if (tmp___3 == 0) { rc = 35; } else { rc = 0; } } goto out; case 1U: tmp___4 = atomic_read((atomic_t const *)(& ext->oe_users)); if (tmp___4 == 0) { rc = 40; goto out; } else { } if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U) { rc = 50; goto out; } else { } if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U && (unsigned int )*((unsigned char *)ext + 60UL) == 0U) { rc = 55; goto out; } else { } goto ldv_62330; case 2U: ; if (ext->oe_grants == 0U) { rc = 60; goto out; } else { } if (((unsigned int )*((unsigned char *)ext + 60UL) != 0U && (unsigned int )*((unsigned char *)ext + 60UL) == 0U) && (unsigned int )*((unsigned char *)ext + 60UL) == 0U) { rc = 65; goto out; } else { } default: tmp___5 = atomic_read((atomic_t const *)(& ext->oe_users)); if (tmp___5 > 0) { rc = 70; goto out; } else { } } ldv_62330: ; if (ext->oe_max_end < ext->oe_end || ext->oe_end < ext->oe_start) { rc = 80; goto out; } else { } if ((unsigned long )ext->oe_osclock == (unsigned long )((struct cl_lock *)0) && ext->oe_grants != 0U) { rc = 90; goto out; } else { } if ((unsigned long )ext->oe_osclock != (unsigned long )((struct cl_lock *)0)) { descr = & (ext->oe_osclock)->cll_descr; if (descr->cld_start > ext->oe_start || descr->cld_end < ext->oe_max_end) { rc = 100; goto out; } else { } } else { } if (ext->oe_nr_pages > ext->oe_mppr) { rc = 105; goto out; } else { } if (ext->oe_state > 2U) { rc = 0; goto out; } else { } if (extent_debug == 0) { rc = 0; goto out; } else { } page_count___0 = 0; __mptr = (struct list_head const *)ext->oe_pages.next; oap = (struct osc_async_page *)__mptr + 0xfffffffffffffff8UL; goto ldv_62340; ldv_62339: tmp___6 = oap2cl_page___0(oap); index = tmp___6->cp_index; page_count___0 = page_count___0 + 1; if (ext->oe_end < index || ext->oe_start > index) { rc = 110; goto out; } else { } __mptr___0 = (struct list_head const *)oap->oap_pending_item.next; oap = (struct osc_async_page *)__mptr___0 + 0xfffffffffffffff8UL; ldv_62340: ; if ((unsigned long )(& oap->oap_pending_item) != (unsigned long )(& ext->oe_pages)) { goto ldv_62339; } else { } if ((unsigned int )page_count___0 != ext->oe_nr_pages) { rc = 120; goto out; } else { } out: ; if (rc != 0) { __ext = ext; tmp___13 = cfs_cdebug_show(131072U, 8U); if (tmp___13 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_extent_sanity_check0"; msgdata.msg_line = 293; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___7 = waitqueue_active(& __ext->oe_waitq); tmp___8 = list_empty_marker(& __ext->oe_pages); tmp___9 = ext_flags(__ext, (char *)(& __buf)); tmp___10 = list_empty_marker(& __ext->oe_link); tmp___11 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___12 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} %s:%d sanity check %p failed with rc = %d\n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___12, tmp___11, (int )tmp___10, oes_strings[__ext->oe_state], tmp___9, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___8, tmp___7 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner, func, line, ext, rc); } else { } } else { } return (rc); } } static int osc_extent_is_overlapped(struct osc_object *obj , struct osc_extent *ext ) { struct osc_extent *tmp ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; { tmp___0 = osc_object_is_locked(obj); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_is_overlapped"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 317; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_object_is_locked(obj)"); lbug_with_loc(& __msg_data); } else { } if (extent_debug == 0) { return (0); } else { } tmp = first_extent(obj); goto ldv_62355; ldv_62354: ; if ((unsigned long )tmp == (unsigned long )ext) { goto ldv_62353; } else { } if (tmp->oe_end >= ext->oe_start && tmp->oe_start <= ext->oe_end) { return (1); } else { } ldv_62353: tmp = next_extent(tmp); ldv_62355: ; if ((unsigned long )tmp != (unsigned long )((struct osc_extent *)0)) { goto ldv_62354; } else { } return (0); } } static void osc_extent_state_set(struct osc_extent *ext , int state ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; { tmp = osc_object_is_locked(ext->oe_obj); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_state_set"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 334; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_object_is_locked(ext->oe_obj)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv__builtin_expect((long )(state < 0 || state > 6), 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_extent_state_set"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 335; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"state >= OES_INV && state < OES_STATE_MAX"); lbug_with_loc(& __msg_data___0); } else { } ext->oe_state = (unsigned int )state; __wake_up(& ext->oe_waitq, 3U, 0, (void *)0); return; } } static struct osc_extent *osc_extent_alloc(struct osc_object *obj ) { struct osc_extent *ext ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; long tmp___6 ; struct lock_class_key __key ; { tmp = preempt_count(); tmp___0 = ldv__builtin_expect(((unsigned long )tmp & 2096896UL) != 0UL, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_alloc"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 349; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(!((((( gfp_t)0x40u) | (( gfp_t)0x80u))) != ((( gfp_t)0x20u))) || (!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4)))))))"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv_kmem_cache_alloc_305(osc_extent_kmem, 32960U); ext = (struct osc_extent *)tmp___1; if ((unsigned long )ext != (unsigned long )((struct osc_extent *)0)) { tmp___3 = cfs_fail_check_set(3072U, 0U, 0, 0); if (tmp___3 == 0 || obd_alloc_fail_rate == 0U) { tmp___5 = 1; } else { tmp___4 = obd_alloc_fail((void const *)ext, "ext", "slab-", 232UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c", 349); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(osc_extent_kmem, (void *)ext); ext = (struct osc_extent *)0; tmp___5 = 0; } } } else { tmp___5 = 0; } tmp___6 = ldv__builtin_expect((long )tmp___5, 1L); if (tmp___6 != 0L) { lprocfs_counter_add(obd_memory, 0, 232L); tmp___2 = cfs_cdebug_show(16U, 8U); if (tmp___2 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_extent_alloc"; msgdata.msg_line = 349; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'ext\': %d at %p.\n", 232, ext); } else { } } else { } if ((unsigned long )ext == (unsigned long )((struct osc_extent *)0)) { return ((struct osc_extent *)0); } else { } ext->oe_node.__rb_parent_color = (unsigned long )(& ext->oe_node); ext->oe_obj = obj; atomic_set(& ext->oe_refc, 1); atomic_set(& ext->oe_users, 0); INIT_LIST_HEAD(& ext->oe_link); ext->oe_state = 0U; INIT_LIST_HEAD(& ext->oe_pages); __init_waitqueue_head(& ext->oe_waitq, "&ext->oe_waitq", & __key); ext->oe_osclock = (struct cl_lock *)0; return (ext); } } static void osc_extent_free(struct osc_extent *ext ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )ext == (unsigned long )((struct osc_extent *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_free"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 368; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(ext)"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 232L); tmp___0 = cfs_cdebug_show(16U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_extent_free"; msgdata.msg_line = 368; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(ext)\': %d at %p.\n", 232, ext); } else { } memset((void *)ext, 90, 232UL); kmem_cache_free(osc_extent_kmem, (void *)ext); ext = (struct osc_extent *)3735928559L; return; } } static struct osc_extent *osc_extent_get(struct osc_extent *ext ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; { tmp = atomic_read((atomic_t const *)(& ext->oe_refc)); tmp___0 = ldv__builtin_expect(tmp < 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_get"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 373; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&ext->oe_refc) >= 0"); lbug_with_loc(& __msg_data); } else { } atomic_inc(& ext->oe_refc); return (ext); } } static void osc_extent_put(struct lu_env const *env , struct osc_extent *ext ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___1 ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___3 ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___5 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___6 ; int tmp___7 ; { tmp = atomic_read((atomic_t const *)(& ext->oe_refc)); tmp___0 = ldv__builtin_expect(tmp <= 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_put"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 380; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&ext->oe_refc) > 0"); lbug_with_loc(& __msg_data); } else { } tmp___7 = atomic_dec_and_test(& ext->oe_refc); if (tmp___7 != 0) { tmp___1 = list_empty((struct list_head const *)(& ext->oe_link)); tmp___2 = ldv__builtin_expect(tmp___1 == 0, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_extent_put"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 382; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&ext->oe_link)"); lbug_with_loc(& __msg_data___0); } else { } tmp___3 = atomic_read((atomic_t const *)(& ext->oe_users)); tmp___4 = ldv__builtin_expect(tmp___3 != 0, 0L); if (tmp___4 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "osc_extent_put"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 383; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&ext->oe_users) == 0"); lbug_with_loc(& __msg_data___1); } else { } tmp___5 = ldv__builtin_expect(ext->oe_state != 0U, 0L); if (tmp___5 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___2.msg_fn = "osc_extent_put"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 384; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_state == OES_INV"); lbug_with_loc(& __msg_data___2); } else { } tmp___6 = ldv__builtin_expect((long )*((unsigned char *)ext + 60UL) & 1L, 0L); if (tmp___6 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___3.msg_fn = "osc_extent_put"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 385; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"!ext->oe_intree"); lbug_with_loc(& __msg_data___3); } else { } if ((unsigned long )ext->oe_osclock != (unsigned long )((struct cl_lock *)0)) { cl_lock_put(env, ext->oe_osclock); ext->oe_osclock = (struct cl_lock *)0; } else { } osc_extent_free(ext); } else { } return; } } static void osc_extent_put_trust(struct osc_extent *ext ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___1 ; long tmp___2 ; { tmp = atomic_read((atomic_t const *)(& ext->oe_refc)); tmp___0 = ldv__builtin_expect(tmp <= 1, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_put_trust"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 402; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&ext->oe_refc) > 1"); lbug_with_loc(& __msg_data); } else { } tmp___1 = osc_object_is_locked(ext->oe_obj); tmp___2 = ldv__builtin_expect(tmp___1 == 0, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_extent_put_trust"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 403; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"osc_object_is_locked(ext->oe_obj)"); lbug_with_loc(& __msg_data___0); } else { } atomic_dec(& ext->oe_refc); return; } } static struct osc_extent *osc_extent_search(struct osc_object *obj , unsigned long index ) { struct rb_node *n ; struct osc_extent *tmp ; struct osc_extent *p ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; { n = obj->oo_root.rb_node; p = (struct osc_extent *)0; tmp___0 = osc_object_is_locked(obj); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_search"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 417; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_object_is_locked(obj)"); lbug_with_loc(& __msg_data); } else { } goto ldv_62410; ldv_62409: tmp = rb_extent(n); if (tmp->oe_start > index) { n = n->rb_left; } else if (tmp->oe_end < index) { p = rb_extent(n); n = n->rb_right; } else { return (tmp); } ldv_62410: ; if ((unsigned long )n != (unsigned long )((struct rb_node *)0)) { goto ldv_62409; } else { } return (p); } } static struct osc_extent *osc_extent_lookup(struct osc_object *obj , unsigned long index ) { struct osc_extent *ext ; struct osc_extent *tmp ; { ext = osc_extent_search(obj, index); if (((unsigned long )ext != (unsigned long )((struct osc_extent *)0) && ext->oe_start <= index) && ext->oe_end >= index) { tmp = osc_extent_get(ext); return (tmp); } else { } return ((struct osc_extent *)0); } } static void osc_extent_insert(struct osc_object *obj , struct osc_extent *ext ) { struct rb_node **n ; struct rb_node *parent ; struct osc_extent *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___2 ; long tmp___3 ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp___4 ; char tmp___5 ; char *tmp___6 ; char tmp___7 ; int tmp___8 ; int tmp___9 ; int tmp___10 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___11 ; { n = & obj->oo_root.rb_node; parent = (struct rb_node *)0; tmp___0 = ldv__builtin_expect((long )*((unsigned char *)ext + 60UL) & 1L, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_insert"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 454; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_intree == 0"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv__builtin_expect((unsigned long )ext->oe_obj != (unsigned long )obj, 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_extent_insert"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 455; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_obj == obj"); lbug_with_loc(& __msg_data___0); } else { } tmp___2 = osc_object_is_locked(obj); tmp___3 = ldv__builtin_expect(tmp___2 == 0, 0L); if (tmp___3 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "osc_extent_insert"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 456; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"osc_object_is_locked(obj)"); lbug_with_loc(& __msg_data___1); } else { } goto ldv_62433; ldv_62432: tmp = rb_extent(*n); parent = *n; if (ext->oe_end < tmp->oe_start) { n = & (*n)->rb_left; } else if (ext->oe_start > tmp->oe_end) { n = & (*n)->rb_right; } else { __ext = tmp; tmp___10 = cfs_cdebug_show(131072U, 8U); if (tmp___10 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_extent_insert"; msgdata.msg_line = 466; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___4 = waitqueue_active(& __ext->oe_waitq); tmp___5 = list_empty_marker(& __ext->oe_pages); tmp___6 = ext_flags(__ext, (char *)(& __buf)); tmp___7 = list_empty_marker(& __ext->oe_link); tmp___8 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___9 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} [%lu -> %lu/%lu]", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___9, tmp___8, (int )tmp___7, oes_strings[__ext->oe_state], tmp___6, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___5, tmp___4 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner, ext->oe_start, ext->oe_end, ext->oe_max_end); } else { } osc_extent_tree_dump0(131072, tmp->oe_obj, "osc_extent_insert", 466); tmp___11 = ldv__builtin_expect(1L, 0L); if (tmp___11 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___2.msg_fn = "osc_extent_insert"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 466; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"0"); lbug_with_loc(& __msg_data___2); } else { } } ldv_62433: ; if ((unsigned long )*n != (unsigned long )((struct rb_node *)0)) { goto ldv_62432; } else { } rb_link_node(& ext->oe_node, parent, n); rb_insert_color(& ext->oe_node, & obj->oo_root); osc_extent_get(ext); ext->oe_intree = 1U; return; } } static void osc_extent_erase(struct osc_extent *ext ) { struct osc_object *obj ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; { obj = ext->oe_obj; tmp = osc_object_is_locked(obj); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_erase"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 478; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_object_is_locked(obj)"); lbug_with_loc(& __msg_data); } else { } if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U) { rb_erase(& ext->oe_node, & obj->oo_root); ext->oe_intree = 0U; osc_extent_put_trust(ext); } else { } return; } } static struct osc_extent *osc_extent_hold(struct osc_extent *ext ) { struct osc_object *obj ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; struct osc_extent *tmp___2 ; { obj = ext->oe_obj; tmp = osc_object_is_locked(obj); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_hold"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 491; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_object_is_locked(obj)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv__builtin_expect((long )(ext->oe_state != 1U && ext->oe_state != 2U), 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_extent_hold"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 492; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_state == OES_ACTIVE || ext->oe_state == OES_CACHE"); lbug_with_loc(& __msg_data___0); } else { } if (ext->oe_state == 2U) { osc_extent_state_set(ext, 1); osc_update_pending(obj, 2, (int )(- ext->oe_nr_pages)); } else { } atomic_inc(& ext->oe_users); list_del_init(& ext->oe_link); tmp___2 = osc_extent_get(ext); return (tmp___2); } } static void __osc_extent_remove(struct osc_extent *ext ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___1 ; long tmp___2 ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp___3 ; char tmp___4 ; char *tmp___5 ; char tmp___6 ; int tmp___7 ; int tmp___8 ; int tmp___9 ; { tmp = osc_object_is_locked(ext->oe_obj); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "__osc_extent_remove"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 504; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_object_is_locked(ext->oe_obj)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = list_empty((struct list_head const *)(& ext->oe_pages)); tmp___2 = ldv__builtin_expect(tmp___1 == 0, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "__osc_extent_remove"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 505; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&ext->oe_pages)"); lbug_with_loc(& __msg_data___0); } else { } osc_extent_erase(ext); list_del_init(& ext->oe_link); osc_extent_state_set(ext, 0); __ext = ext; tmp___9 = cfs_cdebug_show(32U, 8U); if (tmp___9 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "__osc_extent_remove"; msgdata.msg_line = 509; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; tmp___3 = waitqueue_active(& __ext->oe_waitq); tmp___4 = list_empty_marker(& __ext->oe_pages); tmp___5 = ext_flags(__ext, (char *)(& __buf)); tmp___6 = list_empty_marker(& __ext->oe_link); tmp___7 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___8 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} destroyed.\n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___8, tmp___7, (int )tmp___6, oes_strings[__ext->oe_state], tmp___5, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___4, tmp___3 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner); } else { } return; } } static void osc_extent_remove(struct osc_extent *ext ) { struct osc_object *obj ; { obj = ext->oe_obj; osc_object_lock(obj); __osc_extent_remove(ext); osc_object_unlock(obj); return; } } static int osc_extent_merge(struct lu_env const *env , struct osc_extent *cur , struct osc_extent *victim ) { struct osc_object *obj ; unsigned long chunk_start ; unsigned long chunk_end ; int ppc_bits ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___2 ; struct client_obd *tmp___3 ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp___4 ; char tmp___5 ; char *tmp___6 ; char tmp___7 ; int tmp___8 ; int tmp___9 ; int tmp___10 ; unsigned long _min1 ; unsigned long _min2 ; unsigned long _max1 ; unsigned long _max2 ; struct osc_extent *__ext___0 ; char __buf___0[16U] ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___11 ; char tmp___12 ; char *tmp___13 ; char tmp___14 ; int tmp___15 ; int tmp___16 ; int tmp___17 ; { obj = cur->oe_obj; tmp = ldv__builtin_expect(cur->oe_state != 2U, 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_merge"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 533; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cur->oe_state == OES_CACHE"); lbug_with_loc(& __msg_data); } else { } tmp___0 = osc_object_is_locked(obj); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_extent_merge"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 534; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"osc_object_is_locked(obj)"); lbug_with_loc(& __msg_data___0); } else { } if ((unsigned long )victim == (unsigned long )((struct osc_extent *)0)) { return (-22); } else { } if (victim->oe_state != 2U || (unsigned int )*((unsigned char *)victim + 60UL) != 0U) { return (-16); } else { } if (cur->oe_max_end != victim->oe_max_end) { return (-34); } else { } tmp___2 = ldv__builtin_expect((unsigned long )cur->oe_osclock != (unsigned long )victim->oe_osclock, 0L); if (tmp___2 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "osc_extent_merge"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 544; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"cur->oe_osclock == victim->oe_osclock"); lbug_with_loc(& __msg_data___1); } else { } tmp___3 = osc_cli___1((struct osc_object const *)obj); ppc_bits = tmp___3->cl_chunkbits + -12; chunk_start = cur->oe_start >> ppc_bits; chunk_end = cur->oe_end >> ppc_bits; if ((victim->oe_end >> ppc_bits) + 1UL != chunk_start && chunk_end + 1UL != victim->oe_start >> ppc_bits) { return (-34); } else { } __ext = victim; tmp___10 = cfs_cdebug_show(32U, 8U); if (tmp___10 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_extent_merge"; msgdata.msg_line = 552; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; tmp___4 = waitqueue_active(& __ext->oe_waitq); tmp___5 = list_empty_marker(& __ext->oe_pages); tmp___6 = ext_flags(__ext, (char *)(& __buf)); tmp___7 = list_empty_marker(& __ext->oe_link); tmp___8 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___9 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} will be merged by %p.\n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___9, tmp___8, (int )tmp___7, oes_strings[__ext->oe_state], tmp___6, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___5, tmp___4 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner, cur); } else { } _min1 = cur->oe_start; _min2 = victim->oe_start; cur->oe_start = _min1 < _min2 ? _min1 : _min2; _max1 = cur->oe_end; _max2 = victim->oe_end; cur->oe_end = _max1 > _max2 ? _max1 : _max2; cur->oe_grants = cur->oe_grants + victim->oe_grants; cur->oe_nr_pages = cur->oe_nr_pages + victim->oe_nr_pages; cur->oe_urgent = (unsigned char )((int )cur->oe_urgent | (int )victim->oe_urgent); cur->oe_memalloc = (unsigned char )((int )cur->oe_memalloc | (int )victim->oe_memalloc); list_splice_init(& victim->oe_pages, & cur->oe_pages); list_del_init(& victim->oe_link); victim->oe_nr_pages = 0U; osc_extent_get(victim); __osc_extent_remove(victim); osc_extent_put(env, victim); __ext___0 = cur; tmp___17 = cfs_cdebug_show(32U, 8U); if (tmp___17 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_extent_merge"; msgdata___0.msg_line = 569; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32; tmp___11 = waitqueue_active(& __ext___0->oe_waitq); tmp___12 = list_empty_marker(& __ext___0->oe_pages); tmp___13 = ext_flags(__ext___0, (char *)(& __buf___0)); tmp___14 = list_empty_marker(& __ext___0->oe_link); tmp___15 = atomic_read((atomic_t const *)(& __ext___0->oe_users)); tmp___16 = atomic_read((atomic_t const *)(& __ext___0->oe_refc)); libcfs_debug_msg(& msgdata___0, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} after merging %p.\n", __ext___0, __ext___0->oe_start, __ext___0->oe_end, __ext___0->oe_max_end, tmp___16, tmp___15, (int )tmp___14, oes_strings[__ext___0->oe_state], tmp___13, __ext___0->oe_obj, __ext___0->oe_grants, __ext___0->oe_nr_pages, (int )tmp___12, tmp___11 != 0 ? 43 : 45, __ext___0->oe_osclock, __ext___0->oe_mppr, __ext___0->oe_owner, victim); } else { } return (0); } } void osc_extent_release(struct lu_env const *env , struct osc_extent *ext ) { struct osc_object *obj ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; int __res ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___3 ; struct osc_extent *tmp___4 ; struct osc_extent *tmp___5 ; struct client_obd *tmp___6 ; int tmp___7 ; { obj = ext->oe_obj; tmp = atomic_read((atomic_t const *)(& ext->oe_users)); tmp___0 = ldv__builtin_expect(tmp <= 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_release"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 580; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&ext->oe_users) > 0"); lbug_with_loc(& __msg_data); } else { } osc_object_lock(ext->oe_obj); __res = osc_extent_sanity_check0(ext, "osc_extent_release", 581); osc_object_unlock(ext->oe_obj); tmp___1 = ldv__builtin_expect(__res != 0, 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_extent_release"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 581; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"({ int __res; osc_object_lock((ext)->oe_obj); __res = osc_extent_sanity_check0(ext, __func__, 581); osc_object_unlock((ext)->oe_obj); __res; }) == 0"); lbug_with_loc(& __msg_data___0); } else { } tmp___2 = ldv__builtin_expect(ext->oe_grants == 0U, 0L); if (tmp___2 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "osc_extent_release"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 582; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_grants > 0"); lbug_with_loc(& __msg_data___1); } else { } tmp___7 = ldv_spin_trylock(); if (tmp___7 != 0) { tmp___3 = ldv__builtin_expect(ext->oe_state != 1U, 0L); if (tmp___3 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___2.msg_fn = "osc_extent_release"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 585; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_state == OES_ACTIVE"); lbug_with_loc(& __msg_data___2); } else { } if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U) { osc_extent_state_set(ext, 6); ext->oe_trunc_pending = 0U; } else { osc_extent_state_set(ext, 2); osc_update_pending(obj, 2, (int )ext->oe_nr_pages); tmp___4 = prev_extent(ext); osc_extent_merge(env, ext, tmp___4); tmp___5 = next_extent(ext); osc_extent_merge(env, ext, tmp___5); if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U) { list_move_tail(& ext->oe_link, & obj->oo_urgent_exts); } else { } } osc_object_unlock(obj); tmp___6 = osc_cli___1((struct osc_object const *)obj); osc_io_unplug_async(env, tmp___6, obj); } else { } osc_extent_put(env, ext); return; } } __inline static int overlapped(struct osc_extent *ex1 , struct osc_extent *ex2 ) { { return (ex1->oe_end >= ex2->oe_start && ex2->oe_end >= ex1->oe_start); } } struct osc_extent *osc_extent_find(struct lu_env const *env , struct osc_object *obj , unsigned long index , int *grants ) { struct client_obd *cli ; struct client_obd *tmp ; struct cl_lock *lock ; struct osc_extent *cur ; struct osc_extent *ext ; struct osc_extent *conflict ; struct osc_extent *found ; unsigned long chunk ; unsigned long max_end ; int max_pages ; int chunksize ; int ppc_bits ; int chunk_mask ; int rc ; void *tmp___0 ; struct cl_object *tmp___1 ; struct libcfs_debug_msg_data __msg_data ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___3 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___5 ; unsigned long __min1 ; unsigned long __min2 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___6 ; struct libcfs_debug_msg_data __msg_data___4 ; long tmp___7 ; loff_t ext_chk_start ; loff_t ext_chk_end ; struct libcfs_debug_msg_data __msg_data___5 ; int tmp___8 ; long tmp___9 ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp___10 ; char tmp___11 ; char *tmp___12 ; char tmp___13 ; int tmp___14 ; int tmp___15 ; int tmp___16 ; struct libcfs_debug_msg_data __msg_data___6 ; int tmp___17 ; long tmp___18 ; int tmp___19 ; struct osc_extent *__ext___0 ; char __buf___0[16U] ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___20 ; char tmp___21 ; char *tmp___22 ; char tmp___23 ; int tmp___24 ; int tmp___25 ; int tmp___26 ; struct libcfs_debug_msg_data __msg_data___7 ; long tmp___27 ; int tmp___28 ; struct osc_extent *__ext___1 ; char __buf___1[16U] ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___29 ; char tmp___30 ; char *tmp___31 ; char tmp___32 ; int tmp___33 ; int tmp___34 ; int tmp___35 ; struct libcfs_debug_msg_data __msg_data___8 ; long tmp___36 ; struct osc_extent *tmp___37 ; int tmp___38 ; struct libcfs_debug_msg_data __msg_data___9 ; long tmp___39 ; struct libcfs_debug_msg_data __msg_data___10 ; long tmp___40 ; struct osc_extent *__ext___2 ; char __buf___2[16U] ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___41 ; char tmp___42 ; char *tmp___43 ; char tmp___44 ; int tmp___45 ; int tmp___46 ; int tmp___47 ; bool tmp___48 ; int tmp___49 ; struct osc_extent *__ext___3 ; char __buf___3[16U] ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___50 ; char tmp___51 ; char *tmp___52 ; char tmp___53 ; int tmp___54 ; int tmp___55 ; int tmp___56 ; struct libcfs_debug_msg_data __msg_data___11 ; int tmp___57 ; long tmp___58 ; int tmp___59 ; struct libcfs_debug_msg_data __msg_data___12 ; long tmp___60 ; struct osc_extent *__ext___4 ; char __buf___4[16U] ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___61 ; char tmp___62 ; char *tmp___63 ; char tmp___64 ; int tmp___65 ; int tmp___66 ; int tmp___67 ; struct libcfs_debug_msg_data __msg_data___13 ; long tmp___68 ; void *tmp___69 ; struct libcfs_debug_msg_data __msg_data___14 ; long tmp___70 ; { tmp = osc_cli___1((struct osc_object const *)obj); cli = tmp; conflict = (struct osc_extent *)0; found = (struct osc_extent *)0; cur = osc_extent_alloc(obj); if ((unsigned long )cur == (unsigned long )((struct osc_extent *)0)) { tmp___0 = ERR_PTR(-12L); return ((struct osc_extent *)tmp___0); } else { } tmp___1 = osc2cl((struct osc_object const *)obj); lock = cl_lock_at_pgoff(env, tmp___1, index, (struct cl_lock *)0, 1, 0); tmp___2 = ldv__builtin_expect((unsigned long )lock == (unsigned long )((struct cl_lock *)0), 0L); if (tmp___2 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_find"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 645; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"lock != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___3 = ldv__builtin_expect((unsigned int )lock->cll_descr.cld_mode <= 1U, 0L); if (tmp___3 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_extent_find"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 646; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"lock->cll_descr.cld_mode >= CLM_WRITE"); lbug_with_loc(& __msg_data___0); } else { } tmp___4 = ldv__builtin_expect(cli->cl_chunkbits <= 11, 0L); if (tmp___4 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "osc_extent_find"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 648; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"cli->cl_chunkbits >= 12"); lbug_with_loc(& __msg_data___1); } else { } ppc_bits = cli->cl_chunkbits + -12; chunk_mask = - (1 << ppc_bits); chunksize = 1 << cli->cl_chunkbits; chunk = index >> ppc_bits; max_pages = (int )cli->cl_max_pages_per_rpc; tmp___5 = ldv__builtin_expect((~ chunk_mask & max_pages) != 0, 0L); if (tmp___5 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___2.msg_fn = "osc_extent_find"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 656; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"(max_pages & ~chunk_mask) == 0"); lbug_with_loc(& __msg_data___2); } else { } max_end = ((index - index % (unsigned long )max_pages) + (unsigned long )max_pages) - 1UL; __min1 = max_end; __min2 = lock->cll_descr.cld_end; max_end = __min1 < __min2 ? __min1 : __min2; cur->oe_max_end = max_end; cur->oe_start = (unsigned long )chunk_mask & index; cur->oe_end = ((((unsigned long )(~ chunk_mask) + index) + 1UL) & (unsigned long )chunk_mask) - 1UL; if (cur->oe_start < lock->cll_descr.cld_start) { cur->oe_start = lock->cll_descr.cld_start; } else { } if (cur->oe_end > max_end) { cur->oe_end = max_end; } else { } cur->oe_osclock = lock; cur->oe_grants = 0U; cur->oe_mppr = (unsigned int )max_pages; tmp___6 = ldv__builtin_expect(*grants < cli->cl_extent_tax + chunksize, 0L); if (tmp___6 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___3.msg_fn = "osc_extent_find"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 674; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: %u/%u/%u.\n", (char *)"*grants >= chunksize + cli->cl_extent_tax", *grants, chunksize, cli->cl_extent_tax); lbug_with_loc(& __msg_data___3); } else { } tmp___7 = ldv__builtin_expect(max_end - cur->oe_start >= (unsigned long )max_pages, 0L); if (tmp___7 != 0L) { __msg_data___4.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___4.msg_fn = "osc_extent_find"; __msg_data___4.msg_subsys = 8; __msg_data___4.msg_line = 675; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: [%lu -> %lu/%lu]", (char *)"(max_end - cur->oe_start) < max_pages", cur->oe_start, cur->oe_end, cur->oe_max_end); lbug_with_loc(& __msg_data___4); } else { } restart: osc_object_lock(obj); ext = osc_extent_search(obj, cur->oe_start); if ((unsigned long )ext == (unsigned long )((struct osc_extent *)0)) { ext = first_extent(obj); } else { } goto ldv_62540; ldv_62549: ext_chk_start = (loff_t )(ext->oe_start >> ppc_bits); ext_chk_end = (loff_t )(ext->oe_end >> ppc_bits); tmp___8 = osc_extent_sanity_check0(ext, "osc_extent_find", 686); tmp___9 = ldv__builtin_expect(tmp___8 != 0, 0L); if (tmp___9 != 0L) { __msg_data___5.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___5.msg_fn = "osc_extent_find"; __msg_data___5.msg_subsys = 8; __msg_data___5.msg_line = 686; __msg_data___5.msg_mask = 0; __msg_data___5.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___5.msg_mask = 262144; libcfs_debug_msg(& __msg_data___5, "ASSERTION( %s ) failed: \n", (char *)"osc_extent_sanity_check0(ext, __func__, 686) == 0"); lbug_with_loc(& __msg_data___5); } else { } if ((unsigned long long )(ext_chk_end + 1LL) < (unsigned long long )chunk) { goto ldv_62535; } else { } if ((unsigned long )ext->oe_osclock != (unsigned long )lock) { tmp___19 = overlapped(ext, cur); if (tmp___19 != 0) { __ext = ext; tmp___16 = cfs_cdebug_show(131072U, 8U); if (tmp___16 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_extent_find"; msgdata.msg_line = 693; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___10 = waitqueue_active(& __ext->oe_waitq); tmp___11 = list_empty_marker(& __ext->oe_pages); tmp___12 = ext_flags(__ext, (char *)(& __buf)); tmp___13 = list_empty_marker(& __ext->oe_link); tmp___14 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___15 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} [%lu -> %lu/%lu]", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___15, tmp___14, (int )tmp___13, oes_strings[__ext->oe_state], tmp___12, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___11, tmp___10 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner, cur->oe_start, cur->oe_end, cur->oe_max_end); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_extent_find", 693); tmp___17 = overlapped(ext, cur); tmp___18 = ldv__builtin_expect(tmp___17 != 0, 0L); if (tmp___18 != 0L) { __msg_data___6.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___6.msg_fn = "osc_extent_find"; __msg_data___6.msg_subsys = 8; __msg_data___6.msg_line = 693; __msg_data___6.msg_mask = 0; __msg_data___6.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___6.msg_mask = 262144; libcfs_debug_msg(& __msg_data___6, "ASSERTION( %s ) failed: \n", (char *)"!overlapped(ext, cur)"); lbug_with_loc(& __msg_data___6); } else { } } else { } ext = next_extent(ext); goto ldv_62540; } else { } if ((unsigned long long )(chunk + 1UL) < (unsigned long long )ext_chk_start) { ext = next_extent(ext); goto ldv_62540; } else { } tmp___28 = overlapped(ext, cur); if (tmp___28 != 0) { if (ext->oe_start > cur->oe_start || ext->oe_end < cur->oe_end) { __ext___0 = ext; tmp___26 = cfs_cdebug_show(131072U, 8U); if (tmp___26 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_extent_find"; msgdata___0.msg_line = 714; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; tmp___20 = waitqueue_active(& __ext___0->oe_waitq); tmp___21 = list_empty_marker(& __ext___0->oe_pages); tmp___22 = ext_flags(__ext___0, (char *)(& __buf___0)); tmp___23 = list_empty_marker(& __ext___0->oe_link); tmp___24 = atomic_read((atomic_t const *)(& __ext___0->oe_users)); tmp___25 = atomic_read((atomic_t const *)(& __ext___0->oe_refc)); libcfs_debug_msg(& msgdata___0, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} [%lu -> %lu/%lu]", __ext___0, __ext___0->oe_start, __ext___0->oe_end, __ext___0->oe_max_end, tmp___25, tmp___24, (int )tmp___23, oes_strings[__ext___0->oe_state], tmp___22, __ext___0->oe_obj, __ext___0->oe_grants, __ext___0->oe_nr_pages, (int )tmp___21, tmp___20 != 0 ? 43 : 45, __ext___0->oe_osclock, __ext___0->oe_mppr, __ext___0->oe_owner, cur->oe_start, cur->oe_end, cur->oe_max_end); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_extent_find", 714); tmp___27 = ldv__builtin_expect((long )(ext->oe_start > cur->oe_start || ext->oe_end < cur->oe_end), 0L); if (tmp___27 != 0L) { __msg_data___7.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___7.msg_fn = "osc_extent_find"; __msg_data___7.msg_subsys = 8; __msg_data___7.msg_line = 714; __msg_data___7.msg_mask = 0; __msg_data___7.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___7.msg_mask = 262144; libcfs_debug_msg(& __msg_data___7, "ASSERTION( %s ) failed: \n", (char *)"(ext->oe_start <= cur->oe_start && ext->oe_end >= cur->oe_end)"); lbug_with_loc(& __msg_data___7); } else { } } else { } if (ext->oe_state > 2U || (unsigned int )*((unsigned char *)ext + 60UL) != 0U) { conflict = osc_extent_get(ext); goto ldv_62535; } else { } found = osc_extent_hold(ext); goto ldv_62535; } else { } if (ext->oe_state != 2U || (unsigned int )*((unsigned char *)ext + 60UL) != 0U) { ext = next_extent(ext); goto ldv_62540; } else { } if (ext->oe_max_end != max_end) { ext = next_extent(ext); goto ldv_62540; } else { } if ((unsigned long long )(chunk + 1UL) == (unsigned long long )ext_chk_start) { if ((ext->oe_start & (unsigned long )(~ chunk_mask)) != 0UL) { __ext___1 = ext; tmp___35 = cfs_cdebug_show(131072U, 8U); if (tmp___35 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "osc_extent_find"; msgdata___1.msg_line = 755; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 131072; tmp___29 = waitqueue_active(& __ext___1->oe_waitq); tmp___30 = list_empty_marker(& __ext___1->oe_pages); tmp___31 = ext_flags(__ext___1, (char *)(& __buf___1)); tmp___32 = list_empty_marker(& __ext___1->oe_link); tmp___33 = atomic_read((atomic_t const *)(& __ext___1->oe_users)); tmp___34 = atomic_read((atomic_t const *)(& __ext___1->oe_refc)); libcfs_debug_msg(& msgdata___1, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext___1, __ext___1->oe_start, __ext___1->oe_end, __ext___1->oe_max_end, tmp___34, tmp___33, (int )tmp___32, oes_strings[__ext___1->oe_state], tmp___31, __ext___1->oe_obj, __ext___1->oe_grants, __ext___1->oe_nr_pages, (int )tmp___30, tmp___29 != 0 ? 43 : 45, __ext___1->oe_osclock, __ext___1->oe_mppr, __ext___1->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_extent_find", 755); tmp___36 = ldv__builtin_expect((ext->oe_start & (unsigned long )(~ chunk_mask)) != 0UL, 0L); if (tmp___36 != 0L) { __msg_data___8.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___8.msg_fn = "osc_extent_find"; __msg_data___8.msg_subsys = 8; __msg_data___8.msg_line = 755; __msg_data___8.msg_mask = 0; __msg_data___8.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___8.msg_mask = 262144; libcfs_debug_msg(& __msg_data___8, "ASSERTION( %s ) failed: \n", (char *)"(ext->oe_start & ~chunk_mask) == 0"); lbug_with_loc(& __msg_data___8); } else { } } else { } ext->oe_start = cur->oe_start; ext->oe_grants = ext->oe_grants + (unsigned int )chunksize; *grants = *grants - chunksize; found = osc_extent_hold(ext); } else if ((unsigned long long )(ext_chk_end + 1LL) == (unsigned long long )chunk) { ext->oe_end = cur->oe_end; ext->oe_grants = ext->oe_grants + (unsigned int )chunksize; *grants = *grants - chunksize; tmp___37 = next_extent(ext); tmp___38 = osc_extent_merge(env, ext, tmp___37); if (tmp___38 == 0) { *grants = *grants + cli->cl_extent_tax; } else { } found = osc_extent_hold(ext); } else { } if ((unsigned long )found != (unsigned long )((struct osc_extent *)0)) { goto ldv_62535; } else { } ext = next_extent(ext); ldv_62540: ; if ((unsigned long )ext != (unsigned long )((struct osc_extent *)0)) { goto ldv_62549; } else { } ldv_62535: osc_extent_tree_dump0(32, obj, "osc_extent_find", 783); if ((unsigned long )found != (unsigned long )((struct osc_extent *)0)) { tmp___39 = ldv__builtin_expect((unsigned long )conflict != (unsigned long )((struct osc_extent *)0), 0L); if (tmp___39 != 0L) { __msg_data___9.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___9.msg_fn = "osc_extent_find"; __msg_data___9.msg_subsys = 8; __msg_data___9.msg_line = 785; __msg_data___9.msg_mask = 0; __msg_data___9.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___9.msg_mask = 262144; libcfs_debug_msg(& __msg_data___9, "ASSERTION( %s ) failed: \n", (char *)"conflict == ((void *)0)"); lbug_with_loc(& __msg_data___9); } else { } tmp___48 = IS_ERR((void const *)found); if (tmp___48) { tmp___49 = 0; } else { tmp___49 = 1; } if (tmp___49) { tmp___40 = ldv__builtin_expect((unsigned long )found->oe_osclock != (unsigned long )cur->oe_osclock, 0L); if (tmp___40 != 0L) { __msg_data___10.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___10.msg_fn = "osc_extent_find"; __msg_data___10.msg_subsys = 8; __msg_data___10.msg_line = 787; __msg_data___10.msg_mask = 0; __msg_data___10.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___10.msg_mask = 262144; libcfs_debug_msg(& __msg_data___10, "ASSERTION( %s ) failed: \n", (char *)"found->oe_osclock == cur->oe_osclock"); lbug_with_loc(& __msg_data___10); } else { } __ext___2 = found; tmp___47 = cfs_cdebug_show(32U, 8U); if (tmp___47 != 0) { msgdata___2.msg_subsys = 8; msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___2.msg_fn = "osc_extent_find"; msgdata___2.msg_line = 789; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 32; tmp___41 = waitqueue_active(& __ext___2->oe_waitq); tmp___42 = list_empty_marker(& __ext___2->oe_pages); tmp___43 = ext_flags(__ext___2, (char *)(& __buf___2)); tmp___44 = list_empty_marker(& __ext___2->oe_link); tmp___45 = atomic_read((atomic_t const *)(& __ext___2->oe_users)); tmp___46 = atomic_read((atomic_t const *)(& __ext___2->oe_refc)); libcfs_debug_msg(& msgdata___2, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} found caching ext for %lu.\n", __ext___2, __ext___2->oe_start, __ext___2->oe_end, __ext___2->oe_max_end, tmp___46, tmp___45, (int )tmp___44, oes_strings[__ext___2->oe_state], tmp___43, __ext___2->oe_obj, __ext___2->oe_grants, __ext___2->oe_nr_pages, (int )tmp___42, tmp___41 != 0 ? 43 : 45, __ext___2->oe_osclock, __ext___2->oe_mppr, __ext___2->oe_owner, index); } else { } } else { } } else if ((unsigned long )conflict == (unsigned long )((struct osc_extent *)0)) { tmp___59 = osc_extent_is_overlapped(obj, cur); if (tmp___59 != 0) { __ext___3 = cur; tmp___56 = cfs_cdebug_show(131072U, 8U); if (tmp___56 != 0) { msgdata___3.msg_subsys = 8; msgdata___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___3.msg_fn = "osc_extent_find"; msgdata___3.msg_line = 793; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 131072; tmp___50 = waitqueue_active(& __ext___3->oe_waitq); tmp___51 = list_empty_marker(& __ext___3->oe_pages); tmp___52 = ext_flags(__ext___3, (char *)(& __buf___3)); tmp___53 = list_empty_marker(& __ext___3->oe_link); tmp___54 = atomic_read((atomic_t const *)(& __ext___3->oe_users)); tmp___55 = atomic_read((atomic_t const *)(& __ext___3->oe_refc)); libcfs_debug_msg(& msgdata___3, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext___3, __ext___3->oe_start, __ext___3->oe_end, __ext___3->oe_max_end, tmp___55, tmp___54, (int )tmp___53, oes_strings[__ext___3->oe_state], tmp___52, __ext___3->oe_obj, __ext___3->oe_grants, __ext___3->oe_nr_pages, (int )tmp___51, tmp___50 != 0 ? 43 : 45, __ext___3->oe_osclock, __ext___3->oe_mppr, __ext___3->oe_owner); } else { } osc_extent_tree_dump0(131072, cur->oe_obj, "osc_extent_find", 793); tmp___57 = osc_extent_is_overlapped(obj, cur); tmp___58 = ldv__builtin_expect(tmp___57 != 0, 0L); if (tmp___58 != 0L) { __msg_data___11.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___11.msg_fn = "osc_extent_find"; __msg_data___11.msg_subsys = 8; __msg_data___11.msg_line = 793; __msg_data___11.msg_mask = 0; __msg_data___11.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___11.msg_mask = 262144; libcfs_debug_msg(& __msg_data___11, "ASSERTION( %s ) failed: \n", (char *)"osc_extent_is_overlapped(obj, cur) == 0"); lbug_with_loc(& __msg_data___11); } else { } } else { } cur->oe_grants = (unsigned int )(cli->cl_extent_tax + chunksize); *grants = (int )((unsigned int )*grants - cur->oe_grants); tmp___60 = ldv__builtin_expect(*grants < 0, 0L); if (tmp___60 != 0L) { __msg_data___12.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___12.msg_fn = "osc_extent_find"; __msg_data___12.msg_subsys = 8; __msg_data___12.msg_line = 796; __msg_data___12.msg_mask = 0; __msg_data___12.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___12.msg_mask = 262144; libcfs_debug_msg(& __msg_data___12, "ASSERTION( %s ) failed: \n", (char *)"*grants >= 0"); lbug_with_loc(& __msg_data___12); } else { } cur->oe_state = 2U; found = osc_extent_hold(cur); osc_extent_insert(obj, cur); __ext___4 = cur; tmp___67 = cfs_cdebug_show(32U, 8U); if (tmp___67 != 0) { msgdata___4.msg_subsys = 8; msgdata___4.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___4.msg_fn = "osc_extent_find"; msgdata___4.msg_line = 802; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 32; tmp___61 = waitqueue_active(& __ext___4->oe_waitq); tmp___62 = list_empty_marker(& __ext___4->oe_pages); tmp___63 = ext_flags(__ext___4, (char *)(& __buf___4)); tmp___64 = list_empty_marker(& __ext___4->oe_link); tmp___65 = atomic_read((atomic_t const *)(& __ext___4->oe_users)); tmp___66 = atomic_read((atomic_t const *)(& __ext___4->oe_refc)); libcfs_debug_msg(& msgdata___4, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} add into tree %lu/%lu.\n", __ext___4, __ext___4->oe_start, __ext___4->oe_end, __ext___4->oe_max_end, tmp___66, tmp___65, (int )tmp___64, oes_strings[__ext___4->oe_state], tmp___63, __ext___4->oe_obj, __ext___4->oe_grants, __ext___4->oe_nr_pages, (int )tmp___62, tmp___61 != 0 ? 43 : 45, __ext___4->oe_osclock, __ext___4->oe_mppr, __ext___4->oe_owner, index, lock->cll_descr.cld_end); } else { } } else { } osc_object_unlock(obj); if ((unsigned long )conflict != (unsigned long )((struct osc_extent *)0)) { tmp___68 = ldv__builtin_expect((unsigned long )found != (unsigned long )((struct osc_extent *)0), 0L); if (tmp___68 != 0L) { __msg_data___13.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___13.msg_fn = "osc_extent_find"; __msg_data___13.msg_subsys = 8; __msg_data___13.msg_line = 807; __msg_data___13.msg_mask = 0; __msg_data___13.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___13.msg_mask = 262144; libcfs_debug_msg(& __msg_data___13, "ASSERTION( %s ) failed: \n", (char *)"found == ((void *)0)"); lbug_with_loc(& __msg_data___13); } else { } rc = osc_extent_wait(env, conflict, 0); osc_extent_put(env, conflict); conflict = (struct osc_extent *)0; if (rc < 0) { tmp___69 = ERR_PTR((long )rc); found = (struct osc_extent *)tmp___69; goto out; } else { } goto restart; } else { } out: osc_extent_put(env, cur); tmp___70 = ldv__builtin_expect(*grants < 0, 0L); if (tmp___70 != 0L) { __msg_data___14.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___14.msg_fn = "osc_extent_find"; __msg_data___14.msg_subsys = 8; __msg_data___14.msg_line = 824; __msg_data___14.msg_mask = 0; __msg_data___14.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___14.msg_mask = 262144; libcfs_debug_msg(& __msg_data___14, "ASSERTION( %s ) failed: \n", (char *)"*grants >= 0"); lbug_with_loc(& __msg_data___14); } else { } return (found); } } int osc_extent_finish(struct lu_env const *env , struct osc_extent *ext , int sent , int rc ) { struct client_obd *cli ; struct client_obd *tmp ; struct osc_async_page *oap ; struct osc_async_page *tmp___0 ; int nr_pages ; int lost_grant ; int blocksize ; __u64 last_off ; int last_count ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; char tmp___2 ; char *tmp___3 ; char tmp___4 ; int tmp___5 ; int tmp___6 ; int tmp___7 ; struct osc_extent *__ext___0 ; char __buf___0[16U] ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___8 ; char tmp___9 ; char *tmp___10 ; char tmp___11 ; int tmp___12 ; int tmp___13 ; int tmp___14 ; struct libcfs_debug_msg_data __msg_data ; long tmp___15 ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; struct osc_extent *__ext___1 ; char __buf___1[16U] ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___16 ; char tmp___17 ; char *tmp___18 ; char tmp___19 ; int tmp___20 ; int tmp___21 ; int tmp___22 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___23 ; int offset ; int count ; int end ; { tmp = osc_cli___1((struct osc_object const *)ext->oe_obj); cli = tmp; nr_pages = (int )ext->oe_nr_pages; lost_grant = 0; blocksize = ((cli->cl_import)->imp_obd)->obd_osfs.os_bsize != 0U ? (int )((cli->cl_import)->imp_obd)->obd_osfs.os_bsize : 4096; last_off = 0ULL; last_count = -1; __ext = ext; tmp___7 = cfs_cdebug_show(32U, 8U); if (tmp___7 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_extent_finish"; msgdata.msg_line = 843; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; tmp___1 = waitqueue_active(& __ext->oe_waitq); tmp___2 = list_empty_marker(& __ext->oe_pages); tmp___3 = ext_flags(__ext, (char *)(& __buf)); tmp___4 = list_empty_marker(& __ext->oe_link); tmp___5 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___6 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} extent finished.\n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___6, tmp___5, (int )tmp___4, oes_strings[__ext->oe_state], tmp___3, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___2, tmp___1 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner); } else { } ext->oe_rc = rc != 0 ? rc != 0 : (int )ext->oe_nr_pages; if (rc == 0 && ext->oe_state != 5U) { __ext___0 = ext; tmp___14 = cfs_cdebug_show(131072U, 8U); if (tmp___14 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_extent_finish"; msgdata___0.msg_line = 846; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; tmp___8 = waitqueue_active(& __ext___0->oe_waitq); tmp___9 = list_empty_marker(& __ext___0->oe_pages); tmp___10 = ext_flags(__ext___0, (char *)(& __buf___0)); tmp___11 = list_empty_marker(& __ext___0->oe_link); tmp___12 = atomic_read((atomic_t const *)(& __ext___0->oe_users)); tmp___13 = atomic_read((atomic_t const *)(& __ext___0->oe_refc)); libcfs_debug_msg(& msgdata___0, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext___0, __ext___0->oe_start, __ext___0->oe_end, __ext___0->oe_max_end, tmp___13, tmp___12, (int )tmp___11, oes_strings[__ext___0->oe_state], tmp___10, __ext___0->oe_obj, __ext___0->oe_grants, __ext___0->oe_nr_pages, (int )tmp___9, tmp___8 != 0 ? 43 : 45, __ext___0->oe_osclock, __ext___0->oe_mppr, __ext___0->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_extent_finish", 846); tmp___15 = ldv__builtin_expect((long )(rc == 0 && ext->oe_state != 5U), 0L); if (tmp___15 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_finish"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 846; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(!(rc == 0) || (ext->oe_state == OES_RPC))"); lbug_with_loc(& __msg_data); } else { } } else { } __mptr = (struct list_head const *)ext->oe_pages.next; oap = (struct osc_async_page *)__mptr + 0xfffffffffffffff8UL; __mptr___0 = (struct list_head const *)oap->oap_pending_item.next; tmp___0 = (struct osc_async_page *)__mptr___0 + 0xfffffffffffffff8UL; goto ldv_62595; ldv_62594: list_del_init(& oap->oap_rpc_item); list_del_init(& oap->oap_pending_item); if (oap->oap_obj_off >= last_off) { last_off = oap->oap_obj_off; last_count = oap->oap_brw_page.count; } else { } ext->oe_nr_pages = ext->oe_nr_pages - 1U; osc_ap_completion(env, cli, oap, sent, rc); oap = tmp___0; __mptr___1 = (struct list_head const *)tmp___0->oap_pending_item.next; tmp___0 = (struct osc_async_page *)__mptr___1 + 0xfffffffffffffff8UL; ldv_62595: ; if ((unsigned long )(& oap->oap_pending_item) != (unsigned long )(& ext->oe_pages)) { goto ldv_62594; } else { } if (ext->oe_nr_pages != 0U) { __ext___1 = ext; tmp___22 = cfs_cdebug_show(131072U, 8U); if (tmp___22 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "osc_extent_finish"; msgdata___1.msg_line = 859; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 131072; tmp___16 = waitqueue_active(& __ext___1->oe_waitq); tmp___17 = list_empty_marker(& __ext___1->oe_pages); tmp___18 = ext_flags(__ext___1, (char *)(& __buf___1)); tmp___19 = list_empty_marker(& __ext___1->oe_link); tmp___20 = atomic_read((atomic_t const *)(& __ext___1->oe_users)); tmp___21 = atomic_read((atomic_t const *)(& __ext___1->oe_refc)); libcfs_debug_msg(& msgdata___1, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext___1, __ext___1->oe_start, __ext___1->oe_end, __ext___1->oe_max_end, tmp___21, tmp___20, (int )tmp___19, oes_strings[__ext___1->oe_state], tmp___18, __ext___1->oe_obj, __ext___1->oe_grants, __ext___1->oe_nr_pages, (int )tmp___17, tmp___16 != 0 ? 43 : 45, __ext___1->oe_osclock, __ext___1->oe_mppr, __ext___1->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_extent_finish", 859); tmp___23 = ldv__builtin_expect(ext->oe_nr_pages != 0U, 0L); if (tmp___23 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_extent_finish"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 859; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_nr_pages == 0"); lbug_with_loc(& __msg_data___0); } else { } } else { } if (sent == 0) { lost_grant = (int )ext->oe_grants; } else if ((unsigned int )blocksize <= 4095U && last_count != 4096) { offset = (int )oap->oap_page_off & 4095; count = oap->oap_brw_page.count + ((blocksize + -1) & offset); end = (oap->oap_brw_page.count + offset) & (blocksize + -1); if (end != 0) { count = (blocksize - end) + count; } else { } lost_grant = (int )(4096U - (unsigned int )count); } else { } if (ext->oe_grants != 0U) { osc_free_grant(cli, (unsigned int )nr_pages, (unsigned int )lost_grant); } else { } osc_extent_remove(ext); osc_extent_put(env, ext); return (0); } } static int extent_wait_cb(struct osc_extent *ext , int state ) { int ret ; { osc_object_lock(ext->oe_obj); ret = ext->oe_state == (unsigned int )state; osc_object_unlock(ext->oe_obj); return (ret); } } static int osc_extent_wait(struct lu_env const *env , struct osc_extent *ext , int state ) { struct osc_object *obj ; struct l_wait_info lwi ; long tmp ; int rc ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; int __ret ; struct l_wait_info *__info ; wait_queue_t __wait ; long __timeout ; sigset_t __blocked ; int __allow_intr ; int tmp___2 ; struct task_struct *tmp___3 ; int tmp___4 ; struct task_struct *tmp___5 ; long volatile __ret___0 ; struct task_struct *tmp___6 ; struct task_struct *tmp___7 ; struct task_struct *tmp___8 ; struct task_struct *tmp___9 ; long interval ; long __min1 ; long __min2 ; long tmp___10 ; long remaining ; long tmp___11 ; unsigned long tmp___12 ; unsigned long tmp___13 ; int tmp___14 ; struct task_struct *tmp___15 ; long volatile __ret___1 ; struct task_struct *tmp___16 ; struct task_struct *tmp___17 ; struct task_struct *tmp___18 ; struct task_struct *tmp___19 ; int tmp___20 ; int tmp___21 ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; struct obd_export *tmp___22 ; int tmp___23 ; char tmp___24 ; char *tmp___25 ; char tmp___26 ; int tmp___27 ; int tmp___28 ; int tmp___29 ; struct l_wait_info __constr_expr_0 ; int __ret___2 ; struct l_wait_info *__info___0 ; wait_queue_t __wait___0 ; long __timeout___0 ; sigset_t __blocked___0 ; int __allow_intr___0 ; int tmp___30 ; struct task_struct *tmp___31 ; int tmp___32 ; struct task_struct *tmp___33 ; long volatile __ret___3 ; struct task_struct *tmp___34 ; struct task_struct *tmp___35 ; struct task_struct *tmp___36 ; struct task_struct *tmp___37 ; long interval___0 ; long __min1___0 ; long __min2___0 ; long tmp___38 ; long remaining___0 ; long tmp___39 ; unsigned long tmp___40 ; unsigned long tmp___41 ; int tmp___42 ; struct task_struct *tmp___43 ; long volatile __ret___4 ; struct task_struct *tmp___44 ; struct task_struct *tmp___45 ; struct task_struct *tmp___46 ; struct task_struct *tmp___47 ; int tmp___48 ; int tmp___49 ; { obj = ext->oe_obj; tmp = cfs_time_seconds(600); lwi.lwi_timeout = tmp; lwi.lwi_interval = 0L; lwi.lwi_allow_intr = 0; lwi.lwi_on_timeout = (int (*)(void * ))0; lwi.lwi_on_signal = (void (*)(void * ))-1; lwi.lwi_cb_data = (void *)0; rc = 0; osc_object_lock(obj); tmp___0 = osc_extent_sanity_check0(ext, "osc_extent_wait", 908); tmp___1 = ldv__builtin_expect(tmp___0 != 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_wait"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 908; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_extent_sanity_check0(ext, __func__, 908) == 0"); lbug_with_loc(& __msg_data); } else { } if (((state == 0 && (unsigned int )*((unsigned char *)ext + 60UL) == 0U) && (unsigned int )*((unsigned char *)ext + 60UL) == 0U) && (unsigned int )*((unsigned char *)ext + 60UL) == 0U) { if (ext->oe_state == 1U) { ext->oe_urgent = 1U; } else if (ext->oe_state == 2U) { ext->oe_urgent = 1U; osc_extent_hold(ext); rc = 1; } else { } } else { } osc_object_unlock(obj); if (rc == 1) { osc_extent_release(env, ext); } else { } __info = & lwi; __timeout = __info->lwi_timeout; __allow_intr = __info->lwi_allow_intr; __ret = 0; tmp___2 = extent_wait_cb(ext, state); if (tmp___2 != 0) { goto ldv_62627; } else { } tmp___3 = get_current(); init_waitqueue_entry(& __wait, tmp___3); add_wait_queue(& ext->oe_waitq, & __wait); if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0) && (__timeout == 0L || __allow_intr != 0)) { __blocked = cfs_block_sigsinv(24838UL); } else { __blocked = cfs_block_sigsinv(0UL); } ldv_62651: tmp___4 = extent_wait_cb(ext, state); if (tmp___4 != 0) { goto ldv_62628; } else { } tmp___5 = get_current(); tmp___5->task_state_change = 0UL; __ret___0 = 1L; switch (8UL) { case 1UL: tmp___6 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___0), "+m" (tmp___6->state): : "memory", "cc"); goto ldv_62631; case 2UL: tmp___7 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___0), "+m" (tmp___7->state): : "memory", "cc"); goto ldv_62631; case 4UL: tmp___8 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___0), "+m" (tmp___8->state): : "memory", "cc"); goto ldv_62631; case 8UL: tmp___9 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___0), "+m" (tmp___9->state): : "memory", "cc"); goto ldv_62631; default: __xchg_wrong_size(); } ldv_62631: ; if (__timeout == 0L) { schedule(); } else { if (__info->lwi_interval != 0L) { __min1 = __info->lwi_interval; __min2 = __timeout; tmp___10 = __min1 < __min2 ? __min1 : __min2; } else { tmp___10 = __timeout; } interval = tmp___10; tmp___11 = schedule_timeout(interval); remaining = tmp___11; tmp___12 = cfs_time_sub((unsigned long )interval, (unsigned long )remaining); tmp___13 = cfs_time_sub((unsigned long )__timeout, tmp___12); __timeout = (long )tmp___13; if (__timeout == 0L) { if ((unsigned long )__info->lwi_on_timeout == (unsigned long )((int (*)(void * ))0)) { __ret = -110; goto ldv_62628; } else { tmp___14 = (*(__info->lwi_on_timeout))(__info->lwi_cb_data); if (tmp___14 != 0) { __ret = -110; goto ldv_62628; } else { } } if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0)) { cfs_block_sigsinv(24838UL); } else { } } else { } } tmp___15 = get_current(); tmp___15->task_state_change = 0UL; __ret___1 = 0L; switch (8UL) { case 1UL: tmp___16 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___1), "+m" (tmp___16->state): : "memory", "cc"); goto ldv_62644; case 2UL: tmp___17 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___1), "+m" (tmp___17->state): : "memory", "cc"); goto ldv_62644; case 4UL: tmp___18 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___1), "+m" (tmp___18->state): : "memory", "cc"); goto ldv_62644; case 8UL: tmp___19 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___1), "+m" (tmp___19->state): : "memory", "cc"); goto ldv_62644; default: __xchg_wrong_size(); } ldv_62644: tmp___20 = extent_wait_cb(ext, state); if (tmp___20 != 0) { goto ldv_62628; } else { } tmp___21 = cfs_signal_pending(); if (tmp___21 != 0) { if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0) && (__timeout == 0L || __allow_intr != 0)) { if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))-1)) { (*(__info->lwi_on_signal))(__info->lwi_cb_data); } else { } __ret = -4; goto ldv_62628; } else { } cfs_clear_sigpending(); } else { } goto ldv_62651; ldv_62628: cfs_restore_sigs(__blocked); remove_wait_queue(& ext->oe_waitq, & __wait); ldv_62627: rc = __ret; if (rc == -110) { __ext = ext; tmp___29 = cfs_cdebug_show(131072U, 8U); if (tmp___29 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_extent_wait"; msgdata.msg_line = 930; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___22 = osc_export___2((struct osc_object const *)obj); tmp___23 = waitqueue_active(& __ext->oe_waitq); tmp___24 = list_empty_marker(& __ext->oe_pages); tmp___25 = ext_flags(__ext, (char *)(& __buf)); tmp___26 = list_empty_marker(& __ext->oe_link); tmp___27 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___28 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} %s: wait ext to %d timedout, recovery in progress?\n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___28, tmp___27, (int )tmp___26, oes_strings[__ext->oe_state], tmp___25, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___24, tmp___23 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner, (char *)(& (tmp___22->exp_obd)->obd_name), state); } else { } __constr_expr_0.lwi_timeout = 0L; __constr_expr_0.lwi_interval = 0L; __constr_expr_0.lwi_allow_intr = 0; __constr_expr_0.lwi_on_timeout = (int (*)(void * ))0; __constr_expr_0.lwi_on_signal = (void (*)(void * ))-1; __constr_expr_0.lwi_cb_data = (void *)0; lwi = __constr_expr_0; __info___0 = & lwi; __timeout___0 = __info___0->lwi_timeout; __allow_intr___0 = __info___0->lwi_allow_intr; __ret___2 = 0; tmp___30 = extent_wait_cb(ext, state); if (tmp___30 != 0) { goto ldv_62664; } else { } tmp___31 = get_current(); init_waitqueue_entry(& __wait___0, tmp___31); add_wait_queue(& ext->oe_waitq, & __wait___0); if ((unsigned long )__info___0->lwi_on_signal != (unsigned long )((void (*)(void * ))0) && (__timeout___0 == 0L || __allow_intr___0 != 0)) { __blocked___0 = cfs_block_sigsinv(24838UL); } else { __blocked___0 = cfs_block_sigsinv(0UL); } ldv_62688: tmp___32 = extent_wait_cb(ext, state); if (tmp___32 != 0) { goto ldv_62665; } else { } tmp___33 = get_current(); tmp___33->task_state_change = 0UL; __ret___3 = 1L; switch (8UL) { case 1UL: tmp___34 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___3), "+m" (tmp___34->state): : "memory", "cc"); goto ldv_62668; case 2UL: tmp___35 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___3), "+m" (tmp___35->state): : "memory", "cc"); goto ldv_62668; case 4UL: tmp___36 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___3), "+m" (tmp___36->state): : "memory", "cc"); goto ldv_62668; case 8UL: tmp___37 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___3), "+m" (tmp___37->state): : "memory", "cc"); goto ldv_62668; default: __xchg_wrong_size(); } ldv_62668: ; if (__timeout___0 == 0L) { schedule(); } else { if (__info___0->lwi_interval != 0L) { __min1___0 = __info___0->lwi_interval; __min2___0 = __timeout___0; tmp___38 = __min1___0 < __min2___0 ? __min1___0 : __min2___0; } else { tmp___38 = __timeout___0; } interval___0 = tmp___38; tmp___39 = schedule_timeout(interval___0); remaining___0 = tmp___39; tmp___40 = cfs_time_sub((unsigned long )interval___0, (unsigned long )remaining___0); tmp___41 = cfs_time_sub((unsigned long )__timeout___0, tmp___40); __timeout___0 = (long )tmp___41; if (__timeout___0 == 0L) { if ((unsigned long )__info___0->lwi_on_timeout == (unsigned long )((int (*)(void * ))0)) { __ret___2 = -110; goto ldv_62665; } else { tmp___42 = (*(__info___0->lwi_on_timeout))(__info___0->lwi_cb_data); if (tmp___42 != 0) { __ret___2 = -110; goto ldv_62665; } else { } } if ((unsigned long )__info___0->lwi_on_signal != (unsigned long )((void (*)(void * ))0)) { cfs_block_sigsinv(24838UL); } else { } } else { } } tmp___43 = get_current(); tmp___43->task_state_change = 0UL; __ret___4 = 0L; switch (8UL) { case 1UL: tmp___44 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___4), "+m" (tmp___44->state): : "memory", "cc"); goto ldv_62681; case 2UL: tmp___45 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___4), "+m" (tmp___45->state): : "memory", "cc"); goto ldv_62681; case 4UL: tmp___46 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___4), "+m" (tmp___46->state): : "memory", "cc"); goto ldv_62681; case 8UL: tmp___47 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___4), "+m" (tmp___47->state): : "memory", "cc"); goto ldv_62681; default: __xchg_wrong_size(); } ldv_62681: tmp___48 = extent_wait_cb(ext, state); if (tmp___48 != 0) { goto ldv_62665; } else { } tmp___49 = cfs_signal_pending(); if (tmp___49 != 0) { if ((unsigned long )__info___0->lwi_on_signal != (unsigned long )((void (*)(void * ))0) && (__timeout___0 == 0L || __allow_intr___0 != 0)) { if ((unsigned long )__info___0->lwi_on_signal != (unsigned long )((void (*)(void * ))-1)) { (*(__info___0->lwi_on_signal))(__info___0->lwi_cb_data); } else { } __ret___2 = -4; goto ldv_62665; } else { } cfs_clear_sigpending(); } else { } goto ldv_62688; ldv_62665: cfs_restore_sigs(__blocked___0); remove_wait_queue(& ext->oe_waitq, & __wait___0); ldv_62664: rc = __ret___2; } else { } if (rc == 0 && ext->oe_rc < 0) { rc = ext->oe_rc; } else { } return (rc); } } static int osc_extent_truncate(struct osc_extent *ext , unsigned long trunc_index , bool partial ) { struct cl_env_nest nest ; struct lu_env *env ; struct cl_io *io ; struct osc_object *obj ; struct client_obd *cli ; struct client_obd *tmp ; struct osc_async_page *oap ; struct osc_async_page *tmp___0 ; int pages_in_chunk ; int ppc_bits ; __u64 trunc_chunk ; int grants ; int nr_pages ; int rc ; struct libcfs_debug_msg_data __msg_data ; int __res ; long tmp___1 ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; char tmp___3 ; char *tmp___4 ; char tmp___5 ; int tmp___6 ; int tmp___7 ; int tmp___8 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___9 ; struct osc_extent *__ext___0 ; char __buf___0[16U] ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___10 ; char tmp___11 ; char *tmp___12 ; char tmp___13 ; int tmp___14 ; int tmp___15 ; int tmp___16 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___17 ; struct osc_thread_info *tmp___18 ; struct cl_object *tmp___19 ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct cl_page *sub ; struct cl_page *tmp___20 ; struct cl_page *page ; struct cl_page *tmp___21 ; struct libcfs_debug_msg_data __msg_data___2 ; int tmp___22 ; long tmp___23 ; struct task_struct *tmp___24 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___25 ; struct libcfs_debug_msg_data __msg_data___4 ; long tmp___26 ; int tmp___27 ; struct task_struct *tmp___28 ; struct list_head const *__mptr___1 ; struct osc_extent *__ext___1 ; char __buf___1[16U] ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___29 ; char tmp___30 ; char *tmp___31 ; char tmp___32 ; int tmp___33 ; int tmp___34 ; int tmp___35 ; struct libcfs_debug_msg_data __msg_data___5 ; long tmp___36 ; struct libcfs_debug_msg_data __msg_data___6 ; long tmp___37 ; int chunks ; unsigned long last_index ; struct libcfs_debug_msg_data __msg_data___7 ; long tmp___38 ; unsigned long _min1 ; unsigned long _min2 ; struct libcfs_debug_msg_data __msg_data___8 ; long tmp___39 ; struct libcfs_debug_msg_data __msg_data___9 ; long tmp___40 ; { obj = ext->oe_obj; tmp = osc_cli___1((struct osc_object const *)obj); cli = tmp; pages_in_chunk = 0; ppc_bits = cli->cl_chunkbits + -12; trunc_chunk = (__u64 )(trunc_index >> ppc_bits); grants = 0; nr_pages = 0; rc = 0; osc_object_lock(ext->oe_obj); __res = osc_extent_sanity_check0(ext, "osc_extent_truncate", 962); osc_object_unlock(ext->oe_obj); tmp___1 = ldv__builtin_expect(__res != 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_truncate"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 962; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"({ int __res; osc_object_lock((ext)->oe_obj); __res = osc_extent_sanity_check0(ext, __func__, 962); osc_object_unlock((ext)->oe_obj); __res; }) == 0"); lbug_with_loc(& __msg_data); } else { } if (ext->oe_state != 6U) { __ext = ext; tmp___8 = cfs_cdebug_show(131072U, 8U); if (tmp___8 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_extent_truncate"; msgdata.msg_line = 963; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___2 = waitqueue_active(& __ext->oe_waitq); tmp___3 = list_empty_marker(& __ext->oe_pages); tmp___4 = ext_flags(__ext, (char *)(& __buf)); tmp___5 = list_empty_marker(& __ext->oe_link); tmp___6 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___7 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___7, tmp___6, (int )tmp___5, oes_strings[__ext->oe_state], tmp___4, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___3, tmp___2 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_extent_truncate", 963); tmp___9 = ldv__builtin_expect(ext->oe_state != 6U, 0L); if (tmp___9 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_extent_truncate"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 963; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_state == OES_TRUNC"); lbug_with_loc(& __msg_data___0); } else { } } else { } if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U) { __ext___0 = ext; tmp___16 = cfs_cdebug_show(131072U, 8U); if (tmp___16 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_extent_truncate"; msgdata___0.msg_line = 964; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; tmp___10 = waitqueue_active(& __ext___0->oe_waitq); tmp___11 = list_empty_marker(& __ext___0->oe_pages); tmp___12 = ext_flags(__ext___0, (char *)(& __buf___0)); tmp___13 = list_empty_marker(& __ext___0->oe_link); tmp___14 = atomic_read((atomic_t const *)(& __ext___0->oe_users)); tmp___15 = atomic_read((atomic_t const *)(& __ext___0->oe_refc)); libcfs_debug_msg(& msgdata___0, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext___0, __ext___0->oe_start, __ext___0->oe_end, __ext___0->oe_max_end, tmp___15, tmp___14, (int )tmp___13, oes_strings[__ext___0->oe_state], tmp___12, __ext___0->oe_obj, __ext___0->oe_grants, __ext___0->oe_nr_pages, (int )tmp___11, tmp___10 != 0 ? 43 : 45, __ext___0->oe_osclock, __ext___0->oe_mppr, __ext___0->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_extent_truncate", 964); tmp___17 = ldv__builtin_expect((int )((signed char )*((unsigned char *)ext + 60UL)) < 0, 0L); if (tmp___17 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "osc_extent_truncate"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 964; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"!ext->oe_urgent"); lbug_with_loc(& __msg_data___1); } else { } } else { } env = cl_env_nested_get(& nest); tmp___18 = osc_env_info((struct lu_env const *)env); io = & tmp___18->oti_io; tmp___19 = osc2cl((struct osc_object const *)obj); io->ci_obj = cl_object_top(tmp___19); rc = cl_io_init((struct lu_env const *)env, io, 5, io->ci_obj); if (rc < 0) { goto out; } else { } __mptr = (struct list_head const *)ext->oe_pages.next; oap = (struct osc_async_page *)__mptr + 0xfffffffffffffff8UL; __mptr___0 = (struct list_head const *)oap->oap_pending_item.next; tmp___0 = (struct osc_async_page *)__mptr___0 + 0xfffffffffffffff8UL; goto ldv_62734; ldv_62733: tmp___20 = oap2cl_page___0(oap); sub = tmp___20; tmp___21 = cl_page_top(sub); page = tmp___21; tmp___22 = list_empty((struct list_head const *)(& oap->oap_rpc_item)); tmp___23 = ldv__builtin_expect(tmp___22 == 0, 0L); if (tmp___23 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___2.msg_fn = "osc_extent_truncate"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 982; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&oap->oap_rpc_item)"); lbug_with_loc(& __msg_data___2); } else { } if (sub->cp_index < trunc_index || (sub->cp_index == trunc_index && (int )partial)) { if ((unsigned long long )(sub->cp_index >> ppc_bits) == trunc_chunk) { pages_in_chunk = pages_in_chunk + 1; } else { } goto ldv_62730; } else { } list_del_init(& oap->oap_pending_item); cl_page_get(page); tmp___24 = get_current(); lu_ref_add_atomic(& page->cp_reference, "truncate", (void const *)tmp___24); tmp___27 = cl_page_own((struct lu_env const *)env, io, page); if (tmp___27 == 0) { cl_page_unmap((struct lu_env const *)env, io, page); cl_page_discard((struct lu_env const *)env, io, page); cl_page_disown((struct lu_env const *)env, io, page); } else { tmp___25 = ldv__builtin_expect((unsigned int )page->cp_state != 4U, 0L); if (tmp___25 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___3.msg_fn = "osc_extent_truncate"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 1005; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"page->cp_state == CPS_FREEING"); lbug_with_loc(& __msg_data___3); } else { } tmp___26 = ldv__builtin_expect(1L, 0L); if (tmp___26 != 0L) { __msg_data___4.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___4.msg_fn = "osc_extent_truncate"; __msg_data___4.msg_subsys = 8; __msg_data___4.msg_line = 1006; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: \n", (char *)"0"); lbug_with_loc(& __msg_data___4); } else { } } tmp___28 = get_current(); lu_ref_del(& page->cp_reference, "truncate", (void const *)tmp___28); cl_page_put((struct lu_env const *)env, page); ext->oe_nr_pages = ext->oe_nr_pages - 1U; nr_pages = nr_pages + 1; ldv_62730: oap = tmp___0; __mptr___1 = (struct list_head const *)tmp___0->oap_pending_item.next; tmp___0 = (struct osc_async_page *)__mptr___1 + 0xfffffffffffffff8UL; ldv_62734: ; if ((unsigned long )(& oap->oap_pending_item) != (unsigned long )(& ext->oe_pages)) { goto ldv_62733; } else { } if (ext->oe_start >= (unsigned long )partial + trunc_index && ext->oe_nr_pages != 0U) { __ext___1 = ext; tmp___35 = cfs_cdebug_show(131072U, 8U); if (tmp___35 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "osc_extent_truncate"; msgdata___1.msg_line = 1017; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 131072; tmp___29 = waitqueue_active(& __ext___1->oe_waitq); tmp___30 = list_empty_marker(& __ext___1->oe_pages); tmp___31 = ext_flags(__ext___1, (char *)(& __buf___1)); tmp___32 = list_empty_marker(& __ext___1->oe_link); tmp___33 = atomic_read((atomic_t const *)(& __ext___1->oe_users)); tmp___34 = atomic_read((atomic_t const *)(& __ext___1->oe_refc)); libcfs_debug_msg(& msgdata___1, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} trunc_index %lu, partial %d\n", __ext___1, __ext___1->oe_start, __ext___1->oe_end, __ext___1->oe_max_end, tmp___34, tmp___33, (int )tmp___32, oes_strings[__ext___1->oe_state], tmp___31, __ext___1->oe_obj, __ext___1->oe_grants, __ext___1->oe_nr_pages, (int )tmp___30, tmp___29 != 0 ? 43 : 45, __ext___1->oe_osclock, __ext___1->oe_mppr, __ext___1->oe_owner, trunc_index, (int )partial); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_extent_truncate", 1017); tmp___36 = ldv__builtin_expect((long )(ext->oe_start >= (unsigned long )partial + trunc_index && ext->oe_nr_pages != 0U), 0L); if (tmp___36 != 0L) { __msg_data___5.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___5.msg_fn = "osc_extent_truncate"; __msg_data___5.msg_subsys = 8; __msg_data___5.msg_line = 1017; __msg_data___5.msg_mask = 0; __msg_data___5.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___5.msg_mask = 262144; libcfs_debug_msg(& __msg_data___5, "ASSERTION( %s ) failed: \n", (char *)"(!(ext->oe_start >= trunc_index + !!partial) || (ext->oe_nr_pages == 0))"); lbug_with_loc(& __msg_data___5); } else { } } else { } osc_object_lock(obj); if (ext->oe_nr_pages == 0U) { tmp___37 = ldv__builtin_expect(pages_in_chunk != 0, 0L); if (tmp___37 != 0L) { __msg_data___6.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___6.msg_fn = "osc_extent_truncate"; __msg_data___6.msg_subsys = 8; __msg_data___6.msg_line = 1021; __msg_data___6.msg_mask = 0; __msg_data___6.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___6.msg_mask = 262144; libcfs_debug_msg(& __msg_data___6, "ASSERTION( %s ) failed: \n", (char *)"pages_in_chunk == 0"); lbug_with_loc(& __msg_data___6); } else { } grants = (int )ext->oe_grants; ext->oe_grants = 0U; } else { chunks = (int )((unsigned int )(ext->oe_end >> ppc_bits) - (unsigned int )trunc_chunk); if (pages_in_chunk == 0) { tmp___38 = ldv__builtin_expect(trunc_chunk == 0ULL, 0L); if (tmp___38 != 0L) { __msg_data___7.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___7.msg_fn = "osc_extent_truncate"; __msg_data___7.msg_subsys = 8; __msg_data___7.msg_line = 1035; __msg_data___7.msg_mask = 0; __msg_data___7.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___7.msg_mask = 262144; libcfs_debug_msg(& __msg_data___7, "ASSERTION( %s ) failed: \n", (char *)"trunc_chunk > 0"); lbug_with_loc(& __msg_data___7); } else { } trunc_chunk = trunc_chunk - 1ULL; chunks = chunks + 1; } else { } grants = chunks << cli->cl_chunkbits; ext->oe_grants = ext->oe_grants - (unsigned int )grants; last_index = (unsigned long )(((trunc_chunk + 1ULL) << ppc_bits) - 1ULL); _min1 = last_index; _min2 = ext->oe_max_end; ext->oe_end = _min1 < _min2 ? _min1 : _min2; tmp___39 = ldv__builtin_expect(ext->oe_end < ext->oe_start, 0L); if (tmp___39 != 0L) { __msg_data___8.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___8.msg_fn = "osc_extent_truncate"; __msg_data___8.msg_subsys = 8; __msg_data___8.msg_line = 1045; __msg_data___8.msg_mask = 0; __msg_data___8.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___8.msg_mask = 262144; libcfs_debug_msg(& __msg_data___8, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_end >= ext->oe_start"); lbug_with_loc(& __msg_data___8); } else { } tmp___40 = ldv__builtin_expect(ext->oe_grants == 0U, 0L); if (tmp___40 != 0L) { __msg_data___9.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___9.msg_fn = "osc_extent_truncate"; __msg_data___9.msg_subsys = 8; __msg_data___9.msg_line = 1046; __msg_data___9.msg_mask = 0; __msg_data___9.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___9.msg_mask = 262144; libcfs_debug_msg(& __msg_data___9, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_grants > 0"); lbug_with_loc(& __msg_data___9); } else { } } osc_object_unlock(obj); if (grants > 0 || nr_pages > 0) { osc_free_grant(cli, (unsigned int )nr_pages, (unsigned int )grants); } else { } out: cl_io_fini((struct lu_env const *)env, io); cl_env_nested_put(& nest, env); return (rc); } } static int osc_extent_make_ready(struct lu_env const *env , struct osc_extent *ext ) { struct osc_async_page *oap ; struct osc_async_page *last ; struct osc_object *obj ; int page_count___0 ; int rc ; struct libcfs_debug_msg_data __msg_data ; int __res ; long tmp ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; char tmp___1 ; char *tmp___2 ; char tmp___3 ; int tmp___4 ; int tmp___5 ; int tmp___6 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___7 ; struct osc_extent *__ext___0 ; char __buf___0[16U] ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___8 ; char tmp___9 ; char *tmp___10 ; char tmp___11 ; int tmp___12 ; int tmp___13 ; int tmp___14 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___15 ; struct osc_extent *__ext___1 ; char __buf___1[16U] ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___16 ; char tmp___17 ; char *tmp___18 ; char tmp___19 ; int tmp___20 ; int tmp___21 ; int tmp___22 ; struct list_head const *__mptr ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___23 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___24 ; struct list_head const *__mptr___0 ; struct libcfs_debug_msg_data __msg_data___4 ; long tmp___25 ; struct libcfs_debug_msg_data __msg_data___5 ; long tmp___26 ; struct libcfs_debug_msg_data __msg_data___6 ; long tmp___27 ; struct libcfs_debug_msg_data __msg_data___7 ; long tmp___28 ; struct list_head const *__mptr___1 ; struct list_head const *__mptr___2 ; { last = (struct osc_async_page *)0; obj = ext->oe_obj; page_count___0 = 0; osc_object_lock(ext->oe_obj); __res = osc_extent_sanity_check0(ext, "osc_extent_make_ready", 1073); osc_object_unlock(ext->oe_obj); tmp = ldv__builtin_expect(__res != 0, 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_make_ready"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1073; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"({ int __res; osc_object_lock((ext)->oe_obj); __res = osc_extent_sanity_check0(ext, __func__, 1073); osc_object_unlock((ext)->oe_obj); __res; }) == 0"); lbug_with_loc(& __msg_data); } else { } if (ext->oe_state != 3U) { __ext = ext; tmp___6 = cfs_cdebug_show(131072U, 8U); if (tmp___6 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_extent_make_ready"; msgdata.msg_line = 1075; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___0 = waitqueue_active(& __ext->oe_waitq); tmp___1 = list_empty_marker(& __ext->oe_pages); tmp___2 = ext_flags(__ext, (char *)(& __buf)); tmp___3 = list_empty_marker(& __ext->oe_link); tmp___4 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___5 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___5, tmp___4, (int )tmp___3, oes_strings[__ext->oe_state], tmp___2, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___1, tmp___0 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_extent_make_ready", 1075); tmp___7 = ldv__builtin_expect(ext->oe_state != 3U, 0L); if (tmp___7 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_extent_make_ready"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1075; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_state == OES_LOCKING"); lbug_with_loc(& __msg_data___0); } else { } } else { } if ((unsigned long )ext->oe_owner == (unsigned long )((struct task_struct *)0)) { __ext___0 = ext; tmp___14 = cfs_cdebug_show(131072U, 8U); if (tmp___14 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_extent_make_ready"; msgdata___0.msg_line = 1076; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; tmp___8 = waitqueue_active(& __ext___0->oe_waitq); tmp___9 = list_empty_marker(& __ext___0->oe_pages); tmp___10 = ext_flags(__ext___0, (char *)(& __buf___0)); tmp___11 = list_empty_marker(& __ext___0->oe_link); tmp___12 = atomic_read((atomic_t const *)(& __ext___0->oe_users)); tmp___13 = atomic_read((atomic_t const *)(& __ext___0->oe_refc)); libcfs_debug_msg(& msgdata___0, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext___0, __ext___0->oe_start, __ext___0->oe_end, __ext___0->oe_max_end, tmp___13, tmp___12, (int )tmp___11, oes_strings[__ext___0->oe_state], tmp___10, __ext___0->oe_obj, __ext___0->oe_grants, __ext___0->oe_nr_pages, (int )tmp___9, tmp___8 != 0 ? 43 : 45, __ext___0->oe_osclock, __ext___0->oe_mppr, __ext___0->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_extent_make_ready", 1076); tmp___15 = ldv__builtin_expect((unsigned long )ext->oe_owner == (unsigned long )((struct task_struct *)0), 0L); if (tmp___15 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "osc_extent_make_ready"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 1076; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_owner != ((void *)0)"); lbug_with_loc(& __msg_data___1); } else { } } else { } __ext___1 = ext; tmp___22 = cfs_cdebug_show(32U, 8U); if (tmp___22 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "osc_extent_make_ready"; msgdata___1.msg_line = 1078; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 32; tmp___16 = waitqueue_active(& __ext___1->oe_waitq); tmp___17 = list_empty_marker(& __ext___1->oe_pages); tmp___18 = ext_flags(__ext___1, (char *)(& __buf___1)); tmp___19 = list_empty_marker(& __ext___1->oe_link); tmp___20 = atomic_read((atomic_t const *)(& __ext___1->oe_users)); tmp___21 = atomic_read((atomic_t const *)(& __ext___1->oe_refc)); libcfs_debug_msg(& msgdata___1, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} make ready\n", __ext___1, __ext___1->oe_start, __ext___1->oe_end, __ext___1->oe_max_end, tmp___21, tmp___20, (int )tmp___19, oes_strings[__ext___1->oe_state], tmp___18, __ext___1->oe_obj, __ext___1->oe_grants, __ext___1->oe_nr_pages, (int )tmp___17, tmp___16 != 0 ? 43 : 45, __ext___1->oe_osclock, __ext___1->oe_mppr, __ext___1->oe_owner); } else { } __mptr = (struct list_head const *)ext->oe_pages.next; oap = (struct osc_async_page *)__mptr + 0xfffffffffffffff8UL; goto ldv_62785; ldv_62784: page_count___0 = page_count___0 + 1; if ((unsigned long )last == (unsigned long )((struct osc_async_page *)0) || last->oap_obj_off < oap->oap_obj_off) { last = oap; } else { } if ((int )oap->oap_async_flags & 1) { goto ldv_62777; } else { } rc = osc_make_ready(env, oap, 2); switch (rc) { case 0: spin_lock(& oap->oap_lock); oap->oap_async_flags = (enum async_flags )((unsigned int )oap->oap_async_flags | 1U); spin_unlock(& oap->oap_lock); goto ldv_62779; case -114: tmp___23 = ldv__builtin_expect(((unsigned int )oap->oap_async_flags & 1U) == 0U, 0L); if (tmp___23 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___2.msg_fn = "osc_extent_make_ready"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 1097; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"(oap->oap_async_flags & ASYNC_READY) != 0"); lbug_with_loc(& __msg_data___2); } else { } goto ldv_62779; default: tmp___24 = ldv__builtin_expect(1L, 0L); if (tmp___24 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___3.msg_fn = "osc_extent_make_ready"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 1100; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: unknown return code: %d\n", (char *)"0", rc); lbug_with_loc(& __msg_data___3); } else { } } ldv_62779: ; ldv_62777: __mptr___0 = (struct list_head const *)oap->oap_pending_item.next; oap = (struct osc_async_page *)__mptr___0 + 0xfffffffffffffff8UL; ldv_62785: ; if ((unsigned long )(& oap->oap_pending_item) != (unsigned long )(& ext->oe_pages)) { goto ldv_62784; } else { } tmp___25 = ldv__builtin_expect((unsigned int )page_count___0 != ext->oe_nr_pages, 0L); if (tmp___25 != 0L) { __msg_data___4.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___4.msg_fn = "osc_extent_make_ready"; __msg_data___4.msg_subsys = 8; __msg_data___4.msg_line = 1104; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: \n", (char *)"page_count == ext->oe_nr_pages"); lbug_with_loc(& __msg_data___4); } else { } tmp___26 = ldv__builtin_expect((unsigned long )last == (unsigned long )((struct osc_async_page *)0), 0L); if (tmp___26 != 0L) { __msg_data___5.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___5.msg_fn = "osc_extent_make_ready"; __msg_data___5.msg_subsys = 8; __msg_data___5.msg_line = 1105; __msg_data___5.msg_mask = 0; __msg_data___5.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___5.msg_mask = 262144; libcfs_debug_msg(& __msg_data___5, "ASSERTION( %s ) failed: \n", (char *)"last != ((void *)0)"); lbug_with_loc(& __msg_data___5); } else { } if (((unsigned int )last->oap_async_flags & 4U) == 0U) { last->oap_brw_page.count = osc_refresh_count(env, last, 2); tmp___27 = ldv__builtin_expect(last->oap_brw_page.count <= 0, 0L); if (tmp___27 != 0L) { __msg_data___6.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___6.msg_fn = "osc_extent_make_ready"; __msg_data___6.msg_subsys = 8; __msg_data___6.msg_line = 1110; __msg_data___6.msg_mask = 0; __msg_data___6.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___6.msg_mask = 262144; libcfs_debug_msg(& __msg_data___6, "ASSERTION( %s ) failed: \n", (char *)"last->oap_brw_page.count > 0"); lbug_with_loc(& __msg_data___6); } else { } tmp___28 = ldv__builtin_expect(last->oap_page_off + (unsigned int )last->oap_brw_page.count > 4096U, 0L); if (tmp___28 != 0L) { __msg_data___7.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___7.msg_fn = "osc_extent_make_ready"; __msg_data___7.msg_subsys = 8; __msg_data___7.msg_line = 1111; __msg_data___7.msg_mask = 0; __msg_data___7.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___7.msg_mask = 262144; libcfs_debug_msg(& __msg_data___7, "ASSERTION( %s ) failed: \n", (char *)"last->oap_page_off + last->oap_brw_page.count <= ((1UL) << 12)"); lbug_with_loc(& __msg_data___7); } else { } last->oap_async_flags = (enum async_flags )((unsigned int )last->oap_async_flags | 4U); } else { } __mptr___1 = (struct list_head const *)ext->oe_pages.next; oap = (struct osc_async_page *)__mptr___1 + 0xfffffffffffffff8UL; goto ldv_62796; ldv_62795: ; if (((unsigned int )oap->oap_async_flags & 4U) == 0U) { oap->oap_brw_page.count = (int )(4096U - oap->oap_page_off); oap->oap_async_flags = (enum async_flags )((unsigned int )oap->oap_async_flags | 4U); } else { } __mptr___2 = (struct list_head const *)oap->oap_pending_item.next; oap = (struct osc_async_page *)__mptr___2 + 0xfffffffffffffff8UL; ldv_62796: ; if ((unsigned long )(& oap->oap_pending_item) != (unsigned long )(& ext->oe_pages)) { goto ldv_62795; } else { } osc_object_lock(obj); osc_extent_state_set(ext, 5); osc_object_unlock(obj); osc_extent_get(ext); return (0); } } static int osc_extent_expand(struct osc_extent *ext , unsigned long index , int *grants ) { struct osc_object *obj ; struct client_obd *cli ; struct client_obd *tmp ; struct osc_extent *next ; int ppc_bits ; unsigned long chunk ; unsigned long end_chunk ; unsigned long end_index ; int chunksize ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___1 ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___3 ; unsigned long _min1 ; unsigned long _min2 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___4 ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp___5 ; char tmp___6 ; char *tmp___7 ; char tmp___8 ; int tmp___9 ; int tmp___10 ; int tmp___11 ; struct libcfs_debug_msg_data __msg_data___3 ; int tmp___12 ; long tmp___13 ; int tmp___14 ; { obj = ext->oe_obj; tmp = osc_cli___1((struct osc_object const *)obj); cli = tmp; ppc_bits = cli->cl_chunkbits + -12; chunk = index >> ppc_bits; chunksize = 1 << cli->cl_chunkbits; rc = 0; tmp___0 = ldv__builtin_expect((long )(ext->oe_max_end < index || ext->oe_start > index), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_extent_expand"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1150; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_max_end >= index && ext->oe_start <= index"); lbug_with_loc(& __msg_data); } else { } osc_object_lock(obj); tmp___1 = osc_extent_sanity_check0(ext, "osc_extent_expand", 1152); tmp___2 = ldv__builtin_expect(tmp___1 != 0, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_extent_expand"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1152; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"osc_extent_sanity_check0(ext, __func__, 1152) == 0"); lbug_with_loc(& __msg_data___0); } else { } end_chunk = ext->oe_end >> ppc_bits; if (end_chunk + 1UL < chunk) { rc = -34; goto out; } else { } if (end_chunk >= chunk) { rc = 0; goto out; } else { } tmp___3 = ldv__builtin_expect(end_chunk + 1UL != chunk, 0L); if (tmp___3 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "osc_extent_expand"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 1164; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"end_chunk + 1 == chunk"); lbug_with_loc(& __msg_data___1); } else { } _min1 = ext->oe_max_end; _min2 = ((chunk + 1UL) << ppc_bits) - 1UL; end_index = _min1 < _min2 ? _min1 : _min2; next = next_extent(ext); if ((unsigned long )next != (unsigned long )((struct osc_extent *)0) && next->oe_start <= end_index) { rc = -11; goto out; } else { } ext->oe_end = end_index; ext->oe_grants = ext->oe_grants + (unsigned int )chunksize; *grants = *grants - chunksize; tmp___4 = ldv__builtin_expect(*grants < 0, 0L); if (tmp___4 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___2.msg_fn = "osc_extent_expand"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 1179; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"*grants >= 0"); lbug_with_loc(& __msg_data___2); } else { } tmp___14 = osc_extent_is_overlapped(obj, ext); if (tmp___14 != 0) { __ext = ext; tmp___11 = cfs_cdebug_show(131072U, 8U); if (tmp___11 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_extent_expand"; msgdata.msg_line = 1181; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___5 = waitqueue_active(& __ext->oe_waitq); tmp___6 = list_empty_marker(& __ext->oe_pages); tmp___7 = ext_flags(__ext, (char *)(& __buf)); tmp___8 = list_empty_marker(& __ext->oe_link); tmp___9 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___10 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} overlapped after expanding for %lu.\n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___10, tmp___9, (int )tmp___8, oes_strings[__ext->oe_state], tmp___7, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___6, tmp___5 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner, index); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_extent_expand", 1181); tmp___12 = osc_extent_is_overlapped(obj, ext); tmp___13 = ldv__builtin_expect(tmp___12 != 0, 0L); if (tmp___13 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___3.msg_fn = "osc_extent_expand"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 1181; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"osc_extent_is_overlapped(obj, ext) == 0"); lbug_with_loc(& __msg_data___3); } else { } } else { } out: osc_object_unlock(obj); return (rc); } } static void osc_extent_tree_dump0(int level , struct osc_object *obj , char const *func , int line ) { struct osc_extent *ext ; int cnt ; struct libcfs_debug_msg_data msgdata ; struct client_obd *tmp ; int tmp___0 ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; int tmp___2 ; char tmp___3 ; char *tmp___4 ; char tmp___5 ; int tmp___6 ; int tmp___7 ; int tmp___8 ; struct list_head const *__mptr ; struct osc_extent *__ext___0 ; char __buf___0[16U] ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___9 ; int tmp___10 ; char tmp___11 ; char *tmp___12 ; char tmp___13 ; int tmp___14 ; int tmp___15 ; int tmp___16 ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; struct osc_extent *__ext___1 ; char __buf___1[16U] ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___17 ; int tmp___18 ; char tmp___19 ; char *tmp___20 ; char tmp___21 ; int tmp___22 ; int tmp___23 ; int tmp___24 ; struct list_head const *__mptr___2 ; struct list_head const *__mptr___3 ; struct osc_extent *__ext___2 ; char __buf___2[16U] ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___25 ; int tmp___26 ; char tmp___27 ; char *tmp___28 ; char tmp___29 ; int tmp___30 ; int tmp___31 ; int tmp___32 ; struct list_head const *__mptr___4 ; { tmp___0 = cfs_cdebug_show((unsigned int )level, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_extent_tree_dump0"; msgdata.msg_line = 1195; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = level; tmp = osc_cli___1((struct osc_object const *)obj); libcfs_debug_msg(& msgdata, "Dump object %p extents at %s:%d, mppr: %u.\n", obj, func, line, tmp->cl_max_pages_per_rpc); } else { } cnt = 1; ext = first_extent(obj); goto ldv_62839; ldv_62838: __ext = ext; tmp___8 = cfs_cdebug_show((unsigned int )level, 8U); if (tmp___8 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_extent_tree_dump0"; msgdata___0.msg_line = 1200; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = level; tmp___1 = cnt; cnt = cnt + 1; tmp___2 = waitqueue_active(& __ext->oe_waitq); tmp___3 = list_empty_marker(& __ext->oe_pages); tmp___4 = ext_flags(__ext, (char *)(& __buf)); tmp___5 = list_empty_marker(& __ext->oe_link); tmp___6 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___7 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata___0, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} in tree %d.\n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___7, tmp___6, (int )tmp___5, oes_strings[__ext->oe_state], tmp___4, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___3, tmp___2 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner, tmp___1); } else { } ext = next_extent(ext); ldv_62839: ; if ((unsigned long )ext != (unsigned long )((struct osc_extent *)0)) { goto ldv_62838; } else { } cnt = 1; __mptr = (struct list_head const *)obj->oo_hp_exts.next; ext = (struct osc_extent *)__mptr + 0xffffffffffffffd8UL; goto ldv_62849; ldv_62848: __ext___0 = ext; tmp___16 = cfs_cdebug_show((unsigned int )level, 8U); if (tmp___16 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "osc_extent_tree_dump0"; msgdata___1.msg_line = 1204; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = level; tmp___9 = cnt; cnt = cnt + 1; tmp___10 = waitqueue_active(& __ext___0->oe_waitq); tmp___11 = list_empty_marker(& __ext___0->oe_pages); tmp___12 = ext_flags(__ext___0, (char *)(& __buf___0)); tmp___13 = list_empty_marker(& __ext___0->oe_link); tmp___14 = atomic_read((atomic_t const *)(& __ext___0->oe_users)); tmp___15 = atomic_read((atomic_t const *)(& __ext___0->oe_refc)); libcfs_debug_msg(& msgdata___1, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} hp %d.\n", __ext___0, __ext___0->oe_start, __ext___0->oe_end, __ext___0->oe_max_end, tmp___15, tmp___14, (int )tmp___13, oes_strings[__ext___0->oe_state], tmp___12, __ext___0->oe_obj, __ext___0->oe_grants, __ext___0->oe_nr_pages, (int )tmp___11, tmp___10 != 0 ? 43 : 45, __ext___0->oe_osclock, __ext___0->oe_mppr, __ext___0->oe_owner, tmp___9); } else { } __mptr___0 = (struct list_head const *)ext->oe_link.next; ext = (struct osc_extent *)__mptr___0 + 0xffffffffffffffd8UL; ldv_62849: ; if ((unsigned long )(& ext->oe_link) != (unsigned long )(& obj->oo_hp_exts)) { goto ldv_62848; } else { } cnt = 1; __mptr___1 = (struct list_head const *)obj->oo_urgent_exts.next; ext = (struct osc_extent *)__mptr___1 + 0xffffffffffffffd8UL; goto ldv_62859; ldv_62858: __ext___1 = ext; tmp___24 = cfs_cdebug_show((unsigned int )level, 8U); if (tmp___24 != 0) { msgdata___2.msg_subsys = 8; msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___2.msg_fn = "osc_extent_tree_dump0"; msgdata___2.msg_line = 1208; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = level; tmp___17 = cnt; cnt = cnt + 1; tmp___18 = waitqueue_active(& __ext___1->oe_waitq); tmp___19 = list_empty_marker(& __ext___1->oe_pages); tmp___20 = ext_flags(__ext___1, (char *)(& __buf___1)); tmp___21 = list_empty_marker(& __ext___1->oe_link); tmp___22 = atomic_read((atomic_t const *)(& __ext___1->oe_users)); tmp___23 = atomic_read((atomic_t const *)(& __ext___1->oe_refc)); libcfs_debug_msg(& msgdata___2, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} urgent %d.\n", __ext___1, __ext___1->oe_start, __ext___1->oe_end, __ext___1->oe_max_end, tmp___23, tmp___22, (int )tmp___21, oes_strings[__ext___1->oe_state], tmp___20, __ext___1->oe_obj, __ext___1->oe_grants, __ext___1->oe_nr_pages, (int )tmp___19, tmp___18 != 0 ? 43 : 45, __ext___1->oe_osclock, __ext___1->oe_mppr, __ext___1->oe_owner, tmp___17); } else { } __mptr___2 = (struct list_head const *)ext->oe_link.next; ext = (struct osc_extent *)__mptr___2 + 0xffffffffffffffd8UL; ldv_62859: ; if ((unsigned long )(& ext->oe_link) != (unsigned long )(& obj->oo_urgent_exts)) { goto ldv_62858; } else { } cnt = 1; __mptr___3 = (struct list_head const *)obj->oo_reading_exts.next; ext = (struct osc_extent *)__mptr___3 + 0xffffffffffffffd8UL; goto ldv_62869; ldv_62868: __ext___2 = ext; tmp___32 = cfs_cdebug_show((unsigned int )level, 8U); if (tmp___32 != 0) { msgdata___3.msg_subsys = 8; msgdata___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___3.msg_fn = "osc_extent_tree_dump0"; msgdata___3.msg_line = 1212; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = level; tmp___25 = cnt; cnt = cnt + 1; tmp___26 = waitqueue_active(& __ext___2->oe_waitq); tmp___27 = list_empty_marker(& __ext___2->oe_pages); tmp___28 = ext_flags(__ext___2, (char *)(& __buf___2)); tmp___29 = list_empty_marker(& __ext___2->oe_link); tmp___30 = atomic_read((atomic_t const *)(& __ext___2->oe_users)); tmp___31 = atomic_read((atomic_t const *)(& __ext___2->oe_refc)); libcfs_debug_msg(& msgdata___3, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} reading %d.\n", __ext___2, __ext___2->oe_start, __ext___2->oe_end, __ext___2->oe_max_end, tmp___31, tmp___30, (int )tmp___29, oes_strings[__ext___2->oe_state], tmp___28, __ext___2->oe_obj, __ext___2->oe_grants, __ext___2->oe_nr_pages, (int )tmp___27, tmp___26 != 0 ? 43 : 45, __ext___2->oe_osclock, __ext___2->oe_mppr, __ext___2->oe_owner, tmp___25); } else { } __mptr___4 = (struct list_head const *)ext->oe_link.next; ext = (struct osc_extent *)__mptr___4 + 0xffffffffffffffd8UL; ldv_62869: ; if ((unsigned long )(& ext->oe_link) != (unsigned long )(& obj->oo_reading_exts)) { goto ldv_62868; } else { } return; } } __inline static int osc_is_ready(struct osc_object *osc ) { int tmp ; int tmp___0 ; int tmp___1 ; { tmp = list_empty((struct list_head const *)(& osc->oo_ready_item)); if (tmp == 0) { tmp___1 = 1; } else { tmp___0 = list_empty((struct list_head const *)(& osc->oo_hp_ready_item)); if (tmp___0 == 0) { tmp___1 = 1; } else { tmp___1 = 0; } } return (tmp___1); } } static int osc_make_ready(struct lu_env const *env , struct osc_async_page *oap , int cmd ) { struct osc_page *opg ; struct osc_page *tmp ; struct cl_page *page ; struct cl_page *tmp___0 ; struct cl_page *tmp___1 ; int result ; struct libcfs_debug_msg_data __msg_data ; long tmp___2 ; { tmp = oap2osc_page(oap); opg = tmp; tmp___0 = oap2cl_page___0(oap); tmp___1 = cl_page_top(tmp___0); page = tmp___1; tmp___2 = ldv__builtin_expect(cmd != 2, 0L); if (tmp___2 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_make_ready"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1243; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cmd == 0x02"); lbug_with_loc(& __msg_data); } else { } result = cl_page_make_ready(env, page, 1); if (result == 0) { opg->ops_submit_time = cfs_time_current(); } else { } return (result); } } static int osc_refresh_count(struct lu_env const *env , struct osc_async_page *oap , int cmd ) { struct osc_page *opg ; struct osc_page *tmp ; struct cl_page *page ; struct cl_page *tmp___0 ; struct cl_object *obj ; struct cl_attr *attr ; struct osc_thread_info *tmp___1 ; int result ; loff_t kms ; struct libcfs_debug_msg_data __msg_data ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___3 ; loff_t tmp___4 ; loff_t tmp___5 ; { tmp = oap2osc_page(oap); opg = tmp; tmp___0 = oap2cl_page___0(oap); page = tmp___0; tmp___1 = osc_env_info(env); attr = & tmp___1->oti_attr; tmp___2 = ldv__builtin_expect((long )cmd & 1L, 0L); if (tmp___2 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_refresh_count"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1263; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!(cmd & 0x01)"); lbug_with_loc(& __msg_data); } else { } tmp___3 = ldv__builtin_expect((unsigned long )opg == (unsigned long )((struct osc_page *)0), 0L); if (tmp___3 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_refresh_count"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1264; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"opg != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } obj = opg->ops_cl.cpl_obj; cl_object_attr_lock(obj); result = cl_object_attr_get(env, obj, attr); cl_object_attr_unlock(obj); if (result < 0) { return (result); } else { } kms = attr->cat_kms; tmp___5 = cl_offset((struct cl_object const *)obj, page->cp_index); if (tmp___5 >= kms) { return (0); } else { tmp___4 = cl_offset((struct cl_object const *)obj, page->cp_index + 1UL); if (tmp___4 > kms) { return ((int )kms & 4095); } else { return (4096); } } } } static int osc_completion(struct lu_env const *env , struct osc_async_page *oap , int cmd , int rc ) { struct osc_page *opg ; struct osc_page *tmp ; struct cl_page *page ; struct cl_page *tmp___0 ; struct cl_page *tmp___1 ; struct osc_object *obj ; struct osc_object *tmp___2 ; enum cl_req_type crt ; int srvlock ; struct libcfs_debug_msg_data __msg_data ; long tmp___3 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___5 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___6 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___7 ; struct libcfs_debug_msg_data __msg_data___4 ; int tmp___8 ; long tmp___9 ; struct lu_device *ld ; struct osc_stats *stats ; struct osc_device *tmp___10 ; int bytes ; { tmp = oap2osc_page(oap); opg = tmp; tmp___0 = oap2cl_page___0(oap); tmp___1 = cl_page_top(tmp___0); page = tmp___1; tmp___2 = cl2osc___3((struct cl_object const *)opg->ops_cl.cpl_obj); obj = tmp___2; cmd = cmd & -257; tmp___3 = ldv__builtin_expect((long )(((unsigned int )page->cp_state == 3U) ^ (cmd == 1)), 0L); if (tmp___3 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_completion"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1293; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(!!(page->cp_state == CPS_PAGEIN) == !!(cmd == 0x01))"); lbug_with_loc(& __msg_data); } else { } tmp___4 = ldv__builtin_expect((long )(((unsigned int )page->cp_state == 2U) ^ (cmd == 2)), 0L); if (tmp___4 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_completion"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1294; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"(!!(page->cp_state == CPS_PAGEOUT) == !!(cmd == 0x02))"); lbug_with_loc(& __msg_data___0); } else { } tmp___5 = ldv__builtin_expect((unsigned int )*((unsigned char *)opg + 232UL) == 0U, 0L); if (tmp___5 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "osc_completion"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 1295; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"opg->ops_transfer_pinned"); lbug_with_loc(& __msg_data___1); } else { } if ((unsigned long )page->cp_req != (unsigned long )((struct cl_req *)0)) { cl_req_page_done(env, page); } else { } tmp___6 = ldv__builtin_expect((unsigned long )page->cp_req != (unsigned long )((struct cl_req *)0), 0L); if (tmp___6 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___2.msg_fn = "osc_completion"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 1303; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"page->cp_req == ((void *)0)"); lbug_with_loc(& __msg_data___2); } else { } crt = cmd != 1; opg->ops_transfer_pinned = 0U; spin_lock(& obj->oo_seatbelt); tmp___7 = ldv__builtin_expect((unsigned long )opg->ops_submitter == (unsigned long )((struct task_struct *)0), 0L); if (tmp___7 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___3.msg_fn = "osc_completion"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 1310; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"opg->ops_submitter != ((void *)0)"); lbug_with_loc(& __msg_data___3); } else { } tmp___8 = list_empty((struct list_head const *)(& opg->__annonCompField116.ops_inflight)); tmp___9 = ldv__builtin_expect(tmp___8 != 0, 0L); if (tmp___9 != 0L) { __msg_data___4.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___4.msg_fn = "osc_completion"; __msg_data___4.msg_subsys = 8; __msg_data___4.msg_line = 1311; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: \n", (char *)"!list_empty(&opg->ops_inflight)"); lbug_with_loc(& __msg_data___4); } else { } list_del_init(& opg->__annonCompField116.ops_inflight); opg->ops_submitter = (struct task_struct *)0; spin_unlock(& obj->oo_seatbelt); opg->ops_submit_time = 0UL; srvlock = (int )oap->oap_brw_page.flag & 512; if (rc == 0 && srvlock != 0) { ld = (opg->ops_cl.cpl_obj)->co_lu.lo_dev; tmp___10 = lu2osc_dev___4((struct lu_device const *)ld); stats = & tmp___10->od_stats; bytes = oap->oap_brw_page.count; if ((unsigned int )crt == 0U) { stats->os_lockless_reads = stats->os_lockless_reads + (uint64_t )bytes; } else { stats->os_lockless_writes = stats->os_lockless_writes + (uint64_t )bytes; } } else { } lu_ref_del(& page->cp_reference, "transfer", (void const *)page); cl_page_completion(env, page, crt, rc); return (0); } } static void osc_consume_write_grant(struct client_obd *cli , struct brw_page *pga ) { int tmp ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; { tmp = queued_spin_is_locked(& cli->cl_loi_list_lock.lock.__annonCompField18.rlock.raw_lock); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"), "i" (1358), "i" (12UL)); ldv_62923: ; goto ldv_62923; } else { } tmp___1 = ldv__builtin_expect((pga->flag & 32U) != 0U, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_consume_write_grant"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1359; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!(pga->flag & 0x20)"); lbug_with_loc(& __msg_data); } else { } atomic_inc(& obd_dirty_pages); cli->cl_dirty = (long )((unsigned long )cli->cl_dirty + 4096UL); pga->flag = pga->flag | 32U; tmp___2 = cfs_cdebug_show(32U, 8U); if (tmp___2 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_consume_write_grant"; msgdata.msg_line = 1364; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "using %lu grant credits for brw %p page %p\n", 4096UL, pga, pga->pg); } else { } osc_update_next_shrink(cli); return; } } static void osc_release_write_grant(struct client_obd *cli , struct brw_page *pga ) { int tmp ; long tmp___0 ; { tmp = queued_spin_is_locked(& cli->cl_loi_list_lock.lock.__annonCompField18.rlock.raw_lock); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"), "i" (1373), "i" (12UL)); ldv_62931: ; goto ldv_62931; } else { } if ((pga->flag & 32U) == 0U) { return; } else { } pga->flag = pga->flag & 4294967263U; atomic_dec(& obd_dirty_pages); cli->cl_dirty = (long )((unsigned long )cli->cl_dirty - 4096UL); if ((pga->flag & 128U) != 0U) { pga->flag = pga->flag & 4294967167U; atomic_dec(& obd_dirty_transit_pages); cli->cl_dirty_transit = (long )((unsigned long )cli->cl_dirty_transit - 4096UL); } else { } return; } } static int osc_reserve_grant(struct client_obd *cli , unsigned int bytes ) { int rc ; { rc = -122; if (cli->cl_avail_grant >= (long )bytes) { cli->cl_avail_grant = cli->cl_avail_grant - (long )bytes; cli->cl_reserved_grant = cli->cl_reserved_grant + (long )bytes; rc = 0; } else { } return (rc); } } static void __osc_unreserve_grant(struct client_obd *cli , unsigned int reserved , unsigned int unused ) { { cli->cl_reserved_grant = cli->cl_reserved_grant - (long )reserved; if (unused > reserved) { cli->cl_avail_grant = cli->cl_avail_grant + (long )reserved; cli->cl_lost_grant = cli->cl_lost_grant + (long )(unused - reserved); } else { cli->cl_avail_grant = cli->cl_avail_grant + (long )unused; } return; } } void osc_unreserve_grant(struct client_obd *cli , unsigned int reserved , unsigned int unused ) { { __client_obd_list_lock___1(& cli->cl_loi_list_lock, "osc_unreserve_grant", 1425); __osc_unreserve_grant(cli, reserved, unused); if (unused != 0U) { osc_wake_cache_waiters(cli); } else { } client_obd_list_unlock___1(& cli->cl_loi_list_lock); return; } } static void osc_free_grant(struct client_obd *cli , unsigned int nr_pages , unsigned int lost_grant ) { int grant ; struct libcfs_debug_msg_data msgdata ; int tmp ; { grant = (1 << cli->cl_chunkbits) + cli->cl_extent_tax; __client_obd_list_lock___1(& cli->cl_loi_list_lock, "osc_free_grant", 1450); atomic_sub((int )nr_pages, & obd_dirty_pages); cli->cl_dirty = cli->cl_dirty - (long )(nr_pages << 12); cli->cl_lost_grant = cli->cl_lost_grant + (long )lost_grant; if (cli->cl_avail_grant < (long )grant && cli->cl_lost_grant >= (long )grant) { cli->cl_lost_grant = cli->cl_lost_grant - (long )grant; cli->cl_avail_grant = cli->cl_avail_grant + (long )grant; } else { } osc_wake_cache_waiters(cli); client_obd_list_unlock___1(& cli->cl_loi_list_lock); tmp = cfs_cdebug_show(32U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_free_grant"; msgdata.msg_line = 1464; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "lost %u grant: %lu avail: %lu dirty: %lu\n", lost_grant, cli->cl_lost_grant, cli->cl_avail_grant, cli->cl_dirty); } else { } return; } } static void osc_exit_cache(struct client_obd *cli , struct osc_async_page *oap ) { { __client_obd_list_lock___1(& cli->cl_loi_list_lock, "osc_exit_cache", 1473); osc_release_write_grant(cli, & oap->oap_brw_page); client_obd_list_unlock___1(& cli->cl_loi_list_lock); return; } } static int osc_enter_cache_try(struct client_obd *cli , struct osc_async_page *oap , int bytes , int transient ) { int rc ; struct client_obd *__tmp ; struct libcfs_debug_msg_data msgdata ; int tmp ; int tmp___0 ; int tmp___1 ; { __tmp = cli; tmp___0 = cfs_cdebug_show(32U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_enter_cache_try"; msgdata.msg_line = 1488; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; tmp = atomic_read((atomic_t const *)(& obd_dirty_pages)); libcfs_debug_msg(& msgdata, "%s: { dirty: %ld/%ld dirty_pages: %d/%d dropped: %ld avail: %ld, reserved: %ld, flight: %d } need:%d.\n", (char *)(& ((__tmp->cl_import)->imp_obd)->obd_name), __tmp->cl_dirty, __tmp->cl_dirty_max, tmp, obd_max_dirty_pages, __tmp->cl_lost_grant, __tmp->cl_avail_grant, __tmp->cl_reserved_grant, __tmp->cl_w_in_flight, bytes); } else { } rc = osc_reserve_grant(cli, (unsigned int )bytes); if (rc < 0) { return (0); } else { } if ((unsigned long )cli->cl_dirty + 4096UL <= (unsigned long )cli->cl_dirty_max) { tmp___1 = atomic_read((atomic_t const *)(& obd_dirty_pages)); if ((unsigned int )(tmp___1 + 1) <= obd_max_dirty_pages) { osc_consume_write_grant(cli, & oap->oap_brw_page); if (transient != 0) { cli->cl_dirty_transit = (long )((unsigned long )cli->cl_dirty_transit + 4096UL); atomic_inc(& obd_dirty_transit_pages); oap->oap_brw_page.flag = oap->oap_brw_page.flag | 128U; } else { } rc = 1; } else { __osc_unreserve_grant(cli, (unsigned int )bytes, (unsigned int )bytes); rc = 0; } } else { __osc_unreserve_grant(cli, (unsigned int )bytes, (unsigned int )bytes); rc = 0; } return (rc); } } static int ocw_granted(struct client_obd *cli , struct osc_cache_waiter *ocw ) { int rc ; { __client_obd_list_lock___1(& cli->cl_loi_list_lock, "ocw_granted", 1513); rc = list_empty((struct list_head const *)(& ocw->ocw_entry)); client_obd_list_unlock___1(& cli->cl_loi_list_lock); return (rc); } } static int osc_enter_cache(struct lu_env const *env , struct client_obd *cli , struct osc_async_page *oap , int bytes ) { struct osc_object *osc ; struct lov_oinfo *loi ; struct osc_cache_waiter ocw ; struct l_wait_info lwi ; int rc ; struct client_obd *__tmp ; struct libcfs_debug_msg_data msgdata ; int tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; struct lock_class_key __key ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; int __ret ; struct l_wait_info *__info ; wait_queue_t __wait ; long __timeout ; sigset_t __blocked ; int __allow_intr ; int tmp___4 ; struct task_struct *tmp___5 ; int tmp___6 ; struct task_struct *tmp___7 ; long volatile __ret___0 ; struct task_struct *tmp___8 ; struct task_struct *tmp___9 ; struct task_struct *tmp___10 ; struct task_struct *tmp___11 ; long interval ; long __min1 ; long __min2 ; long tmp___12 ; long remaining ; long tmp___13 ; unsigned long tmp___14 ; unsigned long tmp___15 ; int tmp___16 ; struct task_struct *tmp___17 ; long volatile __ret___1 ; struct task_struct *tmp___18 ; struct task_struct *tmp___19 ; struct task_struct *tmp___20 ; struct task_struct *tmp___21 ; int tmp___22 ; int tmp___23 ; struct libcfs_debug_msg_data __msg_data ; int tmp___24 ; long tmp___25 ; int tmp___26 ; struct client_obd *__tmp___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___27 ; int tmp___28 ; { osc = oap->oap_obj; loi = osc->oo_oinfo; lwi.lwi_timeout = 0L; lwi.lwi_interval = 0L; lwi.lwi_allow_intr = 0; lwi.lwi_on_timeout = (int (*)(void * ))0; lwi.lwi_on_signal = (void (*)(void * ))-1; lwi.lwi_cb_data = (void *)0; rc = -122; __tmp = cli; tmp___0 = cfs_cdebug_show(32U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_enter_cache"; msgdata.msg_line = 1535; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; tmp = atomic_read((atomic_t const *)(& obd_dirty_pages)); libcfs_debug_msg(& msgdata, "%s: { dirty: %ld/%ld dirty_pages: %d/%d dropped: %ld avail: %ld, reserved: %ld, flight: %d } need:%d.\n", (char *)(& ((__tmp->cl_import)->imp_obd)->obd_name), __tmp->cl_dirty, __tmp->cl_dirty_max, tmp, obd_max_dirty_pages, __tmp->cl_lost_grant, __tmp->cl_avail_grant, __tmp->cl_reserved_grant, __tmp->cl_w_in_flight, bytes); } else { } __client_obd_list_lock___1(& cli->cl_loi_list_lock, "osc_enter_cache", 1537); tmp___1 = cfs_fail_check_set(1041U, 0U, 0, 0); if (((tmp___1 != 0 || (unsigned long )cli->cl_dirty_max <= 4095UL) || cli->cl_ar.ar_force_sync != 0) || loi->loi_ar.ar_force_sync != 0) { rc = -122; goto out; } else { } tmp___2 = osc_enter_cache_try(cli, oap, bytes, 0); if (tmp___2 != 0) { rc = 0; goto out; } else { } __init_waitqueue_head(& ocw.ocw_waitq, "&ocw.ocw_waitq", & __key); ocw.ocw_oap = oap; ocw.ocw_grant = bytes; goto ldv_63030; ldv_63029: list_add_tail(& ocw.ocw_entry, & cli->cl_cache_waiters); ocw.ocw_rc = 0; client_obd_list_unlock___1(& cli->cl_loi_list_lock); osc_io_unplug_async(env, cli, (struct osc_object *)0); tmp___3 = cfs_cdebug_show(32U, 8U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_enter_cache"; msgdata___0.msg_line = 1571; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32; libcfs_debug_msg(& msgdata___0, "%s: sleeping for cache space @ %p for %p\n", (char *)(& ((cli->cl_import)->imp_obd)->obd_name), & ocw, oap); } else { } __info = & lwi; __timeout = __info->lwi_timeout; __allow_intr = __info->lwi_allow_intr; __ret = 0; tmp___4 = ocw_granted(cli, & ocw); if (tmp___4 != 0) { goto ldv_63002; } else { } tmp___5 = get_current(); init_waitqueue_entry(& __wait, tmp___5); add_wait_queue(& ocw.ocw_waitq, & __wait); if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0) && (__timeout == 0L || __allow_intr != 0)) { __blocked = cfs_block_sigsinv(24838UL); } else { __blocked = cfs_block_sigsinv(0UL); } ldv_63026: tmp___6 = ocw_granted(cli, & ocw); if (tmp___6 != 0) { goto ldv_63003; } else { } tmp___7 = get_current(); tmp___7->task_state_change = 0UL; __ret___0 = 1L; switch (8UL) { case 1UL: tmp___8 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___0), "+m" (tmp___8->state): : "memory", "cc"); goto ldv_63006; case 2UL: tmp___9 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___0), "+m" (tmp___9->state): : "memory", "cc"); goto ldv_63006; case 4UL: tmp___10 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___0), "+m" (tmp___10->state): : "memory", "cc"); goto ldv_63006; case 8UL: tmp___11 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___0), "+m" (tmp___11->state): : "memory", "cc"); goto ldv_63006; default: __xchg_wrong_size(); } ldv_63006: ; if (__timeout == 0L) { schedule(); } else { if (__info->lwi_interval != 0L) { __min1 = __info->lwi_interval; __min2 = __timeout; tmp___12 = __min1 < __min2 ? __min1 : __min2; } else { tmp___12 = __timeout; } interval = tmp___12; tmp___13 = schedule_timeout(interval); remaining = tmp___13; tmp___14 = cfs_time_sub((unsigned long )interval, (unsigned long )remaining); tmp___15 = cfs_time_sub((unsigned long )__timeout, tmp___14); __timeout = (long )tmp___15; if (__timeout == 0L) { if ((unsigned long )__info->lwi_on_timeout == (unsigned long )((int (*)(void * ))0)) { __ret = -110; goto ldv_63003; } else { tmp___16 = (*(__info->lwi_on_timeout))(__info->lwi_cb_data); if (tmp___16 != 0) { __ret = -110; goto ldv_63003; } else { } } if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0)) { cfs_block_sigsinv(24838UL); } else { } } else { } } tmp___17 = get_current(); tmp___17->task_state_change = 0UL; __ret___1 = 0L; switch (8UL) { case 1UL: tmp___18 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___1), "+m" (tmp___18->state): : "memory", "cc"); goto ldv_63019; case 2UL: tmp___19 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___1), "+m" (tmp___19->state): : "memory", "cc"); goto ldv_63019; case 4UL: tmp___20 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___1), "+m" (tmp___20->state): : "memory", "cc"); goto ldv_63019; case 8UL: tmp___21 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___1), "+m" (tmp___21->state): : "memory", "cc"); goto ldv_63019; default: __xchg_wrong_size(); } ldv_63019: tmp___22 = ocw_granted(cli, & ocw); if (tmp___22 != 0) { goto ldv_63003; } else { } tmp___23 = cfs_signal_pending(); if (tmp___23 != 0) { if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0) && (__timeout == 0L || __allow_intr != 0)) { if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))-1)) { (*(__info->lwi_on_signal))(__info->lwi_cb_data); } else { } __ret = -4; goto ldv_63003; } else { } cfs_clear_sigpending(); } else { } goto ldv_63026; ldv_63003: cfs_restore_sigs(__blocked); remove_wait_queue(& ocw.ocw_waitq, & __wait); ldv_63002: rc = __ret; __client_obd_list_lock___1(& cli->cl_loi_list_lock, "osc_enter_cache", 1575); if (rc < 0) { list_del_init(& ocw.ocw_entry); goto out; } else { } tmp___24 = list_empty((struct list_head const *)(& ocw.ocw_entry)); tmp___25 = ldv__builtin_expect(tmp___24 == 0, 0L); if (tmp___25 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_enter_cache"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1583; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&ocw.ocw_entry)"); lbug_with_loc(& __msg_data); } else { } rc = ocw.ocw_rc; if (rc != -122) { goto out; } else { } tmp___26 = osc_enter_cache_try(cli, oap, bytes, 0); if (tmp___26 != 0) { rc = 0; goto out; } else { } ldv_63030: ; if (cli->cl_dirty > 0L || cli->cl_w_in_flight > 0) { goto ldv_63029; } else { } out: client_obd_list_unlock___1(& cli->cl_loi_list_lock); __tmp___0 = cli; tmp___28 = cfs_cdebug_show(32U, 8U); if (tmp___28 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "osc_enter_cache"; msgdata___1.msg_line = 1595; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 32; tmp___27 = atomic_read((atomic_t const *)(& obd_dirty_pages)); libcfs_debug_msg(& msgdata___1, "%s: { dirty: %ld/%ld dirty_pages: %d/%d dropped: %ld avail: %ld, reserved: %ld, flight: %d } returned %d.\n", (char *)(& ((__tmp___0->cl_import)->imp_obd)->obd_name), __tmp___0->cl_dirty, __tmp___0->cl_dirty_max, tmp___27, obd_max_dirty_pages, __tmp___0->cl_lost_grant, __tmp___0->cl_avail_grant, __tmp___0->cl_reserved_grant, __tmp___0->cl_w_in_flight, rc); } else { } return (rc); } } void osc_wake_cache_waiters(struct client_obd *cli ) { struct list_head *l ; struct list_head *tmp ; struct osc_cache_waiter *ocw ; struct list_head const *__mptr ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; int tmp___1 ; int tmp___2 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; { l = cli->cl_cache_waiters.next; tmp = l->next; goto ldv_63047; ldv_63046: __mptr = (struct list_head const *)l; ocw = (struct osc_cache_waiter *)__mptr; list_del_init(& ocw->ocw_entry); ocw->ocw_rc = -122; if ((unsigned long )cli->cl_dirty + 4096UL > (unsigned long )cli->cl_dirty_max) { goto _L; } else { tmp___1 = atomic_read((atomic_t const *)(& obd_dirty_pages)); if ((unsigned int )(tmp___1 + 1) > obd_max_dirty_pages) { _L: /* CIL Label */ tmp___0 = cfs_cdebug_show(32U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_wake_cache_waiters"; msgdata.msg_line = 1616; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "no dirty room: dirty: %ld osc max %ld, sys max %d\n", cli->cl_dirty, cli->cl_dirty_max, obd_max_dirty_pages); } else { } goto wakeup; } else { } } ocw->ocw_rc = 0; tmp___2 = osc_enter_cache_try(cli, ocw->ocw_oap, ocw->ocw_grant, 0); if (tmp___2 == 0) { ocw->ocw_rc = -122; } else { } wakeup: tmp___3 = cfs_cdebug_show(32U, 8U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_wake_cache_waiters"; msgdata___0.msg_line = 1626; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32; libcfs_debug_msg(& msgdata___0, "wake up %p for oap %p, avail grant %ld, %d\n", ocw, ocw->ocw_oap, cli->cl_avail_grant, ocw->ocw_rc); } else { } __wake_up(& ocw->ocw_waitq, 3U, 1, (void *)0); l = tmp; tmp = l->next; ldv_63047: ; if ((unsigned long )(& cli->cl_cache_waiters) != (unsigned long )l) { goto ldv_63046; } else { } return; } } static int osc_max_rpc_in_flight(struct client_obd *cli , struct osc_object *osc ) { int hprpc ; int tmp ; unsigned long tmp___0 ; { tmp = list_empty((struct list_head const *)(& osc->oo_hp_exts)); hprpc = tmp != 0; tmp___0 = rpcs_in_flight(cli); return (tmp___0 >= (unsigned long )(cli->cl_max_rpcs_in_flight + hprpc)); } } static int osc_makes_rpc(struct client_obd *cli , struct osc_object *osc , int cmd ) { int invalid_import ; int tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; int tmp___2 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___3 ; int tmp___4 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___5 ; int tmp___6 ; int tmp___7 ; int tmp___8 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___9 ; int tmp___10 ; { invalid_import = 0; if ((unsigned long )cli->cl_import == (unsigned long )((struct obd_import *)0) || (unsigned int )*((unsigned char *)cli->cl_import + 984UL) != 0U) { invalid_import = 1; } else { } if ((cmd & 2) != 0) { tmp = atomic_read((atomic_t const *)(& osc->oo_nr_writes)); if (tmp == 0) { return (0); } else { } if (invalid_import != 0) { tmp___0 = cfs_cdebug_show(32U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_makes_rpc"; msgdata.msg_line = 1657; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "invalid import forcing RPC\n"); } else { } return (1); } else { } tmp___2 = list_empty((struct list_head const *)(& osc->oo_hp_exts)); if (tmp___2 == 0) { tmp___1 = cfs_cdebug_show(32U, 8U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_makes_rpc"; msgdata___0.msg_line = 1661; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32; libcfs_debug_msg(& msgdata___0, "high prio request forcing RPC\n"); } else { } return (1); } else { } tmp___4 = list_empty((struct list_head const *)(& osc->oo_urgent_exts)); if (tmp___4 == 0) { tmp___3 = cfs_cdebug_show(32U, 8U); if (tmp___3 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "osc_makes_rpc"; msgdata___1.msg_line = 1665; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 32; libcfs_debug_msg(& msgdata___1, "urgent request forcing RPC\n"); } else { } return (1); } else { } tmp___6 = list_empty((struct list_head const *)(& cli->cl_cache_waiters)); if (tmp___6 == 0) { tmp___5 = cfs_cdebug_show(32U, 8U); if (tmp___5 != 0) { msgdata___2.msg_subsys = 8; msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___2.msg_fn = "osc_makes_rpc"; msgdata___2.msg_line = 1672; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 32; libcfs_debug_msg(& msgdata___2, "cache waiters forcing RPC\n"); } else { } return (1); } else { } tmp___7 = atomic_read((atomic_t const *)(& osc->oo_nr_writes)); if ((__u32 )tmp___7 >= cli->cl_max_pages_per_rpc) { return (1); } else { } } else { tmp___8 = atomic_read((atomic_t const *)(& osc->oo_nr_reads)); if (tmp___8 == 0) { return (0); } else { } if (invalid_import != 0) { tmp___9 = cfs_cdebug_show(32U, 8U); if (tmp___9 != 0) { msgdata___3.msg_subsys = 8; msgdata___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___3.msg_fn = "osc_makes_rpc"; msgdata___3.msg_line = 1682; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 32; libcfs_debug_msg(& msgdata___3, "invalid import forcing RPC\n"); } else { } return (1); } else { } tmp___10 = list_empty((struct list_head const *)(& osc->oo_reading_exts)); if (tmp___10 == 0) { return (1); } else { } } return (0); } } static void osc_update_pending(struct osc_object *obj , int cmd , int delta ) { struct client_obd *cli ; struct client_obd *tmp ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___2 ; long tmp___3 ; struct libcfs_debug_msg_data msgdata ; char tmp___4 ; int tmp___5 ; char tmp___6 ; char tmp___7 ; int tmp___8 ; char tmp___9 ; char tmp___10 ; int tmp___11 ; int tmp___12 ; { tmp = osc_cli___1((struct osc_object const *)obj); cli = tmp; if ((cmd & 2) != 0) { atomic_add(delta, & obj->oo_nr_writes); atomic_add(delta, & cli->cl_pending_w_pages); tmp___0 = atomic_read((atomic_t const *)(& obj->oo_nr_writes)); tmp___1 = ldv__builtin_expect(tmp___0 < 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_update_pending"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1699; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&obj->oo_nr_writes) >= 0"); lbug_with_loc(& __msg_data); } else { } } else { atomic_add(delta, & obj->oo_nr_reads); atomic_add(delta, & cli->cl_pending_r_pages); tmp___2 = atomic_read((atomic_t const *)(& obj->oo_nr_reads)); tmp___3 = ldv__builtin_expect(tmp___2 < 0, 0L); if (tmp___3 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_update_pending"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1703; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&obj->oo_nr_reads) >= 0"); lbug_with_loc(& __msg_data___0); } else { } } tmp___12 = cfs_cdebug_show(32U, 8U); if (tmp___12 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_update_pending"; msgdata.msg_line = 1705; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; tmp___4 = list_empty_marker(& obj->oo_reading_exts); tmp___5 = atomic_read((atomic_t const *)(& obj->oo_nr_reads)); tmp___6 = list_empty_marker(& obj->oo_urgent_exts); tmp___7 = list_empty_marker(& obj->oo_hp_exts); tmp___8 = atomic_read((atomic_t const *)(& obj->oo_nr_writes)); tmp___9 = list_empty_marker(& obj->oo_ready_item); tmp___10 = list_empty_marker(& obj->oo_hp_ready_item); tmp___11 = osc_is_ready(obj); libcfs_debug_msg(& msgdata, "obj %p ready %d|%c|%c wr %d|%c|%c rd %d|%c update pending cmd %d delta %d.\n", obj, tmp___11, (int )tmp___10, (int )tmp___9, tmp___8, (int )tmp___7, (int )tmp___6, tmp___5, (int )tmp___4, cmd, delta); } else { } return; } } static int osc_makes_hprpc(struct osc_object *obj ) { int tmp ; { tmp = list_empty((struct list_head const *)(& obj->oo_hp_exts)); return (tmp == 0); } } static void on_list(struct list_head *item , struct list_head *list , int should_be_on ) { int tmp ; int tmp___0 ; { tmp___0 = list_empty((struct list_head const *)item); if (tmp___0 != 0 && should_be_on != 0) { list_add_tail(item, list); } else { tmp = list_empty((struct list_head const *)item); if (tmp == 0 && should_be_on == 0) { list_del_init(item); } else { } } return; } } static int __osc_list_maint(struct client_obd *cli , struct osc_object *osc ) { int tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; { tmp___2 = osc_makes_hprpc(osc); if (tmp___2 != 0) { on_list(& osc->oo_ready_item, & cli->cl_loi_ready_list, 0); on_list(& osc->oo_hp_ready_item, & cli->cl_loi_hp_ready_list, 1); } else { on_list(& osc->oo_hp_ready_item, & cli->cl_loi_hp_ready_list, 0); tmp = osc_makes_rpc(cli, osc, 2); if (tmp != 0) { tmp___1 = 1; } else { tmp___0 = osc_makes_rpc(cli, osc, 1); if (tmp___0 != 0) { tmp___1 = 1; } else { tmp___1 = 0; } } on_list(& osc->oo_ready_item, & cli->cl_loi_ready_list, tmp___1); } tmp___3 = atomic_read((atomic_t const *)(& osc->oo_nr_writes)); on_list(& osc->oo_write_item, & cli->cl_loi_write_list, tmp___3 > 0); tmp___4 = atomic_read((atomic_t const *)(& osc->oo_nr_reads)); on_list(& osc->oo_read_item, & cli->cl_loi_read_list, tmp___4 > 0); tmp___5 = osc_is_ready(osc); return (tmp___5); } } static int osc_list_maint(struct client_obd *cli , struct osc_object *osc ) { int is_ready ; { __client_obd_list_lock___1(& cli->cl_loi_list_lock, "osc_list_maint", 1749); is_ready = __osc_list_maint(cli, osc); client_obd_list_unlock___1(& cli->cl_loi_list_lock); return (is_ready); } } static void osc_process_ar(struct osc_async_rc *ar , __u64 xid , int rc ) { { if (rc != 0) { if (ar->ar_rc == 0) { ar->ar_rc = rc; } else { } ar->ar_force_sync = 1; ar->ar_min_xid = ptlrpc_sample_next_xid(); return; } else { } if (ar->ar_force_sync != 0 && ar->ar_min_xid <= xid) { ar->ar_force_sync = 0; } else { } return; } } static void osc_ap_completion(struct lu_env const *env , struct client_obd *cli , struct osc_async_page *oap , int sent , int rc ) { struct osc_object *osc ; struct lov_oinfo *loi ; __u64 xid ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; { osc = oap->oap_obj; loi = osc->oo_oinfo; xid = 0ULL; if ((unsigned long )oap->oap_request != (unsigned long )((struct ptlrpc_request *)0)) { xid = ptlrpc_req_xid(oap->oap_request); ptlrpc_req_finished(oap->oap_request); oap->oap_request = (struct ptlrpc_request *)0; } else { } spin_lock(& oap->oap_lock); oap->oap_async_flags = 0; spin_unlock(& oap->oap_lock); oap->oap_interrupted = 0U; if (((int )oap->oap_cmd & 2) != 0 && xid != 0ULL) { __client_obd_list_lock___1(& cli->cl_loi_list_lock, "osc_ap_completion", 1801); osc_process_ar(& cli->cl_ar, xid, rc); osc_process_ar(& loi->loi_ar, xid, rc); client_obd_list_unlock___1(& cli->cl_loi_list_lock); } else { } rc = osc_completion(env, oap, (int )oap->oap_cmd, rc); if (rc != 0) { tmp = cfs_cdebug_show(131072U, 8U); if (tmp != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_ap_completion"; msgdata.msg_line = 1810; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "completion on oap %p obj %p returns %d.\n", oap, osc, rc); } else { } } else { } return; } } static int try_to_add_extent_for_io(struct client_obd *cli , struct osc_extent *ext , struct list_head *rpclist , int *pc , unsigned int *max_pages ) { struct osc_extent *tmp ; struct osc_async_page *oap ; struct list_head const *__mptr ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; char tmp___1 ; char *tmp___2 ; char tmp___3 ; int tmp___4 ; int tmp___5 ; int tmp___6 ; struct libcfs_debug_msg_data __msg_data ; long tmp___7 ; unsigned int _max1 ; unsigned int _max2 ; struct list_head const *__mptr___0 ; struct osc_async_page *oap2 ; struct list_head const *__mptr___1 ; struct osc_extent *__ext___0 ; char __buf___0[16U] ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___8 ; char tmp___9 ; char *tmp___10 ; char tmp___11 ; int tmp___12 ; int tmp___13 ; int tmp___14 ; struct libcfs_debug_msg_data __msg_data___0 ; struct task_struct *tmp___15 ; long tmp___16 ; struct task_struct *tmp___17 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___18 ; struct cl_page *tmp___19 ; struct cl_page *tmp___20 ; struct list_head const *__mptr___2 ; { __mptr = (struct list_head const *)ext->oe_pages.next; oap = (struct osc_async_page *)__mptr + 0xfffffffffffffff8UL; if (ext->oe_state != 2U && ext->oe_state != 4U) { __ext = ext; tmp___6 = cfs_cdebug_show(131072U, 8U); if (tmp___6 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "try_to_add_extent_for_io"; msgdata.msg_line = 1828; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___0 = waitqueue_active(& __ext->oe_waitq); tmp___1 = list_empty_marker(& __ext->oe_pages); tmp___2 = ext_flags(__ext, (char *)(& __buf)); tmp___3 = list_empty_marker(& __ext->oe_link); tmp___4 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___5 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___5, tmp___4, (int )tmp___3, oes_strings[__ext->oe_state], tmp___2, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___1, tmp___0 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "try_to_add_extent_for_io", 1828); tmp___7 = ldv__builtin_expect((long )(ext->oe_state != 2U && ext->oe_state != 4U), 0L); if (tmp___7 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "try_to_add_extent_for_io"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1828; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(ext->oe_state == OES_CACHE || ext->oe_state == OES_LOCK_DONE)"); lbug_with_loc(& __msg_data); } else { } } else { } _max1 = ext->oe_mppr; _max2 = *max_pages; *max_pages = _max1 > _max2 ? _max1 : _max2; if ((unsigned int )*pc + ext->oe_nr_pages > *max_pages) { return (0); } else { } __mptr___0 = (struct list_head const *)rpclist->next; tmp = (struct osc_extent *)__mptr___0 + 0xffffffffffffffd8UL; goto ldv_63145; ldv_63144: __mptr___1 = (struct list_head const *)tmp->oe_pages.next; oap2 = (struct osc_async_page *)__mptr___1 + 0xfffffffffffffff8UL; tmp___17 = get_current(); if ((unsigned long )tmp->oe_owner != (unsigned long )tmp___17) { __ext___0 = tmp; tmp___14 = cfs_cdebug_show(131072U, 8U); if (tmp___14 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "try_to_add_extent_for_io"; msgdata___0.msg_line = 1839; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; tmp___8 = waitqueue_active(& __ext___0->oe_waitq); tmp___9 = list_empty_marker(& __ext___0->oe_pages); tmp___10 = ext_flags(__ext___0, (char *)(& __buf___0)); tmp___11 = list_empty_marker(& __ext___0->oe_link); tmp___12 = atomic_read((atomic_t const *)(& __ext___0->oe_users)); tmp___13 = atomic_read((atomic_t const *)(& __ext___0->oe_refc)); libcfs_debug_msg(& msgdata___0, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext___0, __ext___0->oe_start, __ext___0->oe_end, __ext___0->oe_max_end, tmp___13, tmp___12, (int )tmp___11, oes_strings[__ext___0->oe_state], tmp___10, __ext___0->oe_obj, __ext___0->oe_grants, __ext___0->oe_nr_pages, (int )tmp___9, tmp___8 != 0 ? 43 : 45, __ext___0->oe_osclock, __ext___0->oe_mppr, __ext___0->oe_owner); } else { } osc_extent_tree_dump0(131072, tmp->oe_obj, "try_to_add_extent_for_io", 1839); tmp___15 = get_current(); tmp___16 = ldv__builtin_expect((unsigned long )tmp->oe_owner != (unsigned long )tmp___15, 0L); if (tmp___16 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "try_to_add_extent_for_io"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1839; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"tmp->oe_owner == get_current()"); lbug_with_loc(& __msg_data___0); } else { } } else { } tmp___19 = oap2cl_page___0(oap); tmp___20 = oap2cl_page___0(oap2); if ((unsigned int )tmp___19->cp_type != (unsigned int )tmp___20->cp_type) { tmp___18 = cfs_cdebug_show(32U, 8U); if (tmp___18 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "try_to_add_extent_for_io"; msgdata___1.msg_line = 1848; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 32; libcfs_debug_msg(& msgdata___1, "Do not permit different type of IO for a same RPC\n"); } else { } return (0); } else { } if ((int )tmp->oe_srvlock != (int )ext->oe_srvlock || (tmp->oe_grants == 0U) ^ (ext->oe_grants == 0U)) { return (0); } else { } goto ldv_63143; __mptr___2 = (struct list_head const *)tmp->oe_link.next; tmp = (struct osc_extent *)__mptr___2 + 0xffffffffffffffd8UL; ldv_63145: ; if ((unsigned long )(& tmp->oe_link) != (unsigned long )rpclist) { goto ldv_63144; } else { } ldv_63143: *pc = (int )((unsigned int )*pc + ext->oe_nr_pages); list_move_tail(& ext->oe_link, rpclist); ext->oe_owner = get_current(); return (1); } } static int get_write_extents(struct osc_object *obj , struct list_head *rpclist ) { struct client_obd *cli ; struct client_obd *tmp ; struct osc_extent *ext ; int page_count___0 ; unsigned int max_pages ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; struct list_head const *__mptr ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___2 ; int tmp___3 ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp___4 ; char tmp___5 ; char *tmp___6 ; char tmp___7 ; int tmp___8 ; int tmp___9 ; int tmp___10 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___11 ; int tmp___12 ; struct list_head const *__mptr___0 ; int tmp___13 ; int tmp___14 ; int tmp___15 ; int tmp___16 ; int tmp___17 ; int tmp___18 ; { tmp = osc_cli___1((struct osc_object const *)obj); cli = tmp; page_count___0 = 0; max_pages = cli->cl_max_pages_per_rpc; tmp___0 = osc_object_is_locked(obj); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "get_write_extents"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1886; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_object_is_locked(obj)"); lbug_with_loc(& __msg_data); } else { } goto ldv_63164; ldv_63163: __mptr = (struct list_head const *)obj->oo_hp_exts.next; ext = (struct osc_extent *)__mptr + 0xffffffffffffffd8UL; tmp___2 = ldv__builtin_expect(ext->oe_state != 2U, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "get_write_extents"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1890; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_state == OES_CACHE"); lbug_with_loc(& __msg_data___0); } else { } tmp___3 = try_to_add_extent_for_io(cli, ext, rpclist, & page_count___0, & max_pages); if (tmp___3 == 0) { return (page_count___0); } else { } if (ext->oe_nr_pages > max_pages) { __ext = ext; tmp___10 = cfs_cdebug_show(131072U, 8U); if (tmp___10 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "get_write_extents"; msgdata.msg_line = 1894; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___4 = waitqueue_active(& __ext->oe_waitq); tmp___5 = list_empty_marker(& __ext->oe_pages); tmp___6 = ext_flags(__ext, (char *)(& __buf)); tmp___7 = list_empty_marker(& __ext->oe_link); tmp___8 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___9 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___9, tmp___8, (int )tmp___7, oes_strings[__ext->oe_state], tmp___6, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___5, tmp___4 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "get_write_extents", 1894); tmp___11 = ldv__builtin_expect(ext->oe_nr_pages > max_pages, 0L); if (tmp___11 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "get_write_extents"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 1894; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_nr_pages <= max_pages"); lbug_with_loc(& __msg_data___1); } else { } } else { } ldv_63164: tmp___12 = list_empty((struct list_head const *)(& obj->oo_hp_exts)); if (tmp___12 == 0) { goto ldv_63163; } else { } if ((unsigned int )page_count___0 == max_pages) { return (page_count___0); } else { } goto ldv_63168; ldv_63172: __mptr___0 = (struct list_head const *)obj->oo_urgent_exts.next; ext = (struct osc_extent *)__mptr___0 + 0xffffffffffffffd8UL; tmp___13 = try_to_add_extent_for_io(cli, ext, rpclist, & page_count___0, & max_pages); if (tmp___13 == 0) { return (page_count___0); } else { } if ((unsigned int )*((unsigned char *)ext + 60UL) == 0U) { goto ldv_63168; } else { } goto ldv_63169; ldv_63170: ; if (ext->oe_state != 2U) { goto ldv_63169; } else { tmp___14 = list_empty((struct list_head const *)(& ext->oe_link)); if (tmp___14 == 0 && (unsigned long )ext->oe_owner != (unsigned long )((struct task_struct *)0)) { goto ldv_63169; } else { } } tmp___15 = try_to_add_extent_for_io(cli, ext, rpclist, & page_count___0, & max_pages); if (tmp___15 == 0) { return (page_count___0); } else { } ldv_63169: ext = next_extent(ext); if ((unsigned long )ext != (unsigned long )((struct osc_extent *)0)) { goto ldv_63170; } else { } ldv_63168: tmp___16 = list_empty((struct list_head const *)(& obj->oo_urgent_exts)); if (tmp___16 == 0) { goto ldv_63172; } else { } if ((unsigned int )page_count___0 == max_pages) { return (page_count___0); } else { } ext = first_extent(obj); goto ldv_63174; ldv_63175: ; if (ext->oe_state != 2U) { ext = next_extent(ext); goto ldv_63174; } else { tmp___17 = list_empty((struct list_head const *)(& ext->oe_link)); if (tmp___17 == 0 && (unsigned long )ext->oe_owner != (unsigned long )((struct task_struct *)0)) { ext = next_extent(ext); goto ldv_63174; } else { } } tmp___18 = try_to_add_extent_for_io(cli, ext, rpclist, & page_count___0, & max_pages); if (tmp___18 == 0) { return (page_count___0); } else { } ext = next_extent(ext); ldv_63174: ; if ((unsigned long )ext != (unsigned long )((struct osc_extent *)0)) { goto ldv_63175; } else { } return (page_count___0); } } static int osc_send_write_rpc(struct lu_env const *env , struct client_obd *cli , struct osc_object *osc , pdl_policy_t pol ) { struct list_head rpclist ; struct osc_extent *ext ; struct osc_extent *tmp ; struct osc_extent *first ; u32 page_count___0 ; int srvlock ; int rc ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; int tmp___2 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___3 ; long tmp___4 ; int tmp___5 ; struct list_head const *__mptr ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___6 ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; struct list_head const *__mptr___2 ; long tmp___7 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___8 ; struct list_head const *__mptr___3 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___9 ; struct libcfs_debug_msg_data __msg_data___4 ; int tmp___10 ; long tmp___11 ; int tmp___12 ; { rpclist.next = & rpclist; rpclist.prev = & rpclist; first = (struct osc_extent *)0; page_count___0 = 0U; srvlock = 0; rc = 0; tmp___0 = osc_object_is_locked(osc); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_send_write_rpc"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 1953; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_object_is_locked(osc)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = get_write_extents(osc, & rpclist); page_count___0 = (u32 )tmp___2; tmp___3 = list_empty((struct list_head const *)(& rpclist)); tmp___4 = ldv__builtin_expect((long )((page_count___0 == 0U) ^ (tmp___3 != 0)), 0L); if (tmp___4 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_send_write_rpc"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 1956; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"(!!(page_count == 0) == !!(list_empty(&rpclist)))"); lbug_with_loc(& __msg_data___0); } else { } tmp___5 = list_empty((struct list_head const *)(& rpclist)); if (tmp___5 != 0) { return (0); } else { } osc_update_pending(osc, 2, (int )(- page_count___0)); __mptr = (struct list_head const *)rpclist.next; ext = (struct osc_extent *)__mptr + 0xffffffffffffffd8UL; goto ldv_63199; ldv_63198: tmp___6 = ldv__builtin_expect((long )(ext->oe_state != 2U && ext->oe_state != 4U), 0L); if (tmp___6 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "osc_send_write_rpc"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 1965; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_state == OES_CACHE || ext->oe_state == OES_LOCK_DONE"); lbug_with_loc(& __msg_data___1); } else { } if (ext->oe_state == 2U) { osc_extent_state_set(ext, 3); } else { osc_extent_state_set(ext, 5); } __mptr___0 = (struct list_head const *)ext->oe_link.next; ext = (struct osc_extent *)__mptr___0 + 0xffffffffffffffd8UL; ldv_63199: ; if ((unsigned long )(& ext->oe_link) != (unsigned long )(& rpclist)) { goto ldv_63198; } else { } osc_object_unlock(osc); __mptr___1 = (struct list_head const *)rpclist.next; ext = (struct osc_extent *)__mptr___1 + 0xffffffffffffffd8UL; __mptr___2 = (struct list_head const *)ext->oe_link.next; tmp = (struct osc_extent *)__mptr___2 + 0xffffffffffffffd8UL; goto ldv_63210; ldv_63209: ; if (ext->oe_state == 3U) { rc = osc_extent_make_ready(env, ext); tmp___7 = ldv__builtin_expect(rc < 0, 0L); if (tmp___7 != 0L) { list_del_init(& ext->oe_link); osc_extent_finish(env, ext, 0, rc); goto ldv_63207; } else { } } else { } if ((unsigned long )first == (unsigned long )((struct osc_extent *)0)) { first = ext; srvlock = (int )ext->oe_srvlock; } else { tmp___8 = ldv__builtin_expect((int )ext->oe_srvlock != srvlock, 0L); if (tmp___8 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___2.msg_fn = "osc_send_write_rpc"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 1989; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"srvlock == ext->oe_srvlock"); lbug_with_loc(& __msg_data___2); } else { } } ldv_63207: ext = tmp; __mptr___3 = (struct list_head const *)tmp->oe_link.next; tmp = (struct osc_extent *)__mptr___3 + 0xffffffffffffffd8UL; ldv_63210: ; if ((unsigned long )(& ext->oe_link) != (unsigned long )(& rpclist)) { goto ldv_63209; } else { } tmp___12 = list_empty((struct list_head const *)(& rpclist)); if (tmp___12 == 0) { tmp___9 = ldv__builtin_expect(page_count___0 == 0U, 0L); if (tmp___9 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___3.msg_fn = "osc_send_write_rpc"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 1994; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"page_count > 0"); lbug_with_loc(& __msg_data___3); } else { } rc = osc_build_rpc(env, cli, & rpclist, 2, pol); tmp___10 = list_empty((struct list_head const *)(& rpclist)); tmp___11 = ldv__builtin_expect(tmp___10 == 0, 0L); if (tmp___11 != 0L) { __msg_data___4.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___4.msg_fn = "osc_send_write_rpc"; __msg_data___4.msg_subsys = 8; __msg_data___4.msg_line = 1996; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&rpclist)"); lbug_with_loc(& __msg_data___4); } else { } } else { } osc_object_lock(osc); return (rc); } } static int osc_send_read_rpc(struct lu_env const *env , struct client_obd *cli , struct osc_object *osc , pdl_policy_t pol ) { struct osc_extent *ext ; struct osc_extent *next ; struct list_head rpclist ; int page_count___0 ; unsigned int max_pages ; int rc ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; char tmp___2 ; char *tmp___3 ; char tmp___4 ; int tmp___5 ; int tmp___6 ; int tmp___7 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___8 ; int tmp___9 ; struct osc_extent *__ext___0 ; char __buf___0[16U] ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___10 ; char tmp___11 ; char *tmp___12 ; char tmp___13 ; int tmp___14 ; int tmp___15 ; int tmp___16 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___17 ; struct list_head const *__mptr___1 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___18 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___19 ; struct libcfs_debug_msg_data __msg_data___4 ; int tmp___20 ; long tmp___21 ; int tmp___22 ; { rpclist.next = & rpclist; rpclist.prev = & rpclist; page_count___0 = 0; max_pages = cli->cl_max_pages_per_rpc; rc = 0; tmp = osc_object_is_locked(osc); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_send_read_rpc"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2024; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"osc_object_is_locked(osc)"); lbug_with_loc(& __msg_data); } else { } __mptr = (struct list_head const *)osc->oo_reading_exts.next; ext = (struct osc_extent *)__mptr + 0xffffffffffffffd8UL; __mptr___0 = (struct list_head const *)ext->oe_link.next; next = (struct osc_extent *)__mptr___0 + 0xffffffffffffffd8UL; goto ldv_63244; ldv_63243: ; if (ext->oe_state != 4U) { __ext = ext; tmp___7 = cfs_cdebug_show(131072U, 8U); if (tmp___7 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_send_read_rpc"; msgdata.msg_line = 2027; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___1 = waitqueue_active(& __ext->oe_waitq); tmp___2 = list_empty_marker(& __ext->oe_pages); tmp___3 = ext_flags(__ext, (char *)(& __buf)); tmp___4 = list_empty_marker(& __ext->oe_link); tmp___5 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___6 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___6, tmp___5, (int )tmp___4, oes_strings[__ext->oe_state], tmp___3, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___2, tmp___1 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_send_read_rpc", 2027); tmp___8 = ldv__builtin_expect(ext->oe_state != 4U, 0L); if (tmp___8 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_send_read_rpc"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 2027; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_state == OES_LOCK_DONE"); lbug_with_loc(& __msg_data___0); } else { } } else { } tmp___9 = try_to_add_extent_for_io(cli, ext, & rpclist, & page_count___0, & max_pages); if (tmp___9 == 0) { goto ldv_63238; } else { } osc_extent_state_set(ext, 5); if (ext->oe_nr_pages > max_pages) { __ext___0 = ext; tmp___16 = cfs_cdebug_show(131072U, 8U); if (tmp___16 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_send_read_rpc"; msgdata___0.msg_line = 2032; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; tmp___10 = waitqueue_active(& __ext___0->oe_waitq); tmp___11 = list_empty_marker(& __ext___0->oe_pages); tmp___12 = ext_flags(__ext___0, (char *)(& __buf___0)); tmp___13 = list_empty_marker(& __ext___0->oe_link); tmp___14 = atomic_read((atomic_t const *)(& __ext___0->oe_users)); tmp___15 = atomic_read((atomic_t const *)(& __ext___0->oe_refc)); libcfs_debug_msg(& msgdata___0, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext___0, __ext___0->oe_start, __ext___0->oe_end, __ext___0->oe_max_end, tmp___15, tmp___14, (int )tmp___13, oes_strings[__ext___0->oe_state], tmp___12, __ext___0->oe_obj, __ext___0->oe_grants, __ext___0->oe_nr_pages, (int )tmp___11, tmp___10 != 0 ? 43 : 45, __ext___0->oe_osclock, __ext___0->oe_mppr, __ext___0->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_send_read_rpc", 2032); tmp___17 = ldv__builtin_expect(ext->oe_nr_pages > max_pages, 0L); if (tmp___17 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "osc_send_read_rpc"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 2032; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_nr_pages <= max_pages"); lbug_with_loc(& __msg_data___1); } else { } } else { } ext = next; __mptr___1 = (struct list_head const *)next->oe_link.next; next = (struct osc_extent *)__mptr___1 + 0xffffffffffffffd8UL; ldv_63244: ; if ((unsigned long )(& ext->oe_link) != (unsigned long )(& osc->oo_reading_exts)) { goto ldv_63243; } else { } ldv_63238: tmp___18 = ldv__builtin_expect((unsigned int )page_count___0 > max_pages, 0L); if (tmp___18 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___2.msg_fn = "osc_send_read_rpc"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 2034; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"page_count <= max_pages"); lbug_with_loc(& __msg_data___2); } else { } osc_update_pending(osc, 1, - page_count___0); tmp___22 = list_empty((struct list_head const *)(& rpclist)); if (tmp___22 == 0) { osc_object_unlock(osc); tmp___19 = ldv__builtin_expect(page_count___0 <= 0, 0L); if (tmp___19 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___3.msg_fn = "osc_send_read_rpc"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 2041; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"page_count > 0"); lbug_with_loc(& __msg_data___3); } else { } rc = osc_build_rpc(env, cli, & rpclist, 1, pol); tmp___20 = list_empty((struct list_head const *)(& rpclist)); tmp___21 = ldv__builtin_expect(tmp___20 == 0, 0L); if (tmp___21 != 0L) { __msg_data___4.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___4.msg_fn = "osc_send_read_rpc"; __msg_data___4.msg_subsys = 8; __msg_data___4.msg_line = 2043; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&rpclist)"); lbug_with_loc(& __msg_data___4); } else { } osc_object_lock(osc); } else { } return (rc); } } static struct osc_object *osc_next_obj(struct client_obd *cli ) { struct list_head *__tmp ; struct list_head const *__mptr ; int tmp ; struct list_head *__tmp___0 ; struct list_head const *__mptr___0 ; int tmp___0 ; struct list_head *__tmp___1 ; struct list_head const *__mptr___1 ; int tmp___1 ; int tmp___2 ; struct list_head *__tmp___2 ; struct list_head const *__mptr___2 ; int tmp___3 ; struct list_head *__tmp___3 ; struct list_head const *__mptr___3 ; int tmp___4 ; { tmp = list_empty((struct list_head const *)(& cli->cl_loi_hp_ready_list)); if (tmp == 0) { __tmp = cli->cl_loi_hp_ready_list.next; list_del_init(__tmp); __mptr = (struct list_head const *)__tmp; return ((struct osc_object *)__mptr + 0xffffffffffffff38UL); } else { } tmp___0 = list_empty((struct list_head const *)(& cli->cl_loi_ready_list)); if (tmp___0 == 0) { __tmp___0 = cli->cl_loi_ready_list.next; list_del_init(__tmp___0); __mptr___0 = (struct list_head const *)__tmp___0; return ((struct osc_object *)__mptr___0 + 0xffffffffffffff48UL); } else { } tmp___1 = list_empty((struct list_head const *)(& cli->cl_cache_waiters)); if (tmp___1 == 0) { tmp___2 = list_empty((struct list_head const *)(& cli->cl_loi_write_list)); if (tmp___2 == 0) { __tmp___1 = cli->cl_loi_write_list.next; list_del_init(__tmp___1); __mptr___1 = (struct list_head const *)__tmp___1; return ((struct osc_object *)__mptr___1 + 0xffffffffffffff28UL); } else { } } else { } if ((unsigned long )cli->cl_import == (unsigned long )((struct obd_import *)0) || (unsigned int )*((unsigned char *)cli->cl_import + 984UL) != 0U) { tmp___3 = list_empty((struct list_head const *)(& cli->cl_loi_write_list)); if (tmp___3 == 0) { __tmp___2 = cli->cl_loi_write_list.next; list_del_init(__tmp___2); __mptr___2 = (struct list_head const *)__tmp___2; return ((struct osc_object *)__mptr___2 + 0xffffffffffffff28UL); } else { } tmp___4 = list_empty((struct list_head const *)(& cli->cl_loi_read_list)); if (tmp___4 == 0) { __tmp___3 = cli->cl_loi_read_list.next; list_del_init(__tmp___3); __mptr___3 = (struct list_head const *)__tmp___3; return ((struct osc_object *)__mptr___3 + 0xffffffffffffff18UL); } else { } } else { } return ((struct osc_object *)0); } } static void osc_check_rpcs(struct lu_env const *env , struct client_obd *cli , pdl_policy_t pol ) { struct osc_object *osc ; int rc ; struct cl_object *obj ; struct cl_object *tmp ; struct lu_ref_link link ; struct libcfs_debug_msg_data msgdata ; unsigned long tmp___0 ; char tmp___1 ; int tmp___2 ; char tmp___3 ; char tmp___4 ; int tmp___5 ; char tmp___6 ; char tmp___7 ; int tmp___8 ; int tmp___9 ; int tmp___10 ; struct task_struct *tmp___11 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___12 ; int tmp___13 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___14 ; int tmp___15 ; struct task_struct *tmp___16 ; { rc = 0; goto ldv_63288; ldv_63287: tmp = osc2cl((struct osc_object const *)osc); obj = tmp; tmp___9 = cfs_cdebug_show(32U, 8U); if (tmp___9 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_check_rpcs"; msgdata.msg_line = 2098; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; tmp___0 = rpcs_in_flight(cli); tmp___1 = list_empty_marker(& osc->oo_reading_exts); tmp___2 = atomic_read((atomic_t const *)(& osc->oo_nr_reads)); tmp___3 = list_empty_marker(& osc->oo_urgent_exts); tmp___4 = list_empty_marker(& osc->oo_hp_exts); tmp___5 = atomic_read((atomic_t const *)(& osc->oo_nr_writes)); tmp___6 = list_empty_marker(& osc->oo_ready_item); tmp___7 = list_empty_marker(& osc->oo_hp_ready_item); tmp___8 = osc_is_ready(osc); libcfs_debug_msg(& msgdata, "obj %p ready %d|%c|%c wr %d|%c|%c rd %d|%c %lu in flight\n", osc, tmp___8, (int )tmp___7, (int )tmp___6, tmp___5, (int )tmp___4, (int )tmp___3, tmp___2, (int )tmp___1, tmp___0); } else { } tmp___10 = osc_max_rpc_in_flight(cli, osc); if (tmp___10 != 0) { __osc_list_maint(cli, osc); goto ldv_63282; } else { } cl_object_get(obj); client_obd_list_unlock___1(& cli->cl_loi_list_lock); tmp___11 = get_current(); lu_object_ref_add_at(& obj->co_lu, & link, "check", (void const *)tmp___11); osc_object_lock(osc); tmp___13 = osc_makes_rpc(cli, osc, 2); if (tmp___13 != 0) { rc = osc_send_write_rpc(env, cli, osc, pol); if (rc < 0) { tmp___12 = cfs_cdebug_show(131072U, 8U); if (tmp___12 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_check_rpcs"; msgdata___0.msg_line = 2120; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "Write request failed with %d\n", rc); } else { } } else { } } else { } tmp___15 = osc_makes_rpc(cli, osc, 1); if (tmp___15 != 0) { rc = osc_send_read_rpc(env, cli, osc, pol); if (rc < 0) { tmp___14 = cfs_cdebug_show(131072U, 8U); if (tmp___14 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "osc_check_rpcs"; msgdata___1.msg_line = 2144; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "Read request failed with %d\n", rc); } else { } } else { } } else { } osc_object_unlock(osc); osc_list_maint(cli, osc); tmp___16 = get_current(); lu_object_ref_add_at(& obj->co_lu, & link, "check", (void const *)tmp___16); cl_object_put(env, obj); __client_obd_list_lock___1(& cli->cl_loi_list_lock, "osc_check_rpcs", 2153); ldv_63288: osc = osc_next_obj(cli); if ((unsigned long )osc != (unsigned long )((struct osc_object *)0)) { goto ldv_63287; } else { } ldv_63282: ; return; } } static int osc_io_unplug0(struct lu_env const *env , struct client_obd *cli , struct osc_object *osc , pdl_policy_t pol , int async ) { int rc ; int tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; { rc = 0; if ((unsigned long )osc != (unsigned long )((struct osc_object *)0)) { tmp = osc_list_maint(cli, osc); if (tmp == 0) { return (0); } else { } } else { } if (async == 0) { atomic_inc(& cli->cl_lru_shrinkers); __client_obd_list_lock___1(& cli->cl_loi_list_lock, "osc_io_unplug0", 2169); osc_check_rpcs(env, cli, pol); client_obd_list_unlock___1(& cli->cl_loi_list_lock); atomic_dec(& cli->cl_lru_shrinkers); } else { tmp___0 = cfs_cdebug_show(32U, 8U); if (tmp___0 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_io_unplug0"; msgdata.msg_line = 2174; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "Queue writeback work for client %p.\n", cli); } else { } tmp___1 = ldv__builtin_expect((unsigned long )cli->cl_writeback_work == (unsigned long )((void *)0), 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_io_unplug0"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2175; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cli->cl_writeback_work != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } rc = ptlrpcd_queue_work(cli->cl_writeback_work); } return (rc); } } static int osc_io_unplug_async(struct lu_env const *env , struct client_obd *cli , struct osc_object *osc ) { int tmp ; { tmp = osc_io_unplug0(env, cli, osc, 3, 1); return (tmp); } } void osc_io_unplug(struct lu_env const *env , struct client_obd *cli , struct osc_object *osc , pdl_policy_t pol ) { { osc_io_unplug0(env, cli, osc, pol, 0); return; } } int osc_prep_async_page(struct osc_object *osc , struct osc_page *ops , struct page *page , loff_t offset ) { struct obd_export *exp ; struct obd_export *tmp ; struct osc_async_page *oap ; int tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; int tmp___2 ; bool tmp___3 ; struct lock_class_key __key ; struct libcfs_debug_msg_data msgdata ; int tmp___4 ; { tmp = osc_export___2((struct osc_object const *)osc); exp = tmp; oap = & ops->ops_oap; if ((unsigned long )page == (unsigned long )((struct page *)0)) { tmp___0 = cfs_size_round(184); return (tmp___0); } else { } oap->oap_magic = 8675309; oap->oap_cli = & (exp->exp_obd)->u.cli; oap->oap_obj = osc; oap->oap_brw_page.pg = page; oap->oap_obj_off = (u64 )offset; tmp___1 = ldv__builtin_expect(((unsigned long long )offset & 4095ULL) != 0ULL, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_prep_async_page"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2209; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!(offset & ~(~((__u64)((1UL) << 12)-1)))"); lbug_with_loc(& __msg_data); } else { } tmp___2 = client_is_remote(exp); if (tmp___2 == 0) { tmp___3 = capable(24); if ((int )tmp___3) { oap->oap_brw_page.flag = 256U; } else { } } else { } INIT_LIST_HEAD(& oap->oap_pending_item); INIT_LIST_HEAD(& oap->oap_rpc_item); spinlock_check(& oap->oap_lock); __raw_spin_lock_init(& oap->oap_lock.__annonCompField18.rlock, "&(&oap->oap_lock)->rlock", & __key); tmp___4 = cfs_cdebug_show(64U, 8U); if (tmp___4 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_prep_async_page"; msgdata.msg_line = 2219; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "oap %p page %p obj off %llu\n", oap, page, oap->oap_obj_off); } else { } return (0); } } int osc_queue_async_io(struct lu_env const *env , struct cl_io *io , struct osc_page *ops ) { struct osc_io *oio ; struct osc_io *tmp ; struct osc_extent *ext ; struct osc_async_page *oap ; struct client_obd *cli ; struct osc_object *osc ; unsigned long index ; int grants ; int brw_flags ; int cmd ; int need_release ; int rc ; int tmp___0 ; int tmp___1 ; struct obd_export *tmp___2 ; int tmp___3 ; bool tmp___4 ; struct cl_object *obj ; struct cl_attr *attr ; unsigned int qid[3U] ; struct osc_thread_info *tmp___5 ; int tmp___6 ; struct libcfs_debug_msg_data msgdata ; char tmp___7 ; int tmp___8 ; char tmp___9 ; char tmp___10 ; int tmp___11 ; char tmp___12 ; char tmp___13 ; int tmp___14 ; int tmp___15 ; struct cl_page *tmp___16 ; int tmp___17 ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___18 ; char tmp___19 ; char *tmp___20 ; char tmp___21 ; int tmp___22 ; int tmp___23 ; int tmp___24 ; int tmp___25 ; struct libcfs_debug_msg_data __msg_data ; long tmp___26 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___27 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___28 ; long tmp___29 ; bool tmp___30 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___31 ; struct osc_extent *__ext___0 ; char __buf___0[16U] ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___32 ; char tmp___33 ; char *tmp___34 ; char tmp___35 ; int tmp___36 ; int tmp___37 ; int tmp___38 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___39 ; struct libcfs_debug_msg_data __msg_data___4 ; long tmp___40 ; struct libcfs_debug_msg_data __msg_data___5 ; long tmp___41 ; { tmp = osc_env_io(env); oio = tmp; ext = (struct osc_extent *)0; oap = & ops->ops_oap; cli = oap->oap_cli; osc = oap->oap_obj; grants = 0; brw_flags = 1024; cmd = 2; need_release = 0; rc = 0; if (oap->oap_magic != 8675309) { return (-22); } else { } if ((unsigned long )cli->cl_import == (unsigned long )((struct obd_import *)0) || (unsigned int )*((unsigned char *)cli->cl_import + 984UL) != 0U) { return (-5); } else { } tmp___0 = list_empty((struct list_head const *)(& oap->oap_pending_item)); if (tmp___0 == 0) { return (-16); } else { tmp___1 = list_empty((struct list_head const *)(& oap->oap_rpc_item)); if (tmp___1 == 0) { return (-16); } else { } } brw_flags = ((unsigned int )*((unsigned char *)ops + 232UL) != 0U ? 512 : 0) | brw_flags; tmp___2 = osc_export___2((struct osc_object const *)osc); tmp___3 = client_is_remote(tmp___2); if (tmp___3 == 0) { tmp___4 = capable(24); if ((int )tmp___4) { brw_flags = brw_flags | 256; cmd = cmd | 256; } else { } } else { } if ((cmd & 256) == 0) { obj = cl_object_top(& osc->oo_cl); tmp___5 = osc_env_info(env); attr = & tmp___5->oti_attr; cl_object_attr_lock(obj); rc = cl_object_attr_get(env, obj, attr); cl_object_attr_unlock(obj); qid[0] = attr->cat_uid; qid[1] = attr->cat_gid; if (rc == 0) { tmp___6 = osc_quota_chkdq(cli, (unsigned int const *)(& qid)); if (tmp___6 == -122) { rc = -122; } else { } } else { } if (rc != 0) { return (rc); } else { } } else { } oap->oap_cmd = (unsigned short )cmd; oap->oap_page_off = (unsigned int )ops->ops_from; oap->oap_brw_page.count = ops->ops_to - ops->ops_from; oap->oap_async_flags = 0; oap->oap_brw_page.flag = (u32 )brw_flags; tmp___15 = cfs_cdebug_show(32U, 8U); if (tmp___15 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_queue_async_io"; msgdata.msg_line = 2284; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; tmp___7 = list_empty_marker(& osc->oo_reading_exts); tmp___8 = atomic_read((atomic_t const *)(& osc->oo_nr_reads)); tmp___9 = list_empty_marker(& osc->oo_urgent_exts); tmp___10 = list_empty_marker(& osc->oo_hp_exts); tmp___11 = atomic_read((atomic_t const *)(& osc->oo_nr_writes)); tmp___12 = list_empty_marker(& osc->oo_ready_item); tmp___13 = list_empty_marker(& osc->oo_hp_ready_item); tmp___14 = osc_is_ready(osc); libcfs_debug_msg(& msgdata, "obj %p ready %d|%c|%c wr %d|%c|%c rd %d|%c oap %p page %p added for cmd %d\n", osc, tmp___14, (int )tmp___13, (int )tmp___12, tmp___11, (int )tmp___10, (int )tmp___9, tmp___8, (int )tmp___7, oap, oap->oap_brw_page.pg, (int )oap->oap_cmd & 3); } else { } tmp___16 = oap2cl_page___0(oap); index = tmp___16->cp_index; ext = oio->oi_active; if (((unsigned long )ext != (unsigned long )((struct osc_extent *)0) && ext->oe_start <= index) && ext->oe_max_end >= index) { grants = (1 << cli->cl_chunkbits) + cli->cl_extent_tax; if (ext->oe_end >= index) { grants = 0; } else { } __client_obd_list_lock___1(& cli->cl_loi_list_lock, "osc_queue_async_io", 2303); rc = osc_enter_cache_try(cli, oap, grants, 0); client_obd_list_unlock___1(& cli->cl_loi_list_lock); if (rc == 0) { grants = 0; need_release = 1; } else if (ext->oe_end < index) { tmp___17 = grants; rc = osc_extent_expand(ext, index, & tmp___17); if (rc < 0) { need_release = 1; } else { __ext = ext; tmp___24 = cfs_cdebug_show(32U, 8U); if (tmp___24 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_queue_async_io"; msgdata___0.msg_line = 2318; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32; tmp___18 = waitqueue_active(& __ext->oe_waitq); tmp___19 = list_empty_marker(& __ext->oe_pages); tmp___20 = ext_flags(__ext, (char *)(& __buf)); tmp___21 = list_empty_marker(& __ext->oe_link); tmp___22 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___23 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata___0, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} expanded for %lu.\n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___23, tmp___22, (int )tmp___21, oes_strings[__ext->oe_state], tmp___20, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___19, tmp___18 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner, index); } else { } osc_unreserve_grant(cli, (unsigned int )grants, (unsigned int )tmp___17); grants = 0; } } else { } rc = 0; } else if ((unsigned long )ext != (unsigned long )((struct osc_extent *)0)) { need_release = 1; } else { } if (need_release != 0) { osc_extent_release(env, ext); oio->oi_active = (struct osc_extent *)0; ext = (struct osc_extent *)0; } else { } if ((unsigned long )ext == (unsigned long )((struct osc_extent *)0)) { tmp___25 = (1 << cli->cl_chunkbits) + cli->cl_extent_tax; tmp___26 = ldv__builtin_expect((unsigned long )oio->oi_active != (unsigned long )((struct osc_extent *)0), 0L); if (tmp___26 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_queue_async_io"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2338; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"oio->oi_active == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___27 = ldv__builtin_expect((long )(grants > 0 && grants < tmp___25), 0L); if (tmp___27 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_queue_async_io"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 2341; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"(!(grants > 0) || (grants >= tmp))"); lbug_with_loc(& __msg_data___0); } else { } rc = 0; if (grants == 0) { rc = osc_enter_cache(env, cli, oap, tmp___25); if (rc == 0) { grants = tmp___25; } else { } } else { } tmp___25 = grants; if (rc == 0) { ext = osc_extent_find(env, osc, index, & tmp___25); tmp___30 = IS_ERR((void const *)ext); if ((int )tmp___30) { tmp___28 = ldv__builtin_expect(tmp___25 != grants, 0L); if (tmp___28 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "osc_queue_async_io"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 2355; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"tmp == grants"); lbug_with_loc(& __msg_data___1); } else { } osc_exit_cache(cli, oap); tmp___29 = PTR_ERR((void const *)ext); rc = (int )tmp___29; ext = (struct osc_extent *)0; } else { oio->oi_active = ext; } } else { } if (grants > 0) { osc_unreserve_grant(cli, (unsigned int )grants, (unsigned int )tmp___25); } else { } } else { } tmp___31 = ldv__builtin_expect((long )(rc == 0 && (unsigned long )ext == (unsigned long )((struct osc_extent *)0)), 0L); if (tmp___31 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___2.msg_fn = "osc_queue_async_io"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 2367; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"(!(rc == 0) || (ext != ((void *)0)))"); lbug_with_loc(& __msg_data___2); } else { } if ((unsigned long )ext != (unsigned long )((struct osc_extent *)0)) { if (ext->oe_end < index || ext->oe_start > index) { __ext___0 = ext; tmp___38 = cfs_cdebug_show(131072U, 8U); if (tmp___38 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "osc_queue_async_io"; msgdata___1.msg_line = 2370; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 131072; tmp___32 = waitqueue_active(& __ext___0->oe_waitq); tmp___33 = list_empty_marker(& __ext___0->oe_pages); tmp___34 = ext_flags(__ext___0, (char *)(& __buf___0)); tmp___35 = list_empty_marker(& __ext___0->oe_link); tmp___36 = atomic_read((atomic_t const *)(& __ext___0->oe_users)); tmp___37 = atomic_read((atomic_t const *)(& __ext___0->oe_refc)); libcfs_debug_msg(& msgdata___1, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} index = %lu.\n", __ext___0, __ext___0->oe_start, __ext___0->oe_end, __ext___0->oe_max_end, tmp___37, tmp___36, (int )tmp___35, oes_strings[__ext___0->oe_state], tmp___34, __ext___0->oe_obj, __ext___0->oe_grants, __ext___0->oe_nr_pages, (int )tmp___33, tmp___32 != 0 ? 43 : 45, __ext___0->oe_osclock, __ext___0->oe_mppr, __ext___0->oe_owner, index); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_queue_async_io", 2370); tmp___39 = ldv__builtin_expect((long )(ext->oe_end < index || ext->oe_start > index), 0L); if (tmp___39 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___3.msg_fn = "osc_queue_async_io"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 2370; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_end >= index && ext->oe_start <= index"); lbug_with_loc(& __msg_data___3); } else { } } else { } tmp___40 = ldv__builtin_expect((oap->oap_brw_page.flag & 32U) == 0U, 0L); if (tmp___40 != 0L) { __msg_data___4.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___4.msg_fn = "osc_queue_async_io"; __msg_data___4.msg_subsys = 8; __msg_data___4.msg_line = 2371; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: \n", (char *)"(oap->oap_brw_page.flag & 0x20) != 0"); lbug_with_loc(& __msg_data___4); } else { } osc_object_lock(osc); if (ext->oe_nr_pages == 0U) { ext->oe_srvlock = ops->ops_srvlock; } else { tmp___41 = ldv__builtin_expect((int )ext->oe_srvlock != (int )ops->ops_srvlock, 0L); if (tmp___41 != 0L) { __msg_data___5.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___5.msg_fn = "osc_queue_async_io"; __msg_data___5.msg_subsys = 8; __msg_data___5.msg_line = 2377; __msg_data___5.msg_mask = 0; __msg_data___5.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___5.msg_mask = 262144; libcfs_debug_msg(& __msg_data___5, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_srvlock == ops->ops_srvlock"); lbug_with_loc(& __msg_data___5); } else { } } ext->oe_nr_pages = ext->oe_nr_pages + 1U; list_add_tail(& oap->oap_pending_item, & ext->oe_pages); osc_object_unlock(osc); } else { } return (rc); } } int osc_teardown_async_page(struct lu_env const *env , struct osc_object *obj , struct osc_page *ops ) { struct osc_async_page *oap ; struct osc_extent *ext ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; struct cl_page *tmp___0 ; int tmp___1 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; struct cl_page *tmp___3 ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata___1 ; struct cl_page *tmp___4 ; int tmp___5 ; char tmp___6 ; char *tmp___7 ; char tmp___8 ; int tmp___9 ; int tmp___10 ; int tmp___11 ; int tmp___12 ; int tmp___13 ; { oap = & ops->ops_oap; ext = (struct osc_extent *)0; rc = 0; tmp = ldv__builtin_expect(oap->oap_magic != 8675309, 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_teardown_async_page"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2392; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"oap->oap_magic == 8675309"); lbug_with_loc(& __msg_data); } else { } tmp___1 = cfs_cdebug_show(64U, 8U); if (tmp___1 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_teardown_async_page"; msgdata.msg_line = 2395; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; tmp___0 = oap2cl_page___0(oap); libcfs_debug_msg(& msgdata, "teardown oap %p page %p at index %lu.\n", oap, ops, tmp___0->cp_index); } else { } osc_object_lock(obj); tmp___13 = list_empty((struct list_head const *)(& oap->oap_rpc_item)); if (tmp___13 == 0) { tmp___2 = cfs_cdebug_show(32U, 8U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_teardown_async_page"; msgdata___0.msg_line = 2399; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32; libcfs_debug_msg(& msgdata___0, "oap %p is not in cache.\n", oap); } else { } rc = -16; } else { tmp___12 = list_empty((struct list_head const *)(& oap->oap_pending_item)); if (tmp___12 == 0) { tmp___3 = oap2cl_page___0(oap); ext = osc_extent_lookup(obj, tmp___3->cp_index); if ((unsigned long )ext != (unsigned long )((struct osc_extent *)0) && ext->oe_state != 6U) { __ext = ext; tmp___11 = cfs_cdebug_show(131072U, 8U); if (tmp___11 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "osc_teardown_async_page"; msgdata___1.msg_line = 2408; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 131072; tmp___4 = oap2cl_page___0(oap); tmp___5 = waitqueue_active(& __ext->oe_waitq); tmp___6 = list_empty_marker(& __ext->oe_pages); tmp___7 = ext_flags(__ext, (char *)(& __buf)); tmp___8 = list_empty_marker(& __ext->oe_link); tmp___9 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___10 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata___1, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} trunc at %lu.\n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___10, tmp___9, (int )tmp___8, oes_strings[__ext->oe_state], tmp___7, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___6, tmp___5 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner, tmp___4->cp_index); } else { } rc = -16; } else { } } else { } } osc_object_unlock(obj); if ((unsigned long )ext != (unsigned long )((struct osc_extent *)0)) { osc_extent_put(env, ext); } else { } return (rc); } } int osc_flush_async_page(struct lu_env const *env , struct cl_io *io , struct osc_page *ops ) { struct osc_extent *ext ; struct osc_object *obj ; struct osc_object *tmp ; struct cl_page *cp ; unsigned long index ; struct osc_async_page *oap ; bool unplug ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; struct cl_page *tmp___1 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; int tmp___3 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___4 ; struct cl_page *tmp___5 ; struct task_struct *tmp___6 ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___7 ; char tmp___8 ; char *tmp___9 ; char tmp___10 ; int tmp___11 ; int tmp___12 ; int tmp___13 ; int tmp___14 ; struct client_obd *tmp___15 ; { ext = (struct osc_extent *)0; tmp = cl2osc___3((struct cl_object const *)ops->ops_cl.cpl_obj); obj = tmp; cp = ops->ops_cl.cpl_page; index = cp->cp_index; oap = & ops->ops_oap; unplug = 0; rc = 0; osc_object_lock(obj); ext = osc_extent_lookup(obj, index); if ((unsigned long )ext == (unsigned long )((struct osc_extent *)0)) { osc_extent_tree_dump0(131072, obj, "osc_flush_async_page", 2439); tmp___0 = ldv__builtin_expect(1L, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_flush_async_page"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2440; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: page index %lu is NOT covered.\n", (char *)"0", index); lbug_with_loc(& __msg_data); } else { } } else { } switch (ext->oe_state) { case 5U: ; case 4U: msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_flush_async_page"; msgdata.msg_subsys = 8; msgdata.msg_line = 2447; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___3 = cfs_cdebug_show(131072U, 8U); if (tmp___3 != 0) { tmp___1 = cl_page_top(cp); cl_page_print(env, (void *)(& msgdata), & lu_cdebug_printer, (struct cl_page const *)tmp___1); tmp___2 = cfs_cdebug_show(131072U, 8U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_flush_async_page"; msgdata___0.msg_line = 2447; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "flush an in-rpc page?\n"); } else { } } else { } tmp___4 = ldv__builtin_expect(1L, 0L); if (tmp___4 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_flush_async_page"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 2448; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"0"); lbug_with_loc(& __msg_data___0); } else { } goto ldv_63393; case 3U: ; case 6U: ; case 1U: rc = -11; goto out; default: ; goto ldv_63393; } ldv_63393: tmp___5 = cl_page_top(cp); rc = cl_page_prep(env, io, tmp___5, 1); if (rc != 0) { goto out; } else { } spin_lock(& oap->oap_lock); oap->oap_async_flags = (enum async_flags )((unsigned int )oap->oap_async_flags | 3U); spin_unlock(& oap->oap_lock); tmp___6 = get_current(); if ((tmp___6->flags & 2048U) != 0U) { ext->oe_memalloc = 1U; } else { } ext->oe_urgent = 1U; if (ext->oe_state == 2U) { __ext = ext; tmp___13 = cfs_cdebug_show(32U, 8U); if (tmp___13 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "osc_flush_async_page"; msgdata___1.msg_line = 2485; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 32; tmp___7 = waitqueue_active(& __ext->oe_waitq); tmp___8 = list_empty_marker(& __ext->oe_pages); tmp___9 = ext_flags(__ext, (char *)(& __buf)); tmp___10 = list_empty_marker(& __ext->oe_link); tmp___11 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___12 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata___1, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} flush page %p make it urgent.\n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___12, tmp___11, (int )tmp___10, oes_strings[__ext->oe_state], tmp___9, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___8, tmp___7 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner, oap); } else { } tmp___14 = list_empty((struct list_head const *)(& ext->oe_link)); if (tmp___14 != 0) { list_add_tail(& ext->oe_link, & obj->oo_urgent_exts); } else { } unplug = 1; } else { } rc = 0; out: osc_object_unlock(obj); osc_extent_put(env, ext); if ((int )unplug) { tmp___15 = osc_cli___1((struct osc_object const *)obj); osc_io_unplug_async(env, tmp___15, obj); } else { } return (rc); } } int osc_cancel_async_page(struct lu_env const *env , struct osc_page *ops ) { struct osc_async_page *oap ; struct osc_object *obj ; struct client_obd *cli ; struct client_obd *tmp ; struct osc_extent *ext ; struct osc_extent *found ; struct list_head *plist ; unsigned long index ; struct cl_page *tmp___0 ; int rc ; int cmd ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; struct list_head const *__mptr ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___2 ; struct list_head const *__mptr___0 ; { oap = & ops->ops_oap; obj = oap->oap_obj; tmp = osc_cli___1((struct osc_object const *)obj); cli = tmp; found = (struct osc_extent *)0; tmp___0 = oap2cl_page___0(oap); index = tmp___0->cp_index; rc = -16; tmp___1 = ldv__builtin_expect((long )*((unsigned char *)oap + 6UL) & 1L, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_cancel_async_page"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2519; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!oap->oap_interrupted"); lbug_with_loc(& __msg_data); } else { } oap->oap_interrupted = 1U; osc_object_lock(obj); if (((int )oap->oap_cmd & 2) != 0) { plist = & obj->oo_urgent_exts; cmd = 2; } else { plist = & obj->oo_reading_exts; cmd = 1; } __mptr = (struct list_head const *)plist->next; ext = (struct osc_extent *)__mptr + 0xffffffffffffffd8UL; goto ldv_63424; ldv_63423: ; if (ext->oe_start <= index && ext->oe_end >= index) { tmp___2 = ldv__builtin_expect(ext->oe_state != 4U, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_cancel_async_page"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 2533; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_state == OES_LOCK_DONE"); lbug_with_loc(& __msg_data___0); } else { } found = osc_extent_get(ext); goto ldv_63422; } else { } __mptr___0 = (struct list_head const *)ext->oe_link.next; ext = (struct osc_extent *)__mptr___0 + 0xffffffffffffffd8UL; ldv_63424: ; if ((unsigned long )(& ext->oe_link) != (unsigned long )plist) { goto ldv_63423; } else { } ldv_63422: ; if ((unsigned long )found != (unsigned long )((struct osc_extent *)0)) { list_del_init(& found->oe_link); osc_update_pending(obj, cmd, (int )(- found->oe_nr_pages)); osc_object_unlock(obj); osc_extent_finish(env, found, 0, -4); osc_extent_put(env, found); rc = 0; } else { osc_object_unlock(obj); if ((unsigned long )oap->oap_request != (unsigned long )((struct ptlrpc_request *)0)) { ptlrpc_mark_interrupted(oap->oap_request); ptlrpcd_wake(oap->oap_request); ptlrpc_req_finished(oap->oap_request); oap->oap_request = (struct ptlrpc_request *)0; } else { } } osc_list_maint(cli, obj); return (rc); } } int osc_queue_sync_pages(struct lu_env const *env , struct osc_object *obj , struct list_head *list , int cmd , int brw_flags ) { struct client_obd *cli ; struct client_obd *tmp ; struct osc_extent *ext ; struct osc_async_page *oap ; struct osc_async_page *tmp___0 ; int page_count___0 ; int mppr ; unsigned long start ; unsigned long end ; struct list_head const *__mptr ; struct cl_page *cp ; struct cl_page *tmp___1 ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; struct list_head const *__mptr___2 ; struct list_head const *__mptr___3 ; unsigned long tmp___2 ; { tmp = osc_cli___1((struct osc_object const *)obj); cli = tmp; page_count___0 = 0; mppr = (int )cli->cl_max_pages_per_rpc; start = 0xffffffffffffffffUL; end = 0UL; __mptr = (struct list_head const *)list->next; oap = (struct osc_async_page *)__mptr + 0xfffffffffffffff8UL; goto ldv_63446; ldv_63445: tmp___1 = oap2cl_page___0(oap); cp = tmp___1; if (cp->cp_index > end) { end = cp->cp_index; } else { } if (cp->cp_index < start) { start = cp->cp_index; } else { } page_count___0 = page_count___0 + 1; mppr = mppr << (page_count___0 > mppr); __mptr___0 = (struct list_head const *)oap->oap_pending_item.next; oap = (struct osc_async_page *)__mptr___0 + 0xfffffffffffffff8UL; ldv_63446: ; if ((unsigned long )(& oap->oap_pending_item) != (unsigned long )list) { goto ldv_63445; } else { } ext = osc_extent_alloc(obj); if ((unsigned long )ext == (unsigned long )((struct osc_extent *)0)) { __mptr___1 = (struct list_head const *)list->next; oap = (struct osc_async_page *)__mptr___1 + 0xfffffffffffffff8UL; __mptr___2 = (struct list_head const *)oap->oap_pending_item.next; tmp___0 = (struct osc_async_page *)__mptr___2 + 0xfffffffffffffff8UL; goto ldv_63455; ldv_63454: list_del_init(& oap->oap_pending_item); osc_ap_completion(env, cli, oap, 0, -12); oap = tmp___0; __mptr___3 = (struct list_head const *)tmp___0->oap_pending_item.next; tmp___0 = (struct osc_async_page *)__mptr___3 + 0xfffffffffffffff8UL; ldv_63455: ; if ((unsigned long )(& oap->oap_pending_item) != (unsigned long )list) { goto ldv_63454; } else { } return (-12); } else { } ext->oe_rw = (unsigned int )((unsigned char )cmd) & 1U; ext->oe_urgent = 1U; ext->oe_start = start; tmp___2 = end; ext->oe_max_end = tmp___2; ext->oe_end = tmp___2; ext->oe_obj = obj; ext->oe_srvlock = (brw_flags & 512) != 0; ext->oe_nr_pages = (unsigned int )page_count___0; ext->oe_mppr = (unsigned int )mppr; list_splice_init(list, & ext->oe_pages); osc_object_lock(obj); osc_extent_state_set(ext, 4); if ((cmd & 2) != 0) { list_add_tail(& ext->oe_link, & obj->oo_urgent_exts); osc_update_pending(obj, 2, page_count___0); } else { list_add_tail(& ext->oe_link, & obj->oo_reading_exts); osc_update_pending(obj, 1, page_count___0); } osc_object_unlock(obj); osc_io_unplug_async(env, cli, obj); return (0); } } int osc_cache_truncate_start(struct lu_env const *env , struct osc_io *oio , struct osc_object *obj , __u64 size ) { struct client_obd *cli ; struct client_obd *tmp ; struct osc_extent *ext ; struct osc_extent *waiting ; unsigned long index ; struct list_head list ; int result ; bool partial ; struct cl_object *tmp___0 ; struct cl_object *tmp___1 ; loff_t tmp___2 ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp___3 ; char tmp___4 ; char *tmp___5 ; char tmp___6 ; int tmp___7 ; int tmp___8 ; int tmp___9 ; struct libcfs_debug_msg_data __msg_data ; long tmp___10 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___11 ; struct osc_extent *__ext___0 ; char __buf___0[16U] ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___12 ; char tmp___13 ; char *tmp___14 ; char tmp___15 ; int tmp___16 ; int tmp___17 ; int tmp___18 ; struct osc_extent *__ext___1 ; char __buf___1[16U] ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___19 ; char tmp___20 ; char *tmp___21 ; char tmp___22 ; int tmp___23 ; int tmp___24 ; int tmp___25 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___26 ; struct osc_extent *__ext___2 ; char __buf___2[16U] ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___27 ; char tmp___28 ; char *tmp___29 ; char tmp___30 ; int tmp___31 ; int tmp___32 ; int tmp___33 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___34 ; struct osc_extent *__ext___3 ; char __buf___3[16U] ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___35 ; char tmp___36 ; char *tmp___37 ; char tmp___38 ; int tmp___39 ; int tmp___40 ; int tmp___41 ; struct libcfs_debug_msg_data __msg_data___3 ; int tmp___42 ; long tmp___43 ; int tmp___44 ; int rc ; struct list_head const *__mptr ; struct osc_extent *__ext___4 ; char __buf___4[16U] ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___45 ; char tmp___46 ; char *tmp___47 ; char tmp___48 ; int tmp___49 ; int tmp___50 ; int tmp___51 ; struct osc_extent *__ext___5 ; char __buf___5[16U] ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___52 ; char tmp___53 ; char *tmp___54 ; char tmp___55 ; int tmp___56 ; int tmp___57 ; int tmp___58 ; struct libcfs_debug_msg_data __msg_data___4 ; long tmp___59 ; struct libcfs_debug_msg_data __msg_data___5 ; long tmp___60 ; struct osc_extent *__ext___6 ; char __buf___6[16U] ; struct libcfs_debug_msg_data msgdata___6 ; int tmp___61 ; char tmp___62 ; char *tmp___63 ; char tmp___64 ; int tmp___65 ; int tmp___66 ; int tmp___67 ; int tmp___68 ; int rc___0 ; struct osc_extent *__ext___7 ; char __buf___7[16U] ; struct libcfs_debug_msg_data msgdata___7 ; int tmp___69 ; char tmp___70 ; char *tmp___71 ; char tmp___72 ; int tmp___73 ; int tmp___74 ; int tmp___75 ; { tmp = osc_cli___1((struct osc_object const *)obj); cli = tmp; waiting = (struct osc_extent *)0; list.next = & list; list.prev = & list; result = 0; tmp___0 = osc2cl((struct osc_object const *)obj); index = cl_index((struct cl_object const *)tmp___0, (loff_t )size); tmp___1 = osc2cl((struct osc_object const *)obj); tmp___2 = cl_offset((struct cl_object const *)tmp___1, index); partial = (unsigned long long )tmp___2 < size; again: osc_object_lock(obj); ext = osc_extent_search(obj, index); if ((unsigned long )ext == (unsigned long )((struct osc_extent *)0)) { ext = first_extent(obj); } else if (ext->oe_end < index) { ext = next_extent(ext); } else { } goto ldv_63494; ldv_63493: ; if (ext->oe_state == 6U) { __ext = ext; tmp___9 = cfs_cdebug_show(131072U, 8U); if (tmp___9 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_cache_truncate_start"; msgdata.msg_line = 2646; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp___3 = waitqueue_active(& __ext->oe_waitq); tmp___4 = list_empty_marker(& __ext->oe_pages); tmp___5 = ext_flags(__ext, (char *)(& __buf)); tmp___6 = list_empty_marker(& __ext->oe_link); tmp___7 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___8 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___8, tmp___7, (int )tmp___6, oes_strings[__ext->oe_state], tmp___5, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___4, tmp___3 != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_cache_truncate_start", 2646); tmp___10 = ldv__builtin_expect(ext->oe_state == 6U, 0L); if (tmp___10 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_cache_truncate_start"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2646; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_state != OES_TRUNC"); lbug_with_loc(& __msg_data); } else { } } else { } if (ext->oe_state > 2U || (unsigned int )*((unsigned char *)ext + 60UL) != 0U) { tmp___11 = ldv__builtin_expect((unsigned int )*((unsigned char *)ext + 60UL) != 0U, 0L); if (tmp___11 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_cache_truncate_start"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 2653; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!ext->oe_hp"); lbug_with_loc(& __msg_data___0); } else { } __ext___0 = ext; tmp___18 = cfs_cdebug_show(32U, 8U); if (tmp___18 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_cache_truncate_start"; msgdata___0.msg_line = 2655; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32; tmp___12 = waitqueue_active(& __ext___0->oe_waitq); tmp___13 = list_empty_marker(& __ext___0->oe_pages); tmp___14 = ext_flags(__ext___0, (char *)(& __buf___0)); tmp___15 = list_empty_marker(& __ext___0->oe_link); tmp___16 = atomic_read((atomic_t const *)(& __ext___0->oe_users)); tmp___17 = atomic_read((atomic_t const *)(& __ext___0->oe_refc)); libcfs_debug_msg(& msgdata___0, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} waiting for busy extent\n", __ext___0, __ext___0->oe_start, __ext___0->oe_end, __ext___0->oe_max_end, tmp___17, tmp___16, (int )tmp___15, oes_strings[__ext___0->oe_state], tmp___14, __ext___0->oe_obj, __ext___0->oe_grants, __ext___0->oe_nr_pages, (int )tmp___13, tmp___12 != 0 ? 43 : 45, __ext___0->oe_osclock, __ext___0->oe_mppr, __ext___0->oe_owner); } else { } waiting = osc_extent_get(ext); goto ldv_63480; } else { } __ext___1 = ext; tmp___25 = cfs_cdebug_show(32U, 8U); if (tmp___25 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "osc_cache_truncate_start"; msgdata___1.msg_line = 2660; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 32; tmp___19 = waitqueue_active(& __ext___1->oe_waitq); tmp___20 = list_empty_marker(& __ext___1->oe_pages); tmp___21 = ext_flags(__ext___1, (char *)(& __buf___1)); tmp___22 = list_empty_marker(& __ext___1->oe_link); tmp___23 = atomic_read((atomic_t const *)(& __ext___1->oe_users)); tmp___24 = atomic_read((atomic_t const *)(& __ext___1->oe_refc)); libcfs_debug_msg(& msgdata___1, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} try to trunc:%llu.\n", __ext___1, __ext___1->oe_start, __ext___1->oe_end, __ext___1->oe_max_end, tmp___24, tmp___23, (int )tmp___22, oes_strings[__ext___1->oe_state], tmp___21, __ext___1->oe_obj, __ext___1->oe_grants, __ext___1->oe_nr_pages, (int )tmp___20, tmp___19 != 0 ? 43 : 45, __ext___1->oe_osclock, __ext___1->oe_mppr, __ext___1->oe_owner, size); } else { } osc_extent_get(ext); if (ext->oe_state == 1U) { tmp___26 = ldv__builtin_expect((unsigned int )*((unsigned char *)ext + 60UL) != 0U, 0L); if (tmp___26 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "osc_cache_truncate_start"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 2668; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"!ext->oe_trunc_pending"); lbug_with_loc(& __msg_data___1); } else { } ext->oe_trunc_pending = 1U; } else { if (ext->oe_state != 2U) { __ext___2 = ext; tmp___33 = cfs_cdebug_show(131072U, 8U); if (tmp___33 != 0) { msgdata___2.msg_subsys = 8; msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___2.msg_fn = "osc_cache_truncate_start"; msgdata___2.msg_line = 2671; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 131072; tmp___27 = waitqueue_active(& __ext___2->oe_waitq); tmp___28 = list_empty_marker(& __ext___2->oe_pages); tmp___29 = ext_flags(__ext___2, (char *)(& __buf___2)); tmp___30 = list_empty_marker(& __ext___2->oe_link); tmp___31 = atomic_read((atomic_t const *)(& __ext___2->oe_users)); tmp___32 = atomic_read((atomic_t const *)(& __ext___2->oe_refc)); libcfs_debug_msg(& msgdata___2, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext___2, __ext___2->oe_start, __ext___2->oe_end, __ext___2->oe_max_end, tmp___32, tmp___31, (int )tmp___30, oes_strings[__ext___2->oe_state], tmp___29, __ext___2->oe_obj, __ext___2->oe_grants, __ext___2->oe_nr_pages, (int )tmp___28, tmp___27 != 0 ? 43 : 45, __ext___2->oe_osclock, __ext___2->oe_mppr, __ext___2->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_cache_truncate_start", 2671); tmp___34 = ldv__builtin_expect(ext->oe_state != 2U, 0L); if (tmp___34 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___2.msg_fn = "osc_cache_truncate_start"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 2671; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_state == OES_CACHE"); lbug_with_loc(& __msg_data___2); } else { } } else { } osc_extent_state_set(ext, 6); osc_update_pending(obj, 2, (int )(- ext->oe_nr_pages)); } tmp___44 = list_empty((struct list_head const *)(& ext->oe_link)); if (tmp___44 == 0) { __ext___3 = ext; tmp___41 = cfs_cdebug_show(131072U, 8U); if (tmp___41 != 0) { msgdata___3.msg_subsys = 8; msgdata___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___3.msg_fn = "osc_cache_truncate_start"; msgdata___3.msg_line = 2676; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 131072; tmp___35 = waitqueue_active(& __ext___3->oe_waitq); tmp___36 = list_empty_marker(& __ext___3->oe_pages); tmp___37 = ext_flags(__ext___3, (char *)(& __buf___3)); tmp___38 = list_empty_marker(& __ext___3->oe_link); tmp___39 = atomic_read((atomic_t const *)(& __ext___3->oe_users)); tmp___40 = atomic_read((atomic_t const *)(& __ext___3->oe_refc)); libcfs_debug_msg(& msgdata___3, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext___3, __ext___3->oe_start, __ext___3->oe_end, __ext___3->oe_max_end, tmp___40, tmp___39, (int )tmp___38, oes_strings[__ext___3->oe_state], tmp___37, __ext___3->oe_obj, __ext___3->oe_grants, __ext___3->oe_nr_pages, (int )tmp___36, tmp___35 != 0 ? 43 : 45, __ext___3->oe_osclock, __ext___3->oe_mppr, __ext___3->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_cache_truncate_start", 2676); tmp___42 = list_empty((struct list_head const *)(& ext->oe_link)); tmp___43 = ldv__builtin_expect(tmp___42 == 0, 0L); if (tmp___43 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___3.msg_fn = "osc_cache_truncate_start"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 2676; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&ext->oe_link)"); lbug_with_loc(& __msg_data___3); } else { } } else { } list_add_tail(& ext->oe_link, & list); ext = next_extent(ext); ldv_63494: ; if ((unsigned long )ext != (unsigned long )((struct osc_extent *)0)) { goto ldv_63493; } else { } ldv_63480: osc_object_unlock(obj); osc_list_maint(cli, obj); goto ldv_63510; ldv_63509: __mptr = (struct list_head const *)list.next; ext = (struct osc_extent *)__mptr + 0xffffffffffffffd8UL; list_del_init(& ext->oe_link); if (ext->oe_state != 6U) { osc_extent_wait(env, ext, 6); } else { } rc = osc_extent_truncate(ext, index, (int )partial); if (rc < 0) { if (result == 0) { result = rc; } else { } __ext___4 = ext; tmp___51 = cfs_cdebug_show(131072U, 8U); if (tmp___51 != 0) { msgdata___4.msg_subsys = 8; msgdata___4.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___4.msg_fn = "osc_cache_truncate_start"; msgdata___4.msg_line = 2702; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 131072; tmp___45 = waitqueue_active(& __ext___4->oe_waitq); tmp___46 = list_empty_marker(& __ext___4->oe_pages); tmp___47 = ext_flags(__ext___4, (char *)(& __buf___4)); tmp___48 = list_empty_marker(& __ext___4->oe_link); tmp___49 = atomic_read((atomic_t const *)(& __ext___4->oe_users)); tmp___50 = atomic_read((atomic_t const *)(& __ext___4->oe_refc)); libcfs_debug_msg(& msgdata___4, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} truncate error %d\n", __ext___4, __ext___4->oe_start, __ext___4->oe_end, __ext___4->oe_max_end, tmp___50, tmp___49, (int )tmp___48, oes_strings[__ext___4->oe_state], tmp___47, __ext___4->oe_obj, __ext___4->oe_grants, __ext___4->oe_nr_pages, (int )tmp___46, tmp___45 != 0 ? 43 : 45, __ext___4->oe_osclock, __ext___4->oe_mppr, __ext___4->oe_owner, rc); } else { } } else if (ext->oe_nr_pages == 0U) { osc_extent_remove(ext); } else { if (ext->oe_start > index) { __ext___5 = ext; tmp___58 = cfs_cdebug_show(131072U, 8U); if (tmp___58 != 0) { msgdata___5.msg_subsys = 8; msgdata___5.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___5.msg_fn = "osc_cache_truncate_start"; msgdata___5.msg_line = 2710; msgdata___5.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___5.msg_mask = 131072; tmp___52 = waitqueue_active(& __ext___5->oe_waitq); tmp___53 = list_empty_marker(& __ext___5->oe_pages); tmp___54 = ext_flags(__ext___5, (char *)(& __buf___5)); tmp___55 = list_empty_marker(& __ext___5->oe_link); tmp___56 = atomic_read((atomic_t const *)(& __ext___5->oe_users)); tmp___57 = atomic_read((atomic_t const *)(& __ext___5->oe_refc)); libcfs_debug_msg(& msgdata___5, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} trunc index = %lu/%d.\n", __ext___5, __ext___5->oe_start, __ext___5->oe_end, __ext___5->oe_max_end, tmp___57, tmp___56, (int )tmp___55, oes_strings[__ext___5->oe_state], tmp___54, __ext___5->oe_obj, __ext___5->oe_grants, __ext___5->oe_nr_pages, (int )tmp___53, tmp___52 != 0 ? 43 : 45, __ext___5->oe_osclock, __ext___5->oe_mppr, __ext___5->oe_owner, index, (int )partial); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_cache_truncate_start", 2710); tmp___59 = ldv__builtin_expect(ext->oe_start > index, 0L); if (tmp___59 != 0L) { __msg_data___4.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___4.msg_fn = "osc_cache_truncate_start"; __msg_data___4.msg_subsys = 8; __msg_data___4.msg_line = 2710; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_start <= index"); lbug_with_loc(& __msg_data___4); } else { } } else { } index = ext->oe_end + 1UL; partial = 0; tmp___60 = ldv__builtin_expect((unsigned long )oio->oi_trunc != (unsigned long )((struct osc_extent *)0), 0L); if (tmp___60 != 0L) { __msg_data___5.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___5.msg_fn = "osc_cache_truncate_start"; __msg_data___5.msg_subsys = 8; __msg_data___5.msg_line = 2718; __msg_data___5.msg_mask = 0; __msg_data___5.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___5.msg_mask = 262144; libcfs_debug_msg(& __msg_data___5, "ASSERTION( %s ) failed: \n", (char *)"oio->oi_trunc == ((void *)0)"); lbug_with_loc(& __msg_data___5); } else { } oio->oi_trunc = osc_extent_get(ext); __ext___6 = ext; tmp___67 = cfs_cdebug_show(32U, 8U); if (tmp___67 != 0) { msgdata___6.msg_subsys = 8; msgdata___6.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___6.msg_fn = "osc_cache_truncate_start"; msgdata___6.msg_line = 2721; msgdata___6.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___6.msg_mask = 32; tmp___61 = waitqueue_active(& __ext___6->oe_waitq); tmp___62 = list_empty_marker(& __ext___6->oe_pages); tmp___63 = ext_flags(__ext___6, (char *)(& __buf___6)); tmp___64 = list_empty_marker(& __ext___6->oe_link); tmp___65 = atomic_read((atomic_t const *)(& __ext___6->oe_users)); tmp___66 = atomic_read((atomic_t const *)(& __ext___6->oe_refc)); libcfs_debug_msg(& msgdata___6, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} trunc at %llu\n", __ext___6, __ext___6->oe_start, __ext___6->oe_end, __ext___6->oe_max_end, tmp___66, tmp___65, (int )tmp___64, oes_strings[__ext___6->oe_state], tmp___63, __ext___6->oe_obj, __ext___6->oe_grants, __ext___6->oe_nr_pages, (int )tmp___62, tmp___61 != 0 ? 43 : 45, __ext___6->oe_osclock, __ext___6->oe_mppr, __ext___6->oe_owner, size); } else { } } osc_extent_put(env, ext); ldv_63510: tmp___68 = list_empty((struct list_head const *)(& list)); if (tmp___68 == 0) { goto ldv_63509; } else { } if ((unsigned long )waiting != (unsigned long )((struct osc_extent *)0)) { rc___0 = osc_extent_wait(env, waiting, 0); if (rc___0 < 0) { __ext___7 = waiting; tmp___75 = cfs_cdebug_show(32U, 8U); if (tmp___75 != 0) { msgdata___7.msg_subsys = 8; msgdata___7.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___7.msg_fn = "osc_cache_truncate_start"; msgdata___7.msg_line = 2732; msgdata___7.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___7.msg_mask = 32; tmp___69 = waitqueue_active(& __ext___7->oe_waitq); tmp___70 = list_empty_marker(& __ext___7->oe_pages); tmp___71 = ext_flags(__ext___7, (char *)(& __buf___7)); tmp___72 = list_empty_marker(& __ext___7->oe_link); tmp___73 = atomic_read((atomic_t const *)(& __ext___7->oe_users)); tmp___74 = atomic_read((atomic_t const *)(& __ext___7->oe_refc)); libcfs_debug_msg(& msgdata___7, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} error: %d.\n", __ext___7, __ext___7->oe_start, __ext___7->oe_end, __ext___7->oe_max_end, tmp___74, tmp___73, (int )tmp___72, oes_strings[__ext___7->oe_state], tmp___71, __ext___7->oe_obj, __ext___7->oe_grants, __ext___7->oe_nr_pages, (int )tmp___70, tmp___69 != 0 ? 43 : 45, __ext___7->oe_osclock, __ext___7->oe_mppr, __ext___7->oe_owner, rc___0); } else { } } else { } osc_extent_put(env, waiting); waiting = (struct osc_extent *)0; goto again; } else { } return (result); } } void osc_cache_truncate_end(struct lu_env const *env , struct osc_io *oio , struct osc_object *obj ) { struct osc_extent *ext ; bool unplug ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp ; char tmp___0 ; char *tmp___1 ; char tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; struct libcfs_debug_msg_data __msg_data ; long tmp___6 ; struct osc_extent *__ext___0 ; char __buf___0[16U] ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___7 ; char tmp___8 ; char *tmp___9 ; char tmp___10 ; int tmp___11 ; int tmp___12 ; int tmp___13 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___14 ; struct osc_extent *__ext___1 ; char __buf___1[16U] ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___15 ; char tmp___16 ; char *tmp___17 ; char tmp___18 ; int tmp___19 ; int tmp___20 ; int tmp___21 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___22 ; struct osc_extent *__ext___2 ; char __buf___2[16U] ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___23 ; char tmp___24 ; char *tmp___25 ; char tmp___26 ; int tmp___27 ; int tmp___28 ; int tmp___29 ; struct client_obd *tmp___30 ; { ext = oio->oi_trunc; oio->oi_trunc = (struct osc_extent *)0; if ((unsigned long )ext != (unsigned long )((struct osc_extent *)0)) { unplug = 0; if (ext->oe_nr_pages == 0U) { __ext = ext; tmp___5 = cfs_cdebug_show(131072U, 8U); if (tmp___5 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_cache_truncate_end"; msgdata.msg_line = 2753; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp = waitqueue_active(& __ext->oe_waitq); tmp___0 = list_empty_marker(& __ext->oe_pages); tmp___1 = ext_flags(__ext, (char *)(& __buf)); tmp___2 = list_empty_marker(& __ext->oe_link); tmp___3 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___4 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___4, tmp___3, (int )tmp___2, oes_strings[__ext->oe_state], tmp___1, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___0, tmp != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_cache_truncate_end", 2753); tmp___6 = ldv__builtin_expect(ext->oe_nr_pages == 0U, 0L); if (tmp___6 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_cache_truncate_end"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2753; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_nr_pages > 0"); lbug_with_loc(& __msg_data); } else { } } else { } if (ext->oe_state != 6U) { __ext___0 = ext; tmp___13 = cfs_cdebug_show(131072U, 8U); if (tmp___13 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_cache_truncate_end"; msgdata___0.msg_line = 2754; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; tmp___7 = waitqueue_active(& __ext___0->oe_waitq); tmp___8 = list_empty_marker(& __ext___0->oe_pages); tmp___9 = ext_flags(__ext___0, (char *)(& __buf___0)); tmp___10 = list_empty_marker(& __ext___0->oe_link); tmp___11 = atomic_read((atomic_t const *)(& __ext___0->oe_users)); tmp___12 = atomic_read((atomic_t const *)(& __ext___0->oe_refc)); libcfs_debug_msg(& msgdata___0, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext___0, __ext___0->oe_start, __ext___0->oe_end, __ext___0->oe_max_end, tmp___12, tmp___11, (int )tmp___10, oes_strings[__ext___0->oe_state], tmp___9, __ext___0->oe_obj, __ext___0->oe_grants, __ext___0->oe_nr_pages, (int )tmp___8, tmp___7 != 0 ? 43 : 45, __ext___0->oe_osclock, __ext___0->oe_mppr, __ext___0->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_cache_truncate_end", 2754); tmp___14 = ldv__builtin_expect(ext->oe_state != 6U, 0L); if (tmp___14 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_cache_truncate_end"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 2754; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_state == OES_TRUNC"); lbug_with_loc(& __msg_data___0); } else { } } else { } if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U) { __ext___1 = ext; tmp___21 = cfs_cdebug_show(131072U, 8U); if (tmp___21 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "osc_cache_truncate_end"; msgdata___1.msg_line = 2755; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 131072; tmp___15 = waitqueue_active(& __ext___1->oe_waitq); tmp___16 = list_empty_marker(& __ext___1->oe_pages); tmp___17 = ext_flags(__ext___1, (char *)(& __buf___1)); tmp___18 = list_empty_marker(& __ext___1->oe_link); tmp___19 = atomic_read((atomic_t const *)(& __ext___1->oe_users)); tmp___20 = atomic_read((atomic_t const *)(& __ext___1->oe_refc)); libcfs_debug_msg(& msgdata___1, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext___1, __ext___1->oe_start, __ext___1->oe_end, __ext___1->oe_max_end, tmp___20, tmp___19, (int )tmp___18, oes_strings[__ext___1->oe_state], tmp___17, __ext___1->oe_obj, __ext___1->oe_grants, __ext___1->oe_nr_pages, (int )tmp___16, tmp___15 != 0 ? 43 : 45, __ext___1->oe_osclock, __ext___1->oe_mppr, __ext___1->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_cache_truncate_end", 2755); tmp___22 = ldv__builtin_expect((int )((signed char )*((unsigned char *)ext + 60UL)) < 0, 0L); if (tmp___22 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "osc_cache_truncate_end"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 2755; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"!ext->oe_urgent"); lbug_with_loc(& __msg_data___1); } else { } } else { } __ext___2 = ext; tmp___29 = cfs_cdebug_show(32U, 8U); if (tmp___29 != 0) { msgdata___2.msg_subsys = 8; msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___2.msg_fn = "osc_cache_truncate_end"; msgdata___2.msg_line = 2757; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 32; tmp___23 = waitqueue_active(& __ext___2->oe_waitq); tmp___24 = list_empty_marker(& __ext___2->oe_pages); tmp___25 = ext_flags(__ext___2, (char *)(& __buf___2)); tmp___26 = list_empty_marker(& __ext___2->oe_link); tmp___27 = atomic_read((atomic_t const *)(& __ext___2->oe_users)); tmp___28 = atomic_read((atomic_t const *)(& __ext___2->oe_refc)); libcfs_debug_msg(& msgdata___2, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} trunc -> cache.\n", __ext___2, __ext___2->oe_start, __ext___2->oe_end, __ext___2->oe_max_end, tmp___28, tmp___27, (int )tmp___26, oes_strings[__ext___2->oe_state], tmp___25, __ext___2->oe_obj, __ext___2->oe_grants, __ext___2->oe_nr_pages, (int )tmp___24, tmp___23 != 0 ? 43 : 45, __ext___2->oe_osclock, __ext___2->oe_mppr, __ext___2->oe_owner); } else { } osc_object_lock(obj); osc_extent_state_set(ext, 2); if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U && (unsigned int )*((unsigned char *)ext + 60UL) == 0U) { ext->oe_urgent = 1U; list_move_tail(& ext->oe_link, & obj->oo_urgent_exts); unplug = 1; } else { } osc_update_pending(obj, 2, (int )ext->oe_nr_pages); osc_object_unlock(obj); osc_extent_put(env, ext); if ((int )unplug) { tmp___30 = osc_cli___1((struct osc_object const *)obj); osc_io_unplug_async(env, tmp___30, obj); } else { } } else { } return; } } int osc_cache_wait_range(struct lu_env const *env , struct osc_object *obj , unsigned long start , unsigned long end ) { struct osc_extent *ext ; unsigned long index ; int result ; int rc ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp ; char tmp___0 ; char *tmp___1 ; char tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; struct libcfs_debug_msg_data __msg_data ; long tmp___6 ; struct osc_extent *__ext___0 ; char __buf___0[16U] ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___7 ; char tmp___8 ; char *tmp___9 ; char tmp___10 ; int tmp___11 ; int tmp___12 ; int tmp___13 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___14 ; struct libcfs_debug_msg_data msgdata___1 ; char tmp___15 ; int tmp___16 ; char tmp___17 ; char tmp___18 ; int tmp___19 ; char tmp___20 ; char tmp___21 ; int tmp___22 ; int tmp___23 ; { index = start; result = 0; again: osc_object_lock(obj); ext = osc_extent_search(obj, index); if ((unsigned long )ext == (unsigned long )((struct osc_extent *)0)) { ext = first_extent(obj); } else if (ext->oe_end < index) { ext = next_extent(ext); } else { } goto ldv_63551; ldv_63561: ; if (ext->oe_start > end) { goto ldv_63550; } else { } if ((unsigned int )*((unsigned char *)ext + 60UL) == 0U) { ext = next_extent(ext); goto ldv_63551; } else { } if (ext->oe_state == 2U && ((unsigned int )*((unsigned char *)ext + 60UL) == 0U && (unsigned int )*((unsigned char *)ext + 60UL) == 0U)) { __ext = ext; tmp___5 = cfs_cdebug_show(131072U, 8U); if (tmp___5 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_cache_wait_range"; msgdata.msg_line = 2809; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp = waitqueue_active(& __ext->oe_waitq); tmp___0 = list_empty_marker(& __ext->oe_pages); tmp___1 = ext_flags(__ext, (char *)(& __buf)); tmp___2 = list_empty_marker(& __ext->oe_link); tmp___3 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___4 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___4, tmp___3, (int )tmp___2, oes_strings[__ext->oe_state], tmp___1, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___0, tmp != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_cache_wait_range", 2809); tmp___6 = ldv__builtin_expect((long )(ext->oe_state == 2U && ((unsigned int )*((unsigned char *)ext + 60UL) == 0U && (unsigned int )*((unsigned char *)ext + 60UL) == 0U)), 0L); if (tmp___6 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_cache_wait_range"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2809; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"(!(ext->oe_state == OES_CACHE) || (ext->oe_hp || ext->oe_urgent))"); lbug_with_loc(& __msg_data); } else { } } else { } if (ext->oe_state == 1U && ((unsigned int )*((unsigned char *)ext + 60UL) != 0U || (unsigned int )*((unsigned char *)ext + 60UL) == 0U)) { __ext___0 = ext; tmp___13 = cfs_cdebug_show(131072U, 8U); if (tmp___13 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_cache_wait_range"; msgdata___0.msg_line = 2811; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; tmp___7 = waitqueue_active(& __ext___0->oe_waitq); tmp___8 = list_empty_marker(& __ext___0->oe_pages); tmp___9 = ext_flags(__ext___0, (char *)(& __buf___0)); tmp___10 = list_empty_marker(& __ext___0->oe_link); tmp___11 = atomic_read((atomic_t const *)(& __ext___0->oe_users)); tmp___12 = atomic_read((atomic_t const *)(& __ext___0->oe_refc)); libcfs_debug_msg(& msgdata___0, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext___0, __ext___0->oe_start, __ext___0->oe_end, __ext___0->oe_max_end, tmp___12, tmp___11, (int )tmp___10, oes_strings[__ext___0->oe_state], tmp___9, __ext___0->oe_obj, __ext___0->oe_grants, __ext___0->oe_nr_pages, (int )tmp___8, tmp___7 != 0 ? 43 : 45, __ext___0->oe_osclock, __ext___0->oe_mppr, __ext___0->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_cache_wait_range", 2811); tmp___14 = ldv__builtin_expect((long )(ext->oe_state == 1U && ((unsigned int )*((unsigned char *)ext + 60UL) != 0U || (unsigned int )*((unsigned char *)ext + 60UL) == 0U)), 0L); if (tmp___14 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_cache_wait_range"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 2811; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"(!(ext->oe_state == OES_ACTIVE) || (!ext->oe_hp && ext->oe_urgent))"); lbug_with_loc(& __msg_data___0); } else { } } else { } index = ext->oe_end + 1UL; osc_extent_get(ext); osc_object_unlock(obj); rc = osc_extent_wait(env, ext, 0); if (result == 0) { result = rc; } else { } osc_extent_put(env, ext); goto again; ldv_63551: ; if ((unsigned long )ext != (unsigned long )((struct osc_extent *)0)) { goto ldv_63561; } else { } ldv_63550: osc_object_unlock(obj); tmp___23 = cfs_cdebug_show(32U, 8U); if (tmp___23 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "osc_cache_wait_range"; msgdata___1.msg_line = 2825; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 32; tmp___15 = list_empty_marker(& obj->oo_reading_exts); tmp___16 = atomic_read((atomic_t const *)(& obj->oo_nr_reads)); tmp___17 = list_empty_marker(& obj->oo_urgent_exts); tmp___18 = list_empty_marker(& obj->oo_hp_exts); tmp___19 = atomic_read((atomic_t const *)(& obj->oo_nr_writes)); tmp___20 = list_empty_marker(& obj->oo_ready_item); tmp___21 = list_empty_marker(& obj->oo_hp_ready_item); tmp___22 = osc_is_ready(obj); libcfs_debug_msg(& msgdata___1, "obj %p ready %d|%c|%c wr %d|%c|%c rd %d|%c sync file range.\n", obj, tmp___22, (int )tmp___21, (int )tmp___20, tmp___19, (int )tmp___18, (int )tmp___17, tmp___16, (int )tmp___15); } else { } return (result); } } int osc_cache_writeback_range(struct lu_env const *env , struct osc_object *obj , unsigned long start , unsigned long end , int hp , int discard ) { struct osc_extent *ext ; struct list_head discard_list ; bool unplug ; int result ; struct list_head *list ; struct osc_extent *__ext ; char __buf[16U] ; struct libcfs_debug_msg_data msgdata ; int tmp ; char tmp___0 ; char *tmp___1 ; char tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; struct libcfs_debug_msg_data __msg_data ; long tmp___6 ; struct osc_extent *__ext___0 ; char __buf___0[16U] ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___7 ; char tmp___8 ; char *tmp___9 ; char tmp___10 ; int tmp___11 ; int tmp___12 ; int tmp___13 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___14 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___15 ; struct libcfs_debug_msg_data __msg_data___2 ; int tmp___16 ; int tmp___17 ; long tmp___18 ; struct osc_extent *tmp___19 ; int rc ; struct client_obd *tmp___20 ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct osc_extent *__ext___1 ; char __buf___1[16U] ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___21 ; char tmp___22 ; char *tmp___23 ; char tmp___24 ; int tmp___25 ; int tmp___26 ; int tmp___27 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___28 ; struct osc_extent *__ext___2 ; char __buf___2[16U] ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___29 ; char tmp___30 ; char *tmp___31 ; char tmp___32 ; int tmp___33 ; int tmp___34 ; int tmp___35 ; long tmp___36 ; struct list_head const *__mptr___1 ; int tmp___37 ; struct client_obd *tmp___38 ; int rc___0 ; struct libcfs_debug_msg_data msgdata___3 ; char tmp___39 ; int tmp___40 ; char tmp___41 ; char tmp___42 ; int tmp___43 ; char tmp___44 ; char tmp___45 ; int tmp___46 ; int tmp___47 ; { discard_list.next = & discard_list; discard_list.prev = & discard_list; unplug = 0; result = 0; osc_object_lock(obj); ext = osc_extent_search(obj, start); if ((unsigned long )ext == (unsigned long )((struct osc_extent *)0)) { ext = first_extent(obj); } else if (ext->oe_end < start) { ext = next_extent(ext); } else { } goto ldv_63593; ldv_63592: ; if (ext->oe_start > end) { goto ldv_63575; } else { } ext->oe_fsync_wait = 1U; switch (ext->oe_state) { case 2U: result = (int )(ext->oe_nr_pages + (unsigned int )result); if (discard == 0) { list = (struct list_head *)0; if (hp != 0) { if ((unsigned int )*((unsigned char *)ext + 60UL) != 0U) { __ext = ext; tmp___5 = cfs_cdebug_show(131072U, 8U); if (tmp___5 != 0) { msgdata.msg_subsys = 8; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata.msg_fn = "osc_cache_writeback_range"; msgdata.msg_line = 2863; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 131072; tmp = waitqueue_active(& __ext->oe_waitq); tmp___0 = list_empty_marker(& __ext->oe_pages); tmp___1 = ext_flags(__ext, (char *)(& __buf)); tmp___2 = list_empty_marker(& __ext->oe_link); tmp___3 = atomic_read((atomic_t const *)(& __ext->oe_users)); tmp___4 = atomic_read((atomic_t const *)(& __ext->oe_refc)); libcfs_debug_msg(& msgdata, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext, __ext->oe_start, __ext->oe_end, __ext->oe_max_end, tmp___4, tmp___3, (int )tmp___2, oes_strings[__ext->oe_state], tmp___1, __ext->oe_obj, __ext->oe_grants, __ext->oe_nr_pages, (int )tmp___0, tmp != 0 ? 43 : 45, __ext->oe_osclock, __ext->oe_mppr, __ext->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_cache_writeback_range", 2863); tmp___6 = ldv__builtin_expect((unsigned int )*((unsigned char *)ext + 60UL) != 0U, 0L); if (tmp___6 != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data.msg_fn = "osc_cache_writeback_range"; __msg_data.msg_subsys = 8; __msg_data.msg_line = 2863; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!ext->oe_hp"); lbug_with_loc(& __msg_data); } else { } } else { } ext->oe_hp = 1U; list = & obj->oo_hp_exts; } else if ((unsigned int )*((unsigned char *)ext + 60UL) == 0U) { ext->oe_urgent = 1U; list = & obj->oo_urgent_exts; } else { } if ((unsigned long )list != (unsigned long )((struct list_head *)0)) { list_move_tail(& ext->oe_link, list); } else { } unplug = 1; } else { if (ext->oe_start < start || ext->oe_max_end > end) { __ext___0 = ext; tmp___13 = cfs_cdebug_show(131072U, 8U); if (tmp___13 != 0) { msgdata___0.msg_subsys = 8; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___0.msg_fn = "osc_cache_writeback_range"; msgdata___0.msg_line = 2877; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; tmp___7 = waitqueue_active(& __ext___0->oe_waitq); tmp___8 = list_empty_marker(& __ext___0->oe_pages); tmp___9 = ext_flags(__ext___0, (char *)(& __buf___0)); tmp___10 = list_empty_marker(& __ext___0->oe_link); tmp___11 = atomic_read((atomic_t const *)(& __ext___0->oe_users)); tmp___12 = atomic_read((atomic_t const *)(& __ext___0->oe_refc)); libcfs_debug_msg(& msgdata___0, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext___0, __ext___0->oe_start, __ext___0->oe_end, __ext___0->oe_max_end, tmp___12, tmp___11, (int )tmp___10, oes_strings[__ext___0->oe_state], tmp___9, __ext___0->oe_obj, __ext___0->oe_grants, __ext___0->oe_nr_pages, (int )tmp___8, tmp___7 != 0 ? 43 : 45, __ext___0->oe_osclock, __ext___0->oe_mppr, __ext___0->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_cache_writeback_range", 2877); tmp___14 = ldv__builtin_expect((long )(ext->oe_start < start || ext->oe_max_end > end), 0L); if (tmp___14 != 0L) { __msg_data___0.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___0.msg_fn = "osc_cache_writeback_range"; __msg_data___0.msg_subsys = 8; __msg_data___0.msg_line = 2877; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_start >= start && ext->oe_max_end <= end"); lbug_with_loc(& __msg_data___0); } else { } } else { } osc_extent_state_set(ext, 3); ext->oe_owner = get_current(); list_move_tail(& ext->oe_link, & discard_list); osc_update_pending(obj, 2, (int )(- ext->oe_nr_pages)); } goto ldv_63587; case 1U: tmp___15 = ldv__builtin_expect((long )(hp != 0 || discard != 0), 0L); if (tmp___15 != 0L) { __msg_data___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___1.msg_fn = "osc_cache_writeback_range"; __msg_data___1.msg_subsys = 8; __msg_data___1.msg_line = 2891; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"hp == 0 && discard == 0"); lbug_with_loc(& __msg_data___1); } else { } ext->oe_urgent = 1U; goto ldv_63587; case 6U: ; default: ; goto ldv_63587; } ldv_63587: ext = next_extent(ext); ldv_63593: ; if ((unsigned long )ext != (unsigned long )((struct osc_extent *)0)) { goto ldv_63592; } else { } ldv_63575: osc_object_unlock(obj); if (discard == 0) { tmp___16 = list_empty((struct list_head const *)(& discard_list)); if (tmp___16 == 0) { tmp___17 = 1; } else { tmp___17 = 0; } } else { tmp___17 = 0; } tmp___18 = ldv__builtin_expect((long )tmp___17, 0L); if (tmp___18 != 0L) { __msg_data___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___2.msg_fn = "osc_cache_writeback_range"; __msg_data___2.msg_subsys = 8; __msg_data___2.msg_line = 2905; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"(!(!discard) || (list_empty(&discard_list)))"); lbug_with_loc(& __msg_data___2); } else { } tmp___37 = list_empty((struct list_head const *)(& discard_list)); if (tmp___37 == 0) { tmp___20 = osc_cli___1((struct osc_object const *)obj); osc_list_maint(tmp___20, obj); __mptr = (struct list_head const *)discard_list.next; ext = (struct osc_extent *)__mptr + 0xffffffffffffffd8UL; __mptr___0 = (struct list_head const *)ext->oe_link.next; tmp___19 = (struct osc_extent *)__mptr___0 + 0xffffffffffffffd8UL; goto ldv_63611; ldv_63610: list_del_init(& ext->oe_link); if (ext->oe_state != 3U) { __ext___1 = ext; tmp___27 = cfs_cdebug_show(131072U, 8U); if (tmp___27 != 0) { msgdata___1.msg_subsys = 8; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___1.msg_fn = "osc_cache_writeback_range"; msgdata___1.msg_line = 2913; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 131072; tmp___21 = waitqueue_active(& __ext___1->oe_waitq); tmp___22 = list_empty_marker(& __ext___1->oe_pages); tmp___23 = ext_flags(__ext___1, (char *)(& __buf___1)); tmp___24 = list_empty_marker(& __ext___1->oe_link); tmp___25 = atomic_read((atomic_t const *)(& __ext___1->oe_users)); tmp___26 = atomic_read((atomic_t const *)(& __ext___1->oe_refc)); libcfs_debug_msg(& msgdata___1, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} \n", __ext___1, __ext___1->oe_start, __ext___1->oe_end, __ext___1->oe_max_end, tmp___26, tmp___25, (int )tmp___24, oes_strings[__ext___1->oe_state], tmp___23, __ext___1->oe_obj, __ext___1->oe_grants, __ext___1->oe_nr_pages, (int )tmp___22, tmp___21 != 0 ? 43 : 45, __ext___1->oe_osclock, __ext___1->oe_mppr, __ext___1->oe_owner); } else { } osc_extent_tree_dump0(131072, ext->oe_obj, "osc_cache_writeback_range", 2913); tmp___28 = ldv__builtin_expect(ext->oe_state != 3U, 0L); if (tmp___28 != 0L) { __msg_data___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; __msg_data___3.msg_fn = "osc_cache_writeback_range"; __msg_data___3.msg_subsys = 8; __msg_data___3.msg_line = 2913; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"ext->oe_state == OES_LOCKING"); lbug_with_loc(& __msg_data___3); } else { } } else { } rc = osc_extent_make_ready(env, ext); tmp___36 = ldv__builtin_expect(rc < 0, 0L); if (tmp___36 != 0L) { __ext___2 = ext; tmp___35 = cfs_cdebug_show(131072U, 8U); if (tmp___35 != 0) { msgdata___2.msg_subsys = 8; msgdata___2.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___2.msg_fn = "osc_cache_writeback_range"; msgdata___2.msg_line = 2920; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 131072; tmp___29 = waitqueue_active(& __ext___2->oe_waitq); tmp___30 = list_empty_marker(& __ext___2->oe_pages); tmp___31 = ext_flags(__ext___2, (char *)(& __buf___2)); tmp___32 = list_empty_marker(& __ext___2->oe_link); tmp___33 = atomic_read((atomic_t const *)(& __ext___2->oe_users)); tmp___34 = atomic_read((atomic_t const *)(& __ext___2->oe_refc)); libcfs_debug_msg(& msgdata___2, "extent %p@{[%lu -> %lu/%lu], [%d|%d|%c|%s|%s|%p], [%d|%d|%c|%c|%p|%u|%p]} make_ready returned %d\n", __ext___2, __ext___2->oe_start, __ext___2->oe_end, __ext___2->oe_max_end, tmp___34, tmp___33, (int )tmp___32, oes_strings[__ext___2->oe_state], tmp___31, __ext___2->oe_obj, __ext___2->oe_grants, __ext___2->oe_nr_pages, (int )tmp___30, tmp___29 != 0 ? 43 : 45, __ext___2->oe_osclock, __ext___2->oe_mppr, __ext___2->oe_owner, rc); } else { } if (result >= 0) { result = rc; } else { } } else { } osc_extent_finish(env, ext, 0, 0); ext = tmp___19; __mptr___1 = (struct list_head const *)tmp___19->oe_link.next; tmp___19 = (struct osc_extent *)__mptr___1 + 0xffffffffffffffd8UL; ldv_63611: ; if ((unsigned long )(& ext->oe_link) != (unsigned long )(& discard_list)) { goto ldv_63610; } else { } } else { } if ((int )unplug) { tmp___38 = osc_cli___1((struct osc_object const *)obj); osc_io_unplug(env, tmp___38, obj, 3); } else { } if (hp != 0 || discard != 0) { rc___0 = osc_cache_wait_range(env, obj, start, end); if (result >= 0 && rc___0 < 0) { result = rc___0; } else { } } else { } tmp___47 = cfs_cdebug_show(32U, 8U); if (tmp___47 != 0) { msgdata___3.msg_subsys = 8; msgdata___3.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/osc_cache.c"; msgdata___3.msg_fn = "osc_cache_writeback_range"; msgdata___3.msg_line = 2940; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 32; tmp___39 = list_empty_marker(& obj->oo_reading_exts); tmp___40 = atomic_read((atomic_t const *)(& obj->oo_nr_reads)); tmp___41 = list_empty_marker(& obj->oo_urgent_exts); tmp___42 = list_empty_marker(& obj->oo_hp_exts); tmp___43 = atomic_read((atomic_t const *)(& obj->oo_nr_writes)); tmp___44 = list_empty_marker(& obj->oo_ready_item); tmp___45 = list_empty_marker(& obj->oo_hp_ready_item); tmp___46 = osc_is_ready(obj); libcfs_debug_msg(& msgdata___3, "obj %p ready %d|%c|%c wr %d|%c|%c rd %d|%c cache page out.\n", obj, tmp___46, (int )tmp___45, (int )tmp___44, tmp___43, (int )tmp___42, (int )tmp___41, tmp___40, (int )tmp___39); } else { } return (result); } } int ldv_pskb_expand_head_293(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_295(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv_skb_copy_297(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_298(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_299(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_300(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } int ldv_pskb_expand_head_301(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } int ldv_pskb_expand_head_302(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_303(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } void *ldv_kmem_cache_alloc_305(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(0UL); // no call to kmem_cache_create for osc_extent_kmem return (tmp); } } __inline static long ldv__builtin_expect(long exp , long c ) ; extern int kstrtoull(char const * , unsigned int , unsigned long long * ) ; __inline static int kstrtoul(char const *s , unsigned int base , unsigned long *res ) { int tmp ; { tmp = kstrtoull(s, base, (unsigned long long *)res); return (tmp); } } extern int sprintf(char * , char const * , ...) ; extern int strcmp(char const * , char const * ) ; __inline static bool IS_ERR(void const *ptr ) ; __inline static int spin_trylock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; extern void do_gettimeofday(struct timeval * ) ; extern unsigned long totalram_pages ; extern ssize_t seq_read(struct file * , char * , size_t , loff_t * ) ; extern loff_t seq_lseek(struct file * , loff_t , int ) ; extern int seq_putc(struct seq_file * , char ) ; extern int seq_puts(struct seq_file * , char const * ) ; extern int seq_printf(struct seq_file * , char const * , ...) ; extern int single_open(struct file * , int (*)(struct seq_file * , void * ) , void * ) ; struct sk_buff *ldv_skb_clone_333(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_341(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_335(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_331(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_339(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_340(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_336(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_337(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_338(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static void *__container_of___6(void *ptr , unsigned long shift ) { bool tmp ; long tmp___0 ; { tmp = IS_ERR((void const *)ptr); tmp___0 = ldv__builtin_expect((long )((int )tmp || (unsigned long )ptr == (unsigned long )((void *)0)), 0L); if (tmp___0 != 0L) { return (ptr); } else { } return (ptr + - shift); } } extern int lprocfs_write_frac_helper(char const * , unsigned long , int * , int ) ; extern int lprocfs_read_frac_helper(char * , unsigned long , long , int ) ; extern int ldebugfs_seq_create(struct dentry * , char const * , umode_t , struct file_operations const * , void * ) ; extern int ldebugfs_obd_seq_create(struct obd_device * , char const * , umode_t , struct file_operations const * , void * ) ; extern int lprocfs_rd_server_uuid(struct seq_file * , void * ) ; extern int lprocfs_rd_conn_uuid(struct seq_file * , void * ) ; extern int lprocfs_rd_import(struct seq_file * , void * ) ; extern int lprocfs_rd_state(struct seq_file * , void * ) ; extern int lprocfs_rd_connect_flags(struct seq_file * , void * ) ; extern int lprocfs_rd_timeouts(struct seq_file * , void * ) ; extern int lprocfs_wr_ping(struct file * , char const * , size_t , loff_t * ) ; extern int lprocfs_wr_import(struct file * , char const * , size_t , loff_t * ) ; extern int lprocfs_rd_pinger_recov(struct seq_file * , void * ) ; extern int lprocfs_wr_pinger_recov(struct file * , char const * , size_t , loff_t * ) ; extern int lprocfs_write_helper(char const * , unsigned long , int * ) ; extern char *lprocfs_find_named_value(char const * , char const * , size_t * ) ; extern void lprocfs_oh_clear(struct obd_histogram * ) ; extern unsigned long lprocfs_oh_sum(struct obd_histogram * ) ; extern int lprocfs_single_release(struct inode * , struct file * ) ; __inline static void __client_obd_list_lock___2(client_obd_lock_t *lock , char const *func , int line ) { unsigned long cur ; struct libcfs_debug_msg_data __msg_data ; long tmp ; int tmp___0 ; struct task_struct *task ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; int tmp___3 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___4 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; struct task_struct *tmp___6 ; long volatile __ret ; struct task_struct *tmp___7 ; struct task_struct *tmp___8 ; struct task_struct *tmp___9 ; struct task_struct *tmp___10 ; { cur = jiffies; ldv_56762: tmp___0 = spin_trylock(& lock->lock); if (tmp___0 != 0) { tmp = ldv__builtin_expect((unsigned long )lock->task != (unsigned long )((struct task_struct *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; __msg_data.msg_fn = "__client_obd_list_lock"; __msg_data.msg_subsys = 32; __msg_data.msg_line = 75; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"lock->task == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } lock->task = get_current(); lock->func = func; lock->line = line; lock->time = jiffies; goto ldv_56733; } else { } if ((long )((cur - (unsigned long )jiffies) + 1250UL) < 0L && (long )((lock->time - (unsigned long )jiffies) + 1250UL) < 0L) { task = lock->task; if ((unsigned long )task == (unsigned long )((struct task_struct *)0)) { goto ldv_56747; } else { } tmp___3 = cfs_cdebug_show(33555456U, 32U); if (tmp___3 != 0) { msgdata.msg_subsys = 32; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; msgdata.msg_fn = "__client_obd_list_lock"; msgdata.msg_line = 94; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 33555456; tmp___1 = get_current(); tmp___2 = get_current(); libcfs_debug_msg(& msgdata, "%s:%d: lock %p was acquired by <%s:%d:%s:%d> for %lu seconds.\n", (char *)(& tmp___2->comm), tmp___1->pid, lock, (char *)(& task->comm), task->pid, lock->func, lock->line, ((unsigned long )jiffies - lock->time) / 250UL); } else { } tmp___4 = cfs_cdebug_show(33555456U, 32U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 32; msgdata___0.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; msgdata___0.msg_fn = "__client_obd_list_lock"; msgdata___0.msg_line = 95; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 33555456; libcfs_debug_msg(& msgdata___0, "====== for current process =====\n"); } else { } dump_stack(); tmp___5 = cfs_cdebug_show(33555456U, 32U); if (tmp___5 != 0) { msgdata___1.msg_subsys = 32; msgdata___1.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; msgdata___1.msg_fn = "__client_obd_list_lock"; msgdata___1.msg_line = 97; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 33555456; libcfs_debug_msg(& msgdata___1, "====== end =======\n"); } else { } tmp___6 = get_current(); tmp___6->task_state_change = 0UL; __ret = 2L; switch (8UL) { case 1UL: tmp___7 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret), "+m" (tmp___7->state): : "memory", "cc"); goto ldv_56756; case 2UL: tmp___8 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret), "+m" (tmp___8->state): : "memory", "cc"); goto ldv_56756; case 4UL: tmp___9 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret), "+m" (tmp___9->state): : "memory", "cc"); goto ldv_56756; case 8UL: tmp___10 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret), "+m" (tmp___10->state): : "memory", "cc"); goto ldv_56756; default: __xchg_wrong_size(); } ldv_56756: schedule_timeout(250000L); } else { } cpu_relax(); ldv_56747: ; goto ldv_56762; ldv_56733: ; return; } } __inline static void client_obd_list_unlock___2(client_obd_lock_t *lock ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((unsigned long )lock->task == (unsigned long )((struct task_struct *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/osc/../include/linux/obd.h"; __msg_data.msg_fn = "client_obd_list_unlock"; __msg_data.msg_subsys = 32; __msg_data.msg_line = 110; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"lock->task != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } lock->task = (struct task_struct *)0; lock->time = jiffies; spin_unlock(& lock->lock); return; } } __inline static struct osc_device *obd2osc_dev(struct obd_device const *d ) { void *tmp ; { tmp = __container_of___6((void *)d->obd_lu_dev, 0UL); return ((struct osc_device *)tmp); } } static ssize_t active_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct obd_device *dev ; struct kobject const *__mptr ; int tmp ; { __mptr = (struct kobject const *)kobj; dev = (struct obd_device *)__mptr + 0xffffffffffffea38UL; tmp = sprintf(buf, "%d\n", (unsigned int )*((unsigned char *)dev->u.cli.cl_import + 984UL) == 0U); return ((ssize_t )tmp); } } static ssize_t active_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct obd_device *dev ; struct kobject const *__mptr ; int rc ; unsigned long val ; struct libcfs_debug_msg_data msgdata ; int tmp ; { __mptr = (struct kobject const *)kobj; dev = (struct obd_device *)__mptr + 0xffffffffffffea38UL; rc = kstrtoul(buffer, 10U, & val); if (rc != 0) { return ((ssize_t )rc); } else { } if (val > 1UL) { return (-34L); } else { } if ((unsigned long )(dev->u.cli.cl_import)->imp_deactive == val) { rc = ptlrpc_set_import_active(dev->u.cli.cl_import, (int )val); } else { tmp = cfs_cdebug_show(16777216U, 32U); if (tmp != 0) { msgdata.msg_subsys = 32; msgdata.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1800/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/osc/lproc_osc.c"; msgdata.msg_fn = "active_store"; msgdata.msg_line = 74; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16777216; libcfs_debug_msg(& msgdata, "activate %ld: ignoring repeat request\n", val); } else { } } return ((ssize_t )count); } } static struct lustre_attr lustre_attr_active = {{"active", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & active_show, & active_store}; static ssize_t max_rpcs_in_flight_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct obd_device *dev ; struct kobject const *__mptr ; struct client_obd *cli ; int tmp ; { __mptr = (struct kobject const *)kobj; dev = (struct obd_device *)__mptr + 0xffffffffffffea38UL; cli = & dev->u.cli; tmp = sprintf(buf, "%u\n", cli->cl_max_rpcs_in_flight); return ((ssize_t )tmp); } } static ssize_t max_rpcs_in_flight_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct obd_device *dev ; struct kobject const *__mptr ; struct client_obd *cli ; struct ptlrpc_request_pool *pool ; int rc ; unsigned long val ; { __mptr = (struct kobject const *)kobj; dev = (struct obd_device *)__mptr + 0xffffffffffffea38UL; cli = & dev->u.cli; pool = (cli->cl_import)->imp_rq_pool; rc = kstrtoul(buffer, 10U, & val); if (rc != 0) { return ((ssize_t )rc); } else { } if (val == 0UL || val > 256UL) { return (-34L); } else { } if ((unsigned long )pool != (unsigned long )((struct ptlrpc_request_pool *)0) && (unsigned long )cli->cl_max_rpcs_in_flight < val) { (*(pool->prp_populate))(pool, (int )((unsigned int )val - (unsigned int )cli->cl_max_rpcs_in_flight)); } else { } __client_obd_list_lock___2(& cli->cl_loi_list_lock, "max_rpcs_in_flight_store", 113); cli->cl_max_rpcs_in_flight = (int )val; client_obd_list_unlock___2(& cli->cl_loi_list_lock); return ((ssize_t )count); } } static struct lustre_attr lustre_attr_max_rpcs_in_flight = {{"max_rpcs_in_flight", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & max_rpcs_in_flight_show, & max_rpcs_in_flight_store}; static ssize_t max_dirty_mb_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct obd_device *dev ; struct kobject const *__mptr ; struct client_obd *cli ; long val ; int mult ; int tmp ; { __mptr = (struct kobject const *)kobj; dev = (struct obd_device *)__mptr + 0xffffffffffffea38UL; cli = & dev->u.cli; __client_obd_list_lock___2(& cli->cl_loi_list_lock, "max_dirty_mb_show", 131); val = cli->cl_dirty_max; client_obd_list_unlock___2(& cli->cl_loi_list_lock); mult = 1048576; tmp = lprocfs_read_frac_helper(buf, 4096UL, val, mult); return ((ssize_t )tmp); } } static ssize_t max_dirty_mb_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct obd_device *dev ; struct kobject const *__mptr ; struct client_obd *cli ; int rc ; unsigned long pages_number ; { __mptr = (struct kobject const *)kobj; dev = (struct obd_device *)__mptr + 0xffffffffffffea38UL; cli = & dev->u.cli; rc = kstrtoul(buffer, 10U, & pages_number); if (rc != 0) { return ((ssize_t )rc); } else { } pages_number = pages_number * 256UL; if ((pages_number == 0UL || pages_number > 524288UL) || totalram_pages / 4UL < pages_number) { return (-34L); } else { } __client_obd_list_lock___2(& cli->cl_loi_list_lock, "max_dirty_mb_store", 161); cli->cl_dirty_max = (long )((unsigned int )pages_number << 12U); osc_wake_cache_waiters(cli); client_obd_list_unlock___2(& cli->cl_loi_list_lock); return ((ssize_t )count); } } static struct lustre_attr lustre_attr_max_dirty_mb = {{"max_dirty_mb", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & max_dirty_mb_show, & max_dirty_mb_store}; static int osc_cached_mb_seq_show(struct seq_file *m , void *v ) { struct obd_device *dev ; struct client_obd *cli ; int shift ; int tmp ; int tmp___0 ; int tmp___1 ; { dev = (struct obd_device *)m->private; cli = & dev->u.cli; shift = 8; tmp = atomic_read((atomic_t const *)(& cli->cl_lru_busy)); tmp___0 = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); tmp___1 = atomic_read((atomic_t const *)(& cli->cl_lru_busy)); seq_printf(m, "used_mb: %d\nbusy_cnt: %d\n", (tmp___0 + tmp___1) >> shift, tmp); return (0); } } static ssize_t osc_cached_mb_seq_write(struct file *file , char const *buffer , size_t count , loff_t *off ) { struct obd_device *dev ; struct client_obd *cli ; int pages_number ; int mult ; int rc ; char kernbuf[128U] ; unsigned long tmp ; char *tmp___0 ; int tmp___1 ; { dev = (struct obd_device *)((struct seq_file *)file->private_data)->private; cli = & dev->u.cli; if (count > 127UL) { return (-22L); } else { } tmp = copy_from_user((void *)(& kernbuf), (void const *)buffer, count); if (tmp != 0UL) { return (-14L); } else { } kernbuf[count] = 0; mult = 256; tmp___0 = lprocfs_find_named_value((char const *)(& kernbuf), "used_mb:", & count); buffer = buffer + (unsigned long )((long )tmp___0 - (long )(& kernbuf)); rc = lprocfs_write_frac_helper(buffer, count, & pages_number, mult); if (rc != 0) { return ((ssize_t )rc); } else { } if (pages_number < 0) { return (-34L); } else { } tmp___1 = atomic_read((atomic_t const *)(& cli->cl_lru_in_list)); rc = tmp___1 - pages_number; if (rc > 0) { osc_lru_shrink(cli, rc); } else { } return ((ssize_t )count); } } static int osc_cached_mb_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & osc_cached_mb_seq_show, inode->i_private); return (tmp); } } static struct file_operations osc_cached_mb_fops = {& __this_module, & seq_lseek, & seq_read, & osc_cached_mb_seq_write, 0, 0, 0, 0, 0, 0, 0, 0, & osc_cached_mb_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static ssize_t cur_dirty_bytes_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct obd_device *dev ; struct kobject const *__mptr ; struct client_obd *cli ; int len ; { __mptr = (struct kobject const *)kobj; dev = (struct obd_device *)__mptr + 0xffffffffffffea38UL; cli = & dev->u.cli; __client_obd_list_lock___2(& cli->cl_loi_list_lock, "cur_dirty_bytes_show", 230); len = sprintf(buf, "%lu\n", cli->cl_dirty); client_obd_list_unlock___2(& cli->cl_loi_list_lock); return ((ssize_t )len); } } static struct lustre_attr lustre_attr_cur_dirty_bytes = {{"cur_dirty_bytes", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & cur_dirty_bytes_show, (ssize_t (*)(struct kobject * , struct attribute * , char const * , size_t ))0}; static ssize_t cur_grant_bytes_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct obd_device *dev ; struct kobject const *__mptr ; struct client_obd *cli ; int len ; { __mptr = (struct kobject const *)kobj; dev = (struct obd_device *)__mptr + 0xffffffffffffea38UL; cli = & dev->u.cli; __client_obd_list_lock___2(& cli->cl_loi_list_lock, "cur_grant_bytes_show", 247); len = sprintf(buf, "%lu\n", cli->cl_avail_grant); client_obd_list_unlock___2(& cli->cl_loi_list_lock); return ((ssize_t )len); } } static ssize_t cur_grant_bytes_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct obd_device *obd ; struct kobject const *__mptr ; struct client_obd *cli ; int rc ; unsigned long long val ; { __mptr = (struct kobject const *)kobj; obd = (struct obd_device *)__mptr + 0xffffffffffffea38UL; cli = & obd->u.cli; rc = kstrtoull(buffer, 10U, & val); if (rc != 0) { return ((ssize_t )rc); } else { } __client_obd_list_lock___2(& cli->cl_loi_list_lock, "cur_grant_bytes_store", 270); if ((unsigned long long )cli->cl_avail_grant <= val) { client_obd_list_unlock___2(& cli->cl_loi_list_lock); return (-22L); } else { } client_obd_list_unlock___2(& cli->cl_loi_list_lock); if ((unsigned int )(cli->cl_import)->imp_state == 9U) { rc = osc_shrink_grant_to_target(cli, val); } else { } if (rc != 0) { return ((ssize_t )rc); } else { } return ((ssize_t )count); } } static struct lustre_attr lustre_attr_cur_grant_bytes = {{"cur_grant_bytes", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & cur_grant_bytes_show, & cur_grant_bytes_store}; static ssize_t cur_lost_grant_bytes_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct obd_device *dev ; struct kobject const *__mptr ; struct client_obd *cli ; int len ; { __mptr = (struct kobject const *)kobj; dev = (struct obd_device *)__mptr + 0xffffffffffffea38UL; cli = & dev->u.cli; __client_obd_list_lock___2(& cli->cl_loi_list_lock, "cur_lost_grant_bytes_show", 294); len = sprintf(buf, "%lu\n", cli->cl_lost_grant); client_obd_list_unlock___2(& cli->cl_loi_list_lock); return ((ssize_t )len); } } static struct lustre_attr lustre_attr_cur_lost_grant_bytes = {{"cur_lost_grant_bytes", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & cur_lost_grant_bytes_show, (ssize_t (*)(struct kobject * , struct attribute * , char const * , size_t ))0}; static ssize_t grant_shrink_interval_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct obd_device *obd ; struct kobject const *__mptr ; int tmp ; { __mptr = (struct kobject const *)kobj; obd = (struct obd_device *)__mptr + 0xffffffffffffea38UL; tmp = sprintf(buf, "%d\n", obd->u.cli.cl_grant_shrink_interval); return ((ssize_t )tmp); } } static ssize_t grant_shrink_interval_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct obd_device *obd ; struct kobject const *__mptr ; int rc ; unsigned long val ; { __mptr = (struct kobject const *)kobj; obd = (struct obd_device *)__mptr + 0xffffffffffffea38UL; rc = kstrtoul(buffer, 10U, & val); if (rc != 0) { return ((ssize_t )rc); } else { } if (val == 0UL) { return (-34L); } else { } obd->u.cli.cl_grant_shrink_interval = (int )val; return ((ssize_t )count); } } static struct lustre_attr lustre_attr_grant_shrink_interval = {{"grant_shrink_interval", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & grant_shrink_interval_show, & grant_shrink_interval_store}; static ssize_t checksums_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct obd_device *obd ; struct kobject const *__mptr ; int tmp ; { __mptr = (struct kobject const *)kobj; obd = (struct obd_device *)__mptr + 0xffffffffffffea38UL; tmp = sprintf(buf, "%d\n", (unsigned int )*((unsigned char *)obd + 5224UL) != 0U); return ((ssize_t )tmp); } } static ssize_t checksums_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct obd_device *obd ; struct kobject const *__mptr ; int rc ; unsigned long val ; { __mptr = (struct kobject const *)kobj; obd = (struct obd_device *)__mptr + 0xffffffffffffea38UL; rc = kstrtoul(buffer, 10U, & val); if (rc != 0) { return ((ssize_t )rc); } else { } obd->u.cli.cl_checksum = val != 0UL; return ((ssize_t )count); } } static struct lustre_attr lustre_attr_checksums = {{"checksums", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & checksums_show, & checksums_store}; static int osc_checksum_type_seq_show(struct seq_file *m , void *v ) { struct obd_device *obd ; int i ; char *cksum_name[3U] ; { obd = (struct obd_device *)m->private; cksum_name[0] = (char *)"crc32"; cksum_name[1] = (char *)"adler"; cksum_name[2] = (char *)"crc32c"; if ((unsigned long )obd == (unsigned long )((struct obd_device *)0)) { return (0); } else { } i = 0; goto ldv_63466; ldv_63465: ; if (((__u32 )(1 << i) & obd->u.cli.cl_supp_cksum_types) == 0U) { goto ldv_63464; } else { } if ((unsigned int )obd->u.cli.cl_cksum_type == (unsigned int )(1 << i)) { seq_printf(m, "[%s] ", cksum_name[i]); } else { seq_printf(m, "%s ", cksum_name[i]); } ldv_63464: i = i + 1; ldv_63466: ; if ((unsigned int )i <= 2U) { goto ldv_63465; } else { } seq_putc(m, 10); return (0); } } static ssize_t osc_checksum_type_seq_write(struct file *file , char const *buffer , size_t count , loff_t *off ) { struct obd_device *obd ; int i ; char *cksum_name[3U] ; char kernbuf[10U] ; unsigned long tmp ; int tmp___0 ; { obd = (struct obd_device *)((struct seq_file *)file->private_data)->private; cksum_name[0] = (char *)"crc32"; cksum_name[1] = (char *)"adler"; cksum_name[2] = (char *)"crc32c"; if ((unsigned long )obd == (unsigned long )((struct obd_device *)0)) { return (0L); } else { } if (count > 9UL) { return (-22L); } else { } tmp = copy_from_user((void *)(& kernbuf), (void const *)buffer, count); if (tmp != 0UL) { return (-14L); } else { } if (count != 0UL && (int )((signed char )kernbuf[count - 1UL]) == 10) { kernbuf[count - 1UL] = 0; } else { kernbuf[count] = 0; } i = 0; goto ldv_63482; ldv_63481: ; if (((__u32 )(1 << i) & obd->u.cli.cl_supp_cksum_types) == 0U) { goto ldv_63480; } else { } tmp___0 = strcmp((char const *)(& kernbuf), (char const *)cksum_name[i]); if (tmp___0 == 0) { obd->u.cli.cl_cksum_type = (cksum_type_t )(1 << i); return ((ssize_t )count); } else { } ldv_63480: i = i + 1; ldv_63482: ; if ((unsigned int )i <= 2U) { goto ldv_63481; } else { } return (-22L); } } static int osc_checksum_type_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & osc_checksum_type_seq_show, inode->i_private); return (tmp); } } static struct file_operations osc_checksum_type_fops = {& __this_module, & seq_lseek, & seq_read, & osc_checksum_type_seq_write, 0, 0, 0, 0, 0, 0, 0, 0, & osc_checksum_type_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static ssize_t resend_count_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct obd_device *obd ; struct kobject const *__mptr ; int tmp ; int tmp___0 ; { __mptr = (struct kobject const *)kobj; obd = (struct obd_device *)__mptr + 0xffffffffffffea38UL; tmp = atomic_read((atomic_t const *)(& obd->u.cli.cl_resends)); tmp___0 = sprintf(buf, "%u\n", tmp); return ((ssize_t )tmp___0); } } static ssize_t resend_count_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct obd_device *obd ; struct kobject const *__mptr ; int rc ; unsigned long val ; { __mptr = (struct kobject const *)kobj; obd = (struct obd_device *)__mptr + 0xffffffffffffea38UL; rc = kstrtoul(buffer, 10U, & val); if (rc != 0) { return ((ssize_t )rc); } else { } atomic_set(& obd->u.cli.cl_resends, (int )val); return ((ssize_t )count); } } static struct lustre_attr lustre_attr_resend_count = {{"resend_count", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & resend_count_show, & resend_count_store}; static ssize_t contention_seconds_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct obd_device *obd ; struct kobject const *__mptr ; struct osc_device *od ; struct osc_device *tmp ; int tmp___0 ; { __mptr = (struct kobject const *)kobj; obd = (struct obd_device *)__mptr + 0xffffffffffffea38UL; tmp = obd2osc_dev((struct obd_device const *)obd); od = tmp; tmp___0 = sprintf(buf, "%u\n", od->od_contention_time); return ((ssize_t )tmp___0); } } static ssize_t contention_seconds_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct obd_device *obd ; struct kobject const *__mptr ; struct osc_device *od ; struct osc_device *tmp ; int tmp___1 ; size_t tmp___2 ; int tmp___3 ; { __mptr = (struct kobject const *)kobj; obd = (struct obd_device *)__mptr + 0xffffffffffffea38UL; tmp = obd2osc_dev((struct obd_device const *)obd); od = tmp; tmp___3 = lprocfs_write_helper(buffer, count, & od->od_contention_time); if (tmp___3 != 0) { tmp___1 = lprocfs_write_helper(buffer, count, & od->od_contention_time); tmp___2 = (size_t )tmp___1; } else { tmp___2 = count; } return ((ssize_t )tmp___2); } } static struct lustre_attr lustre_attr_contention_seconds = {{"contention_seconds", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & contention_seconds_show, & contention_seconds_store}; static ssize_t lockless_truncate_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct obd_device *obd ; struct kobject const *__mptr ; struct osc_device *od ; struct osc_device *tmp ; int tmp___0 ; { __mptr = (struct kobject const *)kobj; obd = (struct obd_device *)__mptr + 0xffffffffffffea38UL; tmp = obd2osc_dev((struct obd_device const *)obd); od = tmp; tmp___0 = sprintf(buf, "%u\n", od->od_lockless_truncate); return ((ssize_t )tmp___0); } } static ssize_t lockless_truncate_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct obd_device *obd ; struct kobject const *__mptr ; struct osc_device *od ; struct osc_device *tmp ; int tmp___1 ; size_t tmp___2 ; int tmp___3 ; { __mptr = (struct kobject const *)kobj; obd = (struct obd_device *)__mptr + 0xffffffffffffea38UL; tmp = obd2osc_dev((struct obd_device const *)obd); od = tmp; tmp___3 = lprocfs_write_helper(buffer, count, & od->od_lockless_truncate); if (tmp___3 != 0) { tmp___1 = lprocfs_write_helper(buffer, count, & od->od_lockless_truncate); tmp___2 = (size_t )tmp___1; } else { tmp___2 = count; } return ((ssize_t )tmp___2); } } static struct lustre_attr lustre_attr_lockless_truncate = {{"lockless_truncate", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & lockless_truncate_show, & lockless_truncate_store}; static ssize_t destroys_in_flight_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct obd_device *obd ; struct kobject const *__mptr ; int tmp ; int tmp___0 ; { __mptr = (struct kobject const *)kobj; obd = (struct obd_device *)__mptr + 0xffffffffffffea38UL; tmp = atomic_read((atomic_t const *)(& obd->u.cli.cl_destroy_in_flight)); tmp___0 = sprintf(buf, "%u\n", tmp); return ((ssize_t )tmp___0); } } static struct lustre_attr lustre_attr_destroys_in_flight = {{"destroys_in_flight", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & destroys_in_flight_show, (ssize_t (*)(struct kobject * , struct attribute * , char const * , size_t ))0}; static ssize_t max_pages_per_rpc_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct obd_device *dev ; struct kobject const *__mptr ; struct client_obd *cli ; int tmp ; { __mptr = (struct kobject const *)kobj; dev = (struct obd_device *)__mptr + 0xffffffffffffea38UL; cli = & dev->u.cli; tmp = sprintf(buf, "%d\n", cli->cl_max_pages_per_rpc); return ((ssize_t )tmp); } } static ssize_t max_pages_per_rpc_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct obd_device *dev ; struct kobject const *__mptr ; struct client_obd *cli ; struct obd_connect_data *ocd ; int chunk_mask ; int rc ; unsigned long long val ; { __mptr = (struct kobject const *)kobj; dev = (struct obd_device *)__mptr + 0xffffffffffffea38UL; cli = & dev->u.cli; ocd = & (cli->cl_import)->imp_connect_data; rc = kstrtoull(buffer, 10U, & val); if (rc != 0) { return ((ssize_t )rc); } else { } if (val > 1048575ULL) { val = val >> 12; } else { } chunk_mask = - (1 << (cli->cl_chunkbits + -12)); val = ((unsigned long long )(~ chunk_mask) + val) & (unsigned long long )chunk_mask; if (val == 0ULL || (unsigned long long )(ocd->ocd_brw_size >> 12) < val) { return (-34L); } else { } __client_obd_list_lock___2(& cli->cl_loi_list_lock, "max_pages_per_rpc_store", 551); cli->cl_max_pages_per_rpc = (__u32 )val; client_obd_list_unlock___2(& cli->cl_loi_list_lock); return ((ssize_t )count); } } static struct lustre_attr lustre_attr_max_pages_per_rpc = {{"max_pages_per_rpc", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & max_pages_per_rpc_show, & max_pages_per_rpc_store}; static int osc_connect_flags_seq_show(struct seq_file *m , void *v ) { int tmp ; { tmp = lprocfs_rd_connect_flags(m, m->private); return (tmp); } } static int osc_connect_flags_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & osc_connect_flags_seq_show, inode->i_private); return (tmp); } } static struct file_operations osc_connect_flags_fops = {& __this_module, & seq_lseek, & seq_read, (ssize_t (*)(struct file * , char const * , size_t , loff_t * ))0, 0, 0, 0, 0, 0, 0, 0, 0, & osc_connect_flags_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static int osc_server_uuid_seq_show(struct seq_file *m , void *v ) { int tmp ; { tmp = lprocfs_rd_server_uuid(m, m->private); return (tmp); } } static int osc_server_uuid_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & osc_server_uuid_seq_show, inode->i_private); return (tmp); } } static struct file_operations osc_server_uuid_fops = {& __this_module, & seq_lseek, & seq_read, (ssize_t (*)(struct file * , char const * , size_t , loff_t * ))0, 0, 0, 0, 0, 0, 0, 0, 0, & osc_server_uuid_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static int osc_conn_uuid_seq_show(struct seq_file *m , void *v ) { int tmp ; { tmp = lprocfs_rd_conn_uuid(m, m->private); return (tmp); } } static int osc_conn_uuid_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & osc_conn_uuid_seq_show, inode->i_private); return (tmp); } } static struct file_operations osc_conn_uuid_fops = {& __this_module, & seq_lseek, & seq_read, (ssize_t (*)(struct file * , char const * , size_t , loff_t * ))0, 0, 0, 0, 0, 0, 0, 0, 0, & osc_conn_uuid_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static int osc_timeouts_seq_show(struct seq_file *m , void *v ) { int tmp ; { tmp = lprocfs_rd_timeouts(m, m->private); return (tmp); } } static int osc_timeouts_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & osc_timeouts_seq_show, inode->i_private); return (tmp); } } static struct file_operations osc_timeouts_fops = {& __this_module, & seq_lseek, & seq_read, (ssize_t (*)(struct file * , char const * , size_t , loff_t * ))0, 0, 0, 0, 0, 0, 0, 0, 0, & osc_timeouts_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static int osc_state_seq_show(struct seq_file *m , void *v ) { int tmp ; { tmp = lprocfs_rd_state(m, m->private); return (tmp); } } static int osc_state_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & osc_state_seq_show, inode->i_private); return (tmp); } } static struct file_operations osc_state_fops = {& __this_module, & seq_lseek, & seq_read, (ssize_t (*)(struct file * , char const * , size_t , loff_t * ))0, 0, 0, 0, 0, 0, 0, 0, 0, & osc_state_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static ssize_t osc_ping_write(struct file *file , char const *buffer , size_t count , loff_t *off ) { int tmp ; { tmp = lprocfs_wr_ping(file, buffer, count, off); return ((ssize_t )tmp); } } static int osc_ping_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, (int (*)(struct seq_file * , void * ))0, inode->i_private); return (tmp); } } static struct file_operations osc_ping_fops = {0, 0, 0, & osc_ping_write, 0, 0, 0, 0, 0, 0, 0, 0, & osc_ping_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static int osc_import_seq_show(struct seq_file *m , void *v ) { int tmp ; { tmp = lprocfs_rd_import(m, m->private); return (tmp); } } static ssize_t osc_import_seq_write(struct file *file , char const *buffer , size_t count , loff_t *off ) { struct seq_file *seq ; int tmp ; { seq = (struct seq_file *)file->private_data; tmp = lprocfs_wr_import(file, buffer, count, (loff_t *)seq->private); return ((ssize_t )tmp); } } static int osc_import_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & osc_import_seq_show, inode->i_private); return (tmp); } } static struct file_operations osc_import_fops = {& __this_module, & seq_lseek, & seq_read, & osc_import_seq_write, 0, 0, 0, 0, 0, 0, 0, 0, & osc_import_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static int osc_pinger_recov_seq_show(struct seq_file *m , void *v ) { int tmp ; { tmp = lprocfs_rd_pinger_recov(m, m->private); return (tmp); } } static ssize_t osc_pinger_recov_seq_write(struct file *file , char const *buffer , size_t count , loff_t *off ) { struct seq_file *seq ; int tmp ; { seq = (struct seq_file *)file->private_data; tmp = lprocfs_wr_pinger_recov(file, buffer, count, (loff_t *)seq->private); return ((ssize_t )tmp); } } static int osc_pinger_recov_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & osc_pinger_recov_seq_show, inode->i_private); return (tmp); } } static struct file_operations osc_pinger_recov_fops = {& __this_module, & seq_lseek, & seq_read, & osc_pinger_recov_seq_write, 0, 0, 0, 0, 0, 0, 0, 0, & osc_pinger_recov_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static struct lprocfs_vars lprocfs_osc_obd_vars[11U] = { {"ping", & osc_ping_fops, (void *)0, 146U}, {"connect_flags", & osc_connect_flags_fops, (void *)0, 0U}, {"ost_server_uuid", & osc_server_uuid_fops, (void *)0, 0U}, {"ost_conn_uuid", & osc_conn_uuid_fops, (void *)0, 0U}, {"osc_cached_mb", & osc_cached_mb_fops, (void *)0, (unsigned short)0}, {"checksum_type", & osc_checksum_type_fops, (void *)0, (unsigned short)0}, {"timeouts", & osc_timeouts_fops, (void *)0, 0U}, {"import", & osc_import_fops, (void *)0, (unsigned short)0}, {"state", & osc_state_fops, (void *)0, 0U}, {"pinger_recov", & osc_pinger_recov_fops, (void *)0, (unsigned short)0}, {(char const *)0, 0, 0, (unsigned short)0}}; static int osc_rpc_stats_seq_show(struct seq_file *seq , void *v ) { struct timeval now ; struct obd_device *dev ; struct client_obd *cli ; unsigned long read_tot ; unsigned long write_tot ; unsigned long read_cum ; unsigned long write_cum ; int i ; int tmp ; int tmp___0 ; unsigned long r ; unsigned long w ; unsigned long r___0 ; unsigned long w___0 ; unsigned long r___1 ; unsigned long w___1 ; { dev = (struct obd_device *)seq->private; cli = & dev->u.cli; read_tot = 0UL; write_tot = 0UL; do_gettimeofday(& now); __client_obd_list_lock___2(& cli->cl_loi_list_lock, "osc_rpc_stats_seq_show", 597); seq_printf(seq, "snapshot_time:\t %lu.%lu (secs.usecs)\n", now.tv_sec, (unsigned long )now.tv_usec); seq_printf(seq, "read RPCs in flight: %d\n", cli->cl_r_in_flight); seq_printf(seq, "write RPCs in flight: %d\n", cli->cl_w_in_flight); tmp = atomic_read((atomic_t const *)(& cli->cl_pending_w_pages)); seq_printf(seq, "pending write pages: %d\n", tmp); tmp___0 = atomic_read((atomic_t const *)(& cli->cl_pending_r_pages)); seq_printf(seq, "pending read pages: %d\n", tmp___0); seq_puts(seq, "\n\t\t\tread\t\t\twrite\n"); seq_puts(seq, "pages per rpc\t rpcs % cum % |"); seq_puts(seq, " rpcs % cum %\n"); read_tot = lprocfs_oh_sum(& cli->cl_read_page_hist); write_tot = lprocfs_oh_sum(& cli->cl_write_page_hist); read_cum = 0UL; write_cum = 0UL; i = 0; goto ldv_63749; ldv_63748: r = cli->cl_read_page_hist.oh_buckets[i]; w = cli->cl_write_page_hist.oh_buckets[i]; read_cum = read_cum + r; write_cum = write_cum + w; seq_printf(seq, "%d:\t\t%10lu %3lu %3lu | %10lu %3lu %3lu\n", 1 << i, r, read_tot != 0UL ? (r * 100UL) / read_tot : 0UL, read_tot != 0UL ? (read_cum * 100UL) / read_tot : 0UL, w, write_tot != 0UL ? (w * 100UL) / write_tot : 0UL, write_tot != 0UL ? (write_cum * 100UL) / write_tot : 0UL); if (read_cum == read_tot && write_cum == write_tot) { goto ldv_63747; } else { } i = i + 1; ldv_63749: ; if (i <= 31) { goto ldv_63748; } else { } ldv_63747: seq_puts(seq, "\n\t\t\tread\t\t\twrite\n"); seq_puts(seq, "rpcs in flight\trpcs % cum % |"); seq_puts(seq, " rpcs % cum %\n"); read_tot = lprocfs_oh_sum(& cli->cl_read_rpc_hist); write_tot = lprocfs_oh_sum(& cli->cl_write_rpc_hist); read_cum = 0UL; write_cum = 0UL; i = 0; goto ldv_63754; ldv_63753: r___0 = cli->cl_read_rpc_hist.oh_buckets[i]; w___0 = cli->cl_write_rpc_hist.oh_buckets[i]; read_cum = read_cum + r___0; write_cum = write_cum + w___0; seq_printf(seq, "%d:\t\t%10lu %3lu %3lu | %10lu %3lu %3lu\n", i, r___0, read_tot != 0UL ? (r___0 * 100UL) / read_tot : 0UL, read_tot != 0UL ? (read_cum * 100UL) / read_tot : 0UL, w___0, write_tot != 0UL ? (w___0 * 100UL) / write_tot : 0UL, write_tot != 0UL ? (write_cum * 100UL) / write_tot : 0UL); if (read_cum == read_tot && write_cum == write_tot) { goto ldv_63752; } else { } i = i + 1; ldv_63754: ; if (i <= 31) { goto ldv_63753; } else { } ldv_63752: seq_puts(seq, "\n\t\t\tread\t\t\twrite\n"); seq_puts(seq, "offset\t\trpcs % cum % |"); seq_puts(seq, " rpcs % cum %\n"); read_tot = lprocfs_oh_sum(& cli->cl_read_offset_hist); write_tot = lprocfs_oh_sum(& cli->cl_write_offset_hist); read_cum = 0UL; write_cum = 0UL; i = 0; goto ldv_63759; ldv_63758: r___1 = cli->cl_read_offset_hist.oh_buckets[i]; w___1 = cli->cl_write_offset_hist.oh_buckets[i]; read_cum = read_cum + r___1; write_cum = write_cum + w___1; seq_printf(seq, "%d:\t\t%10lu %3lu %3lu | %10lu %3lu %3lu\n", i != 0 ? 1 << (i + -1) : 0, r___1, read_tot != 0UL ? (r___1 * 100UL) / read_tot : 0UL, read_tot != 0UL ? (read_cum * 100UL) / read_tot : 0UL, w___1, write_tot != 0UL ? (w___1 * 100UL) / write_tot : 0UL, write_tot != 0UL ? (write_cum * 100UL) / write_tot : 0UL); if (read_cum == read_tot && write_cum == write_tot) { goto ldv_63757; } else { } i = i + 1; ldv_63759: ; if (i <= 31) { goto ldv_63758; } else { } ldv_63757: client_obd_list_unlock___2(& cli->cl_loi_list_lock); return (0); } } static ssize_t osc_rpc_stats_seq_write(struct file *file , char const *buf , size_t len , loff_t *off ) { struct seq_file *seq ; struct obd_device *dev ; struct client_obd *cli ; { seq = (struct seq_file *)file->private_data; dev = (struct obd_device *)seq->private; cli = & dev->u.cli; lprocfs_oh_clear(& cli->cl_read_rpc_hist); lprocfs_oh_clear(& cli->cl_write_rpc_hist); lprocfs_oh_clear(& cli->cl_read_page_hist); lprocfs_oh_clear(& cli->cl_write_page_hist); lprocfs_oh_clear(& cli->cl_read_offset_hist); lprocfs_oh_clear(& cli->cl_write_offset_hist); return ((ssize_t )len); } } static int osc_rpc_stats_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & osc_rpc_stats_seq_show, inode->i_private); return (tmp); } } static struct file_operations osc_rpc_stats_fops = {& __this_module, & seq_lseek, & seq_read, & osc_rpc_stats_seq_write, 0, 0, 0, 0, 0, 0, 0, 0, & osc_rpc_stats_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static int osc_stats_seq_show(struct seq_file *seq , void *v ) { struct timeval now ; struct obd_device *dev ; struct osc_stats *stats ; struct osc_device *tmp ; { dev = (struct obd_device *)seq->private; tmp = obd2osc_dev((struct obd_device const *)dev); stats = & tmp->od_stats; do_gettimeofday(& now); seq_printf(seq, "snapshot_time:\t %lu.%lu (secs.usecs)\n", now.tv_sec, (unsigned long )now.tv_usec); seq_printf(seq, "lockless_write_bytes\t\t%llu\n", stats->os_lockless_writes); seq_printf(seq, "lockless_read_bytes\t\t%llu\n", stats->os_lockless_reads); seq_printf(seq, "lockless_truncate\t\t%llu\n", stats->os_lockless_truncates); return (0); } } static ssize_t osc_stats_seq_write(struct file *file , char const *buf , size_t len , loff_t *off ) { struct seq_file *seq ; struct obd_device *dev ; struct osc_stats *stats ; struct osc_device *tmp ; { seq = (struct seq_file *)file->private_data; dev = (struct obd_device *)seq->private; tmp = obd2osc_dev((struct obd_device const *)dev); stats = & tmp->od_stats; memset((void *)stats, 0, 24UL); return ((ssize_t )len); } } static int osc_stats_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & osc_stats_seq_show, inode->i_private); return (tmp); } } static struct file_operations osc_stats_fops = {& __this_module, & seq_lseek, & seq_read, & osc_stats_seq_write, 0, 0, 0, 0, 0, 0, 0, 0, & osc_stats_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; int lproc_osc_attach_seqstat(struct obd_device *dev ) { int rc ; { rc = ldebugfs_seq_create(dev->obd_debugfs_entry, "osc_stats", 420, (struct file_operations const *)(& osc_stats_fops), (void *)dev); if (rc == 0) { rc = ldebugfs_obd_seq_create(dev, "rpc_stats", 420, (struct file_operations const *)(& osc_rpc_stats_fops), (void *)dev); } else { } return (rc); } } static struct attribute *osc_attrs[14U] = { & lustre_attr_active.attr, & lustre_attr_checksums.attr, & lustre_attr_contention_seconds.attr, & lustre_attr_cur_dirty_bytes.attr, & lustre_attr_cur_grant_bytes.attr, & lustre_attr_cur_lost_grant_bytes.attr, & lustre_attr_destroys_in_flight.attr, & lustre_attr_grant_shrink_interval.attr, & lustre_attr_lockless_truncate.attr, & lustre_attr_max_dirty_mb.attr, & lustre_attr_max_pages_per_rpc.attr, & lustre_attr_max_rpcs_in_flight.attr, & lustre_attr_resend_count.attr, (struct attribute *)0}; static struct attribute_group osc_attr_group = {0, 0, (struct attribute **)(& osc_attrs), 0}; void lprocfs_osc_init_vars(struct lprocfs_static_vars *lvars ) { { lvars->sysfs_vars = & osc_attr_group; lvars->obd_vars = (struct lprocfs_vars *)(& lprocfs_osc_obd_vars); return; } } int ldv_retval_10 ; int ldv_retval_9 ; int ldv_retval_2 ; int ldv_retval_12 ; int ldv_retval_0 ; int ldv_retval_5 ; int ldv_retval_4 ; int ldv_retval_11 ; int ldv_retval_1 ; int ldv_retval_8 ; int ldv_retval_3 ; int ldv_retval_7 ; void ldv_file_operations_7(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); osc_timeouts_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); osc_timeouts_fops_group2 = (struct file *)tmp___0; return; } } void ldv_initialize_lustre_attr_17(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_checksums_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_checksums_group1 = (struct attribute *)tmp___0; return; } } void ldv_initialize_lustre_attr_24(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_max_rpcs_in_flight_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_max_rpcs_in_flight_group1 = (struct attribute *)tmp___0; return; } } void ldv_file_operations_2(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); osc_rpc_stats_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); osc_rpc_stats_fops_group2 = (struct file *)tmp___0; return; } } void ldv_initialize_lustre_attr_20(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_cur_grant_bytes_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_cur_grant_bytes_group1 = (struct attribute *)tmp___0; return; } } void ldv_initialize_lustre_attr_14(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_contention_seconds_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_contention_seconds_group1 = (struct attribute *)tmp___0; return; } } void ldv_file_operations_9(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); osc_server_uuid_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); osc_server_uuid_fops_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_16(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); osc_checksum_type_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); osc_checksum_type_fops_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_22(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); osc_cached_mb_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); osc_cached_mb_fops_group2 = (struct file *)tmp___0; return; } } void ldv_initialize_lustre_attr_11(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_max_pages_per_rpc_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_max_pages_per_rpc_group1 = (struct attribute *)tmp___0; return; } } void ldv_file_operations_5(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); osc_ping_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); osc_ping_fops_group2 = (struct file *)tmp___0; return; } } void ldv_initialize_lustre_attr_18(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_grant_shrink_interval_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_grant_shrink_interval_group1 = (struct attribute *)tmp___0; return; } } void ldv_file_operations_4(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); osc_import_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); osc_import_fops_group2 = (struct file *)tmp___0; return; } } void ldv_initialize_lustre_attr_25(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_active_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_active_group1 = (struct attribute *)tmp___0; return; } } void ldv_file_operations_6(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); osc_state_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); osc_state_fops_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_10(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); osc_connect_flags_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); osc_connect_flags_fops_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_1(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); osc_stats_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); osc_stats_fops_group2 = (struct file *)tmp___0; return; } } void ldv_initialize_lustre_attr_13(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_lockless_truncate_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_lockless_truncate_group1 = (struct attribute *)tmp___0; return; } } void ldv_initialize_lustre_attr_23(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_max_dirty_mb_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_max_dirty_mb_group1 = (struct attribute *)tmp___0; return; } } void ldv_file_operations_3(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); osc_pinger_recov_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); osc_pinger_recov_fops_group2 = (struct file *)tmp___0; return; } } void ldv_initialize_lustre_attr_15(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_resend_count_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_resend_count_group1 = (struct attribute *)tmp___0; return; } } void ldv_file_operations_8(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); osc_conn_uuid_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); osc_conn_uuid_fops_group2 = (struct file *)tmp___0; return; } } void ldv_main_exported_11(void) { size_t ldvarg96 ; char *ldvarg97 ; void *tmp ; char *ldvarg95 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg97 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg95 = (char *)tmp___0; ldv_memset((void *)(& ldvarg96), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_11 == 1) { max_pages_per_rpc_store(lustre_attr_max_pages_per_rpc_group0, lustre_attr_max_pages_per_rpc_group1, (char const *)ldvarg97, ldvarg96); ldv_state_variable_11 = 1; } else { } goto ldv_63889; case 1: ; if (ldv_state_variable_11 == 1) { max_pages_per_rpc_show(lustre_attr_max_pages_per_rpc_group0, lustre_attr_max_pages_per_rpc_group1, ldvarg95); ldv_state_variable_11 = 1; } else { } goto ldv_63889; default: ldv_stop(); } ldv_63889: ; return; } } void ldv_main_exported_21(void) { struct attribute *ldvarg15 ; void *tmp ; struct kobject *ldvarg13 ; void *tmp___0 ; char *ldvarg14 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(32UL); ldvarg15 = (struct attribute *)tmp; tmp___0 = ldv_init_zalloc(296UL); ldvarg13 = (struct kobject *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg14 = (char *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_21 == 1) { cur_dirty_bytes_show(ldvarg13, ldvarg15, ldvarg14); ldv_state_variable_21 = 1; } else { } goto ldv_63899; default: ldv_stop(); } ldv_63899: ; return; } } void ldv_main_exported_7(void) { int ldvarg16 ; size_t ldvarg19 ; loff_t ldvarg17 ; char *ldvarg20 ; void *tmp ; loff_t *ldvarg18 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg20 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg18 = (loff_t *)tmp___0; ldv_memset((void *)(& ldvarg16), 0, 4UL); ldv_memset((void *)(& ldvarg19), 0, 8UL); ldv_memset((void *)(& ldvarg17), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_7 == 1) { ldv_retval_0 = osc_timeouts_single_open(osc_timeouts_fops_group1, osc_timeouts_fops_group2); if (ldv_retval_0 == 0) { ldv_state_variable_7 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_63910; case 1: ; if (ldv_state_variable_7 == 2) { lprocfs_single_release(osc_timeouts_fops_group1, osc_timeouts_fops_group2); ldv_state_variable_7 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_63910; case 2: ; if (ldv_state_variable_7 == 2) { seq_read(osc_timeouts_fops_group2, ldvarg20, ldvarg19, ldvarg18); ldv_state_variable_7 = 2; } else { } goto ldv_63910; case 3: ; if (ldv_state_variable_7 == 2) { seq_lseek(osc_timeouts_fops_group2, ldvarg17, ldvarg16); ldv_state_variable_7 = 2; } else { } goto ldv_63910; default: ldv_stop(); } ldv_63910: ; return; } } void ldv_main_exported_17(void) { char *ldvarg25 ; void *tmp ; size_t ldvarg26 ; char *ldvarg27 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg25 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg27 = (char *)tmp___0; ldv_memset((void *)(& ldvarg26), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_17 == 1) { checksums_store(lustre_attr_checksums_group0, lustre_attr_checksums_group1, (char const *)ldvarg27, ldvarg26); ldv_state_variable_17 = 1; } else { } goto ldv_63922; case 1: ; if (ldv_state_variable_17 == 1) { checksums_show(lustre_attr_checksums_group0, lustre_attr_checksums_group1, ldvarg25); ldv_state_variable_17 = 1; } else { } goto ldv_63922; default: ldv_stop(); } ldv_63922: ; return; } } void ldv_main_exported_2(void) { size_t ldvarg34 ; int ldvarg28 ; loff_t ldvarg29 ; loff_t *ldvarg30 ; void *tmp ; loff_t *ldvarg33 ; void *tmp___0 ; size_t ldvarg31 ; char *ldvarg32 ; void *tmp___1 ; char *ldvarg35 ; void *tmp___2 ; int tmp___3 ; { tmp = ldv_init_zalloc(8UL); ldvarg30 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg33 = (loff_t *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg32 = (char *)tmp___1; tmp___2 = ldv_init_zalloc(1UL); ldvarg35 = (char *)tmp___2; ldv_memset((void *)(& ldvarg34), 0, 8UL); ldv_memset((void *)(& ldvarg28), 0, 4UL); ldv_memset((void *)(& ldvarg29), 0, 8UL); ldv_memset((void *)(& ldvarg31), 0, 8UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_2 == 1) { ldv_retval_1 = osc_rpc_stats_single_open(osc_rpc_stats_fops_group1, osc_rpc_stats_fops_group2); if (ldv_retval_1 == 0) { ldv_state_variable_2 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_63937; case 1: ; if (ldv_state_variable_2 == 2) { lprocfs_single_release(osc_rpc_stats_fops_group1, osc_rpc_stats_fops_group2); ldv_state_variable_2 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_63937; case 2: ; if (ldv_state_variable_2 == 1) { osc_rpc_stats_seq_write(osc_rpc_stats_fops_group2, (char const *)ldvarg35, ldvarg34, ldvarg33); ldv_state_variable_2 = 1; } else { } if (ldv_state_variable_2 == 2) { osc_rpc_stats_seq_write(osc_rpc_stats_fops_group2, (char const *)ldvarg35, ldvarg34, ldvarg33); ldv_state_variable_2 = 2; } else { } goto ldv_63937; case 3: ; if (ldv_state_variable_2 == 2) { seq_read(osc_rpc_stats_fops_group2, ldvarg32, ldvarg31, ldvarg30); ldv_state_variable_2 = 2; } else { } goto ldv_63937; case 4: ; if (ldv_state_variable_2 == 2) { seq_lseek(osc_rpc_stats_fops_group2, ldvarg29, ldvarg28); ldv_state_variable_2 = 2; } else { } goto ldv_63937; default: ldv_stop(); } ldv_63937: ; return; } } void ldv_main_exported_22(void) { loff_t *ldvarg103 ; void *tmp ; loff_t ldvarg99 ; char *ldvarg102 ; void *tmp___0 ; int ldvarg98 ; loff_t *ldvarg100 ; void *tmp___1 ; char *ldvarg105 ; void *tmp___2 ; size_t ldvarg101 ; size_t ldvarg104 ; int tmp___3 ; { tmp = ldv_init_zalloc(8UL); ldvarg103 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg102 = (char *)tmp___0; tmp___1 = ldv_init_zalloc(8UL); ldvarg100 = (loff_t *)tmp___1; tmp___2 = ldv_init_zalloc(1UL); ldvarg105 = (char *)tmp___2; ldv_memset((void *)(& ldvarg99), 0, 8UL); ldv_memset((void *)(& ldvarg98), 0, 4UL); ldv_memset((void *)(& ldvarg101), 0, 8UL); ldv_memset((void *)(& ldvarg104), 0, 8UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_22 == 1) { ldv_retval_5 = osc_cached_mb_single_open(osc_cached_mb_fops_group1, osc_cached_mb_fops_group2); if (ldv_retval_5 == 0) { ldv_state_variable_22 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_63955; case 1: ; if (ldv_state_variable_22 == 2) { lprocfs_single_release(osc_cached_mb_fops_group1, osc_cached_mb_fops_group2); ldv_state_variable_22 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_63955; case 2: ; if (ldv_state_variable_22 == 1) { osc_cached_mb_seq_write(osc_cached_mb_fops_group2, (char const *)ldvarg105, ldvarg104, ldvarg103); ldv_state_variable_22 = 1; } else { } if (ldv_state_variable_22 == 2) { osc_cached_mb_seq_write(osc_cached_mb_fops_group2, (char const *)ldvarg105, ldvarg104, ldvarg103); ldv_state_variable_22 = 2; } else { } goto ldv_63955; case 3: ; if (ldv_state_variable_22 == 2) { seq_read(osc_cached_mb_fops_group2, ldvarg102, ldvarg101, ldvarg100); ldv_state_variable_22 = 2; } else { } goto ldv_63955; case 4: ; if (ldv_state_variable_22 == 2) { seq_lseek(osc_cached_mb_fops_group2, ldvarg99, ldvarg98); ldv_state_variable_22 = 2; } else { } goto ldv_63955; default: ldv_stop(); } ldv_63955: ; return; } } void ldv_main_exported_1(void) { char *ldvarg40 ; void *tmp ; int ldvarg36 ; loff_t ldvarg37 ; loff_t *ldvarg38 ; void *tmp___0 ; size_t ldvarg42 ; char *ldvarg43 ; void *tmp___1 ; loff_t *ldvarg41 ; void *tmp___2 ; size_t ldvarg39 ; int tmp___3 ; { tmp = ldv_init_zalloc(1UL); ldvarg40 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg38 = (loff_t *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg43 = (char *)tmp___1; tmp___2 = ldv_init_zalloc(8UL); ldvarg41 = (loff_t *)tmp___2; ldv_memset((void *)(& ldvarg36), 0, 4UL); ldv_memset((void *)(& ldvarg37), 0, 8UL); ldv_memset((void *)(& ldvarg42), 0, 8UL); ldv_memset((void *)(& ldvarg39), 0, 8UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_1 == 1) { ldv_retval_2 = osc_stats_single_open(osc_stats_fops_group1, osc_stats_fops_group2); if (ldv_retval_2 == 0) { ldv_state_variable_1 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_63973; case 1: ; if (ldv_state_variable_1 == 2) { lprocfs_single_release(osc_stats_fops_group1, osc_stats_fops_group2); ldv_state_variable_1 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_63973; case 2: ; if (ldv_state_variable_1 == 1) { osc_stats_seq_write(osc_stats_fops_group2, (char const *)ldvarg43, ldvarg42, ldvarg41); ldv_state_variable_1 = 1; } else { } if (ldv_state_variable_1 == 2) { osc_stats_seq_write(osc_stats_fops_group2, (char const *)ldvarg43, ldvarg42, ldvarg41); ldv_state_variable_1 = 2; } else { } goto ldv_63973; case 3: ; if (ldv_state_variable_1 == 2) { seq_read(osc_stats_fops_group2, ldvarg40, ldvarg39, ldvarg38); ldv_state_variable_1 = 2; } else { } goto ldv_63973; case 4: ; if (ldv_state_variable_1 == 2) { seq_lseek(osc_stats_fops_group2, ldvarg37, ldvarg36); ldv_state_variable_1 = 2; } else { } goto ldv_63973; default: ldv_stop(); } ldv_63973: ; return; } } void ldv_main_exported_18(void) { char *ldvarg46 ; void *tmp ; char *ldvarg44 ; void *tmp___0 ; size_t ldvarg45 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg46 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg44 = (char *)tmp___0; ldv_memset((void *)(& ldvarg45), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_18 == 1) { grant_shrink_interval_store(lustre_attr_grant_shrink_interval_group0, lustre_attr_grant_shrink_interval_group1, (char const *)ldvarg46, ldvarg45); ldv_state_variable_18 = 1; } else { } goto ldv_63986; case 1: ; if (ldv_state_variable_18 == 1) { grant_shrink_interval_show(lustre_attr_grant_shrink_interval_group0, lustre_attr_grant_shrink_interval_group1, ldvarg44); ldv_state_variable_18 = 1; } else { } goto ldv_63986; default: ldv_stop(); } ldv_63986: ; return; } } void ldv_main_exported_23(void) { char *ldvarg109 ; void *tmp ; size_t ldvarg110 ; char *ldvarg111 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg109 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg111 = (char *)tmp___0; ldv_memset((void *)(& ldvarg110), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_23 == 1) { max_dirty_mb_store(lustre_attr_max_dirty_mb_group0, lustre_attr_max_dirty_mb_group1, (char const *)ldvarg111, ldvarg110); ldv_state_variable_23 = 1; } else { } goto ldv_63996; case 1: ; if (ldv_state_variable_23 == 1) { max_dirty_mb_show(lustre_attr_max_dirty_mb_group0, lustre_attr_max_dirty_mb_group1, ldvarg109); ldv_state_variable_23 = 1; } else { } goto ldv_63996; default: ldv_stop(); } ldv_63996: ; return; } } void ldv_main_exported_16(void) { int ldvarg52 ; size_t ldvarg55 ; loff_t ldvarg53 ; size_t ldvarg58 ; loff_t *ldvarg54 ; void *tmp ; loff_t *ldvarg57 ; void *tmp___0 ; char *ldvarg56 ; void *tmp___1 ; char *ldvarg59 ; void *tmp___2 ; int tmp___3 ; { tmp = ldv_init_zalloc(8UL); ldvarg54 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg57 = (loff_t *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg56 = (char *)tmp___1; tmp___2 = ldv_init_zalloc(1UL); ldvarg59 = (char *)tmp___2; ldv_memset((void *)(& ldvarg52), 0, 4UL); ldv_memset((void *)(& ldvarg55), 0, 8UL); ldv_memset((void *)(& ldvarg53), 0, 8UL); ldv_memset((void *)(& ldvarg58), 0, 8UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_16 == 1) { ldv_retval_3 = osc_checksum_type_single_open(osc_checksum_type_fops_group1, osc_checksum_type_fops_group2); if (ldv_retval_3 == 0) { ldv_state_variable_16 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_64011; case 1: ; if (ldv_state_variable_16 == 2) { lprocfs_single_release(osc_checksum_type_fops_group1, osc_checksum_type_fops_group2); ldv_state_variable_16 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_64011; case 2: ; if (ldv_state_variable_16 == 1) { osc_checksum_type_seq_write(osc_checksum_type_fops_group2, (char const *)ldvarg59, ldvarg58, ldvarg57); ldv_state_variable_16 = 1; } else { } if (ldv_state_variable_16 == 2) { osc_checksum_type_seq_write(osc_checksum_type_fops_group2, (char const *)ldvarg59, ldvarg58, ldvarg57); ldv_state_variable_16 = 2; } else { } goto ldv_64011; case 3: ; if (ldv_state_variable_16 == 2) { seq_read(osc_checksum_type_fops_group2, ldvarg56, ldvarg55, ldvarg54); ldv_state_variable_16 = 2; } else { } goto ldv_64011; case 4: ; if (ldv_state_variable_16 == 2) { seq_lseek(osc_checksum_type_fops_group2, ldvarg53, ldvarg52); ldv_state_variable_16 = 2; } else { } goto ldv_64011; default: ldv_stop(); } ldv_64011: ; return; } } void ldv_main_exported_13(void) { size_t ldvarg107 ; char *ldvarg106 ; void *tmp ; char *ldvarg108 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg106 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg108 = (char *)tmp___0; ldv_memset((void *)(& ldvarg107), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_13 == 1) { lockless_truncate_store(lustre_attr_lockless_truncate_group0, lustre_attr_lockless_truncate_group1, (char const *)ldvarg108, ldvarg107); ldv_state_variable_13 = 1; } else { } goto ldv_64024; case 1: ; if (ldv_state_variable_13 == 1) { lockless_truncate_show(lustre_attr_lockless_truncate_group0, lustre_attr_lockless_truncate_group1, ldvarg106); ldv_state_variable_13 = 1; } else { } goto ldv_64024; default: ldv_stop(); } ldv_64024: ; return; } } void ldv_main_exported_25(void) { char *ldvarg64 ; void *tmp ; char *ldvarg66 ; void *tmp___0 ; size_t ldvarg65 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg64 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg66 = (char *)tmp___0; ldv_memset((void *)(& ldvarg65), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_25 == 1) { active_store(lustre_attr_active_group0, lustre_attr_active_group1, (char const *)ldvarg66, ldvarg65); ldv_state_variable_25 = 1; } else { } goto ldv_64034; case 1: ; if (ldv_state_variable_25 == 1) { active_show(lustre_attr_active_group0, lustre_attr_active_group1, ldvarg64); ldv_state_variable_25 = 1; } else { } goto ldv_64034; default: ldv_stop(); } ldv_64034: ; return; } } void ldv_main_exported_6(void) { int ldvarg120 ; loff_t *ldvarg122 ; void *tmp ; char *ldvarg124 ; void *tmp___0 ; loff_t ldvarg121 ; size_t ldvarg123 ; int tmp___1 ; { tmp = ldv_init_zalloc(8UL); ldvarg122 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg124 = (char *)tmp___0; ldv_memset((void *)(& ldvarg120), 0, 4UL); ldv_memset((void *)(& ldvarg121), 0, 8UL); ldv_memset((void *)(& ldvarg123), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_6 == 1) { ldv_retval_7 = osc_state_single_open(osc_state_fops_group1, osc_state_fops_group2); if (ldv_retval_7 == 0) { ldv_state_variable_6 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_64046; case 1: ; if (ldv_state_variable_6 == 2) { lprocfs_single_release(osc_state_fops_group1, osc_state_fops_group2); ldv_state_variable_6 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_64046; case 2: ; if (ldv_state_variable_6 == 2) { seq_read(osc_state_fops_group2, ldvarg124, ldvarg123, ldvarg122); ldv_state_variable_6 = 2; } else { } goto ldv_64046; case 3: ; if (ldv_state_variable_6 == 2) { seq_lseek(osc_state_fops_group2, ldvarg121, ldvarg120); ldv_state_variable_6 = 2; } else { } goto ldv_64046; default: ldv_stop(); } ldv_64046: ; return; } } void ldv_main_exported_3(void) { char *ldvarg130 ; void *tmp ; size_t ldvarg129 ; int ldvarg126 ; size_t ldvarg132 ; loff_t *ldvarg128 ; void *tmp___0 ; char *ldvarg133 ; void *tmp___1 ; loff_t ldvarg127 ; loff_t *ldvarg131 ; void *tmp___2 ; int tmp___3 ; { tmp = ldv_init_zalloc(1UL); ldvarg130 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg128 = (loff_t *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg133 = (char *)tmp___1; tmp___2 = ldv_init_zalloc(8UL); ldvarg131 = (loff_t *)tmp___2; ldv_memset((void *)(& ldvarg129), 0, 8UL); ldv_memset((void *)(& ldvarg126), 0, 4UL); ldv_memset((void *)(& ldvarg132), 0, 8UL); ldv_memset((void *)(& ldvarg127), 0, 8UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_3 == 1) { ldv_retval_8 = osc_pinger_recov_single_open(osc_pinger_recov_fops_group1, osc_pinger_recov_fops_group2); if (ldv_retval_8 == 0) { ldv_state_variable_3 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_64063; case 1: ; if (ldv_state_variable_3 == 2) { lprocfs_single_release(osc_pinger_recov_fops_group1, osc_pinger_recov_fops_group2); ldv_state_variable_3 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_64063; case 2: ; if (ldv_state_variable_3 == 1) { osc_pinger_recov_seq_write(osc_pinger_recov_fops_group2, (char const *)ldvarg133, ldvarg132, ldvarg131); ldv_state_variable_3 = 1; } else { } if (ldv_state_variable_3 == 2) { osc_pinger_recov_seq_write(osc_pinger_recov_fops_group2, (char const *)ldvarg133, ldvarg132, ldvarg131); ldv_state_variable_3 = 2; } else { } goto ldv_64063; case 3: ; if (ldv_state_variable_3 == 2) { seq_read(osc_pinger_recov_fops_group2, ldvarg130, ldvarg129, ldvarg128); ldv_state_variable_3 = 2; } else { } goto ldv_64063; case 4: ; if (ldv_state_variable_3 == 2) { seq_lseek(osc_pinger_recov_fops_group2, ldvarg127, ldvarg126); ldv_state_variable_3 = 2; } else { } goto ldv_64063; default: ldv_stop(); } ldv_64063: ; return; } } void ldv_main_exported_9(void) { loff_t ldvarg135 ; int ldvarg134 ; size_t ldvarg137 ; char *ldvarg138 ; void *tmp ; loff_t *ldvarg136 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg138 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg136 = (loff_t *)tmp___0; ldv_memset((void *)(& ldvarg135), 0, 8UL); ldv_memset((void *)(& ldvarg134), 0, 4UL); ldv_memset((void *)(& ldvarg137), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_9 == 1) { ldv_retval_9 = osc_server_uuid_single_open(osc_server_uuid_fops_group1, osc_server_uuid_fops_group2); if (ldv_retval_9 == 0) { ldv_state_variable_9 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_64078; case 1: ; if (ldv_state_variable_9 == 2) { lprocfs_single_release(osc_server_uuid_fops_group1, osc_server_uuid_fops_group2); ldv_state_variable_9 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_64078; case 2: ; if (ldv_state_variable_9 == 2) { seq_read(osc_server_uuid_fops_group2, ldvarg138, ldvarg137, ldvarg136); ldv_state_variable_9 = 2; } else { } goto ldv_64078; case 3: ; if (ldv_state_variable_9 == 2) { seq_lseek(osc_server_uuid_fops_group2, ldvarg135, ldvarg134); ldv_state_variable_9 = 2; } else { } goto ldv_64078; default: ldv_stop(); } ldv_64078: ; return; } } void ldv_main_exported_12(void) { struct kobject *ldvarg139 ; void *tmp ; struct attribute *ldvarg141 ; void *tmp___0 ; char *ldvarg140 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(296UL); ldvarg139 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); ldvarg141 = (struct attribute *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg140 = (char *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_12 == 1) { destroys_in_flight_show(ldvarg139, ldvarg141, ldvarg140); ldv_state_variable_12 = 1; } else { } goto ldv_64090; default: ldv_stop(); } ldv_64090: ; return; } } void ldv_main_exported_20(void) { char *ldvarg75 ; void *tmp ; size_t ldvarg76 ; char *ldvarg77 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg75 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg77 = (char *)tmp___0; ldv_memset((void *)(& ldvarg76), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_20 == 1) { cur_grant_bytes_store(lustre_attr_cur_grant_bytes_group0, lustre_attr_cur_grant_bytes_group1, (char const *)ldvarg77, ldvarg76); ldv_state_variable_20 = 1; } else { } goto ldv_64099; case 1: ; if (ldv_state_variable_20 == 1) { cur_grant_bytes_show(lustre_attr_cur_grant_bytes_group0, lustre_attr_cur_grant_bytes_group1, ldvarg75); ldv_state_variable_20 = 1; } else { } goto ldv_64099; default: ldv_stop(); } ldv_64099: ; return; } } void ldv_main_exported_14(void) { char *ldvarg78 ; void *tmp ; char *ldvarg80 ; void *tmp___0 ; size_t ldvarg79 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg78 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg80 = (char *)tmp___0; ldv_memset((void *)(& ldvarg79), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_14 == 1) { contention_seconds_store(lustre_attr_contention_seconds_group0, lustre_attr_contention_seconds_group1, (char const *)ldvarg80, ldvarg79); ldv_state_variable_14 = 1; } else { } goto ldv_64109; case 1: ; if (ldv_state_variable_14 == 1) { contention_seconds_show(lustre_attr_contention_seconds_group0, lustre_attr_contention_seconds_group1, ldvarg78); ldv_state_variable_14 = 1; } else { } goto ldv_64109; default: ldv_stop(); } ldv_64109: ; return; } } void ldv_main_exported_15(void) { char *ldvarg142 ; void *tmp ; char *ldvarg144 ; void *tmp___0 ; size_t ldvarg143 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg142 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg144 = (char *)tmp___0; ldv_memset((void *)(& ldvarg143), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_15 == 1) { resend_count_store(lustre_attr_resend_count_group0, lustre_attr_resend_count_group1, (char const *)ldvarg144, ldvarg143); ldv_state_variable_15 = 1; } else { } goto ldv_64119; case 1: ; if (ldv_state_variable_15 == 1) { resend_count_show(lustre_attr_resend_count_group0, lustre_attr_resend_count_group1, ldvarg142); ldv_state_variable_15 = 1; } else { } goto ldv_64119; default: ldv_stop(); } ldv_64119: ; return; } } void ldv_main_exported_8(void) { loff_t *ldvarg179 ; void *tmp ; loff_t ldvarg178 ; size_t ldvarg180 ; char *ldvarg181 ; void *tmp___0 ; int ldvarg177 ; int tmp___1 ; { tmp = ldv_init_zalloc(8UL); ldvarg179 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg181 = (char *)tmp___0; ldv_memset((void *)(& ldvarg178), 0, 8UL); ldv_memset((void *)(& ldvarg180), 0, 8UL); ldv_memset((void *)(& ldvarg177), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_8 == 1) { ldv_retval_10 = osc_conn_uuid_single_open(osc_conn_uuid_fops_group1, osc_conn_uuid_fops_group2); if (ldv_retval_10 == 0) { ldv_state_variable_8 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_64131; case 1: ; if (ldv_state_variable_8 == 2) { lprocfs_single_release(osc_conn_uuid_fops_group1, osc_conn_uuid_fops_group2); ldv_state_variable_8 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_64131; case 2: ; if (ldv_state_variable_8 == 2) { seq_read(osc_conn_uuid_fops_group2, ldvarg181, ldvarg180, ldvarg179); ldv_state_variable_8 = 2; } else { } goto ldv_64131; case 3: ; if (ldv_state_variable_8 == 2) { seq_lseek(osc_conn_uuid_fops_group2, ldvarg178, ldvarg177); ldv_state_variable_8 = 2; } else { } goto ldv_64131; default: ldv_stop(); } ldv_64131: ; return; } } void ldv_main_exported_4(void) { size_t ldvarg188 ; size_t ldvarg185 ; char *ldvarg189 ; void *tmp ; int ldvarg182 ; loff_t *ldvarg184 ; void *tmp___0 ; char *ldvarg186 ; void *tmp___1 ; loff_t *ldvarg187 ; void *tmp___2 ; loff_t ldvarg183 ; int tmp___3 ; { tmp = ldv_init_zalloc(1UL); ldvarg189 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg184 = (loff_t *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg186 = (char *)tmp___1; tmp___2 = ldv_init_zalloc(8UL); ldvarg187 = (loff_t *)tmp___2; ldv_memset((void *)(& ldvarg188), 0, 8UL); ldv_memset((void *)(& ldvarg185), 0, 8UL); ldv_memset((void *)(& ldvarg182), 0, 4UL); ldv_memset((void *)(& ldvarg183), 0, 8UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_4 == 1) { ldv_retval_11 = osc_import_single_open(osc_import_fops_group1, osc_import_fops_group2); if (ldv_retval_11 == 0) { ldv_state_variable_4 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_64148; case 1: ; if (ldv_state_variable_4 == 2) { lprocfs_single_release(osc_import_fops_group1, osc_import_fops_group2); ldv_state_variable_4 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_64148; case 2: ; if (ldv_state_variable_4 == 1) { osc_import_seq_write(osc_import_fops_group2, (char const *)ldvarg189, ldvarg188, ldvarg187); ldv_state_variable_4 = 1; } else { } if (ldv_state_variable_4 == 2) { osc_import_seq_write(osc_import_fops_group2, (char const *)ldvarg189, ldvarg188, ldvarg187); ldv_state_variable_4 = 2; } else { } goto ldv_64148; case 3: ; if (ldv_state_variable_4 == 2) { seq_read(osc_import_fops_group2, ldvarg186, ldvarg185, ldvarg184); ldv_state_variable_4 = 2; } else { } goto ldv_64148; case 4: ; if (ldv_state_variable_4 == 2) { seq_lseek(osc_import_fops_group2, ldvarg183, ldvarg182); ldv_state_variable_4 = 2; } else { } goto ldv_64148; default: ldv_stop(); } ldv_64148: ; return; } } void ldv_main_exported_24(void) { char *ldvarg83 ; void *tmp ; size_t ldvarg82 ; char *ldvarg81 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg83 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg81 = (char *)tmp___0; ldv_memset((void *)(& ldvarg82), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_24 == 1) { max_rpcs_in_flight_store(lustre_attr_max_rpcs_in_flight_group0, lustre_attr_max_rpcs_in_flight_group1, (char const *)ldvarg83, ldvarg82); ldv_state_variable_24 = 1; } else { } goto ldv_64161; case 1: ; if (ldv_state_variable_24 == 1) { max_rpcs_in_flight_show(lustre_attr_max_rpcs_in_flight_group0, lustre_attr_max_rpcs_in_flight_group1, ldvarg81); ldv_state_variable_24 = 1; } else { } goto ldv_64161; default: ldv_stop(); } ldv_64161: ; return; } } void ldv_main_exported_19(void) { struct kobject *ldvarg194 ; void *tmp ; struct attribute *ldvarg196 ; void *tmp___0 ; char *ldvarg195 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(296UL); ldvarg194 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); ldvarg196 = (struct attribute *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg195 = (char *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_19 == 1) { cur_lost_grant_bytes_show(ldvarg194, ldvarg196, ldvarg195); ldv_state_variable_19 = 1; } else { } goto ldv_64171; default: ldv_stop(); } ldv_64171: ; return; } } void ldv_main_exported_10(void) { loff_t *ldvarg86 ; void *tmp ; size_t ldvarg87 ; char *ldvarg88 ; void *tmp___0 ; int ldvarg84 ; loff_t ldvarg85 ; int tmp___1 ; { tmp = ldv_init_zalloc(8UL); ldvarg86 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg88 = (char *)tmp___0; ldv_memset((void *)(& ldvarg87), 0, 8UL); ldv_memset((void *)(& ldvarg84), 0, 4UL); ldv_memset((void *)(& ldvarg85), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_10 == 1) { ldv_retval_4 = osc_connect_flags_single_open(osc_connect_flags_fops_group1, osc_connect_flags_fops_group2); if (ldv_retval_4 == 0) { ldv_state_variable_10 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_64182; case 1: ; if (ldv_state_variable_10 == 2) { lprocfs_single_release(osc_connect_flags_fops_group1, osc_connect_flags_fops_group2); ldv_state_variable_10 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_64182; case 2: ; if (ldv_state_variable_10 == 2) { seq_read(osc_connect_flags_fops_group2, ldvarg88, ldvarg87, ldvarg86); ldv_state_variable_10 = 2; } else { } goto ldv_64182; case 3: ; if (ldv_state_variable_10 == 2) { seq_lseek(osc_connect_flags_fops_group2, ldvarg85, ldvarg84); ldv_state_variable_10 = 2; } else { } goto ldv_64182; default: ldv_stop(); } ldv_64182: ; return; } } void ldv_main_exported_5(void) { char *ldvarg199 ; void *tmp ; size_t ldvarg198 ; loff_t *ldvarg197 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg199 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg197 = (loff_t *)tmp___0; ldv_memset((void *)(& ldvarg198), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_5 == 1) { ldv_retval_12 = osc_ping_open(osc_ping_fops_group1, osc_ping_fops_group2); if (ldv_retval_12 == 0) { ldv_state_variable_5 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_64194; case 1: ; if (ldv_state_variable_5 == 2) { lprocfs_single_release(osc_ping_fops_group1, osc_ping_fops_group2); ldv_state_variable_5 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_64194; case 2: ; if (ldv_state_variable_5 == 1) { osc_ping_write(osc_ping_fops_group2, (char const *)ldvarg199, ldvarg198, ldvarg197); ldv_state_variable_5 = 1; } else { } if (ldv_state_variable_5 == 2) { osc_ping_write(osc_ping_fops_group2, (char const *)ldvarg199, ldvarg198, ldvarg197); ldv_state_variable_5 = 2; } else { } goto ldv_64194; default: ldv_stop(); } ldv_64194: ; return; } } int ldv_pskb_expand_head_331(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_333(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv_skb_copy_335(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_336(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_337(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } struct sk_buff *ldv___netdev_alloc_skb_338(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } int ldv_pskb_expand_head_339(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } int ldv_pskb_expand_head_340(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) { { ldv_check_alloc_flags(flags); return __VERIFIER_nondet_int(); } } struct sk_buff *ldv_skb_clone_341(struct sk_buff *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(sizeof(struct sk_buff)); return ((struct sk_buff *)tmp); } } __inline static void ldv_error(void) { { ERROR: ; {reach_error();} } } bool ldv_is_err(void const *ptr ) { { return ((unsigned long )ptr > 2012UL); } } void *ldv_err_ptr(long error ) { { return ((void *)(2012L - error)); } } long ldv_ptr_err(void const *ptr ) { { return ((long )(2012UL - (unsigned long )ptr)); } } bool ldv_is_err_or_null(void const *ptr ) { bool tmp ; int tmp___0 ; { if ((unsigned long )ptr == (unsigned long )((void const *)0)) { tmp___0 = 1; } else { tmp = ldv_is_err(ptr); if ((int )tmp) { tmp___0 = 1; } else { tmp___0 = 0; } } return ((bool )tmp___0); } } int ldv_spin = 0; void ldv_check_alloc_flags(gfp_t flags ) { { if (ldv_spin != 0 && (flags & 16U) != 0U) { ldv_error(); } else { } return; } } extern struct page *ldv_some_page(void) ; struct page *ldv_check_alloc_flags_and_return_some_page(gfp_t flags ) { struct page *tmp ; { if (ldv_spin != 0 && (flags & 16U) != 0U) { ldv_error(); } else { } tmp = ldv_some_page(); return (tmp); } } void ldv_check_alloc_nonatomic(void) { { if (ldv_spin != 0) { ldv_error(); } else { } return; } } void ldv_spin_lock(void) { { ldv_spin = 1; return; } } void ldv_spin_unlock(void) { { ldv_spin = 0; return; } } int ldv_spin_trylock(void) { int is_lock ; { is_lock = ldv_undef_int(); if (is_lock != 0) { return (0); } else { ldv_spin = 1; return (1); } } } #include "model/linux-4.2-rc1.tar.xz-43_2a-drivers--staging--lustre--lustre--osc--osc.ko-entry_point_true-unreach-call.cil.out.env.c" #include "model/common.env.c"