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; struct __anonstruct___kernel_fsid_t_5 { int val[2U] ; }; typedef struct __anonstruct___kernel_fsid_t_5 __kernel_fsid_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_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 call_single_data { struct llist_node llist ; void (*func)(void * ) ; void *info ; unsigned int flags ; }; 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 lu_context; struct writeback_control; struct lu_object; struct vm_fault; struct lu_device_type; struct cl_io; struct lu_device; struct cl_object; 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 path; struct vfsmount; 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 bio_set; struct bio; struct bio_integrity_payload; struct block_device; typedef void bio_end_io_t(struct bio * , int ); struct bio_vec { struct page *bv_page ; unsigned int bv_len ; unsigned int bv_offset ; }; struct bvec_iter { sector_t bi_sector ; unsigned int bi_size ; unsigned int bi_idx ; unsigned int bi_bvec_done ; }; union __anonunion____missing_field_name_230 { struct bio_integrity_payload *bi_integrity ; }; struct bio { struct bio *bi_next ; struct block_device *bi_bdev ; unsigned long bi_flags ; unsigned long bi_rw ; struct bvec_iter bi_iter ; unsigned int bi_phys_segments ; unsigned int bi_seg_front_size ; unsigned int bi_seg_back_size ; atomic_t __bi_remaining ; bio_end_io_t *bi_end_io ; void *bi_private ; struct io_context *bi_ioc ; struct cgroup_subsys_state *bi_css ; union __anonunion____missing_field_name_230 __annonCompField64 ; unsigned short bi_vcnt ; unsigned short bi_max_vecs ; atomic_t __bi_cnt ; struct bio_vec *bi_io_vec ; struct bio_set *bi_pool ; struct bio_vec bi_inline_vecs[0U] ; }; struct bdi_writeback; struct export_operations; struct hd_geometry; struct iovec; struct kiocb; struct poll_table_struct; struct kstatfs; struct swap_info_struct; struct iov_iter; 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 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 block_device_operations; 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_25813 { SS_FREE = 0, SS_UNCONNECTED = 1, SS_CONNECTING = 2, SS_CONNECTED = 3, SS_DISCONNECTING = 4 } ; typedef enum ldv_25813 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_28710 { 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_28710 phy_interface_t; enum ldv_28764 { 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_28764 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 fs_struct { int users ; spinlock_t lock ; seqcount_t seq ; int umask ; int in_exec ; struct path root ; struct path pwd ; }; 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; typedef int 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 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 obd_uuid { char uuid[40U] ; }; 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 ; }; typedef int 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] ; }; typedef int ldlm_mode_t; typedef int 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 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 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 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 obd_device; struct obd_export; struct adaptive_timeout; struct ptlrpc_request; 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_sec; 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 ptlrpc_reply_state; struct ptlrpc_bulk_desc; struct ptlrpc_sec_policy; struct ptlrpc_sec_cops; struct ptlrpc_sec_sops; 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 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_36680 { LOC_F_NEW = 1 } ; typedef enum ldv_36680 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_env { struct lu_context le_ctx ; struct lu_context *le_ses ; }; 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; 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 ; }; 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_385 { struct lustre_intent_data lustre ; }; struct lookup_intent { int it_op ; int it_create_mode ; __u64 it_flags ; union __anonunion_d_385 d ; }; struct __anonstruct_client_obd_lock_t_386 { spinlock_t lock ; unsigned long time ; struct task_struct *task ; char const *func ; int line ; }; typedef struct __anonstruct_client_obd_lock_t_386 client_obd_lock_t; 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 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 ; }; 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_37899 { LDLM_NAMESPACE_SERVER = 1, LDLM_NAMESPACE_CLIENT = 2 } ; typedef enum ldv_37899 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 ) ; }; enum ldv_37952 { LDLM_NAMESPACE_GREEDY = 1, LDLM_NAMESPACE_MODEST = 2 } ; typedef enum ldv_37952 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 ; }; enum ldv_38045 { LCF_ASYNC = 1, LCF_LOCAL = 2, LCF_BL_AST = 4 } ; typedef enum ldv_38045 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_390 { struct ldlm_extent l_extent ; struct ldlm_flock l_flock ; struct ldlm_inodebits l_inodebits ; }; typedef union __anonunion_ldlm_policy_data_t_390 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 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; 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 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 * ) ; }; struct lustre_client_ocd { __u64 lco_flags ; struct mutex lco_lock ; struct obd_export *lco_md_exp ; struct obd_export *lco_dt_exp ; }; struct disk_stats { unsigned long sectors[2U] ; unsigned long ios[2U] ; unsigned long merges[2U] ; unsigned long ticks[2U] ; unsigned long io_ticks ; unsigned long time_in_queue ; }; struct partition_meta_info { char uuid[37U] ; u8 volname[64U] ; }; struct hd_struct { sector_t start_sect ; sector_t nr_sects ; seqcount_t nr_sects_seq ; sector_t alignment_offset ; unsigned int discard_alignment ; struct device __dev ; struct kobject *holder_dir ; int policy ; int partno ; struct partition_meta_info *info ; int make_it_fail ; unsigned long stamp ; atomic_t in_flight[2U] ; struct disk_stats *dkstats ; atomic_t ref ; struct callback_head callback_head ; }; struct disk_part_tbl { struct callback_head callback_head ; int len ; struct hd_struct *last_lookup ; struct hd_struct *part[] ; }; struct disk_events; struct timer_rand_state; struct blk_integrity; struct gendisk { int major ; int first_minor ; int minors ; char disk_name[32U] ; char *(*devnode)(struct gendisk * , umode_t * ) ; unsigned int events ; unsigned int async_events ; struct disk_part_tbl *part_tbl ; struct hd_struct part0 ; struct block_device_operations const *fops ; struct request_queue *queue ; void *private_data ; int flags ; struct device *driverfs_dev ; struct kobject *slave_dir ; struct timer_rand_state *random ; atomic_t sync_io ; struct disk_events *ev ; struct blk_integrity *integrity ; int node_id ; }; struct fprop_local_percpu { struct percpu_counter events ; unsigned int period ; raw_spinlock_t lock ; }; typedef int congested_fn(void * , int ); struct bdi_writeback_congested { unsigned long state ; atomic_t refcnt ; struct backing_dev_info *bdi ; int blkcg_id ; struct rb_node rb_node ; }; union __anonunion____missing_field_name_397 { struct work_struct release_work ; struct callback_head rcu ; }; struct bdi_writeback { struct backing_dev_info *bdi ; unsigned long state ; unsigned long last_old_flush ; struct list_head b_dirty ; struct list_head b_io ; struct list_head b_more_io ; struct list_head b_dirty_time ; spinlock_t list_lock ; struct percpu_counter stat[4U] ; struct bdi_writeback_congested *congested ; unsigned long bw_time_stamp ; unsigned long dirtied_stamp ; unsigned long written_stamp ; unsigned long write_bandwidth ; unsigned long avg_write_bandwidth ; unsigned long dirty_ratelimit ; unsigned long balanced_dirty_ratelimit ; struct fprop_local_percpu completions ; int dirty_exceeded ; spinlock_t work_lock ; struct list_head work_list ; struct delayed_work dwork ; struct percpu_ref refcnt ; struct fprop_local_percpu memcg_completions ; struct cgroup_subsys_state *memcg_css ; struct cgroup_subsys_state *blkcg_css ; struct list_head memcg_node ; struct list_head blkcg_node ; union __anonunion____missing_field_name_397 __annonCompField116 ; }; struct backing_dev_info { struct list_head bdi_list ; unsigned long ra_pages ; unsigned int capabilities ; congested_fn *congested_fn ; void *congested_data ; char *name ; unsigned int min_ratio ; unsigned int max_ratio ; unsigned int max_prop_frac ; atomic_long_t tot_write_bandwidth ; struct bdi_writeback wb ; struct radix_tree_root cgwb_tree ; struct rb_root cgwb_congested_tree ; atomic_t usage_cnt ; wait_queue_head_t wb_waitq ; struct device *dev ; struct timer_list laptop_mode_wb_timer ; struct dentry *debug_dir ; struct dentry *debug_stats ; }; typedef void *mempool_alloc_t(gfp_t , void * ); typedef void mempool_free_t(void * , void * ); struct mempool_s { spinlock_t lock ; int min_nr ; int curr_nr ; void **elements ; void *pool_data ; mempool_alloc_t *alloc ; mempool_free_t *free ; wait_queue_head_t wait ; }; typedef struct mempool_s mempool_t; union __anonunion____missing_field_name_398 { struct list_head q_node ; struct kmem_cache *__rcu_icq_cache ; }; union __anonunion____missing_field_name_399 { struct hlist_node ioc_node ; struct callback_head __rcu_head ; }; struct io_cq { struct request_queue *q ; struct io_context *ioc ; union __anonunion____missing_field_name_398 __annonCompField117 ; union __anonunion____missing_field_name_399 __annonCompField118 ; unsigned int flags ; }; struct io_context { atomic_long_t refcount ; atomic_t active_ref ; atomic_t nr_tasks ; spinlock_t lock ; unsigned short ioprio ; int nr_batch_requests ; unsigned long last_waited ; struct radix_tree_root icq_tree ; struct io_cq *icq_hint ; struct hlist_head icq_list ; struct work_struct release_work ; }; struct bio_integrity_payload { struct bio *bip_bio ; struct bvec_iter bip_iter ; bio_end_io_t *bip_end_io ; unsigned short bip_slab ; unsigned short bip_vcnt ; unsigned short bip_max_vcnt ; unsigned short bip_flags ; struct work_struct bip_work ; struct bio_vec *bip_vec ; struct bio_vec bip_inline_vecs[0U] ; }; struct bio_list { struct bio *head ; struct bio *tail ; }; struct bio_set { struct kmem_cache *bio_slab ; unsigned int front_pad ; mempool_t *bio_pool ; mempool_t *bvec_pool ; mempool_t *bio_integrity_pool ; mempool_t *bvec_integrity_pool ; spinlock_t rescue_lock ; struct bio_list rescue_list ; struct work_struct rescue_work ; struct workqueue_struct *rescue_workqueue ; }; struct bsg_class_device { struct device *class_dev ; struct device *parent ; int minor ; struct request_queue *queue ; struct kref ref ; void (*release)(struct device * ) ; }; struct elevator_queue; struct blk_trace; struct request; struct bsg_job; struct blkcg_gq; struct blk_flush_queue; typedef void rq_end_io_fn(struct request * , int ); struct request_list { struct request_queue *q ; struct blkcg_gq *blkg ; int count[2U] ; int starved[2U] ; mempool_t *rq_pool ; wait_queue_head_t wait[2U] ; unsigned int flags ; }; union __anonunion____missing_field_name_400 { struct call_single_data csd ; unsigned long fifo_time ; }; struct blk_mq_ctx; union __anonunion____missing_field_name_401 { struct hlist_node hash ; struct list_head ipi_list ; }; union __anonunion____missing_field_name_402 { struct rb_node rb_node ; void *completion_data ; }; struct __anonstruct_elv_404 { struct io_cq *icq ; void *priv[2U] ; }; struct __anonstruct_flush_405 { unsigned int seq ; struct list_head list ; rq_end_io_fn *saved_end_io ; }; union __anonunion____missing_field_name_403 { struct __anonstruct_elv_404 elv ; struct __anonstruct_flush_405 flush ; }; struct request { struct list_head queuelist ; union __anonunion____missing_field_name_400 __annonCompField119 ; struct request_queue *q ; struct blk_mq_ctx *mq_ctx ; u64 cmd_flags ; unsigned int cmd_type ; unsigned long atomic_flags ; int cpu ; unsigned int __data_len ; sector_t __sector ; struct bio *bio ; struct bio *biotail ; union __anonunion____missing_field_name_401 __annonCompField120 ; union __anonunion____missing_field_name_402 __annonCompField121 ; union __anonunion____missing_field_name_403 __annonCompField122 ; struct gendisk *rq_disk ; struct hd_struct *part ; unsigned long start_time ; struct request_list *rl ; unsigned long long start_time_ns ; unsigned long long io_start_time_ns ; unsigned short nr_phys_segments ; unsigned short nr_integrity_segments ; unsigned short ioprio ; void *special ; int tag ; int errors ; unsigned char __cmd[16U] ; unsigned char *cmd ; unsigned short cmd_len ; unsigned int extra_len ; unsigned int sense_len ; unsigned int resid_len ; void *sense ; unsigned long deadline ; struct list_head timeout_list ; unsigned int timeout ; int retries ; rq_end_io_fn *end_io ; void *end_io_data ; struct request *next_rq ; }; struct elevator_type; typedef int elevator_merge_fn(struct request_queue * , struct request ** , struct bio * ); typedef void elevator_merge_req_fn(struct request_queue * , struct request * , struct request * ); typedef void elevator_merged_fn(struct request_queue * , struct request * , int ); typedef int elevator_allow_merge_fn(struct request_queue * , struct request * , struct bio * ); typedef void elevator_bio_merged_fn(struct request_queue * , struct request * , struct bio * ); typedef int elevator_dispatch_fn(struct request_queue * , int ); typedef void elevator_add_req_fn(struct request_queue * , struct request * ); typedef struct request *elevator_request_list_fn(struct request_queue * , struct request * ); typedef void elevator_completed_req_fn(struct request_queue * , struct request * ); typedef int elevator_may_queue_fn(struct request_queue * , int ); typedef void elevator_init_icq_fn(struct io_cq * ); typedef void elevator_exit_icq_fn(struct io_cq * ); typedef int elevator_set_req_fn(struct request_queue * , struct request * , struct bio * , gfp_t ); typedef void elevator_put_req_fn(struct request * ); typedef void elevator_activate_req_fn(struct request_queue * , struct request * ); typedef void elevator_deactivate_req_fn(struct request_queue * , struct request * ); typedef int elevator_init_fn(struct request_queue * , struct elevator_type * ); typedef void elevator_exit_fn(struct elevator_queue * ); typedef void elevator_registered_fn(struct request_queue * ); struct elevator_ops { elevator_merge_fn *elevator_merge_fn ; elevator_merged_fn *elevator_merged_fn ; elevator_merge_req_fn *elevator_merge_req_fn ; elevator_allow_merge_fn *elevator_allow_merge_fn ; elevator_bio_merged_fn *elevator_bio_merged_fn ; elevator_dispatch_fn *elevator_dispatch_fn ; elevator_add_req_fn *elevator_add_req_fn ; elevator_activate_req_fn *elevator_activate_req_fn ; elevator_deactivate_req_fn *elevator_deactivate_req_fn ; elevator_completed_req_fn *elevator_completed_req_fn ; elevator_request_list_fn *elevator_former_req_fn ; elevator_request_list_fn *elevator_latter_req_fn ; elevator_init_icq_fn *elevator_init_icq_fn ; elevator_exit_icq_fn *elevator_exit_icq_fn ; elevator_set_req_fn *elevator_set_req_fn ; elevator_put_req_fn *elevator_put_req_fn ; elevator_may_queue_fn *elevator_may_queue_fn ; elevator_init_fn *elevator_init_fn ; elevator_exit_fn *elevator_exit_fn ; elevator_registered_fn *elevator_registered_fn ; }; struct elv_fs_entry { struct attribute attr ; ssize_t (*show)(struct elevator_queue * , char * ) ; ssize_t (*store)(struct elevator_queue * , char const * , size_t ) ; }; struct elevator_type { struct kmem_cache *icq_cache ; struct elevator_ops ops ; size_t icq_size ; size_t icq_align ; struct elv_fs_entry *elevator_attrs ; char elevator_name[16U] ; struct module *elevator_owner ; char icq_cache_name[21U] ; struct list_head list ; }; struct elevator_queue { struct elevator_type *type ; void *elevator_data ; struct kobject kobj ; struct mutex sysfs_lock ; unsigned char registered : 1 ; struct hlist_head hash[64U] ; }; typedef void request_fn_proc(struct request_queue * ); typedef void make_request_fn(struct request_queue * , struct bio * ); typedef int prep_rq_fn(struct request_queue * , struct request * ); typedef void unprep_rq_fn(struct request_queue * , struct request * ); struct bvec_merge_data { struct block_device *bi_bdev ; sector_t bi_sector ; unsigned int bi_size ; unsigned long bi_rw ; }; typedef int merge_bvec_fn(struct request_queue * , struct bvec_merge_data * , struct bio_vec * ); typedef void softirq_done_fn(struct request * ); typedef int dma_drain_needed_fn(struct request * ); typedef int lld_busy_fn(struct request_queue * ); typedef int bsg_job_fn(struct bsg_job * ); enum blk_eh_timer_return { BLK_EH_NOT_HANDLED = 0, BLK_EH_HANDLED = 1, BLK_EH_RESET_TIMER = 2 } ; typedef enum blk_eh_timer_return rq_timed_out_fn(struct request * ); struct blk_queue_tag { struct request **tag_index ; unsigned long *tag_map ; int busy ; int max_depth ; int real_max_depth ; atomic_t refcnt ; int alloc_policy ; int next_tag ; }; struct queue_limits { unsigned long bounce_pfn ; unsigned long seg_boundary_mask ; unsigned int max_hw_sectors ; unsigned int chunk_sectors ; unsigned int max_sectors ; unsigned int max_segment_size ; unsigned int physical_block_size ; unsigned int alignment_offset ; unsigned int io_min ; unsigned int io_opt ; unsigned int max_discard_sectors ; unsigned int max_write_same_sectors ; unsigned int discard_granularity ; unsigned int discard_alignment ; unsigned short logical_block_size ; unsigned short max_segments ; unsigned short max_integrity_segments ; unsigned char misaligned ; unsigned char discard_misaligned ; unsigned char cluster ; unsigned char discard_zeroes_data ; unsigned char raid_partial_stripes_expensive ; }; struct blk_mq_ops; struct blk_mq_hw_ctx; struct throtl_data; struct blk_mq_tag_set; struct request_queue { struct list_head queue_head ; struct request *last_merge ; struct elevator_queue *elevator ; int nr_rqs[2U] ; int nr_rqs_elvpriv ; struct request_list root_rl ; request_fn_proc *request_fn ; make_request_fn *make_request_fn ; prep_rq_fn *prep_rq_fn ; unprep_rq_fn *unprep_rq_fn ; merge_bvec_fn *merge_bvec_fn ; softirq_done_fn *softirq_done_fn ; rq_timed_out_fn *rq_timed_out_fn ; dma_drain_needed_fn *dma_drain_needed ; lld_busy_fn *lld_busy_fn ; struct blk_mq_ops *mq_ops ; unsigned int *mq_map ; struct blk_mq_ctx *queue_ctx ; unsigned int nr_queues ; struct blk_mq_hw_ctx **queue_hw_ctx ; unsigned int nr_hw_queues ; sector_t end_sector ; struct request *boundary_rq ; struct delayed_work delay_work ; struct backing_dev_info backing_dev_info ; void *queuedata ; unsigned long queue_flags ; int id ; gfp_t bounce_gfp ; spinlock_t __queue_lock ; spinlock_t *queue_lock ; struct kobject kobj ; struct kobject mq_kobj ; struct device *dev ; int rpm_status ; unsigned int nr_pending ; unsigned long nr_requests ; unsigned int nr_congestion_on ; unsigned int nr_congestion_off ; unsigned int nr_batching ; unsigned int dma_drain_size ; void *dma_drain_buffer ; unsigned int dma_pad_mask ; unsigned int dma_alignment ; struct blk_queue_tag *queue_tags ; struct list_head tag_busy_list ; unsigned int nr_sorted ; unsigned int in_flight[2U] ; unsigned int request_fn_active ; unsigned int rq_timeout ; struct timer_list timeout ; struct list_head timeout_list ; struct list_head icq_list ; unsigned long blkcg_pols[1U] ; struct blkcg_gq *root_blkg ; struct list_head blkg_list ; struct queue_limits limits ; unsigned int sg_timeout ; unsigned int sg_reserved_size ; int node ; struct blk_trace *blk_trace ; unsigned int flush_flags ; unsigned char flush_not_queueable : 1 ; struct blk_flush_queue *fq ; struct list_head requeue_list ; spinlock_t requeue_lock ; struct work_struct requeue_work ; struct mutex sysfs_lock ; int bypass_depth ; atomic_t mq_freeze_depth ; bsg_job_fn *bsg_job_fn ; int bsg_job_size ; struct bsg_class_device bsg_dev ; struct throtl_data *td ; struct callback_head callback_head ; wait_queue_head_t mq_freeze_wq ; struct percpu_ref mq_usage_counter ; struct list_head all_q_node ; struct blk_mq_tag_set *tag_set ; struct list_head tag_set_list ; }; struct blk_plug { struct list_head list ; struct list_head mq_list ; struct list_head cb_list ; }; struct blk_integrity_iter { void *prot_buf ; void *data_buf ; sector_t seed ; unsigned int data_size ; unsigned short interval ; char const *disk_name ; }; typedef int integrity_processing_fn(struct blk_integrity_iter * ); struct blk_integrity { integrity_processing_fn *generate_fn ; integrity_processing_fn *verify_fn ; unsigned short flags ; unsigned short tuple_size ; unsigned short interval ; unsigned short tag_size ; char const *name ; struct kobject kobj ; }; struct block_device_operations { int (*open)(struct block_device * , fmode_t ) ; void (*release)(struct gendisk * , fmode_t ) ; int (*rw_page)(struct block_device * , sector_t , struct page * , int ) ; int (*ioctl)(struct block_device * , fmode_t , unsigned int , unsigned long ) ; int (*compat_ioctl)(struct block_device * , fmode_t , unsigned int , unsigned long ) ; long (*direct_access)(struct block_device * , sector_t , void ** , unsigned long * , long ) ; unsigned int (*check_events)(struct gendisk * , unsigned int ) ; int (*media_changed)(struct gendisk * ) ; void (*unlock_native_capacity)(struct gendisk * ) ; int (*revalidate_disk)(struct gendisk * ) ; int (*getgeo)(struct block_device * , struct hd_geometry * ) ; void (*swap_slot_free_notify)(struct block_device * , unsigned long ) ; struct module *owner ; }; enum writeback_sync_modes { WB_SYNC_NONE = 0, WB_SYNC_ALL = 1 } ; struct writeback_control { long nr_to_write ; long pages_skipped ; loff_t range_start ; loff_t range_end ; enum writeback_sync_modes sync_mode ; unsigned char for_kupdate : 1 ; unsigned char for_background : 1 ; unsigned char tagged_writepages : 1 ; unsigned char for_reclaim : 1 ; unsigned char range_cyclic : 1 ; unsigned char for_sync : 1 ; struct bdi_writeback *wb ; struct inode *inode ; int wb_id ; int wb_lcand_id ; int wb_tcand_id ; size_t wb_bytes ; size_t wb_lcand_bytes ; size_t wb_tcand_bytes ; }; struct blkcg_policy_data; struct blkcg { struct cgroup_subsys_state css ; spinlock_t lock ; struct radix_tree_root blkg_tree ; struct blkcg_gq *blkg_hint ; struct hlist_head blkg_list ; struct blkcg_policy_data *pd[2U] ; struct list_head cgwb_list ; }; struct blkg_policy_data { struct blkcg_gq *blkg ; int plid ; struct list_head alloc_node ; }; struct blkcg_policy_data { int plid ; struct list_head alloc_node ; }; struct blkcg_gq { struct request_queue *q ; struct list_head q_node ; struct hlist_node blkcg_node ; struct blkcg *blkcg ; struct bdi_writeback_congested *wb_congested ; struct blkcg_gq *parent ; struct request_list rl ; atomic_t refcnt ; bool online ; struct blkg_policy_data *pd[2U] ; struct callback_head callback_head ; }; struct lustre_mount_data { __u32 lmd_magic ; __u32 lmd_flags ; int lmd_mgs_failnodes ; int lmd_exclude_count ; int lmd_recovery_time_soft ; int lmd_recovery_time_hard ; char *lmd_dev ; char *lmd_profile ; char *lmd_mgssec ; char *lmd_opts ; char *lmd_params ; __u32 *lmd_exclude ; char *lmd_mgs ; char *lmd_osd_type ; }; struct lsd_client_data { __u8 lcd_uuid[40U] ; __u64 lcd_last_transno ; __u64 lcd_last_xid ; __u32 lcd_last_result ; __u32 lcd_last_data ; __u64 lcd_last_close_transno ; __u64 lcd_last_close_xid ; __u32 lcd_last_close_result ; __u32 lcd_last_close_data ; __u64 lcd_pre_versions[4U] ; __u32 lcd_last_epoch ; __u32 lcd_first_epoch ; __u8 lcd_padding[0U] ; }; struct ll_sb_info; struct lustre_sb_info { int lsi_flags ; struct obd_device *lsi_mgc ; struct lustre_mount_data *lsi_lmd ; struct ll_sb_info *lsi_llsbi ; struct dt_device *lsi_dt_dev ; struct vfsmount *lsi_srv_mnt ; atomic_t lsi_mounts ; char lsi_svname[64U] ; char lsi_osd_obdname[64U] ; char lsi_osd_uuid[64U] ; struct obd_export *lsi_osd_exp ; char lsi_osd_type[16U] ; char lsi_fstype[16U] ; struct backing_dev_info lsi_bdi ; }; union __anonunion____missing_field_name_407 { kuid_t e_uid ; kgid_t e_gid ; }; struct posix_acl_entry { short e_tag ; unsigned short e_perm ; union __anonunion____missing_field_name_407 __annonCompField123 ; }; union __anonunion____missing_field_name_408 { atomic_t a_refcount ; struct callback_head a_rcu ; }; struct posix_acl { union __anonunion____missing_field_name_408 __annonCompField124 ; unsigned int a_count ; struct posix_acl_entry a_entries[0U] ; }; struct cl_device; struct cl_device_operations; struct cl_page; struct cl_lock; 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_413 { struct lustre_md *coc_md ; struct lov_oinfo *coc_oinfo ; }; struct cl_object_conf { struct lu_object_conf coc_lu ; union __anonunion_u_413 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 ; }; 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 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 { 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_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_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_417 { 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_417 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_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_sync_io { atomic_t csi_sync_nr ; int csi_sync_rc ; atomic_t csi_barrier ; wait_queue_head_t csi_waitq ; }; struct ll_file_data; struct ccc_grouplock { struct lu_env *cg_env ; struct cl_io *cg_io ; struct cl_lock *cg_lock ; unsigned long cg_gid ; }; 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 mdc_rpc_lock { struct mutex rpcl_mutex ; struct lookup_intent *rpcl_it ; int rpcl_fakes ; }; struct ll_dentry_data { struct lookup_intent *lld_it ; unsigned int lld_sa_generation ; unsigned char lld_invalid : 1 ; struct callback_head lld_rcu_head ; }; struct ll_statahead_info; struct __anonstruct_d_421 { struct mutex d_readdir_mutex ; void *d_opendir_key ; struct ll_statahead_info *d_sai ; spinlock_t d_sa_lock ; pid_t d_opendir_pid ; }; struct __anonstruct_f_422 { struct mutex f_size_mutex ; char *f_symlink_name ; __u64 f_maxbytes ; struct rw_semaphore f_trunc_sem ; struct mutex f_write_mutex ; struct rw_semaphore f_glimpse_sem ; unsigned long f_glimpse_time ; struct list_head f_agl_list ; __u64 f_agl_index ; int f_async_rc ; char f_jobid[32U] ; }; union __anonunion_u_420 { struct __anonstruct_d_421 d ; struct __anonstruct_f_422 f ; }; struct ll_inode_info { __u32 lli_inode_magic ; __u32 lli_flags ; __u64 lli_ioepoch ; spinlock_t lli_lock ; struct posix_acl *lli_posix_acl ; struct hlist_head *lli_remote_perms ; struct mutex lli_rmtperm_mutex ; struct lu_fid lli_fid ; struct lu_fid lli_pfid ; struct list_head lli_close_list ; struct list_head lli_oss_capas ; atomic_t lli_open_count ; struct obd_capa *lli_mds_capa ; unsigned long lli_rmtperm_time ; struct obd_client_handle *lli_pending_och ; struct obd_client_handle *lli_mds_read_och ; struct obd_client_handle *lli_mds_write_och ; struct obd_client_handle *lli_mds_exec_och ; __u64 lli_open_fd_read_count ; __u64 lli_open_fd_write_count ; __u64 lli_open_fd_exec_count ; struct mutex lli_och_mutex ; struct inode lli_vfs_inode ; struct ost_lvb lli_lvb ; spinlock_t lli_agl_lock ; union __anonunion_u_420 u ; bool lli_has_smd ; struct cl_object *lli_clob ; struct mutex lli_layout_mutex ; __u32 lli_layout_gen ; spinlock_t lli_layout_lock ; struct rw_semaphore lli_xattrs_list_rwsem ; struct mutex lli_xattrs_enq_lock ; struct list_head lli_xattrs ; }; struct ll_ra_info { atomic_t ra_cur_pages ; unsigned long ra_max_pages ; unsigned long ra_max_pages_per_file ; unsigned long ra_max_read_ahead_whole_pages ; }; struct per_process_info { pid_t pid ; struct obd_histogram pp_r_hist ; struct obd_histogram pp_w_hist ; }; struct ll_rw_extents_info { struct per_process_info pp_extents[11U] ; }; struct ll_rw_process_info { pid_t rw_pid ; int rw_op ; loff_t rw_range_start ; loff_t rw_range_end ; loff_t rw_last_file_pos ; loff_t rw_offset ; size_t rw_smallest_extent ; size_t rw_largest_extent ; struct ll_file_data *rw_last_file ; }; enum stats_track_type { STATS_TRACK_ALL = 0, STATS_TRACK_PID = 1, STATS_TRACK_PPID = 2, STATS_TRACK_GID = 3, STATS_TRACK_LAST = 4 } ; struct rmtacl_ctl_table { spinlock_t rct_lock ; struct list_head rct_entries[32U] ; }; struct eacl_table { spinlock_t et_lock ; struct list_head et_entries[32U] ; }; struct ll_close_queue; struct ll_sb_info { struct list_head ll_list ; spinlock_t ll_lock ; spinlock_t ll_pp_extent_lock ; spinlock_t ll_process_lock ; struct obd_uuid ll_sb_uuid ; struct obd_export *ll_md_exp ; struct obd_export *ll_dt_exp ; struct dentry *ll_debugfs_entry ; struct lu_fid ll_root_fid ; int ll_flags ; unsigned char ll_umounting : 1 ; unsigned char ll_xattr_cache_enabled : 1 ; struct list_head ll_conn_chain ; struct lustre_client_ocd ll_lco ; struct list_head ll_orphan_dentry_list ; struct ll_close_queue *ll_lcq ; struct lprocfs_stats *ll_stats ; struct cl_client_cache ll_cache ; struct lprocfs_stats *ll_ra_stats ; struct ll_ra_info ll_ra_info ; unsigned int ll_namelen ; struct file_operations *ll_fop ; unsigned int ll_md_brw_size ; struct lu_site *ll_site ; struct cl_device *ll_cl ; struct ll_rw_extents_info ll_rw_extents_info ; int ll_extent_process_count ; struct ll_rw_process_info ll_rw_process_info[10U] ; unsigned int ll_offset_process_count ; struct ll_rw_process_info ll_rw_offset_info[100U] ; unsigned int ll_rw_offset_entry_count ; int ll_stats_track_id ; enum stats_track_type ll_stats_track_type ; int ll_rw_stats_on ; unsigned int ll_sa_max ; atomic_t ll_sa_total ; atomic_t ll_sa_wrong ; atomic_t ll_agl_total ; dev_t ll_sdev_orig ; struct rmtacl_ctl_table ll_rct ; struct eacl_table ll_et ; __kernel_fsid_t ll_fsid ; struct kobject ll_kobj ; struct super_block *ll_sb ; struct completion ll_kobj_unregister ; }; struct ll_readahead_state { spinlock_t ras_lock ; unsigned long ras_last_readpage ; unsigned long ras_consecutive_pages ; unsigned long ras_consecutive_requests ; unsigned long ras_window_start ; unsigned long ras_window_len ; unsigned long ras_next_readahead ; unsigned long ras_requests ; unsigned long ras_request_index ; struct list_head ras_read_beads ; unsigned long ras_stride_length ; unsigned long ras_stride_pages ; unsigned long ras_stride_offset ; unsigned long ras_consecutive_stride_requests ; }; struct ll_file_data { struct ll_readahead_state fd_ras ; struct ccc_grouplock fd_grouplock ; __u64 lfd_pos ; __u32 fd_flags ; fmode_t fd_omode ; struct obd_client_handle *fd_lease_och ; struct obd_client_handle *fd_och ; struct file *fd_file ; bool fd_write_failed ; }; struct ll_close_queue { spinlock_t lcq_lock ; struct list_head lcq_head ; wait_queue_head_t lcq_waitq ; struct completion lcq_comp ; atomic_t lcq_stop ; }; struct ll_statahead_info { struct inode *sai_inode ; atomic_t sai_refcount ; unsigned int sai_generation ; unsigned int sai_max ; __u64 sai_sent ; __u64 sai_replied ; __u64 sai_index ; __u64 sai_index_wait ; __u64 sai_hit ; __u64 sai_miss ; unsigned int sai_consecutive_miss ; unsigned int sai_miss_hidden ; unsigned int sai_skip_hidden ; unsigned char sai_ls_all : 1 ; unsigned char sai_agl_valid : 1 ; wait_queue_head_t sai_waitq ; struct ptlrpc_thread sai_thread ; struct ptlrpc_thread sai_agl_thread ; struct list_head sai_entries ; struct list_head sai_entries_received ; struct list_head sai_entries_stated ; struct list_head sai_entries_agl ; struct list_head sai_cache[32U] ; spinlock_t sai_cache_lock[32U] ; atomic_t sai_cache_count ; }; struct tss_struct; struct stat { __kernel_ulong_t st_dev ; __kernel_ulong_t st_ino ; __kernel_ulong_t st_nlink ; unsigned int st_mode ; unsigned int st_uid ; unsigned int st_gid ; unsigned int __pad0 ; __kernel_ulong_t st_rdev ; __kernel_long_t st_size ; __kernel_long_t st_blksize ; __kernel_long_t st_blocks ; __kernel_ulong_t st_atime ; __kernel_ulong_t st_atime_nsec ; __kernel_ulong_t st_mtime ; __kernel_ulong_t st_mtime_nsec ; __kernel_ulong_t st_ctime ; __kernel_ulong_t st_ctime_nsec ; __kernel_long_t __unused[3U] ; }; struct x86_hw_tss { u32 reserved1 ; u64 sp0 ; u64 sp1 ; u64 sp2 ; u64 reserved2 ; u64 ist[7U] ; u32 reserved3 ; u32 reserved4 ; u16 reserved5 ; u16 io_bitmap_base ; }; struct tss_struct { struct x86_hw_tss x86_tss ; unsigned long io_bitmap[1025U] ; unsigned long SYSENTER_stack[64U] ; }; struct __anonstruct_mm_segment_t_33 { unsigned long seg ; }; typedef struct __anonstruct_mm_segment_t_33 mm_segment_t; struct thread_info { struct task_struct *task ; __u32 flags ; __u32 status ; __u32 cpu ; int saved_preempt_count ; mm_segment_t addr_limit ; void *sysenter_return ; unsigned char sig_on_uaccess_error : 1 ; unsigned char uaccess_err : 1 ; }; enum hrtimer_restart; typedef int filler_t(void * , struct page * ); typedef struct stat lstat_t; typedef struct lu_fid lustre_fid; 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 lov_user_mds_data_v1 { lstat_t lmd_st ; struct lov_user_md_v1 lmd_lmm ; }; struct lmv_user_mds_data { struct lu_fid lum_fid ; __u32 lum_padding ; __u32 lum_mds ; }; struct lmv_user_md_v1 { __u32 lum_magic ; __u32 lum_stripe_count ; __u32 lum_stripe_offset ; __u32 lum_hash_type ; __u32 lum_type ; __u32 lum_padding1 ; __u32 lum_padding2 ; __u32 lum_padding3 ; char lum_pool_name[16U] ; struct lmv_user_mds_data lum_objects[0U] ; }; struct if_quotacheck { char obd_type[16U] ; struct obd_uuid obd_uuid ; }; struct if_quotactl { __u32 qc_cmd ; __u32 qc_type ; __u32 qc_id ; __u32 qc_stat ; __u32 qc_valid ; __u32 qc_idx ; struct obd_dqinfo qc_dqinfo ; struct obd_dqblk qc_dqblk ; char obd_type[16U] ; struct obd_uuid obd_uuid ; }; struct hsm_extent { __u64 offset ; __u64 length ; }; struct hsm_request { __u32 hr_action ; __u32 hr_archive_id ; __u64 hr_flags ; __u32 hr_itemcount ; __u32 hr_data_len ; }; struct hsm_user_item { lustre_fid hui_fid ; struct hsm_extent hui_extent ; }; struct hsm_user_request { struct hsm_request hur_request ; struct hsm_user_item hur_user_item[0U] ; }; struct hsm_action_item { __u32 hai_len ; __u32 hai_action ; lustre_fid hai_fid ; lustre_fid hai_dfid ; struct hsm_extent hai_extent ; __u64 hai_cookie ; __u64 hai_gid ; char hai_data[0U] ; }; struct hsm_progress { lustre_fid hp_fid ; __u64 hp_cookie ; struct hsm_extent hp_extent ; __u16 hp_flags ; __u16 hp_errval ; __u32 padding ; }; struct hsm_copy { __u64 hc_data_version ; __u16 hc_flags ; __u16 hc_errval ; __u32 padding ; struct hsm_action_item hc_hai ; }; struct lu_dirent { struct lu_fid lde_fid ; __u64 lde_hash ; __u16 lde_reclen ; __u16 lde_namelen ; __u32 lde_attrs ; char lde_name[0U] ; }; struct lu_dirpage { __u64 ldp_hash_start ; __u64 ldp_hash_end ; __u32 ldp_flags ; __u32 ldp_pad0 ; struct lu_dirent ldp_entries[0U] ; }; struct mgs_send_param { char mgs_param[1024U] ; }; struct hsm_progress_kernel { lustre_fid hpk_fid ; __u64 hpk_cookie ; struct hsm_extent hpk_extent ; __u16 hpk_flags ; __u16 hpk_errval ; __u32 hpk_padding1 ; __u64 hpk_data_version ; __u64 hpk_padding2 ; }; union __anonunion____missing_field_name_387 { __u64 ioc_cookie ; __u64 ioc_u64_1 ; }; union __anonunion____missing_field_name_388 { __u32 ioc_conn1 ; __u32 ioc_u32_1 ; }; union __anonunion____missing_field_name_389 { __u32 ioc_conn2 ; __u32 ioc_u32_2 ; }; struct obd_ioctl_data { __u32 ioc_len ; __u32 ioc_version ; union __anonunion____missing_field_name_387 __annonCompField113 ; union __anonunion____missing_field_name_388 __annonCompField114 ; union __anonunion____missing_field_name_389 __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 ll_dir_chain { }; enum hrtimer_restart; struct lu_context_key; struct cl_io_slice; struct cl_page_slice; 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 ll_recreate_obj { __u64 lrc_id ; __u32 lrc_ost_idx ; }; struct lustre_swap_layouts { __u64 sl_flags ; __u32 sl_fd ; __u32 sl_gid ; __u64 sl_dv1 ; __u64 sl_dv2 ; }; struct ioc_data_version { __u64 idv_version ; __u64 idv_flags ; }; struct hsm_user_state { __u32 hus_states ; __u32 hus_archive_id ; __u32 hus_in_progress_state ; __u32 hus_in_progress_action ; struct hsm_extent hus_in_progress_location ; char hus_extended_info[] ; }; struct hsm_current_action { __u32 hca_state ; __u32 hca_action ; struct hsm_extent hca_location ; }; struct hsm_user_import { __u64 hui_size ; __u64 hui_atime ; __u64 hui_mtime ; __u32 hui_atime_ns ; __u32 hui_mtime_ns ; __u32 hui_uid ; __u32 hui_gid ; __u32 hui_mode ; __u32 hui_archive_id ; }; struct hsm_state_set { __u32 hss_valid ; __u32 hss_archive_id ; __u64 hss_setmask ; __u64 hss_clearmask ; }; struct ll_fiemap_info_key { char name[8U] ; struct obdo oa ; struct ll_user_fiemap fiemap ; }; struct getinfo_fid2path { struct lu_fid gf_fid ; __u64 gf_recno ; __u32 gf_linkno ; __u32 gf_pathlen ; char gf_path[0U] ; }; struct mdc_swap_layouts { __u64 msl_flags ; }; 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 ll_iattr { struct iattr iattr ; unsigned int ia_attr_flags ; }; struct cl_page_operations; 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 ; }; struct __anonstruct_io_414 { 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_414 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_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_415 { 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_416 { 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_415 op[6U] ; struct __anonstruct_req_op_416 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_io_lock_link { struct list_head cill_linkage ; struct cl_lock_descr cill_descr ; struct cl_lock *cill_lock ; void (*cill_fini)(struct lu_env const * , struct cl_io_lock_link * ) ; }; struct cl_env_nest { int cen_refcheck ; void *cen_cookie ; }; enum ccc_setattr_lock_type { SETATTR_NOLOCK = 0, SETATTR_EXTENT_LOCK = 1, SETATTR_MATCH_LOCK = 2 } ; struct __anonstruct_setattr_419 { enum ccc_setattr_lock_type cui_local_lock ; }; union __anonunion_u_418 { struct __anonstruct_setattr_419 setattr ; }; struct ccc_io { struct cl_io_slice cui_cl ; struct cl_io_lock_link cui_link ; struct iov_iter *cui_iter ; size_t cui_tot_count ; union __anonunion_u_418 u ; int cui_glimpse ; __u32 cui_layout_gen ; struct ll_file_data *cui_fd ; struct kiocb *cui_iocb ; }; struct ccc_thread_info { struct cl_lock_descr cti_descr ; struct cl_io cti_io ; struct cl_attr cti_attr ; }; struct ccc_session { struct ccc_io cs_ios ; }; struct ra_io_arg { unsigned long ria_start ; unsigned long ria_end ; unsigned long ria_stoff ; unsigned long ria_length ; unsigned long ria_pages ; }; struct ll_ra_read { unsigned long lrr_start ; unsigned long lrr_count ; struct task_struct *lrr_reader ; struct list_head lrr_linkage ; }; enum vvp_io_subtype { IO_NORMAL = 0, IO_SPLICE = 1 } ; struct vm_fault_api { struct vm_fault *ft_vmf ; unsigned int ft_flags ; bool ft_flags_valid ; }; struct vvp_fault_io { time_t ft_mtime ; struct vm_area_struct *ft_vma ; struct page *ft_vmpage ; struct vm_fault_api fault ; }; struct __anonstruct_splice_424 { struct pipe_inode_info *cui_pipe ; unsigned int cui_flags ; }; union __anonunion_u_423 { struct __anonstruct_splice_424 splice ; struct vvp_fault_io fault ; }; struct vvp_io { enum vvp_io_subtype cui_io_subtype ; union __anonunion_u_423 u ; struct ll_ra_read cui_bead ; int cui_ra_window_set ; }; struct __anonstruct_normal_426 { struct kiocb *via_iocb ; struct iov_iter *via_iter ; }; struct __anonstruct_splice_427 { struct pipe_inode_info *via_pipe ; unsigned int via_flags ; }; union __anonunion_u_425 { struct __anonstruct_normal_426 normal ; struct __anonstruct_splice_427 splice ; }; struct vvp_io_args { enum vvp_io_subtype via_io_subtype ; union __anonunion_u_425 u ; }; struct ll_cl_context { void *lcc_cookie ; struct cl_io *lcc_io ; struct cl_page *lcc_page ; struct lu_env *lcc_env ; int lcc_refcheck ; }; struct vvp_thread_info { struct vvp_io_args vti_args ; struct ra_io_arg vti_ria ; struct ll_cl_context vti_io_ctx ; }; struct vvp_session { struct vvp_io vs_ios ; }; enum llioc_iter { LLIOC_CONT = 0, LLIOC_STOP = 1 } ; struct ll_swap_stack { struct iattr ia1 ; struct iattr ia2 ; __u64 dv1 ; __u64 dv2 ; struct inode *inode1 ; struct inode *inode2 ; bool check_dv1 ; bool check_dv2 ; }; struct llioc_ctl_data { struct rw_semaphore ioc_sem ; struct list_head ioc_head ; }; struct llioc_data { struct list_head iocd_list ; unsigned int iocd_size ; enum llioc_iter (*iocd_cb)(struct inode * , struct file * , unsigned int , unsigned long , void * , int * ) ; unsigned int iocd_count ; unsigned int iocd_cmd[0U] ; }; 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 ; }; enum hrtimer_restart; struct l_wait_info; 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 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 ; }; struct ccc_object { struct cl_object_header cob_header ; struct cl_object cob_cl ; struct inode *cob_inode ; struct list_head cob_pending_list ; int cob_transient_pages ; atomic_t cob_mmap_cnt ; unsigned char cob_discard_page_warned : 1 ; }; struct ccc_page { struct cl_page_slice cpg_cl ; int cpg_defer_uptodate ; int cpg_ra_used ; int cpg_write_queued ; struct list_head cpg_pending_linkage ; struct page *cpg_page ; }; typedef __kernel_ulong_t __kernel_ino_t; typedef __kernel_ino_t ino_t; struct sysinfo { __kernel_long_t uptime ; __kernel_ulong_t loads[3U] ; __kernel_ulong_t totalram ; __kernel_ulong_t freeram ; __kernel_ulong_t sharedram ; __kernel_ulong_t bufferram ; __kernel_ulong_t totalswap ; __kernel_ulong_t freeswap ; __u16 procs ; __u16 pad ; __kernel_ulong_t totalhigh ; __kernel_ulong_t freehigh ; __u32 mem_unit ; char _f[0U] ; }; 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 llog_rec_hdr { __u32 lrh_len ; __u32 lrh_index ; __u32 lrh_type ; __u32 lrh_id ; }; struct llog_rec_tail { __u32 lrt_len ; __u32 lrt_index ; }; struct llog_gen { __u64 mnt_cnt ; __u64 conn_cnt ; }; struct llog_log_hdr { struct llog_rec_hdr llh_hdr ; __s64 llh_timestamp ; __u32 llh_count ; __u32 llh_bitmap_offset ; __u32 llh_size ; __u32 llh_flags ; __u32 llh_cat_idx ; struct obd_uuid llh_tgtuuid ; __u32 llh_reserved[1U] ; __u32 llh_bitmap[2024U] ; struct llog_rec_tail llh_tail ; }; struct lustre_capa_key { __u64 lk_seq ; __u32 lk_keyid ; __u32 lk_padding ; __u8 lk_key[56U] ; }; 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 lu_attr { __u64 la_size ; s64 la_mtime ; s64 la_atime ; s64 la_ctime ; __u64 la_blocks ; __u32 la_mode ; __u32 la_uid ; __u32 la_gid ; __u32 la_flags ; __u32 la_nlink ; __u32 la_blkbits ; __u32 la_blksize ; __u32 la_rdev ; __u64 la_valid ; }; struct lu_buf { void *lb_buf ; ssize_t lb_len ; }; struct llog_operations; struct dt_index_features; struct llog_handle; struct config_llog_instance { char *cfg_obdname ; void *cfg_instance ; struct super_block *cfg_sb ; struct obd_uuid cfg_uuid ; int (*cfg_callback)(struct lu_env const * , struct llog_handle * , struct llog_rec_hdr * , void * ) ; int cfg_last_idx ; int cfg_flags ; }; struct lustre_profile { struct list_head lp_list ; char *lp_profile ; char *lp_dt ; char *lp_md ; }; typedef __u8 class_uuid_t[16U]; struct thandle; enum ldv_42686 { MNTOPT_USERXATTR = 1, MNTOPT_ACL = 2 } ; typedef enum ldv_42686 mntopt_t; struct dt_device_param { unsigned int ddp_max_name_len ; unsigned int ddp_max_nlink ; unsigned int ddp_block_shift ; mntopt_t ddp_mntopts ; unsigned int ddp_max_ea_size ; void *ddp_mnt ; int ddp_mount_type ; unsigned long long ddp_maxbytes ; int ddp_grant_reserved ; short ddp_inodespace ; int ddp_grant_frag ; }; struct dt_txn_commit_cb; struct dt_txn_commit_cb { struct list_head dcb_linkage ; void (*dcb_func)(struct lu_env * , struct thandle * , struct dt_txn_commit_cb * , int ) ; __u32 dcb_magic ; char dcb_name[32U] ; }; struct dt_device_operations { int (*dt_statfs)(struct lu_env const * , struct dt_device * , struct obd_statfs * ) ; struct thandle *(*dt_trans_create)(struct lu_env const * , struct dt_device * ) ; int (*dt_trans_start)(struct lu_env const * , struct dt_device * , struct thandle * ) ; int (*dt_trans_stop)(struct lu_env const * , struct thandle * ) ; int (*dt_trans_cb_add)(struct thandle * , struct dt_txn_commit_cb * ) ; int (*dt_root_get)(struct lu_env const * , struct dt_device * , struct lu_fid * ) ; void (*dt_conf_get)(struct lu_env const * , struct dt_device const * , struct dt_device_param * ) ; int (*dt_sync)(struct lu_env const * , struct dt_device * ) ; int (*dt_ro)(struct lu_env const * , struct dt_device * ) ; int (*dt_commit_async)(struct lu_env const * , struct dt_device * ) ; int (*dt_init_capa_ctxt)(struct lu_env const * , struct dt_device * , int , unsigned long , __u32 , struct lustre_capa_key * ) ; }; struct dt_index_features { __u32 dif_flags ; size_t dif_keysize_min ; size_t dif_keysize_max ; size_t dif_recsize_min ; size_t dif_recsize_max ; size_t dif_ptrsize ; }; struct dt_allocation_hint { struct dt_object *dah_parent ; __u32 dah_mode ; }; enum dt_format_type { DFT_REGULAR = 0, DFT_DIR = 1, DFT_NODE = 2, DFT_INDEX = 3, DFT_SYM = 4 } ; struct dof_regular { int striped ; }; struct dof_dir { }; struct dof_node { }; struct dof_index { struct dt_index_features const *di_feat ; }; union __anonunion_u_407 { struct dof_regular dof_reg ; struct dof_dir dof_dir ; struct dof_node dof_node ; struct dof_index dof_idx ; }; struct dt_object_format { enum dt_format_type dof_type ; union __anonunion_u_407 u ; }; struct dt_object_operations { void (*do_read_lock)(struct lu_env const * , struct dt_object * , unsigned int ) ; void (*do_write_lock)(struct lu_env const * , struct dt_object * , unsigned int ) ; void (*do_read_unlock)(struct lu_env const * , struct dt_object * ) ; void (*do_write_unlock)(struct lu_env const * , struct dt_object * ) ; int (*do_write_locked)(struct lu_env const * , struct dt_object * ) ; int (*do_attr_get)(struct lu_env const * , struct dt_object * , struct lu_attr * , struct lustre_capa * ) ; int (*do_declare_attr_set)(struct lu_env const * , struct dt_object * , struct lu_attr const * , struct thandle * ) ; int (*do_attr_set)(struct lu_env const * , struct dt_object * , struct lu_attr const * , struct thandle * , struct lustre_capa * ) ; int (*do_xattr_get)(struct lu_env const * , struct dt_object * , struct lu_buf * , char const * , struct lustre_capa * ) ; int (*do_declare_xattr_set)(struct lu_env const * , struct dt_object * , struct lu_buf const * , char const * , int , struct thandle * ) ; int (*do_xattr_set)(struct lu_env const * , struct dt_object * , struct lu_buf const * , char const * , int , struct thandle * , struct lustre_capa * ) ; int (*do_declare_xattr_del)(struct lu_env const * , struct dt_object * , char const * , struct thandle * ) ; int (*do_xattr_del)(struct lu_env const * , struct dt_object * , char const * , struct thandle * , struct lustre_capa * ) ; int (*do_xattr_list)(struct lu_env const * , struct dt_object * , struct lu_buf * , struct lustre_capa * ) ; void (*do_ah_init)(struct lu_env const * , struct dt_allocation_hint * , struct dt_object * , struct dt_object * , umode_t ) ; int (*do_declare_create)(struct lu_env const * , struct dt_object * , struct lu_attr * , struct dt_allocation_hint * , struct dt_object_format * , struct thandle * ) ; int (*do_create)(struct lu_env const * , struct dt_object * , struct lu_attr * , struct dt_allocation_hint * , struct dt_object_format * , struct thandle * ) ; int (*do_declare_destroy)(struct lu_env const * , struct dt_object * , struct thandle * ) ; int (*do_destroy)(struct lu_env const * , struct dt_object * , struct thandle * ) ; int (*do_index_try)(struct lu_env const * , struct dt_object * , struct dt_index_features const * ) ; int (*do_declare_ref_add)(struct lu_env const * , struct dt_object * , struct thandle * ) ; int (*do_ref_add)(struct lu_env const * , struct dt_object * , struct thandle * ) ; int (*do_declare_ref_del)(struct lu_env const * , struct dt_object * , struct thandle * ) ; int (*do_ref_del)(struct lu_env const * , struct dt_object * , struct thandle * ) ; struct obd_capa *(*do_capa_get)(struct lu_env const * , struct dt_object * , struct lustre_capa * , __u64 ) ; int (*do_object_sync)(struct lu_env const * , struct dt_object * , __u64 , __u64 ) ; int (*do_data_get)(struct lu_env const * , struct dt_object * , void ** ) ; int (*do_object_lock)(struct lu_env const * , struct dt_object * , struct lustre_handle * , struct ldlm_enqueue_info * , void * ) ; }; struct dt_body_operations { ssize_t (*dbo_read)(struct lu_env const * , struct dt_object * , struct lu_buf * , loff_t * , struct lustre_capa * ) ; ssize_t (*dbo_declare_write)(struct lu_env const * , struct dt_object * , loff_t const , loff_t , struct thandle * ) ; ssize_t (*dbo_write)(struct lu_env const * , struct dt_object * , struct lu_buf const * , loff_t * , struct thandle * , struct lustre_capa * , int ) ; int (*dbo_bufs_get)(struct lu_env const * , struct dt_object * , loff_t , ssize_t , struct niobuf_local * , int , struct lustre_capa * ) ; int (*dbo_bufs_put)(struct lu_env const * , struct dt_object * , struct niobuf_local * , int ) ; int (*dbo_write_prep)(struct lu_env const * , struct dt_object * , struct niobuf_local * , int ) ; int (*dbo_declare_write_commit)(struct lu_env const * , struct dt_object * , struct niobuf_local * , int , struct thandle * ) ; int (*dbo_write_commit)(struct lu_env const * , struct dt_object * , struct niobuf_local * , int , struct thandle * ) ; int (*dbo_read_prep)(struct lu_env const * , struct dt_object * , struct niobuf_local * , int ) ; int (*dbo_fiemap_get)(struct lu_env const * , struct dt_object * , struct ll_user_fiemap * ) ; int (*dbo_declare_punch)(struct lu_env const * , struct dt_object * , __u64 , __u64 , struct thandle * ) ; int (*dbo_punch)(struct lu_env const * , struct dt_object * , __u64 , __u64 , struct thandle * , struct lustre_capa * ) ; }; struct dt_rec; struct dt_key; struct dt_it; struct dt_it_ops { struct dt_it *(*init)(struct lu_env const * , struct dt_object * , __u32 , struct lustre_capa * ) ; void (*fini)(struct lu_env const * , struct dt_it * ) ; int (*get)(struct lu_env const * , struct dt_it * , struct dt_key const * ) ; void (*put)(struct lu_env const * , struct dt_it * ) ; int (*next)(struct lu_env const * , struct dt_it * ) ; struct dt_key *(*key)(struct lu_env const * , struct dt_it const * ) ; int (*key_size)(struct lu_env const * , struct dt_it const * ) ; int (*rec)(struct lu_env const * , struct dt_it const * , struct dt_rec * , __u32 ) ; __u64 (*store)(struct lu_env const * , struct dt_it const * ) ; int (*load)(struct lu_env const * , struct dt_it const * , __u64 ) ; int (*key_rec)(struct lu_env const * , struct dt_it const * , void * ) ; }; struct dt_index_operations { int (*dio_lookup)(struct lu_env const * , struct dt_object * , struct dt_rec * , struct dt_key const * , struct lustre_capa * ) ; int (*dio_declare_insert)(struct lu_env const * , struct dt_object * , struct dt_rec const * , struct dt_key const * , struct thandle * ) ; int (*dio_insert)(struct lu_env const * , struct dt_object * , struct dt_rec const * , struct dt_key const * , struct thandle * , struct lustre_capa * , int ) ; int (*dio_declare_delete)(struct lu_env const * , struct dt_object * , struct dt_key const * , struct thandle * ) ; int (*dio_delete)(struct lu_env const * , struct dt_object * , struct dt_key const * , struct thandle * , struct lustre_capa * ) ; struct dt_it_ops dio_it ; }; struct dt_device { struct lu_device dd_lu_dev ; struct dt_device_operations const *dd_ops ; struct list_head dd_txn_callbacks ; }; struct dt_object { struct lu_object do_lu ; struct dt_object_operations const *do_ops ; struct dt_body_operations const *do_body_ops ; struct dt_index_operations const *do_index_ops ; }; struct local_oid_storage { struct list_head los_list ; atomic_t los_refcount ; struct dt_device *los_dev ; struct dt_object *los_obj ; struct mutex los_id_lock ; __u64 los_seq ; __u32 los_last_oid ; }; struct update_request; struct thandle { struct dt_device *th_dev ; struct lu_context th_ctx ; __u32 th_tags ; __s32 th_result ; unsigned char th_sync : 1 ; unsigned char th_local : 1 ; struct list_head th_remote_update_list ; struct update_request *th_current_request ; }; enum llog_open_param { LLOG_OPEN_EXISTS = 0, LLOG_OPEN_NEW = 1 } ; struct plain_handle_data { struct list_head phd_entry ; struct llog_handle *phd_cat_handle ; struct llog_cookie phd_cookie ; }; struct cat_handle_data { struct list_head chd_head ; struct llog_handle *chd_current_log ; struct llog_handle *chd_next_log ; }; struct llog_operations { int (*lop_destroy)(struct lu_env const * , struct llog_handle * ) ; int (*lop_next_block)(struct lu_env const * , struct llog_handle * , int * , int , __u64 * , void * , int ) ; int (*lop_prev_block)(struct lu_env const * , struct llog_handle * , int , void * , int ) ; int (*lop_read_header)(struct lu_env const * , struct llog_handle * ) ; int (*lop_setup)(struct lu_env const * , struct obd_device * , struct obd_llog_group * , int , struct obd_device * ) ; int (*lop_sync)(struct llog_ctxt * , struct obd_export * , int ) ; int (*lop_cleanup)(struct lu_env const * , struct llog_ctxt * ) ; int (*lop_cancel)(struct lu_env const * , struct llog_ctxt * , struct llog_cookie * , int ) ; int (*lop_connect)(struct llog_ctxt * , struct llog_logid * , struct llog_gen * , struct obd_uuid * ) ; int (*lop_open)(struct lu_env const * , struct llog_handle * , struct llog_logid * , char * , enum llog_open_param ) ; int (*lop_exist)(struct llog_handle * ) ; int (*lop_close)(struct lu_env const * , struct llog_handle * ) ; int (*lop_declare_create)(struct lu_env const * , struct llog_handle * , struct thandle * ) ; int (*lop_create)(struct lu_env const * , struct llog_handle * , struct thandle * ) ; int (*lop_declare_write_rec)(struct lu_env const * , struct llog_handle * , struct llog_rec_hdr * , int , struct thandle * ) ; int (*lop_write_rec)(struct lu_env const * , struct llog_handle * , struct llog_rec_hdr * , struct llog_cookie * , int , void * , int , struct thandle * ) ; int (*lop_declare_add)(struct lu_env const * , struct llog_handle * , struct llog_rec_hdr * , struct thandle * ) ; int (*lop_add)(struct lu_env const * , struct llog_handle * , struct llog_rec_hdr * , struct llog_cookie * , void * , struct thandle * ) ; }; union __anonunion_u_408 { struct plain_handle_data phd ; struct cat_handle_data chd ; }; struct llog_handle { struct rw_semaphore lgh_lock ; spinlock_t lgh_hdr_lock ; struct llog_logid lgh_id ; struct llog_log_hdr *lgh_hdr ; struct file *lgh_file ; struct dt_object *lgh_obj ; int lgh_last_idx ; int lgh_cur_idx ; __u64 lgh_cur_offset ; struct llog_ctxt *lgh_ctxt ; union __anonunion_u_408 u ; char *lgh_name ; void *private_data ; struct llog_operations *lgh_logops ; atomic_t lgh_refcount ; }; struct llog_ctxt { int loc_idx ; struct obd_device *loc_obd ; struct obd_llog_group *loc_olg ; struct obd_export *loc_exp ; struct obd_import *loc_imp ; struct llog_operations *loc_logops ; struct llog_handle *loc_handle ; struct mutex loc_mutex ; atomic_t loc_refcount ; long loc_flags ; struct dt_object *loc_dir ; }; enum hrtimer_restart; struct fid; struct ll_getname_data { struct dir_context ctx ; char *lgd_name ; struct lu_fid lgd_fid ; int lgd_found ; }; struct __anonstruct_i32_429 { u32 ino ; u32 gen ; u32 parent_ino ; u32 parent_gen ; }; struct __anonstruct_udf_430 { u32 block ; u16 partref ; u16 parent_partref ; u32 generation ; u32 parent_block ; u32 parent_generation ; }; union __anonunion____missing_field_name_428 { struct __anonstruct_i32_429 i32 ; struct __anonstruct_udf_430 udf ; __u32 raw[0U] ; }; struct fid { union __anonunion____missing_field_name_428 __annonCompField125 ; }; struct iomap { sector_t blkno ; loff_t offset ; u64 length ; int type ; }; struct export_operations { int (*encode_fh)(struct inode * , __u32 * , int * , struct inode * ) ; struct dentry *(*fh_to_dentry)(struct super_block * , struct fid * , int , int ) ; struct dentry *(*fh_to_parent)(struct super_block * , struct fid * , int , int ) ; int (*get_name)(struct dentry * , char * , struct dentry * ) ; struct dentry *(*get_parent)(struct dentry * ) ; int (*commit_metadata)(struct inode * ) ; int (*get_uuid)(struct super_block * , u8 * , u32 * , u64 * ) ; int (*map_blocks)(struct inode * , loff_t , u64 , struct iomap * , bool , u32 * ) ; int (*commit_blocks)(struct inode * , struct iomap * , int , struct iattr * ) ; }; struct lustre_nfs_fid { struct lu_fid lnf_child ; struct lu_fid lnf_parent ; }; enum hrtimer_restart; enum ra_stat { RA_STAT_HIT = 0, RA_STAT_MISS = 1, RA_STAT_DISTANT_READPAGE = 2, RA_STAT_MISS_IN_WINDOW = 3, RA_STAT_FAILED_GRAB_PAGE = 4, RA_STAT_FAILED_MATCH = 5, RA_STAT_DISCARDED = 6, RA_STAT_ZERO_LEN = 7, RA_STAT_ZERO_WINDOW = 8, RA_STAT_EOF = 9, RA_STAT_MAX_IN_FLIGHT = 10, RA_STAT_WRONG_GRAB_PAGE = 11, _NR_RA_STAT = 12 } ; enum hrtimer_restart; enum hrtimer_restart; enum hrtimer_restart; typedef __u16 __le16; typedef __u32 __le32; enum hrtimer_restart; struct __anonstruct_posix_acl_xattr_entry_399 { __le16 e_tag ; __le16 e_perm ; __le32 e_id ; }; typedef struct __anonstruct_posix_acl_xattr_entry_399 posix_acl_xattr_entry; struct __anonstruct_posix_acl_xattr_header_400 { __le32 a_version ; posix_acl_xattr_entry a_entries[0U] ; }; typedef struct __anonstruct_posix_acl_xattr_header_400 posix_acl_xattr_header; struct __anonstruct_ext_acl_xattr_entry_401 { __u16 e_tag ; __u16 e_perm ; __u32 e_id ; __u32 e_stat ; }; typedef struct __anonstruct_ext_acl_xattr_entry_401 ext_acl_xattr_entry; struct __anonstruct_ext_acl_xattr_header_402 { __u32 a_count ; ext_acl_xattr_entry a_entries[0U] ; }; typedef struct __anonstruct_ext_acl_xattr_header_402 ext_acl_xattr_header; struct rmtacl_ctl_entry { struct list_head rce_list ; pid_t rce_key ; int rce_ops ; }; struct eacl_entry { struct list_head ee_list ; pid_t ee_key ; struct lu_fid ee_fid ; int ee_type ; ext_acl_xattr_header *ee_acl ; }; enum hrtimer_restart; struct lu_kmem_descr { struct kmem_cache **ckd_cache ; char const *ckd_name ; size_t const ckd_size ; }; struct ll_xattr_entry { struct list_head xe_list ; char *xe_name ; char *xe_value ; unsigned int xe_namelen ; unsigned int xe_vallen ; }; enum hrtimer_restart; struct ll_remote_perm { struct hlist_node lrp_list ; uid_t lrp_uid ; gid_t lrp_gid ; uid_t lrp_fsuid ; gid_t lrp_fsgid ; int lrp_access_perm ; }; enum hrtimer_restart; enum hrtimer_restart; typedef int ldv_func_ret_type___2; typedef int pao_T__; typedef int pao_T_____0; enum hrtimer_restart; union __anonunion_v_249 { short preferred_node ; nodemask_t nodes ; }; union __anonunion_w_250 { nodemask_t cpuset_mems_allowed ; nodemask_t user_nodemask ; }; struct mempolicy { atomic_t refcnt ; unsigned short mode ; unsigned short flags ; union __anonunion_v_249 v ; union __anonunion_w_250 w ; }; struct ll_dio_pages { struct page **ldp_pages ; loff_t *ldp_offsets ; loff_t ldp_start_offset ; size_t ldp_size ; int ldp_nr ; }; enum hrtimer_restart; struct cl_req_slice; struct cl_lock_slice; struct cl_lock_operations; struct cl_lock_closure { struct cl_lock *clc_origin ; struct list_head clc_list ; int clc_wait ; int clc_nr ; }; 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_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_slice { struct cl_req *crs_req ; struct cl_device *crs_dev ; struct list_head crs_linkage ; struct cl_req_operations const *crs_ops ; }; typedef int ldv_func_ret_type___3; enum hrtimer_restart; enum ldv_43887 { SA_ENTRY_INIT = 0, SA_ENTRY_SUCC = 1, SA_ENTRY_INVA = 2, SA_ENTRY_DEST = 3 } ; typedef enum ldv_43887 se_stat_t; struct ll_sa_entry { struct list_head se_link ; struct list_head se_list ; struct list_head se_hash ; atomic_t se_refcount ; __u64 se_index ; __u64 se_handle ; se_stat_t se_stat ; int se_size ; struct md_enqueue_info *se_minfo ; struct ptlrpc_request *se_req ; struct inode *se_inode ; struct qstr se_qstr ; }; enum hrtimer_restart; enum hrtimer_restart; struct luda_type { __u16 lt_type ; }; struct lu_site_bkt_data { long lsb_busy ; struct list_head lsb_lru ; wait_queue_head_t lsb_marche_funebre ; }; struct cache_stats { char const *cs_name ; atomic_t cs_stats[5U] ; }; struct cl_site { struct lu_site cs_lu ; struct cache_stats cs_pages ; struct cache_stats cs_locks ; atomic_t cs_pages_state[5U] ; atomic_t cs_locks_state[7U] ; }; struct ccc_device { struct cl_device cdv_cl ; struct super_block *cdv_sb ; struct cl_device *cdv_next ; }; struct ccc_lock { struct cl_lock_slice clk_cl ; }; struct ccc_req { struct cl_req_slice crq_cl ; }; enum hrtimer_restart; struct va_list; typedef __builtin_va_list __gnuc_va_list; typedef __gnuc_va_list va_list; enum hrtimer_restart; struct vvp_pgcache_id { unsigned int vpi_bucket ; unsigned int vpi_depth ; uint32_t vpi_index ; unsigned int vpi_curdep ; struct lu_object_header *vpi_obj ; }; enum hrtimer_restart; enum hrtimer_restart; enum hrtimer_restart; enum hrtimer_restart; enum hrtimer_restart; 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 ) ; }; struct llite_file_opcode { __u32 opcode ; __u32 type ; char const *opname ; }; __inline static long ldv__builtin_expect(long exp , long c ) ; void ldv_spin_lock(void) ; void ldv_spin_unlock(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 int list_empty(struct list_head const *head ) { { return ((unsigned long )((struct list_head const *)head->next) == (unsigned long )head); } } 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 int memcmp(void const * , void const * , size_t ) ; extern void _raw_spin_lock(raw_spinlock_t * ) ; extern void _raw_spin_unlock(raw_spinlock_t * ) ; __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 void ldv_spin_unlock_9(spinlock_t *lock ) { { _raw_spin_unlock(& lock->__annonCompField18.rlock); return; } } __inline static void spin_unlock(spinlock_t *lock ) ; extern void call_rcu_sched(struct callback_head * , void (*)(struct callback_head * ) ) ; extern void kfree(void const * ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; void ldv_check_alloc_flags(gfp_t flags ) ; struct dentry const *ll_d_ops_group0 ; int LDV_IN_INTERRUPT = 1; int ldv_state_variable_60 ; struct dentry *ll_d_ops_group1 ; void ldv_initialize_dentry_operations_60(void) ; __inline static int hlist_bl_unhashed(struct hlist_bl_node const *h ) { { return ((unsigned long )h->pprev == (unsigned long )((struct hlist_bl_node **/* const */)0)); } } extern void __d_drop(struct dentry * ) ; __inline static unsigned int d_count(struct dentry const *dentry ) { { return ((unsigned int )dentry->d_lockref.__annonCompField59.__annonCompField58.count); } } __inline static int d_unhashed(struct dentry const *dentry ) { int tmp ; { tmp = hlist_bl_unhashed(& dentry->d_hash); return (tmp); } } __inline static bool d_mountpoint(struct dentry const *dentry ) { { return (((unsigned int )dentry->d_flags & 65536U) != 0U); } } __inline static struct inode *d_inode(struct dentry const *dentry ) { { return ((struct inode *)dentry->d_inode); } } extern void clear_nlink(struct inode * ) ; extern void iput(struct inode * ) ; 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 ) ; 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 * ) ; extern void lprocfs_counter_add(struct lprocfs_stats * , int , long ) ; extern void ptlrpc_req_finished(struct ptlrpc_request * ) ; extern void ldlm_lock_decref(struct lustre_handle * , __u32 ) ; __inline static int obd_find_cbdata(struct obd_export *exp , struct lov_stripe_md *lsm , int (*it)(struct ldlm_lock * , void * ) , void *data ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "obd_find_cbdata"; msgdata.msg_line = 1239; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_find_cbdata: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "obd_find_cbdata"; msgdata___0.msg_line = 1239; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_find_cbdata: 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_find_cbdata == (unsigned long )((int (*)(struct obd_export * , struct lov_stripe_md * , int (*)(struct ldlm_lock * , void * ) , void * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "obd_find_cbdata"; msgdata___1.msg_line = 1239; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_find_cbdata: 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 + 32U; 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_find_cbdata"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1240; __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_find_cbdata))(exp, lsm, it, data); return (rc); } } __inline static int md_find_cbdata(struct obd_export *exp , struct lu_fid const *fid , int (*it)(struct ldlm_lock * , void * ) , void *data ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_find_cbdata"; msgdata.msg_line = 1476; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_find_cbdata: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_find_cbdata"; msgdata___0.msg_line = 1476; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_find_cbdata: 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_md_ops)->m_find_cbdata == (unsigned long )((int (*)(struct obd_export * , struct lu_fid const * , int (*)(struct ldlm_lock * , void * ) , void * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_find_cbdata"; msgdata___1.msg_line = 1476; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_find_cbdata: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 2U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_find_cbdata"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1477; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_find_cbdata))(exp, fid, it, data); return (rc); } } __inline static int md_set_lock_data(struct obd_export *exp , __u64 *lockh , void *data , __u64 *bits ) { 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 ; int tmp___3 ; { if ((unsigned long )exp == (unsigned long )((struct obd_export *)0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_set_lock_data"; msgdata.msg_line = 1719; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_set_lock_data: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_set_lock_data"; msgdata___0.msg_line = 1719; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_set_lock_data: 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_md_ops)->m_set_lock_data == (unsigned long )((int (*)(struct obd_export * , __u64 * , void * , __u64 * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_set_lock_data"; msgdata___1.msg_line = 1719; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_set_lock_data: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 24U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_set_lock_data"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1720; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } tmp___3 = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_set_lock_data))(exp, lockh, data, bits); return (tmp___3); } } struct lov_stripe_md *ccc_inode_lsm_get(struct inode *inode ) ; extern void ccc_inode_lsm_put(struct inode * , struct lov_stripe_md * ) ; extern int it_disposition(struct lookup_intent * , int ) ; __inline static struct ll_inode_info *ll_i2info(struct inode *inode ) { struct inode const *__mptr ; { __mptr = (struct inode const *)inode; return ((struct ll_inode_info *)__mptr + 0xfffffffffffffdc8UL); } } int ll_d_init(struct dentry *de ) ; struct dentry_operations const ll_d_ops ; void ll_intent_drop_lock(struct lookup_intent *it ) ; void ll_intent_release(struct lookup_intent *it ) ; void ll_invalidate_aliases(struct inode *inode ) ; void ll_lookup_finish_locks(struct lookup_intent *it , struct inode *inode ) ; int ll_revalidate_it_finish(struct ptlrpc_request *request , struct lookup_intent *it , struct inode *inode ) ; int ll_prep_inode(struct inode **inode , struct ptlrpc_request *req , struct super_block *sb , struct lookup_intent *it ) ; __inline static struct ll_sb_info *ll_i2sbi(struct inode *inode ) { { return (((struct lustre_sb_info *)(inode->i_sb)->s_fs_info)->lsi_llsbi); } } __inline static struct lu_fid *ll_inode2fid(struct inode *inode ) { struct lu_fid *fid ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct ll_inode_info *tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )inode == (unsigned long )((struct inode *)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/llite/llite_internal.h"; __msg_data.msg_fn = "ll_inode2fid"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1029; __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 *)"inode != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ll_i2info(inode); fid = & tmp___0->lli_fid; return (fid); } } int do_statahead_enter(struct inode *dir , struct dentry **dentryp , int only_unplug ) ; __inline static void ll_statahead_mark(struct inode *dir , struct dentry *dentry ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ll_statahead_info *sai ; struct ll_dentry_data *ldd ; struct task_struct *tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; { tmp = ll_i2info(dir); lli = tmp; sai = lli->u.d.d_sai; ldd = (struct ll_dentry_data *)dentry->d_fsdata; tmp___0 = get_current(); if (lli->u.d.d_opendir_pid != tmp___0->pid) { return; } else { } tmp___1 = ldv__builtin_expect((unsigned long )ldd == (unsigned long )((struct ll_dentry_data *)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/llite/llite_internal.h"; __msg_data.msg_fn = "ll_statahead_mark"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1201; __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 *)"ldd != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } if ((unsigned long )sai != (unsigned long )((struct ll_statahead_info *)0)) { ldd->lld_sa_generation = sai->sai_generation; } else { } return; } } __inline static int d_need_statahead(struct inode *dir , struct dentry *dentryp ) { struct ll_inode_info *lli ; struct ll_dentry_data *ldd ; struct ll_sb_info *tmp ; struct task_struct *tmp___0 ; { tmp = ll_i2sbi(dir); if (tmp->ll_sa_max == 0U) { return (-11); } else { } lli = ll_i2info(dir); tmp___0 = get_current(); if (lli->u.d.d_opendir_pid != tmp___0->pid) { return (-11); } else { } if ((unsigned long )lli->u.d.d_opendir_key == (unsigned long )((void *)0)) { return (-11); } else { } ldd = (struct ll_dentry_data *)dentryp->d_fsdata; if (((unsigned long )ldd != (unsigned long )((struct ll_dentry_data *)0) && (unsigned long )lli->u.d.d_sai != (unsigned long )((struct ll_statahead_info *)0)) && ldd->lld_sa_generation == (lli->u.d.d_sai)->sai_generation) { return (-11); } else { } return (1); } } __inline static void ll_set_lock_data(struct obd_export *exp , struct inode *inode , struct lookup_intent *it , __u64 *bits ) { struct lustre_handle handle ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; { if ((unsigned int )*((unsigned char *)it + 64UL) == 0U) { if (it->d.lustre.it_remote_lock_mode != 0) { handle.cookie = it->d.lustre.it_remote_lock_handle; tmp = cfs_cdebug_show(65536U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/llite_internal.h"; msgdata.msg_fn = "ll_set_lock_data"; msgdata.msg_line = 1411; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 65536; libcfs_debug_msg(& msgdata, "setting l_data to inode %p(%lu/%u) for remote lock %#llx\n", inode, inode->i_ino, inode->i_generation, handle.cookie); } else { } md_set_lock_data(exp, & handle.cookie, (void *)inode, (__u64 *)0ULL); } else { } handle.cookie = it->d.lustre.it_lock_handle; tmp___0 = cfs_cdebug_show(65536U, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/llite_internal.h"; msgdata___0.msg_fn = "ll_set_lock_data"; msgdata___0.msg_line = 1419; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 65536; libcfs_debug_msg(& msgdata___0, "setting l_data to inode %p (%lu/%u) for lock %#llx\n", inode, inode->i_ino, inode->i_generation, handle.cookie); } else { } md_set_lock_data(exp, & handle.cookie, (void *)inode, & it->d.lustre.it_lock_bits); it->d.lustre.it_lock_set = 1U; } else { } if ((unsigned long )bits != (unsigned long )((__u64 *)0ULL)) { *bits = it->d.lustre.it_lock_bits; } else { } return; } } __inline static void ll_lock_dcache(struct inode *inode ) { { spin_lock(& inode->i_lock); return; } } __inline static void ll_unlock_dcache(struct inode *inode ) { { spin_unlock(& inode->i_lock); return; } } __inline static int d_lustre_invalid(struct dentry const *dentry ) { struct ll_dentry_data *lld ; { lld = (struct ll_dentry_data *)dentry->d_fsdata; return ((unsigned long )lld == (unsigned long )((struct ll_dentry_data *)0) || (unsigned int )*((unsigned char *)lld + 12UL) != 0U); } } __inline static void __d_lustre_invalidate(struct dentry *dentry ) { struct ll_dentry_data *lld ; { lld = (struct ll_dentry_data *)dentry->d_fsdata; if ((unsigned long )lld != (unsigned long )((struct ll_dentry_data *)0)) { lld->lld_invalid = 1U; } else { } return; } } __inline static void d_lustre_invalidate(struct dentry *dentry , int nested ) { struct libcfs_debug_msg_data msgdata ; unsigned int tmp ; struct inode *tmp___0 ; int tmp___1 ; unsigned int tmp___2 ; { tmp___1 = cfs_cdebug_show(8192U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/llite_internal.h"; msgdata.msg_fn = "d_lustre_invalidate"; msgdata.msg_line = 1464; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 8192; tmp = d_count((struct dentry const *)dentry); tmp___0 = d_inode((struct dentry const *)dentry); libcfs_debug_msg(& msgdata, "invalidate dentry %pd (%p) parent %p inode %p refc %d\n", dentry, dentry, dentry->d_parent, tmp___0, tmp); } else { } ldv_spin_lock(); __d_lustre_invalidate(dentry); tmp___2 = d_count((struct dentry const *)dentry); if (tmp___2 == 0U) { __d_drop(dentry); } else { } spin_unlock(& dentry->d_lockref.__annonCompField59.__annonCompField58.lock); return; } } static void free_dentry_data(struct callback_head *head ) { struct ll_dentry_data *lld ; struct callback_head const *__mptr ; { __mptr = (struct callback_head const *)head; lld = (struct ll_dentry_data *)__mptr + 0xfffffffffffffff0UL; kfree((void const *)lld); return; } } static void ll_release(struct dentry *de ) { struct ll_dentry_data *lld ; struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((unsigned long )de == (unsigned long )((struct dentry *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; __msg_data.msg_fn = "ll_release"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 63; __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 *)"de != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } lld = (struct ll_dentry_data *)de->d_fsdata; if ((unsigned long )lld == (unsigned long )((struct ll_dentry_data *)0)) { return; } else { } if ((unsigned long )lld->lld_it != (unsigned long )((struct lookup_intent *)0)) { ll_intent_release(lld->lld_it); kfree((void const *)lld->lld_it); } else { } de->d_fsdata = (void *)0; call_rcu_sched(& lld->lld_rcu_head, & free_dentry_data); return; } } static int ll_dcompare(struct dentry const *parent , struct dentry const *dentry , unsigned int len , char const *str , struct qstr const *name ) { int tmp ; struct libcfs_debug_msg_data msgdata ; unsigned int tmp___0 ; int tmp___1 ; bool tmp___2 ; int tmp___3 ; { if ((unsigned int )name->__annonCompField61.__annonCompField60.len != len) { return (1); } else { } tmp = memcmp((void const *)str, (void const *)name->name, (size_t )len); if (tmp != 0) { return (1); } else { } tmp___1 = cfs_cdebug_show(8192U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; msgdata.msg_fn = "ll_dcompare"; msgdata.msg_line = 96; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 8192; tmp___0 = d_count(dentry); libcfs_debug_msg(& msgdata, "found name %.*s(%p) flags %#x refc %d\n", name->__annonCompField61.__annonCompField60.len, name->name, dentry, dentry->d_flags, tmp___0); } else { } tmp___2 = d_mountpoint(dentry); if ((int )tmp___2) { return (0); } else { } tmp___3 = d_lustre_invalid(dentry); if (tmp___3 != 0) { return (1); } else { } return (0); } } __inline static int return_if_equal(struct ldlm_lock *lock , void *data ) { { if ((lock->l_flags & 549755879424ULL) == 549755879424ULL) { return (1); } else { } return (2); } } static int find_cbdata(struct inode *inode ) { struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct lov_stripe_md *lsm ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct lu_fid *tmp___1 ; { tmp = ll_i2sbi(inode); sbi = tmp; rc = 0; tmp___0 = ldv__builtin_expect((unsigned long )inode == (unsigned long )((struct inode *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; __msg_data.msg_fn = "find_cbdata"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 127; __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 *)"inode"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ll_inode2fid(inode); rc = md_find_cbdata(sbi->ll_md_exp, (struct lu_fid const *)tmp___1, & return_if_equal, (void *)0); if (rc != 0) { return (rc); } else { } lsm = ccc_inode_lsm_get(inode); if ((unsigned long )lsm == (unsigned long )((struct lov_stripe_md *)0)) { return (rc); } else { } rc = obd_find_cbdata(sbi->ll_dt_exp, lsm, & return_if_equal, (void *)0); ccc_inode_lsm_put(inode, lsm); return (rc); } } static int ll_ddelete(struct dentry const *de ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; int tmp___1 ; struct inode *tmp___2 ; int tmp___3 ; int tmp___4 ; struct libcfs_debug_msg_data __msg_data___0 ; unsigned int tmp___5 ; long tmp___6 ; int tmp___7 ; { tmp = ldv__builtin_expect((unsigned long )de == (unsigned long )((struct dentry 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; __msg_data.msg_fn = "ll_ddelete"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 152; __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 *)"de"); lbug_with_loc(& __msg_data); } else { } tmp___4 = cfs_cdebug_show(8192U, 128U); if (tmp___4 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; msgdata.msg_fn = "ll_ddelete"; msgdata.msg_line = 158; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 8192; tmp___0 = list_empty(& de->d_subdirs); tmp___1 = d_unhashed(de); tmp___2 = d_inode(de); tmp___3 = d_lustre_invalid(de); libcfs_debug_msg(& msgdata, "%s dentry %pd (%p, parent %p, inode %p) %s%s\n", tmp___3 != 0 ? (char *)"deleting" : (char *)"keeping", de, de, de->d_parent, tmp___2, tmp___1 != 0 ? (char *)"" : (char *)"hashed,", tmp___0 != 0 ? (char *)"" : (char *)"subdirs"); } else { } tmp___5 = d_count(de); tmp___6 = ldv__builtin_expect(tmp___5 != 1U, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; __msg_data___0.msg_fn = "ll_ddelete"; __msg_data___0.msg_subsys = 128; __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 *)"d_count(de) == 1"); lbug_with_loc(& __msg_data___0); } else { } tmp___7 = d_lustre_invalid(de); if (tmp___7 != 0) { return (1); } else { } return (0); } } int ll_d_init(struct dentry *de ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; unsigned int tmp___0 ; struct inode *tmp___1 ; int tmp___2 ; struct ll_dentry_data *lld ; void *tmp___3 ; long tmp___4 ; long tmp___5 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___6 ; { tmp = ldv__builtin_expect((unsigned long )de == (unsigned long )((struct dentry *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; __msg_data.msg_fn = "ll_d_init"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 181; __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 *)"de != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = cfs_cdebug_show(8192U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; msgdata.msg_fn = "ll_d_init"; msgdata.msg_line = 185; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 8192; tmp___0 = d_count((struct dentry const *)de); tmp___1 = d_inode((struct dentry const *)de); libcfs_debug_msg(& msgdata, "ldd on dentry %pd (%p) parent %p inode %p refc %d\n", de, de, de->d_parent, tmp___1, tmp___0); } else { } if ((unsigned long )de->d_fsdata == (unsigned long )((void *)0)) { tmp___3 = kzalloc(32UL, 80U); lld = (struct ll_dentry_data *)tmp___3; tmp___5 = ldv__builtin_expect((unsigned long )lld != (unsigned long )((struct ll_dentry_data *)0), 1L); if (tmp___5 != 0L) { spin_lock(& de->d_lockref.__annonCompField59.__annonCompField58.lock); tmp___4 = ldv__builtin_expect((unsigned long )de->d_fsdata == (unsigned long )((void *)0), 1L); if (tmp___4 != 0L) { de->d_fsdata = (void *)lld; __d_lustre_invalidate(de); } else { kfree((void const *)lld); } spin_unlock(& de->d_lockref.__annonCompField59.__annonCompField58.lock); } else { return (-12); } } else { } tmp___6 = ldv__builtin_expect((unsigned long )de->d_op != (unsigned long )(& ll_d_ops), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; __msg_data___0.msg_fn = "ll_d_init"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 204; __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 *)"de->d_op == &ll_d_ops"); lbug_with_loc(& __msg_data___0); } else { } return (0); } } void ll_intent_drop_lock(struct lookup_intent *it ) { struct lustre_handle handle ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; { if (it->it_op != 0 && it->d.lustre.it_lock_mode != 0) { handle.cookie = it->d.lustre.it_lock_handle; tmp = cfs_cdebug_show(65536U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; msgdata.msg_fn = "ll_intent_drop_lock"; msgdata.msg_line = 217; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 65536; libcfs_debug_msg(& msgdata, "releasing lock with cookie %#llx from it %p\n", handle.cookie, it); } else { } ldlm_lock_decref(& handle, (__u32 )it->d.lustre.it_lock_mode); it->d.lustre.it_lock_mode = 0; if (it->d.lustre.it_remote_lock_mode != 0) { handle.cookie = it->d.lustre.it_remote_lock_handle; tmp___0 = cfs_cdebug_show(65536U, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; msgdata___0.msg_fn = "ll_intent_drop_lock"; msgdata___0.msg_line = 227; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 65536; libcfs_debug_msg(& msgdata___0, "releasing remote lock with cookie%#llx from it %p\n", handle.cookie, it); } else { } ldlm_lock_decref(& handle, (__u32 )it->d.lustre.it_remote_lock_mode); it->d.lustre.it_remote_lock_mode = 0; } else { } } else { } return; } } void ll_intent_release(struct lookup_intent *it ) { struct libcfs_debug_msg_data msgdata ; int tmp ; int tmp___0 ; int tmp___1 ; { tmp = cfs_cdebug_show(64U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; msgdata.msg_fn = "ll_intent_release"; msgdata.msg_line = 237; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "intent %p released\n", it); } else { } ll_intent_drop_lock(it); tmp___0 = it_disposition(it, 8388608); if (tmp___0 != 0) { ptlrpc_req_finished((struct ptlrpc_request *)it->d.lustre.it_data); } else { } tmp___1 = it_disposition(it, 16777216); if (tmp___1 != 0) { ptlrpc_req_finished((struct ptlrpc_request *)it->d.lustre.it_data); } else { } it->d.lustre.it_disposition = 0; it->d.lustre.it_data = (void *)0; return; } } void ll_invalidate_aliases(struct inode *inode ) { struct dentry *dentry ; struct hlist_node *p ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct hlist_node *____ptr ; struct hlist_node const *__mptr ; struct dentry *tmp___1 ; struct libcfs_debug_msg_data msgdata___0 ; struct inode *tmp___2 ; int tmp___3 ; struct hlist_node *____ptr___0 ; struct hlist_node const *__mptr___0 ; struct dentry *tmp___4 ; { tmp = ldv__builtin_expect((unsigned long )inode == (unsigned long )((struct inode *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; __msg_data.msg_fn = "ll_invalidate_aliases"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 255; __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 *)"inode != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = cfs_cdebug_show(2U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; msgdata.msg_fn = "ll_invalidate_aliases"; msgdata.msg_line = 258; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; libcfs_debug_msg(& msgdata, "marking dentries for ino %lu/%u(%p) invalid\n", inode->i_ino, inode->i_generation, inode); } else { } ll_lock_dcache(inode); p = (struct hlist_node *)0; ____ptr = inode->__annonCompField67.i_dentry.first; if ((unsigned long )____ptr != (unsigned long )((struct hlist_node *)0)) { __mptr = (struct hlist_node const *)____ptr; tmp___1 = (struct dentry *)__mptr + 0xfffffffffffffed0UL; } else { tmp___1 = (struct dentry *)0; } dentry = tmp___1; goto ldv_68473; ldv_68472: tmp___3 = cfs_cdebug_show(8192U, 128U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; msgdata___0.msg_fn = "ll_invalidate_aliases"; msgdata___0.msg_line = 264; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 8192; tmp___2 = d_inode((struct dentry const *)dentry); libcfs_debug_msg(& msgdata___0, "dentry in drop %pd (%p) parent %p inode %p flags %d\n", dentry, dentry, dentry->d_parent, tmp___2, dentry->d_flags); } else { } d_lustre_invalidate(dentry, 0); ____ptr___0 = dentry->d_u.d_alias.next; if ((unsigned long )____ptr___0 != (unsigned long )((struct hlist_node *)0)) { __mptr___0 = (struct hlist_node const *)____ptr___0; tmp___4 = (struct dentry *)__mptr___0 + 0xfffffffffffffed0UL; } else { tmp___4 = (struct dentry *)0; } dentry = tmp___4; ldv_68473: ; if ((unsigned long )dentry != (unsigned long )((struct dentry *)0)) { goto ldv_68472; } else { } ll_unlock_dcache(inode); return; } } int ll_revalidate_it_finish(struct ptlrpc_request *request , struct lookup_intent *it , struct inode *inode ) { int rc ; int tmp ; { rc = 0; if ((unsigned long )request == (unsigned long )((struct ptlrpc_request *)0)) { return (0); } else { } tmp = it_disposition(it, 4); if (tmp != 0) { return (-2); } else { } rc = ll_prep_inode(& inode, request, (struct super_block *)0, it); return (rc); } } void ll_lookup_finish_locks(struct lookup_intent *it , struct inode *inode ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; { tmp = ldv__builtin_expect((unsigned long )it == (unsigned long )((struct lookup_intent *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; __msg_data.msg_fn = "ll_lookup_finish_locks"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 290; __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 *)"it != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } if (it->d.lustre.it_lock_mode != 0 && (unsigned long )inode != (unsigned long )((struct inode *)0)) { tmp___0 = ll_i2sbi(inode); sbi = tmp___0; tmp___1 = cfs_cdebug_show(65536U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; msgdata.msg_fn = "ll_lookup_finish_locks"; msgdata.msg_line = 296; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 65536; libcfs_debug_msg(& msgdata, "setting l_data to inode %p (%lu/%u)\n", inode, inode->i_ino, inode->i_generation); } else { } ll_set_lock_data(sbi->ll_md_exp, inode, it, (__u64 *)0ULL); } else { } if (it->it_op == 16 || it->it_op == 8) { ll_intent_drop_lock(it); } else { } return; } } static int ll_revalidate_dentry(struct dentry *dentry , unsigned int lookup_flags ) { struct inode *dir ; struct inode *tmp ; int tmp___0 ; struct inode *tmp___1 ; { tmp = d_inode((struct dentry const *)dentry->d_parent); dir = tmp; if ((lookup_flags & 768U) == 768U) { return (0); } else { } if ((lookup_flags & 784U) != 0U) { return (1); } else { } tmp___0 = d_need_statahead(dir, dentry); if (tmp___0 <= 0) { return (1); } else { } if ((lookup_flags & 64U) != 0U) { return (-10); } else { } tmp___1 = d_inode((struct dentry const *)dentry); do_statahead_enter(dir, & dentry, (unsigned long )tmp___1 == (unsigned long )((struct inode *)0)); ll_statahead_mark(dir, dentry); return (1); } } static int ll_revalidate_nd(struct dentry *dentry , unsigned int flags ) { struct libcfs_debug_msg_data msgdata ; int tmp ; int tmp___0 ; { tmp = cfs_cdebug_show(2097152U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; msgdata.msg_fn = "ll_revalidate_nd"; msgdata.msg_line = 343; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:name=%pd, flags=%u\n", dentry, flags); } else { } tmp___0 = ll_revalidate_dentry(dentry, flags); return (tmp___0); } } static void ll_d_iput(struct dentry *de , struct inode *inode ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; int tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )inode == (unsigned long )((struct inode *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dcache.c"; __msg_data.msg_fn = "ll_d_iput"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 351; __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 *)"inode"); lbug_with_loc(& __msg_data); } else { } tmp___0 = find_cbdata(inode); if (tmp___0 == 0) { clear_nlink(inode); } else { } iput(inode); return; } } struct dentry_operations const ll_d_ops = {& ll_revalidate_nd, 0, 0, & ll_dcompare, & ll_ddelete, & ll_release, 0, & ll_d_iput, 0, 0, 0, 0}; void ldv_initialize_dentry_operations_60(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(320UL); ll_d_ops_group0 = (struct dentry const *)tmp; tmp___0 = ldv_init_zalloc(320UL); ll_d_ops_group1 = (struct dentry *)tmp___0; return; } } void ldv_main_exported_60(void) { char *ldvarg294 ; void *tmp ; unsigned int ldvarg292 ; struct dentry *ldvarg296 ; void *tmp___0 ; unsigned int ldvarg295 ; struct qstr *ldvarg297 ; void *tmp___1 ; struct inode *ldvarg293 ; void *tmp___2 ; int tmp___3 ; { tmp = ldv_init_zalloc(1UL); ldvarg294 = (char *)tmp; tmp___0 = ldv_init_zalloc(320UL); ldvarg296 = (struct dentry *)tmp___0; tmp___1 = ldv_init_zalloc(16UL); ldvarg297 = (struct qstr *)tmp___1; tmp___2 = ldv_init_zalloc(1000UL); ldvarg293 = (struct inode *)tmp___2; ldv_memset((void *)(& ldvarg292), 0, 4UL); ldv_memset((void *)(& ldvarg295), 0, 4UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_60 == 1) { ll_release(ll_d_ops_group1); ldv_state_variable_60 = 1; } else { } goto ldv_68520; case 1: ; if (ldv_state_variable_60 == 1) { ll_dcompare(ll_d_ops_group0, (struct dentry const *)ldvarg296, ldvarg295, (char const *)ldvarg294, (struct qstr const *)ldvarg297); ldv_state_variable_60 = 1; } else { } goto ldv_68520; case 2: ; if (ldv_state_variable_60 == 1) { ll_d_iput(ll_d_ops_group1, ldvarg293); ldv_state_variable_60 = 1; } else { } goto ldv_68520; case 3: ; if (ldv_state_variable_60 == 1) { ll_ddelete(ll_d_ops_group0); ldv_state_variable_60 = 1; } else { } goto ldv_68520; case 4: ; if (ldv_state_variable_60 == 1) { ll_revalidate_nd(ll_d_ops_group1, ldvarg292); ldv_state_variable_60 = 1; } else { } goto ldv_68520; default: ldv_stop(); } ldv_68520: ; return; } } __inline static void spin_lock(spinlock_t *lock ) { { ldv_spin_lock(); ldv_spin_lock_5(lock); return; } } __inline static void spin_unlock(spinlock_t *lock ) { { ldv_spin_unlock(); ldv_spin_unlock_9(lock); return; } } 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); } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static void set_bit(long nr , unsigned long volatile *addr ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; bts %1,%0": "+m" (*((long volatile *)addr)): "Ir" (nr): "memory"); return; } } __inline static void clear_bit(long nr , unsigned long volatile *addr ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; btr %1,%0": "+m" (*((long volatile *)addr)): "Ir" (nr)); return; } } __inline static int test_and_set_bit(long nr , unsigned long volatile *addr ) { char c ; { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; bts %2, %0; setc %1": "+m" (*addr), "=qm" (c): "Ir" (nr): "memory"); return ((int )((signed char )c) != 0); } } __inline static int test_and_set_bit_lock(long nr , unsigned long volatile *addr ) { int tmp ; { tmp = test_and_set_bit(nr, addr); return (tmp); } } __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 __might_sleep(char const * , int , int ) ; extern void __might_fault(char const * , int ) ; extern int sprintf(char * , char const * , ...) ; bool ldv_is_err(void const *ptr ) ; void *ldv_err_ptr(long error ) ; long ldv_ptr_err(void const *ptr ) ; extern void *memdup_user(void const * , size_t ) ; extern void *memcpy(void * , void const * , size_t ) ; extern void *memset(void * , int , size_t ) ; extern size_t strlen(char const * ) ; extern char *strcat(char * , char const * ) ; extern char *strncpy(char * , char const * , __kernel_size_t ) ; __inline static void *ERR_PTR(long error ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; extern struct tss_struct cpu_tss ; __inline static unsigned long current_top_of_stack(void) { u64 pfo_ret__ ; { switch (8UL) { case 1UL: __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "p" (& cpu_tss.x86_tss.sp0)); goto ldv_5541; case 2UL: __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& cpu_tss.x86_tss.sp0)); goto ldv_5541; case 4UL: __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& cpu_tss.x86_tss.sp0)); goto ldv_5541; case 8UL: __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& cpu_tss.x86_tss.sp0)); goto ldv_5541; default: __bad_percpu_size(); } ldv_5541: ; return ((unsigned long )pfo_ret__); } } __inline static void prefetchw(void const *x ) { { __asm__ volatile ("661:\n\tprefetcht0 %P1\n662:\n.skip -(((6651f-6641f)-(662b-661b)) > 0) * ((6651f-6641f)-(662b-661b)),0x90\n663:\n.pushsection .altinstructions,\"a\"\n .long 661b - .\n .long 6641f - .\n .word ( 6*32+ 8)\n .byte 663b-661b\n .byte 6651f-6641f\n .byte 663b-662b\n.popsection\n.pushsection .altinstr_replacement, \"ax\"\n6641:\n\tprefetchw %P1\n6651:\n\t.popsection": : "i" (0), "m" (*((char const *)x))); return; } } __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 struct thread_info *current_thread_info(void) { unsigned long tmp ; { tmp = current_top_of_stack(); return ((struct thread_info *)(tmp - 32768UL)); } } __inline static bool is_ia32_task(void) { struct thread_info *tmp ; { tmp = current_thread_info(); if ((tmp->status & 2U) != 0U) { return (1); } else { } return (0); } } extern void _raw_spin_lock_irq(raw_spinlock_t * ) ; extern void _raw_spin_unlock_irq(raw_spinlock_t * ) ; __inline static void ldv_spin_lock_irq_45(spinlock_t *lock ) { { _raw_spin_lock_irq(& lock->__annonCompField18.rlock); return; } } __inline static void spin_lock_irq(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_irq_48(spinlock_t *lock ) { { _raw_spin_unlock_irq(& lock->__annonCompField18.rlock); return; } } __inline static void spin_unlock_irq(spinlock_t *lock ) ; extern struct user_namespace init_user_ns ; __inline static uid_t __kuid_val(kuid_t uid ) { { return (uid.val); } } __inline static bool uid_eq(kuid_t left , kuid_t right ) { uid_t tmp ; uid_t tmp___0 ; { tmp = __kuid_val(left); tmp___0 = __kuid_val(right); return (tmp == tmp___0); } } extern kuid_t make_kuid(struct user_namespace * , uid_t ) ; extern kgid_t make_kgid(struct user_namespace * , gid_t ) ; extern uid_t from_kuid(struct user_namespace * , kuid_t ) ; extern gid_t from_kgid(struct user_namespace * , kgid_t ) ; extern void dump_page(struct page * , char const * ) ; extern void mutex_lock_nested(struct mutex * , unsigned int ) ; extern void mutex_unlock(struct mutex * ) ; extern int debug_lockdep_rcu_enabled(void) ; extern bool capable(int ) ; extern int in_egroup_p(kgid_t ) ; __inline static void *kcalloc(size_t n , size_t size , gfp_t flags ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; int ref_cnt ; struct file *ll_dir_operations_group2 ; struct inode *ll_dir_operations_group1 ; int ldv_state_variable_59 ; void ldv_file_operations_59(void) ; __inline static int radix_tree_exceptional_entry(void *arg ) { { return ((int )((long )arg) & 2); } } extern unsigned int radix_tree_gang_lookup(struct radix_tree_root * , void ** , unsigned long , unsigned int ) ; __inline static loff_t i_size_read(struct inode const *inode ) { { return ((loff_t )inode->i_size); } } __inline static void i_size_write(struct inode *inode , loff_t i_size ) { { inode->i_size = i_size; return; } } extern int current_umask(void) ; __inline static struct inode *file_inode(struct file const *f ) { { return ((struct inode *)f->f_inode); } } extern ssize_t generic_read_dir(struct file * , char * , size_t , loff_t * ) ; __inline static bool is_root_inode(struct inode *inode ) { { return ((unsigned long )((inode->i_sb)->s_root)->d_inode == (unsigned long )inode); } } __inline static bool dir_emit(struct dir_context *ctx , char const *name , int namelen , u64 ino , unsigned int type ) { int tmp ; { tmp = (*(ctx->actor))(ctx, name, namelen, ctx->pos, ino, type); return (tmp == 0); } } __inline static int PageLocked(struct page const *page ) { int tmp ; { tmp = constant_test_bit(0L, (unsigned long const volatile *)(& page->flags)); return (tmp); } } __inline static int PageError(struct page const *page ) { int tmp ; { tmp = constant_test_bit(1L, (unsigned long const volatile *)(& page->flags)); return (tmp); } } __inline static int PageChecked(struct page const *page ) { int tmp ; { tmp = constant_test_bit(8L, (unsigned long const volatile *)(& page->flags)); return (tmp); } } __inline static void SetPageChecked(struct page *page ) { { set_bit(8L, (unsigned long volatile *)(& page->flags)); return; } } __inline static int PagePrivate(struct page const *page ) { int tmp ; { tmp = constant_test_bit(11L, (unsigned long const volatile *)(& page->flags)); return (tmp); } } __inline static void ClearPageMappedToDisk(struct page *page ) { { clear_bit(17L, (unsigned long volatile *)(& page->flags)); return; } } __inline static int PageUptodate(struct page *page ) { int ret ; int tmp ; { tmp = constant_test_bit(3L, (unsigned long const volatile *)(& page->flags)); ret = tmp; if (ret != 0) { __asm__ volatile ("": : : "memory"); } else { } return (ret); } } __inline static void SetPageUptodate(struct page *page ) { { __asm__ volatile ("": : : "memory"); set_bit(3L, (unsigned long volatile *)(& page->flags)); return; } } __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 * ) ; extern bool __get_page_tail(struct page * ) ; __inline static void get_page(struct page *page ) { bool tmp ; long tmp___0 ; int tmp___1 ; long tmp___2 ; int tmp___3 ; long tmp___4 ; { tmp___1 = PageTail((struct page const *)page); tmp___2 = ldv__builtin_expect(tmp___1 != 0, 0L); if (tmp___2 != 0L) { tmp = __get_page_tail(page); tmp___0 = ldv__builtin_expect((long )tmp, 1L); if (tmp___0 != 0L) { return; } else { } } else { } tmp___3 = atomic_read((atomic_t const *)(& page->__annonCompField42.__annonCompField41.__annonCompField40._count)); tmp___4 = ldv__builtin_expect(tmp___3 <= 0, 0L); if (tmp___4 != 0L) { dump_page(page, "VM_BUG_ON_PAGE(atomic_read(&page->_count) <= 0)"); __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 *)"include/linux/mm.h"), "i" (543), "i" (12UL)); ldv_25496: ; goto ldv_25496; } else { } atomic_inc(& page->__annonCompField42.__annonCompField41.__annonCompField40._count); return; } } extern void put_page(struct page * ) ; __inline static void *lowmem_page_address(struct page const *page ) { { return ((void *)((unsigned long )((unsigned long long )(((long )page + 24189255811072L) / 64L) << 12) + 0xffff880000000000UL)); } } extern void cancel_dirty_page(struct page * ) ; extern long strncpy_from_user(char * , char const * , long ) ; 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; } } __inline static gfp_t mapping_gfp_mask(struct address_space *mapping ) { { return ((gfp_t )mapping->flags & 33554431U); } } extern struct page *__page_cache_alloc(gfp_t ) ; __inline static struct page *page_cache_alloc_cold(struct address_space *x ) { gfp_t tmp ; struct page *tmp___0 ; { tmp = mapping_gfp_mask(x); tmp___0 = __page_cache_alloc(tmp | 256U); return (tmp___0); } } extern struct page *read_cache_page(struct address_space * , unsigned long , filler_t * , void * ) ; extern void __lock_page(struct page * ) ; extern void unlock_page(struct page * ) ; __inline static int trylock_page(struct page *page ) { int tmp ; long tmp___0 ; { tmp = test_and_set_bit_lock(0L, (unsigned long volatile *)(& page->flags)); tmp___0 = ldv__builtin_expect(tmp == 0, 1L); return ((int )tmp___0); } } __inline static void lock_page(struct page *page ) { int tmp ; { __might_sleep("include/linux/pagemap.h", 449, 0); tmp = trylock_page(page); if (tmp == 0) { __lock_page(page); } else { } return; } } extern void wait_on_page_bit(struct page * , int ) ; __inline static void wait_on_page_locked(struct page *page ) { int tmp ; { tmp = PageLocked((struct page const *)page); if (tmp != 0) { wait_on_page_bit(page, 0); } else { } return; } } extern int add_to_page_cache_lru(struct page * , struct address_space * , unsigned long , gfp_t ) ; extern void delete_from_page_cache(struct page * ) ; __inline static bool is_x32_task(void) { struct task_struct *tmp ; { tmp = get_current(); if ((((struct pt_regs *)(tmp->thread.sp0 + 0xffffffffffffffffUL))->orig_ax & 1073741824UL) != 0UL) { return (1); } else { } return (0); } } __inline static bool is_compat_task(void) { bool tmp ; bool tmp___0 ; int tmp___1 ; { tmp = is_ia32_task(); if ((int )tmp) { tmp___1 = 1; } else { tmp___0 = is_x32_task(); if ((int )tmp___0) { tmp___1 = 1; } else { tmp___1 = 0; } } return ((bool )tmp___1); } } struct sk_buff *ldv_skb_clone_65(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_73(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_67(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_63(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_71(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_72(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_68(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_69(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , 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 ) ; extern cfs_cap_t cfs_curproc_cap_pack(void) ; extern void *libcfs_kvzalloc(size_t , gfp_t ) ; __inline static void truncate_complete_page(struct address_space *mapping , struct page *page ) { int tmp ; { if ((unsigned long )page->__annonCompField36.mapping != (unsigned long )mapping) { return; } else { } tmp = PagePrivate((struct page const *)page); if (tmp != 0) { (*(((page->__annonCompField36.mapping)->a_ops)->invalidatepage))(page, 0U, 4096U); } else { } cancel_dirty_page(page); ClearPageMappedToDisk(page); delete_from_page_cache(page); return; } } __inline static int lmv_user_md_size(int stripes , int lmm_magic ) { { return ((int )((unsigned int )((unsigned long )stripes) * 24U + 48U)); } } __inline static ssize_t hur_len(struct hsm_user_request *hur ) { __u64 size ; { size = ((unsigned long long )hur->hur_request.hr_itemcount * 32ULL + (unsigned long long )hur->hur_request.hr_data_len) + 24ULL; return ((ssize_t )size); } } __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 void fid_le_to_cpu(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 struct lu_dirent *lu_dirent_start(struct lu_dirpage *dp ) { { if ((int )dp->ldp_flags & 1) { return ((struct lu_dirent *)0); } else { return ((struct lu_dirent *)(& dp->ldp_entries)); } } } __inline static struct lu_dirent *lu_dirent_next(struct lu_dirent *ent ) { struct lu_dirent *next ; { if ((unsigned int )ent->lde_reclen != 0U) { next = ent + (unsigned long )ent->lde_reclen; } else { next = (struct lu_dirent *)0; } return (next); } } extern void lustre_swab_lov_user_md_v1(struct lov_user_md_v1 * ) ; extern void lustre_swab_lov_user_md_v3(struct lov_user_md_v3 * ) ; extern void lustre_swab_lov_user_md_objects(struct lov_user_ost_data_v1 * , int ) ; 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 struct req_msg_field RMF_MDT_BODY ; extern struct req_msg_field RMF_MDT_MD ; extern int obd_ioctl_getdata(char ** , int * , void * ) ; __inline static void obd_ioctl_freedata(char *buf , int len ) { { kvfree((void const *)buf); return; } } extern void ldlm_lock_dump_handle(int , struct lustre_handle * ) ; extern int ldlm_completion_ast(struct ldlm_lock * , __u64 , void * ) ; __inline static int obd_get_info(struct lu_env const *env , struct obd_export *exp , __u32 keylen , void *key , __u32 *vallen , void *val , struct lov_stripe_md *lsm ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/obd_class.h"; msgdata.msg_fn = "obd_get_info"; msgdata.msg_line = 480; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_get_info: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___0.msg_fn = "obd_get_info"; msgdata___0.msg_line = 480; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_get_info: 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_get_info == (unsigned long )((int (*)(struct lu_env const * , struct obd_export * , __u32 , void * , __u32 * , void * , struct lov_stripe_md * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___1.msg_fn = "obd_get_info"; msgdata___1.msg_line = 480; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_get_info: 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 + 1U; 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/llite/../include/obd_class.h"; __msg_data.msg_fn = "obd_get_info"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 481; __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_get_info))(env, exp, keylen, key, vallen, val, lsm); return (rc); } } __inline static int obd_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 ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/obd_class.h"; msgdata.msg_fn = "obd_set_info_async"; msgdata.msg_line = 495; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_set_info_async: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___0.msg_fn = "obd_set_info_async"; msgdata___0.msg_line = 495; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_set_info_async: 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_set_info_async == (unsigned long )((int (*)(struct lu_env const * , struct obd_export * , __u32 , void * , __u32 , void * , struct ptlrpc_request_set * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___1.msg_fn = "obd_set_info_async"; msgdata___1.msg_line = 495; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_set_info_async: 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 + 2U; 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/llite/../include/obd_class.h"; __msg_data.msg_fn = "obd_set_info_async"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 496; __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_set_info_async))(env, exp, keylen, key, vallen, val, set); return (rc); } } __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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../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, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../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/llite/../include/obd_class.h"; __msg_data.msg_fn = "obd_unpackmd"; __msg_data.msg_subsys = 128; __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_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/llite/../include/obd_class.h"; __msg_data.msg_fn = "obd_free_memmd"; __msg_data.msg_subsys = 128; __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/llite/../include/obd_class.h"; __msg_data___0.msg_fn = "obd_free_memmd"; __msg_data___0.msg_subsys = 128; __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_iocontrol(unsigned int cmd , struct obd_export *exp , int len , void *karg , void *uarg ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/obd_class.h"; msgdata.msg_fn = "obd_iocontrol"; msgdata.msg_line = 1226; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_iocontrol: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___0.msg_fn = "obd_iocontrol"; msgdata___0.msg_line = 1226; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_iocontrol: 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_iocontrol == (unsigned long )((int (*)(unsigned int , struct obd_export * , int , void * , void * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___1.msg_fn = "obd_iocontrol"; msgdata___1.msg_line = 1226; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_iocontrol: 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; 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/llite/../include/obd_class.h"; __msg_data.msg_fn = "obd_iocontrol"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1227; __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_iocontrol))(cmd, exp, len, karg, uarg); return (rc); } } __inline static int obd_quotacheck(struct obd_export *exp , struct obd_quotactl *oqctl ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/obd_class.h"; msgdata.msg_fn = "obd_quotacheck"; msgdata.msg_line = 1322; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_quotacheck: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___0.msg_fn = "obd_quotacheck"; msgdata___0.msg_line = 1322; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_quotacheck: 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_quotacheck == (unsigned long )((int (*)(struct obd_device * , struct obd_export * , struct obd_quotactl * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___1.msg_fn = "obd_quotacheck"; msgdata___1.msg_line = 1322; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_quotacheck: 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 + 39U; 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/llite/../include/obd_class.h"; __msg_data.msg_fn = "obd_quotacheck"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1323; __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_quotacheck))(exp->exp_obd, exp, oqctl); return (rc); } } __inline static int obd_quotactl(struct obd_export *exp , struct obd_quotactl *oqctl ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/obd_class.h"; msgdata.msg_fn = "obd_quotactl"; msgdata.msg_line = 1334; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_quotactl: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___0.msg_fn = "obd_quotactl"; msgdata___0.msg_line = 1334; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_quotactl: 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_quotactl == (unsigned long )((int (*)(struct obd_device * , struct obd_export * , struct obd_quotactl * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___1.msg_fn = "obd_quotactl"; msgdata___1.msg_line = 1334; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_quotactl: 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 + 40U; 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/llite/../include/obd_class.h"; __msg_data.msg_fn = "obd_quotactl"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1335; __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_quotactl))(exp->exp_obd, exp, oqctl); return (rc); } } __inline static int md_getattr(struct obd_export *exp , struct md_op_data *op_data , struct ptlrpc_request **request ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/obd_class.h"; msgdata.msg_fn = "md_getattr"; msgdata.msg_line = 1453; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_getattr: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___0.msg_fn = "md_getattr"; msgdata___0.msg_line = 1453; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_getattr: 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_md_ops)->m_getattr == (unsigned long )((int (*)(struct obd_export * , struct md_op_data * , struct ptlrpc_request ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___1.msg_fn = "md_getattr"; msgdata___1.msg_line = 1453; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_getattr: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 7U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/obd_class.h"; __msg_data.msg_fn = "md_getattr"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1454; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_getattr))(exp, op_data, request); return (rc); } } __inline static int md_create(struct obd_export *exp , struct md_op_data *op_data , void const *data , int datalen , int mode , __u32 uid , __u32 gid , cfs_cap_t cap_effective , __u64 rdev , struct ptlrpc_request **request ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/obd_class.h"; msgdata.msg_fn = "md_create"; msgdata.msg_line = 1501; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_create: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___0.msg_fn = "md_create"; msgdata___0.msg_line = 1501; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_create: 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_md_ops)->m_create == (unsigned long )((int (*)(struct obd_export * , struct md_op_data * , void const * , int , int , __u32 , __u32 , cfs_cap_t , __u64 , struct ptlrpc_request ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___1.msg_fn = "md_create"; msgdata___1.msg_line = 1501; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_create: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 4U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/obd_class.h"; __msg_data.msg_fn = "md_create"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1502; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_create))(exp, op_data, data, datalen, mode, uid, gid, cap_effective, rdev, request); return (rc); } } __inline static int md_enqueue(struct obd_export *exp , struct ldlm_enqueue_info *einfo , struct lookup_intent *it , struct md_op_data *op_data , struct lustre_handle *lockh , void *lmm , int lmmsize , struct ptlrpc_request **req , __u64 extra_lock_flags ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/obd_class.h"; msgdata.msg_fn = "md_enqueue"; msgdata.msg_line = 1531; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_enqueue: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___0.msg_fn = "md_enqueue"; msgdata___0.msg_line = 1531; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_enqueue: 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_md_ops)->m_enqueue == (unsigned long )((int (*)(struct obd_export * , struct ldlm_enqueue_info * , struct lookup_intent * , struct md_op_data * , struct lustre_handle * , void * , int , struct ptlrpc_request ** , __u64 ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___1.msg_fn = "md_enqueue"; msgdata___1.msg_line = 1531; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_enqueue: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 6U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/obd_class.h"; __msg_data.msg_fn = "md_enqueue"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1532; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_enqueue))(exp, einfo, it, op_data, lockh, lmm, lmmsize, req, extra_lock_flags); return (rc); } } __inline static int md_getattr_name(struct obd_export *exp , struct md_op_data *op_data , struct ptlrpc_request **request ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/obd_class.h"; msgdata.msg_fn = "md_getattr_name"; msgdata.msg_line = 1544; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_getattr_name: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___0.msg_fn = "md_getattr_name"; msgdata___0.msg_line = 1544; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_getattr_name: 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_md_ops)->m_getattr_name == (unsigned long )((int (*)(struct obd_export * , struct md_op_data * , struct ptlrpc_request ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___1.msg_fn = "md_getattr_name"; msgdata___1.msg_line = 1544; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_getattr_name: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 8U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/obd_class.h"; __msg_data.msg_fn = "md_getattr_name"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1545; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_getattr_name))(exp, op_data, request); return (rc); } } __inline static int md_setattr(struct obd_export *exp , struct md_op_data *op_data , void *ea , int ealen , void *ea2 , int ea2len , struct ptlrpc_request **request , struct md_open_data **mod ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/obd_class.h"; msgdata.msg_fn = "md_setattr"; msgdata.msg_line = 1611; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_setattr: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___0.msg_fn = "md_setattr"; msgdata___0.msg_line = 1611; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_setattr: 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_md_ops)->m_setattr == (unsigned long )((int (*)(struct obd_export * , struct md_op_data * , void * , int , void * , int , struct ptlrpc_request ** , struct md_open_data ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___1.msg_fn = "md_setattr"; msgdata___1.msg_line = 1611; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_setattr: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 13U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/obd_class.h"; __msg_data.msg_fn = "md_setattr"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1612; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_setattr))(exp, op_data, ea, ealen, ea2, ea2len, request, mod); return (rc); } } __inline static int md_readpage(struct obd_export *exp , struct md_op_data *opdata , struct page **pages , struct ptlrpc_request **request ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/obd_class.h"; msgdata.msg_fn = "md_readpage"; msgdata.msg_line = 1635; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_readpage: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___0.msg_fn = "md_readpage"; msgdata___0.msg_line = 1635; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_readpage: 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_md_ops)->m_readpage == (unsigned long )((int (*)(struct obd_export * , struct md_op_data * , struct page ** , struct ptlrpc_request ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___1.msg_fn = "md_readpage"; msgdata___1.msg_line = 1635; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_readpage: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 15U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/obd_class.h"; __msg_data.msg_fn = "md_readpage"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1636; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_readpage))(exp, opdata, pages, request); return (rc); } } __inline static int md_set_lock_data___0(struct obd_export *exp , __u64 *lockh , void *data , __u64 *bits ) { 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 ; int tmp___3 ; { if ((unsigned long )exp == (unsigned long )((struct obd_export *)0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/obd_class.h"; msgdata.msg_fn = "md_set_lock_data"; msgdata.msg_line = 1719; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_set_lock_data: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___0.msg_fn = "md_set_lock_data"; msgdata___0.msg_line = 1719; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_set_lock_data: 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_md_ops)->m_set_lock_data == (unsigned long )((int (*)(struct obd_export * , __u64 * , void * , __u64 * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___1.msg_fn = "md_set_lock_data"; msgdata___1.msg_line = 1719; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_set_lock_data: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 24U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/obd_class.h"; __msg_data.msg_fn = "md_set_lock_data"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1720; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } tmp___3 = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_set_lock_data))(exp, lockh, data, bits); return (tmp___3); } } __inline static ldlm_mode_t md_lock_match(struct obd_export *exp , __u64 flags , struct lu_fid const *fid , ldlm_type_t type , ldlm_policy_data_t *policy , ldlm_mode_t mode , struct lustre_handle *lockh ) { 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 ; ldlm_mode_t tmp___3 ; { if ((unsigned long )exp == (unsigned long )((struct obd_export *)0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/obd_class.h"; msgdata.msg_fn = "md_lock_match"; msgdata.msg_line = 1748; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_lock_match: NULL export\n"); } else { } return (4294967277L); } 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___0.msg_fn = "md_lock_match"; msgdata___0.msg_line = 1748; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_lock_match: cleaned up obd\n"); } else { } return (4294967201L); } else { } if ((unsigned long )(exp->exp_obd)->obd_type == (unsigned long )((struct obd_type *)0) || (unsigned long )(((exp->exp_obd)->obd_type)->typ_md_ops)->m_lock_match == (unsigned long )((ldlm_mode_t (*)(struct obd_export * , __u64 , struct lu_fid const * , ldlm_type_t , ldlm_policy_data_t * , ldlm_mode_t , struct lustre_handle * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/obd_class.h"; msgdata___1.msg_fn = "md_lock_match"; msgdata___1.msg_line = 1748; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_lock_match: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (exp->exp_obd)->obd_minor); } else { } return (4294967201L); } else { } if ((unsigned long )(exp->exp_obd)->obd_stats != (unsigned long )((struct lprocfs_stats *)0)) { coffset = (exp->exp_obd)->md_cntr_base + 25U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/obd_class.h"; __msg_data.msg_fn = "md_lock_match"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1749; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } tmp___3 = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_lock_match))(exp, flags, fid, type, policy, mode, lockh); return (tmp___3); } } __inline static void ll_dir_chain_init(struct ll_dir_chain *chain ) { { return; } } __inline static unsigned long hash_x_index(__u64 hash , int hash64 ) { { return (~ ((unsigned long )((__u64 )(hash == 0ULL) + hash))); } } __u16 ll_dirent_type_get(struct lu_dirent *ent ) ; __u64 cl_fid_build_ino(struct lu_fid const *fid , int api32 ) ; void ll_inode_size_lock(struct inode *inode ) ; void ll_inode_size_unlock(struct inode *inode ) ; __inline static int ll_need_32bit_api(struct ll_sb_info *sbi ) { bool tmp ; long tmp___0 ; { tmp = is_compat_task(); tmp___0 = ldv__builtin_expect((long )((int )tmp || (sbi->ll_flags & 8192) != 0), 0L); return ((int )tmp___0); } } void ll_stats_ops_tally(struct ll_sb_info *sbi , int op , int count ) ; void ll_release_page(struct page *page , int remove ) ; struct file_operations const ll_dir_operations ; struct page *ll_get_dir_page(struct inode *dir , __u64 hash , struct ll_dir_chain *chain ) ; int ll_dir_read(struct inode *inode , struct dir_context *ctx ) ; int ll_get_mdt_idx(struct inode *inode ) ; int ll_md_blocking_ast(struct ldlm_lock *lock , struct ldlm_lock_desc *desc , void *data , int flag ) ; int ll_file_open(struct inode *inode , struct file *file ) ; int ll_file_release(struct inode *inode , struct file *file ) ; int ll_glimpse_ioctl(struct ll_sb_info *sbi , struct lov_stripe_md *lsm , lstat_t *st ) ; int ll_lov_getstripe_ea_info(struct inode *inode , char const *filename , struct lov_mds_md_v1 **lmmp , int *lmm_size , struct ptlrpc_request **request ) ; int ll_dir_setstripe(struct inode *inode , struct lov_user_md_v1 *lump , int set_default ) ; int ll_dir_getstripe(struct inode *inode , struct lov_mds_md_v1 **lmmp , int *lmm_size , struct ptlrpc_request **request ) ; int ll_fsync(struct file *file , loff_t start , loff_t end , int datasync ) ; int ll_fid2path(struct inode *inode , void *arg ) ; int ll_data_version(struct inode *inode , __u64 *data_version , int extent_lock ) ; int ll_hsm_release(struct inode *inode ) ; int ll_iocontrol(struct inode *inode , struct file *file , unsigned int cmd , unsigned long arg ) ; int ll_flush_ctx(struct inode *inode ) ; int ll_obd_statfs(struct inode *inode , void *arg ) ; int ll_get_max_mdsize(struct ll_sb_info *sbi , int *lmmsize ) ; int ll_get_default_mdsize(struct ll_sb_info *sbi , int *lmmsize ) ; struct md_op_data *ll_prep_md_op_data(struct md_op_data *op_data , struct inode *i1 , struct inode *i2 , char const *name , int namelen , int mode , __u32 opc , void *data ) ; void ll_finish_md_op_data(struct md_op_data *op_data ) ; int ll_get_obd_name(struct inode *inode , unsigned int cmd , unsigned long arg ) ; char *ll_get_fsname(struct super_block *sb , char *buf , int buflen ) ; struct inode *search_inode_for_lustre(struct super_block *sb , struct lu_fid const *fid ) ; __inline static struct obd_export *ll_s2mdexp(struct super_block *sb ) { { return ((((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi)->ll_md_exp); } } __inline static struct obd_export *ll_i2mdexp(struct inode *inode ) { struct obd_export *tmp ; { tmp = ll_s2mdexp(inode->i_sb); return (tmp); } } int rct_add(struct rmtacl_ctl_table *rct , pid_t key , int ops ) ; __inline static void cl_isize_write(struct inode *inode , loff_t kms ) { { ll_inode_size_lock(inode); i_size_write(inode, kms); ll_inode_size_unlock(inode); return; } } static int ll_dir_filler(void *_hash , struct page *page0 ) { struct inode *inode ; int hash64 ; struct ll_sb_info *tmp ; struct obd_export *exp ; struct ll_sb_info *tmp___0 ; struct ptlrpc_request *request ; struct mdt_body *body ; struct md_op_data *op_data ; __u64 hash ; struct page **page_pool ; struct page *page ; struct lu_dirpage *dp ; int max_pages ; struct ll_sb_info *tmp___1 ; int nrdpgs ; int npages ; int i ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; struct libcfs_debug_msg_data __msg_data ; long tmp___3 ; void *tmp___4 ; void *tmp___5 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___6 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___7 ; unsigned long offset ; int ret ; void *tmp___8 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___9 ; { inode = (page0->__annonCompField36.mapping)->host; tmp = ll_i2sbi(inode); hash64 = tmp->ll_flags & 16384; tmp___0 = ll_i2sbi(inode); exp = tmp___0->ll_md_exp; hash = *((__u64 *)_hash); tmp___1 = ll_i2sbi(inode); max_pages = (int )(tmp___1->ll_md_brw_size >> 12); nrdpgs = 0; tmp___2 = cfs_cdebug_show(2097152U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata.msg_fn = "ll_dir_filler"; msgdata.msg_line = 162; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p) hash %llu\n", inode->i_ino, inode->i_generation, inode, hash); } else { } tmp___3 = ldv__builtin_expect((long )(max_pages <= 0 || max_pages > 256), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; __msg_data.msg_fn = "ll_dir_filler"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 164; __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 *)"max_pages > 0 && max_pages <= ((1 << 20) >> 12)"); lbug_with_loc(& __msg_data); } else { } tmp___4 = kcalloc((size_t )max_pages, 8UL, 80U); page_pool = (struct page **)tmp___4; if ((unsigned long )page_pool != (unsigned long )((struct page **)0)) { *page_pool = page0; } else { page_pool = & page0; max_pages = 1; } npages = 1; goto ldv_68692; ldv_68691: page = page_cache_alloc_cold(inode->i_mapping); if ((unsigned long )page == (unsigned long )((struct page *)0)) { goto ldv_68690; } else { } *(page_pool + (unsigned long )npages) = page; npages = npages + 1; ldv_68692: ; if (npages < max_pages) { goto ldv_68691; } else { } ldv_68690: op_data = ll_prep_md_op_data((struct md_op_data *)0, inode, (struct inode *)0, (char const *)0, 0, 0, 16U, (void *)0); op_data->op_npages = (__u32 )npages; op_data->op_offset = hash; rc = md_readpage(exp, op_data, page_pool, & request); ll_finish_md_op_data(op_data); if (rc < 0) { delete_from_page_cache(page0); } else if (rc == 0) { tmp___5 = req_capsule_server_get(& request->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp___5; tmp___6 = ldv__builtin_expect((unsigned long )body == (unsigned long )((struct mdt_body *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; __msg_data___0.msg_fn = "ll_dir_filler"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 192; __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 != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } if ((body->valid & 16ULL) != 0ULL) { cl_isize_write(inode, (loff_t )body->size); } else { } nrdpgs = (int )(((unsigned long )(request->rq_bulk)->bd_nob_transferred + 4095UL) >> 12); SetPageUptodate(page0); } else { } unlock_page(page0); ptlrpc_req_finished(request); tmp___7 = cfs_cdebug_show(2097152U, 128U); if (tmp___7 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___0.msg_fn = "ll_dir_filler"; msgdata___0.msg_line = 204; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 2097152; libcfs_debug_msg(& msgdata___0, "read %d/%d pages\n", nrdpgs, npages); } else { } i = 1; goto ldv_68700; ldv_68699: page = *(page_pool + (unsigned long )i); if (rc < 0 || i >= nrdpgs) { put_page(page); goto ldv_68697; } else { } SetPageUptodate(page); tmp___8 = kmap(page); dp = (struct lu_dirpage *)tmp___8; hash = dp->ldp_hash_start; kunmap(page); offset = hash_x_index(hash, hash64); prefetchw((void const *)(& page->flags)); ret = add_to_page_cache_lru(page, inode->i_mapping, offset, 208U); if (ret == 0) { unlock_page(page); } else { tmp___9 = cfs_cdebug_show(2097152U, 128U); if (tmp___9 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___1.msg_fn = "ll_dir_filler"; msgdata___1.msg_line = 235; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 2097152; libcfs_debug_msg(& msgdata___1, "page %lu add to page cache failed: %d\n", offset, ret); } else { } } put_page(page); ldv_68697: i = i + 1; ldv_68700: ; if (i < npages) { goto ldv_68699; } else { } if ((unsigned long )(& page0) != (unsigned long )page_pool) { kfree((void const *)page_pool); } else { } return (rc); } } static void ll_check_page(struct inode *dir , struct page *page ) { { SetPageChecked(page); return; } } void ll_release_page(struct page *page , int remove ) { long tmp ; { kunmap(page); if (remove != 0) { lock_page(page); tmp = ldv__builtin_expect((unsigned long )page->__annonCompField36.mapping != (unsigned long )((struct address_space *)0), 1L); if (tmp != 0L) { truncate_complete_page(page->__annonCompField36.mapping, page); } else { } unlock_page(page); } else { } put_page(page); return; } } static struct page *ll_dir_page_locate(struct inode *dir , __u64 *hash , __u64 *start , __u64 *end ) { int hash64 ; struct ll_sb_info *tmp ; struct address_space *mapping ; unsigned long offset ; unsigned long tmp___0 ; struct page *page ; int found ; unsigned int tmp___1 ; struct lu_dirpage *dp ; void *tmp___2 ; struct libcfs_debug_msg_data __msg_data ; long tmp___3 ; struct libcfs_debug_msg_data msgdata ; int tmp___4 ; void *tmp___5 ; int tmp___6 ; int tmp___7 ; { tmp = ll_i2sbi(dir); hash64 = tmp->ll_flags & 16384; mapping = dir->i_mapping; tmp___0 = hash_x_index(*hash, hash64); offset = tmp___0; spin_lock_irq(& mapping->tree_lock); tmp___1 = radix_tree_gang_lookup(& mapping->page_tree, (void **)(& page), offset, 1U); found = (int )tmp___1; if (found > 0) { tmp___7 = radix_tree_exceptional_entry((void *)page); if (tmp___7 == 0) { get_page(page); spin_unlock_irq(& mapping->tree_lock); wait_on_page_locked(page); tmp___6 = PageUptodate(page); if (tmp___6 != 0) { tmp___2 = kmap(page); dp = (struct lu_dirpage *)tmp___2; *start = dp->ldp_hash_start; *end = dp->ldp_hash_end; tmp___3 = ldv__builtin_expect(*start > *hash, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; __msg_data.msg_fn = "ll_dir_page_locate"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 309; __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: start = %#llx,end = %#llx,hash = %#llx\n", (char *)"*start <= *hash", *start, *end, *hash); lbug_with_loc(& __msg_data); } else { } tmp___4 = cfs_cdebug_show(2097152U, 128U); if (tmp___4 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata.msg_fn = "ll_dir_page_locate"; msgdata.msg_line = 311; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "page %lu [%llu %llu], hash %llu\n", offset, *start, *end, *hash); } else { } if (*hash > *end) { ll_release_page(page, 0); page = (struct page *)0; } else if (*end != *start && *hash == *end) { ll_release_page(page, (int )dp->ldp_flags & 2); page = (struct page *)0; } else { } } else { put_page(page); tmp___5 = ERR_PTR(-5L); page = (struct page *)tmp___5; } } else { spin_unlock_irq(& mapping->tree_lock); page = (struct page *)0; } } else { spin_unlock_irq(& mapping->tree_lock); page = (struct page *)0; } return (page); } } struct page *ll_get_dir_page(struct inode *dir , __u64 hash , struct ll_dir_chain *chain ) { ldlm_policy_data_t policy ; struct address_space *mapping ; struct lustre_handle lockh ; struct lu_dirpage *dp ; struct page *page ; ldlm_mode_t mode ; int rc ; __u64 start ; __u64 end ; __u64 lhash ; struct ll_inode_info *lli ; struct ll_inode_info *tmp ; int hash64 ; struct ll_sb_info *tmp___0 ; struct lu_fid *tmp___1 ; struct ll_sb_info *tmp___2 ; ldlm_mode_t tmp___3 ; struct ldlm_enqueue_info einfo ; struct lookup_intent it ; struct ptlrpc_request *request ; struct md_op_data *op_data ; bool tmp___4 ; struct ll_sb_info *tmp___5 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; struct lu_fid *tmp___6 ; struct lu_fid *tmp___7 ; struct lu_fid *tmp___8 ; int tmp___9 ; void *tmp___10 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___11 ; struct ll_sb_info *tmp___12 ; struct ll_sb_info *tmp___13 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; long tmp___14 ; struct lu_fid *tmp___15 ; struct lu_fid *tmp___16 ; struct lu_fid *tmp___17 ; int tmp___18 ; bool tmp___19 ; unsigned long tmp___20 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; long tmp___21 ; struct lu_fid *tmp___22 ; struct lu_fid *tmp___23 ; struct lu_fid *tmp___24 ; int tmp___25 ; bool tmp___26 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___3 ; struct lu_fid *tmp___27 ; struct lu_fid *tmp___28 ; struct lu_fid *tmp___29 ; int tmp___30 ; int tmp___31 ; int tmp___32 ; struct cfs_debug_limit_state cdls___3 ; struct libcfs_debug_msg_data msgdata___4 ; struct lu_fid *tmp___33 ; struct lu_fid *tmp___34 ; struct lu_fid *tmp___35 ; int tmp___36 ; int tmp___37 ; void *tmp___38 ; struct libcfs_debug_msg_data __msg_data ; long tmp___39 ; struct cfs_debug_limit_state cdls___4 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___40 ; void *tmp___42 ; { policy.l_inodebits.bits = 2ULL; mapping = dir->i_mapping; start = 0ULL; end = 0ULL; lhash = hash; tmp = ll_i2info(dir); lli = tmp; tmp___0 = ll_i2sbi(dir); hash64 = tmp___0->ll_flags & 16384; mode = 4; tmp___1 = ll_inode2fid(dir); tmp___2 = ll_i2sbi(dir); tmp___3 = md_lock_match(tmp___2->ll_md_exp, 2ULL, (struct lu_fid const *)tmp___1, 13, & policy, mode, & lockh); rc = (int )tmp___3; if (rc == 0) { einfo.ei_type = 13U; einfo.ei_mode = mode; einfo.ei_cb_bl = (void *)(& ll_md_blocking_ast); einfo.ei_cb_cp = (void *)(& ldlm_completion_ast); einfo.ei_cb_gl = 0; einfo.ei_cbdata = 0; it.it_op = 4; it.it_create_mode = 0; it.it_flags = 0ULL; it.d.lustre.it_disposition = 0; it.d.lustre.it_status = 0; it.d.lustre.it_lock_handle = 0ULL; it.d.lustre.it_lock_bits = 0ULL; it.d.lustre.it_lock_mode = 0; it.d.lustre.it_remote_lock_mode = 0; it.d.lustre.it_remote_lock_handle = 0ULL; it.d.lustre.it_data = 0; it.d.lustre.it_lock_set = (unsigned char)0; op_data = ll_prep_md_op_data((struct md_op_data *)0, dir, dir, (char const *)0, 0, 0, 16U, (void *)0); tmp___4 = IS_ERR((void const *)op_data); if ((int )tmp___4) { return ((struct page *)op_data); } else { } tmp___5 = ll_i2sbi(dir); rc = md_enqueue(tmp___5->ll_md_exp, & einfo, & it, op_data, & lockh, (void *)0, 0, (struct ptlrpc_request **)0, 0ULL); ll_finish_md_op_data(op_data); request = (struct ptlrpc_request *)it.d.lustre.it_data; if ((unsigned long )request != (unsigned long )((struct ptlrpc_request *)0)) { ptlrpc_req_finished(request); } else { } if (rc < 0) { tmp___9 = cfs_cdebug_show(131072U, 128U); if (tmp___9 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata.msg_fn = "ll_get_dir_page"; msgdata.msg_line = 383; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; tmp___6 = ll_inode2fid(dir); tmp___7 = ll_inode2fid(dir); tmp___8 = ll_inode2fid(dir); libcfs_debug_msg(& msgdata, "lock enqueue: [%#llx:0x%x:0x%x] at %llu: rc %d\n", tmp___8->f_seq, tmp___7->f_oid, tmp___6->f_ver, hash, rc); } else { } tmp___10 = ERR_PTR((long )rc); return ((struct page *)tmp___10); } else { } tmp___11 = cfs_cdebug_show(2U, 128U); if (tmp___11 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___0.msg_fn = "ll_get_dir_page"; msgdata___0.msg_line = 388; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 2; libcfs_debug_msg(& msgdata___0, "setting lr_lvb_inode to inode %p (%lu/%u)\n", dir, dir->i_ino, dir->i_generation); } else { } tmp___12 = ll_i2sbi(dir); md_set_lock_data___0(tmp___12->ll_md_exp, & it.d.lustre.it_lock_handle, (void *)dir, (__u64 *)0ULL); } else { tmp___13 = ll_i2sbi(dir); md_set_lock_data___0(tmp___13->ll_md_exp, & lockh.cookie, (void *)dir, (__u64 *)0ULL); } ldlm_lock_dump_handle(4096, & lockh); mutex_lock_nested(& lli->u.d.d_readdir_mutex, 0U); page = ll_dir_page_locate(dir, & lhash, & start, & end); tmp___19 = IS_ERR((void const *)page); if ((int )tmp___19) { tmp___18 = cfs_cdebug_show(131072U, 128U); if (tmp___18 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___1.msg_fn = "ll_get_dir_page"; msgdata___1.msg_line = 403; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 131072; tmp___14 = PTR_ERR((void const *)page); tmp___15 = ll_inode2fid(dir); tmp___16 = ll_inode2fid(dir); tmp___17 = ll_inode2fid(dir); libcfs_debug_msg(& msgdata___1, "dir page locate: [%#llx:0x%x:0x%x] at %llu: rc %ld\n", tmp___17->f_seq, tmp___16->f_oid, tmp___15->f_ver, lhash, tmp___14); } else { } goto out_unlock; } else if ((unsigned long )page != (unsigned long )((struct page *)0)) { goto hash_collision; } else { } tmp___20 = hash_x_index(hash, hash64); page = read_cache_page(mapping, tmp___20, & ll_dir_filler, (void *)(& lhash)); tmp___26 = IS_ERR((void const *)page); if ((int )tmp___26) { tmp___25 = cfs_cdebug_show(131072U, 128U); if (tmp___25 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___2.msg_fn = "ll_get_dir_page"; msgdata___2.msg_line = 427; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; tmp___21 = PTR_ERR((void const *)page); tmp___22 = ll_inode2fid(dir); tmp___23 = ll_inode2fid(dir); tmp___24 = ll_inode2fid(dir); libcfs_debug_msg(& msgdata___2, "read cache page: [%#llx:0x%x:0x%x] at %llu: rc %ld\n", tmp___24->f_seq, tmp___23->f_oid, tmp___22->f_ver, hash, tmp___21); } else { } goto out_unlock; } else { } wait_on_page_locked(page); kmap(page); tmp___31 = PageUptodate(page); if (tmp___31 == 0) { tmp___30 = cfs_cdebug_show(131072U, 128U); if (tmp___30 != 0) { msgdata___3.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___3.msg_fn = "ll_get_dir_page"; msgdata___3.msg_line = 435; msgdata___3.msg_cdls = & cdls___2; msgdata___3.msg_mask = 131072; tmp___27 = ll_inode2fid(dir); tmp___28 = ll_inode2fid(dir); tmp___29 = ll_inode2fid(dir); libcfs_debug_msg(& msgdata___3, "page not updated: [%#llx:0x%x:0x%x] at %llu: rc %d\n", tmp___29->f_seq, tmp___28->f_oid, tmp___27->f_ver, hash, -5); } else { } goto fail; } else { } tmp___32 = PageChecked((struct page const *)page); if (tmp___32 == 0) { ll_check_page(dir, page); } else { } tmp___37 = PageError((struct page const *)page); if (tmp___37 != 0) { tmp___36 = cfs_cdebug_show(131072U, 128U); if (tmp___36 != 0) { msgdata___4.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___4.msg_fn = "ll_get_dir_page"; msgdata___4.msg_line = 442; msgdata___4.msg_cdls = & cdls___3; msgdata___4.msg_mask = 131072; tmp___33 = ll_inode2fid(dir); tmp___34 = ll_inode2fid(dir); tmp___35 = ll_inode2fid(dir); libcfs_debug_msg(& msgdata___4, "page error: [%#llx:0x%x:0x%x] at %llu: rc %d\n", tmp___35->f_seq, tmp___34->f_oid, tmp___33->f_ver, hash, -5); } else { } goto fail; } else { } hash_collision: tmp___38 = lowmem_page_address((struct page const *)page); dp = (struct lu_dirpage *)tmp___38; start = dp->ldp_hash_start; end = dp->ldp_hash_end; lhash = hash; if (end == start) { tmp___39 = ldv__builtin_expect(start != lhash, 0L); if (tmp___39 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; __msg_data.msg_fn = "ll_get_dir_page"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 457; __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 *)"start == lhash"); lbug_with_loc(& __msg_data); } else { } tmp___40 = cfs_cdebug_show(1024U, 128U); if (tmp___40 != 0) { msgdata___5.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___5.msg_fn = "ll_get_dir_page"; msgdata___5.msg_line = 458; msgdata___5.msg_cdls = & cdls___4; msgdata___5.msg_mask = 1024; libcfs_debug_msg(& msgdata___5, "Page-wide hash collision: %llu\n", end); } else { } goto fail; } else { } out_unlock: mutex_unlock(& lli->u.d.d_readdir_mutex); ldlm_lock_decref(& lockh, (__u32 )mode); return (page); fail: ll_release_page(page, 1); tmp___42 = ERR_PTR(-5L); page = (struct page *)tmp___42; goto out_unlock; } } int ll_dir_read(struct inode *inode , struct dir_context *ctx ) { struct ll_inode_info *info ; struct ll_inode_info *tmp ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___0 ; __u64 pos ; int api32 ; int tmp___1 ; int hash64 ; struct page *page ; struct ll_dir_chain chain ; int done ; int rc ; struct lu_dirpage *dp ; struct lu_dirent *ent ; __u64 hash ; __u64 next ; void *tmp___2 ; __u16 type ; int namelen ; struct lu_fid fid ; __u64 lhash ; __u64 ino ; bool tmp___3 ; int tmp___4 ; long tmp___6 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___7 ; bool tmp___8 ; int tmp___9 ; { tmp = ll_i2info(inode); info = tmp; tmp___0 = ll_i2sbi(inode); sbi = tmp___0; pos = (__u64 )ctx->pos; tmp___1 = ll_need_32bit_api(sbi); api32 = tmp___1; hash64 = sbi->ll_flags & 16384; done = 0; rc = 0; ll_dir_chain_init(& chain); page = ll_get_dir_page(inode, pos, & chain); goto ldv_68797; ldv_68796: tmp___8 = IS_ERR((void const *)page); if (tmp___8) { tmp___9 = 0; } else { tmp___9 = 1; } if (tmp___9) { hash = 0xfffffffffffffffeULL; tmp___2 = lowmem_page_address((struct page const *)page); dp = (struct lu_dirpage *)tmp___2; ent = lu_dirent_start(dp); goto ldv_68790; ldv_68789: hash = ent->lde_hash; if (hash < pos) { goto ldv_68788; } else { } namelen = (int )ent->lde_namelen; if (namelen == 0) { goto ldv_68788; } else { } if (api32 != 0 && hash64 != 0) { lhash = hash >> 32; } else { lhash = hash; } fid_le_to_cpu(& fid, (struct lu_fid const *)(& ent->lde_fid)); ino = cl_fid_build_ino((struct lu_fid const *)(& fid), api32); type = ll_dirent_type_get(ent); ctx->pos = (loff_t )lhash; tmp___3 = dir_emit(ctx, (char const *)(& ent->lde_name), namelen, ino, (unsigned int )type); if (tmp___3) { tmp___4 = 0; } else { tmp___4 = 1; } done = tmp___4; ldv_68788: ent = lu_dirent_next(ent); ldv_68790: ; if ((unsigned long )ent != (unsigned long )((struct lu_dirent *)0) && done == 0) { goto ldv_68789; } else { } next = dp->ldp_hash_end; if (done == 0) { pos = next; if (pos == 0xfffffffffffffffeULL) { done = 1; ll_release_page(page, 0); } else { ll_release_page(page, (int )dp->ldp_flags & 2); next = pos; page = ll_get_dir_page(inode, pos, & chain); } } else { pos = hash; ll_release_page(page, 0); } } else { tmp___6 = PTR_ERR((void const *)page); rc = (int )tmp___6; tmp___7 = cfs_cdebug_show(131072U, 128U); if (tmp___7 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata.msg_fn = "ll_dir_read"; msgdata.msg_line = 588; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "error reading dir [%#llx:0x%x:0x%x] at %lu: rc %d\n", info->lli_fid.f_seq, info->lli_fid.f_oid, info->lli_fid.f_ver, (unsigned long )pos, rc); } else { } } ldv_68797: ; if (rc == 0 && done == 0) { goto ldv_68796; } else { } ctx->pos = (loff_t )pos; ll_dir_chain_init(& chain); return (rc); } } static int ll_readdir(struct file *filp , struct dir_context *ctx ) { struct inode *inode ; struct inode *tmp ; struct ll_file_data *lfd ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___0 ; int hash64 ; int api32 ; int tmp___1 ; int rc ; struct libcfs_debug_msg_data msgdata ; loff_t tmp___2 ; int tmp___3 ; { tmp = file_inode((struct file const *)filp); inode = tmp; lfd = (struct ll_file_data *)filp->private_data; tmp___0 = ll_i2sbi(inode); sbi = tmp___0; hash64 = sbi->ll_flags & 16384; tmp___1 = ll_need_32bit_api(sbi); api32 = tmp___1; tmp___3 = cfs_cdebug_show(2097152U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata.msg_fn = "ll_readdir"; msgdata.msg_line = 608; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; tmp___2 = i_size_read((struct inode const *)inode); libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p) pos %lu/%llu 32bit_api %d\n", inode->i_ino, inode->i_generation, inode, (unsigned long )lfd->lfd_pos, tmp___2, api32); } else { } if (lfd->lfd_pos == 0xfffffffffffffffeULL) { rc = 0; goto out; } else { } ctx->pos = (loff_t )lfd->lfd_pos; rc = ll_dir_read(inode, ctx); lfd->lfd_pos = (__u64 )ctx->pos; if (ctx->pos == -2LL) { if (api32 != 0) { ctx->pos = 2147483647LL; } else { ctx->pos = 9223372036854775807LL; } } else if (api32 != 0 && hash64 != 0) { ctx->pos = ctx->pos >> 32; } else { } filp->f_version = inode->i_version; out: ; if (rc == 0) { ll_stats_ops_tally(sbi, 14, 1); } else { } return (rc); } } static int ll_send_mgc_param(struct obd_export *mgc , char *string ) { struct mgs_send_param *msp ; int rc ; void *tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { rc = 0; tmp = kzalloc(1024UL, 80U); msp = (struct mgs_send_param *)tmp; if ((unsigned long )msp == (unsigned long )((struct mgs_send_param *)0)) { return (-12); } else { } strncpy((char *)(& msp->mgs_param), (char const *)string, 1024UL); rc = obd_set_info_async((struct lu_env const *)0, mgc, 9U, (void *)"set_info", 1024U, (void *)msp, (struct ptlrpc_request_set *)0); if (rc != 0) { tmp___0 = cfs_cdebug_show(131072U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata.msg_fn = "ll_send_mgc_param"; msgdata.msg_line = 652; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Failed to set parameter: %d\n", rc); } else { } } else { } kfree((void const *)msp); return (rc); } } static int ll_dir_setdirstripe(struct inode *dir , struct lmv_user_md_v1 *lump , char *filename ) { struct ptlrpc_request *request ; struct md_op_data *op_data ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; int mode ; int err ; int tmp___0 ; size_t tmp___1 ; long tmp___2 ; bool tmp___3 ; cfs_cap_t tmp___4 ; int tmp___5 ; struct task_struct *tmp___6 ; gid_t tmp___7 ; int tmp___8 ; struct task_struct *tmp___9 ; uid_t tmp___10 ; { request = (struct ptlrpc_request *)0; tmp = ll_i2sbi(dir); sbi = tmp; tmp___0 = current_umask(); mode = (~ tmp___0 & 493) | 16384; tmp___1 = strlen((char const *)filename); op_data = ll_prep_md_op_data((struct md_op_data *)0, dir, (struct inode *)0, (char const *)filename, (int )tmp___1, mode, 1U, (void *)lump); tmp___3 = IS_ERR((void const *)op_data); if ((int )tmp___3) { tmp___2 = PTR_ERR((void const *)op_data); err = (int )tmp___2; goto err_exit; } else { } op_data->op_cli_flags = op_data->op_cli_flags | 1U; tmp___4 = cfs_curproc_cap_pack(); tmp___5 = debug_lockdep_rcu_enabled(); tmp___6 = get_current(); tmp___7 = from_kgid(& init_user_ns, (tmp___6->cred)->fsgid); tmp___8 = debug_lockdep_rcu_enabled(); tmp___9 = get_current(); tmp___10 = from_kuid(& init_user_ns, (tmp___9->cred)->fsuid); err = md_create(sbi->ll_md_exp, op_data, (void const *)lump, 48, mode, tmp___10, tmp___7, tmp___4, 0ULL, & request); ll_finish_md_op_data(op_data); if (err != 0) { } else { } err_exit: ptlrpc_req_finished(request); return (err); } } int ll_dir_setstripe(struct inode *inode , struct lov_user_md_v1 *lump , int set_default ) { struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct md_op_data *op_data ; struct ptlrpc_request *req ; int rc ; struct lustre_sb_info *lsi ; struct obd_device *mgc ; int lum_size ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; long tmp___1 ; bool tmp___2 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; char *param ; char *buf ; void *tmp___4 ; size_t tmp___5 ; { tmp = ll_i2sbi(inode); sbi = tmp; req = (struct ptlrpc_request *)0; rc = 0; lsi = (struct lustre_sb_info *)(inode->i_sb)->s_fs_info; mgc = lsi->lsi_mgc; if ((unsigned long )lump != (unsigned long )((struct lov_user_md_v1 *)0)) { switch (lump->lmm_magic) { case 198249424U: ; if (lump->lmm_magic != 198249424U) { lustre_swab_lov_user_md_v1(lump); } else { } lum_size = 32; goto ldv_68849; case 198380496U: ; if (lump->lmm_magic != 198380496U) { lustre_swab_lov_user_md_v3((struct lov_user_md_v3 *)lump); } else { } lum_size = 48; goto ldv_68849; default: tmp___0 = cfs_cdebug_show(128U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata.msg_fn = "ll_dir_setstripe"; msgdata.msg_line = 723; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 128; libcfs_debug_msg(& msgdata, "bad userland LOV MAGIC: %#08x != %#08x nor %#08x\n", lump->lmm_magic, 198249424, 198380496); } else { } return (-22); } ldv_68849: ; } else { lum_size = 32; } op_data = ll_prep_md_op_data((struct md_op_data *)0, inode, (struct inode *)0, (char const *)0, 0, 0, 16U, (void *)0); tmp___2 = IS_ERR((void const *)op_data); if ((int )tmp___2) { tmp___1 = PTR_ERR((void const *)op_data); return ((int )tmp___1); } else { } if ((unsigned long )lump != (unsigned long )((struct lov_user_md_v1 *)0) && lump->lmm_magic == 215092432U) { op_data->op_cli_flags = op_data->op_cli_flags | 1U; } else { } rc = md_setattr(sbi->ll_md_exp, op_data, (void *)lump, lum_size, (void *)0, 0, & req, (struct md_open_data **)0); ll_finish_md_op_data(op_data); ptlrpc_req_finished(req); if (rc != 0) { if (rc != -1 && rc != -13) { tmp___3 = cfs_cdebug_show(131072U, 128U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___0.msg_fn = "ll_dir_setstripe"; msgdata___0.msg_line = 746; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "mdc_setattr fails: rc = %d\n", rc); } else { } } else { } } else { } if (set_default != 0 && (unsigned long )mgc->u.cli.cl_mgc_mgsexp != (unsigned long )((struct obd_export *)0)) { param = (char *)0; tmp___4 = kzalloc(1024UL, 80U); param = (char *)tmp___4; if ((unsigned long )param == (unsigned long )((char *)0)) { return (-12); } else { } buf = param; ll_get_fsname(inode->i_sb, buf, 64); strcat(buf, "-MDT0000.lov"); tmp___5 = strlen((char const *)buf); buf = buf + tmp___5; sprintf(buf, ".stripesize=%u", (unsigned long )lump != (unsigned long )((struct lov_user_md_v1 *)0) ? lump->lmm_stripe_size : 0U); rc = ll_send_mgc_param(mgc->u.cli.cl_mgc_mgsexp, param); if (rc != 0) { goto end; } else { } sprintf(buf, ".stripecount=%hd", (unsigned long )lump != (unsigned long )((struct lov_user_md_v1 *)0) ? (int )lump->lmm_stripe_count : 0); rc = ll_send_mgc_param(mgc->u.cli.cl_mgc_mgsexp, param); if (rc != 0) { goto end; } else { } sprintf(buf, ".stripeoffset=%hd", (unsigned long )lump != (unsigned long )((struct lov_user_md_v1 *)0) ? (int )lump->__annonCompField109.lmm_stripe_offset : 65535); rc = ll_send_mgc_param(mgc->u.cli.cl_mgc_mgsexp, param); end: kfree((void const *)param); } else { } return (rc); } } int ll_dir_getstripe(struct inode *inode , struct lov_mds_md_v1 **lmmp , int *lmm_size , struct ptlrpc_request **request ) { struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct mdt_body *body ; struct lov_mds_md_v1 *lmm ; struct ptlrpc_request *req ; int rc ; int lmmsize ; struct md_op_data *op_data ; long tmp___0 ; bool tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; void *tmp___3 ; struct libcfs_debug_msg_data __msg_data ; long tmp___4 ; void *tmp___5 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___6 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___7 ; { tmp = ll_i2sbi(inode); sbi = tmp; lmm = (struct lov_mds_md_v1 *)0; req = (struct ptlrpc_request *)0; rc = ll_get_default_mdsize(sbi, & lmmsize); if (rc != 0) { return (rc); } else { } op_data = ll_prep_md_op_data((struct md_op_data *)0, inode, (struct inode *)0, (char const *)0, 0, lmmsize, 16U, (void *)0); tmp___1 = IS_ERR((void const *)op_data); if ((int )tmp___1) { tmp___0 = PTR_ERR((void const *)op_data); return ((int )tmp___0); } else { } op_data->op_valid = 268566528ULL; rc = md_getattr(sbi->ll_md_exp, op_data, & req); ll_finish_md_op_data(op_data); if (rc < 0) { tmp___2 = cfs_cdebug_show(64U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata.msg_fn = "ll_dir_getstripe"; msgdata.msg_line = 818; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "md_getattr failed on inode %lu/%u: rc %d\n", inode->i_ino, inode->i_generation, rc); } else { } goto out; } else { } tmp___3 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp___3; tmp___4 = ldv__builtin_expect((unsigned long )body == (unsigned long )((struct mdt_body *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; __msg_data.msg_fn = "ll_dir_getstripe"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 823; __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)"); lbug_with_loc(& __msg_data); } else { } lmmsize = (int )body->eadatasize; if ((body->valid & 268566528ULL) == 0ULL || lmmsize == 0) { rc = -61; goto out; } else { } tmp___5 = req_capsule_server_sized_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_MDT_MD), lmmsize); lmm = (struct lov_mds_md_v1 *)tmp___5; tmp___6 = ldv__builtin_expect((unsigned long )lmm == (unsigned long )((struct lov_mds_md_v1 *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; __msg_data___0.msg_fn = "ll_dir_getstripe"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 835; __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 *)"lmm != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } switch (lmm->lmm_magic) { case 198249424U: ; goto ldv_68878; case 198380496U: ; goto ldv_68878; default: tmp___7 = cfs_cdebug_show(131072U, 128U); if (tmp___7 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___0.msg_fn = "ll_dir_getstripe"; msgdata___0.msg_line = 853; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "unknown magic: %lX\n", (unsigned long )lmm->lmm_magic); } else { } rc = -71; } ldv_68878: ; out: *lmmp = lmm; *lmm_size = lmmsize; *request = req; return (rc); } } int ll_get_mdt_idx(struct inode *inode ) { struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct md_op_data *op_data ; int rc ; int mdtidx ; long tmp___0 ; bool tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; { tmp = ll_i2sbi(inode); sbi = tmp; op_data = ll_prep_md_op_data((struct md_op_data *)0, inode, (struct inode *)0, (char const *)0, 0, 0, 16U, (void *)0); tmp___1 = IS_ERR((void const *)op_data); if ((int )tmp___1) { tmp___0 = PTR_ERR((void const *)op_data); return ((int )tmp___0); } else { } op_data->op_flags = op_data->op_flags | 512U; rc = md_getattr(sbi->ll_md_exp, op_data, (struct ptlrpc_request **)0); mdtidx = (int )op_data->op_mds; ll_finish_md_op_data(op_data); if (rc < 0) { tmp___2 = cfs_cdebug_show(64U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata.msg_fn = "ll_get_mdt_idx"; msgdata.msg_line = 882; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "md_getattr_name: %d\n", rc); } else { } return (rc); } else { } return (mdtidx); } } static int ll_ioc_copy_start(struct super_block *sb , struct hsm_copy *copy ) { struct ll_sb_info *sbi ; struct hsm_progress_kernel hpk ; int rc ; struct inode *inode ; __u64 data_version ; long tmp ; long tmp___0 ; bool tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; { sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; hpk.hpk_fid = copy->hc_hai.hai_fid; hpk.hpk_cookie = copy->hc_hai.hai_cookie; hpk.hpk_extent.offset = copy->hc_hai.hai_extent.offset; hpk.hpk_extent.length = 0ULL; hpk.hpk_flags = 0U; hpk.hpk_errval = 0U; hpk.hpk_data_version = 0ULL; if (copy->hc_hai.hai_action == 20U) { data_version = 0ULL; inode = search_inode_for_lustre(sb, (struct lu_fid const *)(& copy->hc_hai.hai_fid)); tmp___1 = IS_ERR((void const *)inode); if ((int )tmp___1) { hpk.hpk_flags = (__u16 )((unsigned int )hpk.hpk_flags | 2U); tmp = PTR_ERR((void const *)inode); hpk.hpk_errval = - ((int )((__u16 )tmp)); tmp___0 = PTR_ERR((void const *)inode); rc = (int )tmp___0; goto progress; } else { } rc = ll_data_version(inode, & data_version, 1); iput(inode); if (rc != 0) { tmp___2 = cfs_cdebug_show(1U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata.msg_fn = "ll_ioc_copy_start"; msgdata.msg_line = 937; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 1; libcfs_debug_msg(& msgdata, "Could not read file data version of [%#llx:0x%x:0x%x] (rc = %d). Archive request (%#llx) could not be done.\n", copy->hc_hai.hai_fid.f_seq, copy->hc_hai.hai_fid.f_oid, copy->hc_hai.hai_fid.f_ver, rc, copy->hc_hai.hai_cookie); } else { } hpk.hpk_flags = (__u16 )((unsigned int )hpk.hpk_flags | 2U); hpk.hpk_errval = - ((int )((__u16 )rc)); goto progress; } else { } copy->hc_data_version = data_version; } else { } progress: rc = obd_iocontrol(1075341016U, sbi->ll_md_exp, 64, (void *)(& hpk), (void *)0); return (rc); } } static int ll_ioc_copy_end(struct super_block *sb , struct hsm_copy *copy ) { struct ll_sb_info *sbi ; struct hsm_progress_kernel hpk ; int rc ; struct inode *inode ; __u64 data_version ; long tmp ; long tmp___0 ; bool tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; { sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; hpk.hpk_fid = copy->hc_hai.hai_fid; hpk.hpk_cookie = copy->hc_hai.hai_cookie; hpk.hpk_extent = copy->hc_hai.hai_extent; hpk.hpk_flags = (__u16 )((unsigned int )copy->hc_flags | 1U); hpk.hpk_errval = copy->hc_errval; hpk.hpk_data_version = 0ULL; if ((copy->hc_hai.hai_action == 20U || copy->hc_hai.hai_action == 21U) && (unsigned int )copy->hc_errval == 0U) { data_version = 0ULL; inode = search_inode_for_lustre(sb, (struct lu_fid const *)(& copy->hc_hai.hai_fid)); tmp___1 = IS_ERR((void const *)inode); if ((int )tmp___1) { hpk.hpk_flags = (__u16 )((unsigned int )hpk.hpk_flags | 2U); tmp = PTR_ERR((void const *)inode); hpk.hpk_errval = - ((int )((__u16 )tmp)); tmp___0 = PTR_ERR((void const *)inode); rc = (int )tmp___0; goto progress; } else { } rc = ll_data_version(inode, & data_version, copy->hc_hai.hai_action == 20U); iput(inode); if (rc != 0) { tmp___2 = cfs_cdebug_show(1U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata.msg_fn = "ll_ioc_copy_end"; msgdata.msg_line = 1015; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 1; libcfs_debug_msg(& msgdata, "Could not read file data version. Request could not be confirmed.\n"); } else { } if ((unsigned int )hpk.hpk_errval == 0U) { hpk.hpk_errval = - ((int )((__u16 )rc)); } else { } goto progress; } else { } hpk.hpk_data_version = data_version; if (copy->hc_hai.hai_action == 20U && copy->hc_data_version != data_version) { tmp___3 = cfs_cdebug_show(1U, 128U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___0.msg_fn = "ll_ioc_copy_end"; msgdata___0.msg_line = 1032; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 1; libcfs_debug_msg(& msgdata___0, "File data version mismatched. File content was changed during archiving. [%#llx:0x%x:0x%x], start:%#llx current:%#llx\n", copy->hc_hai.hai_fid.f_seq, copy->hc_hai.hai_fid.f_oid, copy->hc_hai.hai_fid.f_ver, copy->hc_data_version, data_version); } else { } hpk.hpk_flags = (unsigned int )hpk.hpk_flags & 65533U; hpk.hpk_errval = 16U; } else { } } else { } progress: rc = obd_iocontrol(1075341016U, sbi->ll_md_exp, 64, (void *)(& hpk), (void *)0); return (rc); } } static int copy_and_ioctl(int cmd , struct obd_export *exp , void const *data , size_t size ) { void *copy ; int rc ; unsigned long tmp ; { copy = kzalloc(size, 80U); if ((unsigned long )copy == (unsigned long )((void *)0)) { return (-12); } else { } tmp = copy_from_user(copy, data, size); if (tmp != 0UL) { rc = -14; goto out; } else { } rc = obd_iocontrol((unsigned int )cmd, exp, (int )size, copy, (void *)0); out: kfree((void const *)copy); return (rc); } } static int quotactl_ioctl(struct ll_sb_info *sbi , struct if_quotactl *qctl ) { int cmd ; int type ; int id ; int valid ; int rc ; bool tmp ; int tmp___0 ; kuid_t tmp___1 ; int tmp___2 ; struct task_struct *tmp___3 ; bool tmp___4 ; int tmp___5 ; kgid_t tmp___6 ; int tmp___7 ; bool tmp___8 ; int tmp___9 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___10 ; struct obd_quotactl *oqctl ; void *tmp___11 ; struct obd_quotactl *oqctl_tmp ; void *tmp___12 ; { cmd = (int )qctl->qc_cmd; type = (int )qctl->qc_type; id = (int )qctl->qc_id; valid = (int )qctl->qc_valid; rc = 0; switch (cmd) { case 8388619: ; case 8388620: ; case 8388610: ; case 8388611: ; case 8388616: ; case 8388614: tmp = capable(21); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0 || (sbi->ll_flags & 64) != 0) { return (-1); } else { } goto ldv_68941; case 8388615: ; if (type == 0) { tmp___1 = make_kuid(& init_user_ns, (uid_t )id); tmp___2 = debug_lockdep_rcu_enabled(); tmp___3 = get_current(); tmp___4 = uid_eq((tmp___3->cred)->euid, tmp___1); if (tmp___4) { tmp___5 = 0; } else { tmp___5 = 1; } if (tmp___5) { goto _L; } else { goto _L___0; } } else _L___0: /* CIL Label */ if (type == 1) { tmp___6 = make_kgid(& init_user_ns, (gid_t )id); tmp___7 = in_egroup_p(tmp___6); if (tmp___7 == 0) { _L: /* CIL Label */ tmp___8 = capable(21); if (tmp___8) { tmp___9 = 0; } else { tmp___9 = 1; } if (tmp___9 || (sbi->ll_flags & 64) != 0) { return (-1); } else { } } else { } } else { } goto ldv_68941; case 8388613: ; goto ldv_68941; default: tmp___10 = cfs_cdebug_show(131072U, 128U); if (tmp___10 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata.msg_fn = "quotactl_ioctl"; msgdata.msg_line = 1108; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "unsupported quotactl op: %#x\n", cmd); } else { } return (-25); } ldv_68941: ; if (valid != 0) { if ((sbi->ll_flags & 64) != 0) { return (-95); } else { } if (cmd == 8388613) { qctl->qc_cmd = 8388866U; } else if (cmd == 8388615) { qctl->qc_cmd = 8388867U; } else { return (-22); } switch (valid) { case 1: rc = obd_iocontrol(3232786082U, sbi->ll_md_exp, 176, (void *)qctl, (void *)0); goto ldv_68951; case 2: rc = obd_iocontrol(3232786082U, sbi->ll_dt_exp, 176, (void *)qctl, (void *)0); goto ldv_68951; case 3: rc = obd_iocontrol(3232786082U, sbi->ll_md_exp, 176, (void *)qctl, (void *)0); if (rc == -11) { rc = obd_iocontrol(3232786082U, sbi->ll_dt_exp, 176, (void *)qctl, (void *)0); } else { } goto ldv_68951; default: rc = -22; goto ldv_68951; } ldv_68951: ; if (rc != 0) { return (rc); } else { } qctl->qc_cmd = (__u32 )cmd; } else { tmp___11 = kzalloc(112UL, 80U); oqctl = (struct obd_quotactl *)tmp___11; if ((unsigned long )oqctl == (unsigned long )((struct obd_quotactl *)0)) { return (-12); } else { } oqctl->qc_cmd = qctl->qc_cmd; oqctl->qc_type = qctl->qc_type; oqctl->qc_id = qctl->qc_id; oqctl->qc_stat = qctl->qc_stat; oqctl->qc_dqinfo = qctl->qc_dqinfo; oqctl->qc_dqblk = qctl->qc_dqblk; rc = obd_quotactl(sbi->ll_md_exp, oqctl); if (rc != 0) { if (rc != -114 && cmd == 8388610) { oqctl->qc_cmd = 8388611U; obd_quotactl(sbi->ll_md_exp, oqctl); } else { } kfree((void const *)oqctl); return (rc); } else { } if ((cmd == 8388615 && (oqctl->qc_dqblk.dqb_valid & 2U) == 0U) && oqctl->qc_dqblk.dqb_curspace == 0ULL) { tmp___12 = kzalloc(112UL, 80U); oqctl_tmp = (struct obd_quotactl *)tmp___12; if ((unsigned long )oqctl_tmp == (unsigned long )((struct obd_quotactl *)0)) { rc = -12; goto out; } else { } oqctl_tmp->qc_cmd = 8388867U; oqctl_tmp->qc_id = oqctl->qc_id; oqctl_tmp->qc_type = oqctl->qc_type; oqctl_tmp->qc_dqblk.dqb_curspace = 0ULL; rc = obd_quotactl(sbi->ll_dt_exp, oqctl_tmp); if (rc == 0 || rc == -121) { oqctl->qc_dqblk.dqb_curspace = oqctl_tmp->qc_dqblk.dqb_curspace; oqctl->qc_dqblk.dqb_valid = oqctl->qc_dqblk.dqb_valid | 2U; } else { } oqctl_tmp->qc_dqblk.dqb_curspace = 0ULL; oqctl_tmp->qc_dqblk.dqb_curinodes = 0ULL; rc = obd_quotactl(sbi->ll_md_exp, oqctl_tmp); if (rc == 0 || rc == -121) { oqctl->qc_dqblk.dqb_curspace = oqctl->qc_dqblk.dqb_curspace + oqctl_tmp->qc_dqblk.dqb_curspace; oqctl->qc_dqblk.dqb_curinodes = oqctl_tmp->qc_dqblk.dqb_curinodes; oqctl->qc_dqblk.dqb_valid = oqctl->qc_dqblk.dqb_valid | 8U; } else { oqctl->qc_dqblk.dqb_valid = oqctl->qc_dqblk.dqb_valid & 4294967293U; } kfree((void const *)oqctl_tmp); } else { } out: qctl->qc_cmd = oqctl->qc_cmd; qctl->qc_type = oqctl->qc_type; qctl->qc_id = oqctl->qc_id; qctl->qc_stat = oqctl->qc_stat; qctl->qc_dqinfo = oqctl->qc_dqinfo; qctl->qc_dqblk = oqctl->qc_dqblk; kfree((void const *)oqctl); } return (rc); } } static char *ll_getname(char const *filename ) { int ret ; int len ; char *tmp ; void *tmp___0 ; void *tmp___1 ; long tmp___2 ; void *tmp___3 ; { ret = 0; tmp___0 = kzalloc(256UL, 208U); tmp = (char *)tmp___0; if ((unsigned long )tmp == (unsigned long )((char *)0)) { tmp___1 = ERR_PTR(-12L); return ((char *)tmp___1); } else { } tmp___2 = strncpy_from_user(tmp, filename, 256L); len = (int )tmp___2; if (len < 0) { ret = len; } else if (len == 0) { ret = -2; } else if (len > 255 && (int )((signed char )*(tmp + 255UL)) != 0) { ret = -36; } else { } if (ret != 0) { kfree((void const *)tmp); tmp___3 = ERR_PTR((long )ret); tmp = (char *)tmp___3; } else { } return (tmp); } } static long ll_dir_ioctl(struct file *file , unsigned int cmd , unsigned long arg ) { struct inode *inode ; struct inode *tmp ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___0 ; struct obd_ioctl_data *data ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; struct ll_sb_info *tmp___2 ; int tmp___3 ; int __ret_pu ; int __pu_val ; int mdtidx ; int __ret_pu___0 ; int __pu_val___0 ; struct ptlrpc_request *request ; int namelen ; int len ; char *buf ; char *filename ; struct md_op_data *op_data ; size_t tmp___4 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___5 ; long tmp___6 ; bool tmp___7 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___8 ; struct lmv_user_md_v1 *lum ; char *buf___0 ; char *filename___0 ; int namelen___0 ; int lumlen ; int len___0 ; int rc___0 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___9 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___10 ; struct lov_user_md_v3 lumv3 ; struct lov_user_md_v1 *lumv1 ; struct lov_user_md_v1 *lumv1p ; struct lov_user_md_v3 *lumv3p ; int set_default ; struct libcfs_debug_msg_data __msg_data ; long tmp___11 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___12 ; unsigned long tmp___13 ; unsigned long tmp___14 ; bool tmp___15 ; struct lmv_user_md_v1 *lump ; struct lmv_user_md_v1 lum___0 ; struct lmv_user_md_v1 *tmp___16 ; int lum_size ; int rc___1 ; int mdtindex ; unsigned long tmp___17 ; void *tmp___18 ; struct lu_fid *tmp___19 ; unsigned long tmp___20 ; int tmp___21 ; struct ptlrpc_request *request___0 ; struct lov_user_md_v1 *lump___0 ; struct lov_mds_md_v1 *lmm ; struct mdt_body *body ; char *filename___1 ; int lmmsize ; long tmp___22 ; bool tmp___23 ; void *tmp___24 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___25 ; struct lov_user_mds_data_v1 *lmdp ; unsigned long tmp___26 ; unsigned long tmp___27 ; struct lov_user_mds_data_v1 *lmdp___0 ; lstat_t st ; unsigned long tmp___28 ; struct lov_user_mds_data_v1 *lumd ; struct lov_stripe_md *lsm ; struct lov_user_md_v1 *lum___1 ; struct lov_mds_md_v1 *lmm___0 ; int lmmsize___0 ; lstat_t st___0 ; void *tmp___29 ; unsigned long tmp___30 ; unsigned long tmp___31 ; struct obd_quotactl *oqctl ; int error ; bool tmp___32 ; int tmp___33 ; void *tmp___34 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___35 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___36 ; struct if_quotacheck *check ; bool tmp___37 ; int tmp___38 ; void *tmp___39 ; struct libcfs_debug_msg_data msgdata___6 ; int tmp___40 ; struct libcfs_debug_msg_data msgdata___7 ; int tmp___41 ; unsigned long tmp___42 ; struct libcfs_debug_msg_data msgdata___8 ; int tmp___43 ; struct libcfs_debug_msg_data msgdata___9 ; int tmp___44 ; unsigned long tmp___45 ; struct if_quotactl *qctl ; void *tmp___46 ; unsigned long tmp___47 ; unsigned long tmp___48 ; int tmp___49 ; int tmp___50 ; struct ll_file_data *fd ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___51 ; struct task_struct *tmp___52 ; bool tmp___53 ; int count ; int vallen ; struct obd_export *exp ; unsigned long tmp___54 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___10 ; int tmp___55 ; unsigned long tmp___56 ; struct lu_fid *tmp___57 ; unsigned long tmp___58 ; int tmp___59 ; int tmp___60 ; struct hsm_user_request *hur ; ssize_t totalsize ; void *tmp___61 ; long tmp___62 ; bool tmp___63 ; void *tmp___64 ; unsigned long tmp___65 ; struct lu_fid const *fid ; struct inode *f ; int i ; long tmp___66 ; bool tmp___67 ; struct obd_export *tmp___68 ; struct hsm_progress_kernel hpk ; struct hsm_progress hp ; unsigned long tmp___69 ; struct hsm_copy *copy ; int rc___2 ; void *tmp___70 ; long tmp___71 ; bool tmp___72 ; unsigned long tmp___73 ; struct hsm_copy *copy___0 ; int rc___3 ; void *tmp___74 ; long tmp___75 ; bool tmp___76 ; unsigned long tmp___77 ; int tmp___78 ; { tmp = file_inode((struct file const *)file); inode = tmp; tmp___0 = ll_i2sbi(inode); sbi = tmp___0; rc = 0; tmp___1 = cfs_cdebug_show(2097152U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata.msg_fn = "ll_dir_ioctl"; msgdata.msg_line = 1253; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p), cmd=%#x\n", inode->i_ino, inode->i_generation, inode, cmd); } else { } if (((cmd >> 8) & 255U) == 84U || ((cmd >> 8) & 255U) == 116U) { return (-25L); } else { } tmp___2 = ll_i2sbi(inode); ll_stats_ops_tally(tmp___2, 8, 1); switch (cmd) { case 2148034049U: ; case 1074292226U: tmp___3 = ll_iocontrol(inode, file, cmd, arg); return ((long )tmp___3); case 2148038145U: ; case 2148034051U: __might_fault("/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c", 1266); __pu_val = (int )inode->i_generation; switch (4UL) { case 1UL: __asm__ volatile ("call __put_user_1": "=a" (__ret_pu): "0" (__pu_val), "c" ((int *)arg): "ebx"); goto ldv_68982; case 2UL: __asm__ volatile ("call __put_user_2": "=a" (__ret_pu): "0" (__pu_val), "c" ((int *)arg): "ebx"); goto ldv_68982; case 4UL: __asm__ volatile ("call __put_user_4": "=a" (__ret_pu): "0" (__pu_val), "c" ((int *)arg): "ebx"); goto ldv_68982; case 8UL: __asm__ volatile ("call __put_user_8": "=a" (__ret_pu): "0" (__pu_val), "c" ((int *)arg): "ebx"); goto ldv_68982; default: __asm__ volatile ("call __put_user_X": "=a" (__ret_pu): "0" (__pu_val), "c" ((int *)arg): "ebx"); goto ldv_68982; } ldv_68982: ; return ((long )__ret_pu); case 2147772079U: mdtidx = ll_get_mdt_idx(inode); if (mdtidx < 0) { return ((long )mdtidx); } else { } __might_fault("/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c", 1280); __pu_val___0 = mdtidx; switch (4UL) { case 1UL: __asm__ volatile ("call __put_user_1": "=a" (__ret_pu___0): "0" (__pu_val___0), "c" ((int *)arg): "ebx"); goto ldv_68993; case 2UL: __asm__ volatile ("call __put_user_2": "=a" (__ret_pu___0): "0" (__pu_val___0), "c" ((int *)arg): "ebx"); goto ldv_68993; case 4UL: __asm__ volatile ("call __put_user_4": "=a" (__ret_pu___0): "0" (__pu_val___0), "c" ((int *)arg): "ebx"); goto ldv_68993; case 8UL: __asm__ volatile ("call __put_user_8": "=a" (__ret_pu___0): "0" (__pu_val___0), "c" ((int *)arg): "ebx"); goto ldv_68993; default: __asm__ volatile ("call __put_user_X": "=a" (__ret_pu___0): "0" (__pu_val___0), "c" ((int *)arg): "ebx"); goto ldv_68993; } ldv_68993: ; if (__ret_pu___0 != 0) { return (-14L); } else { } return (0L); case 3221776660U: request = (struct ptlrpc_request *)0; len = 0; buf = (char *)0; rc = obd_ioctl_getdata(& buf, & len, (void *)arg); if (rc != 0) { return ((long )rc); } else { } data = (struct obd_ioctl_data *)buf; filename = data->ioc_inlbuf1; tmp___4 = strlen((char const *)filename); namelen = (int )tmp___4; if (namelen <= 0) { tmp___5 = cfs_cdebug_show(64U, 128U); if (tmp___5 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___0.msg_fn = "ll_dir_ioctl"; msgdata___0.msg_line = 1301; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 64; libcfs_debug_msg(& msgdata___0, "IOC_MDC_LOOKUP missing filename\n"); } else { } rc = -22; goto out_free; } else { } op_data = ll_prep_md_op_data((struct md_op_data *)0, inode, (struct inode *)0, (char const *)filename, namelen, 0, 16U, (void *)0); tmp___7 = IS_ERR((void const *)op_data); if ((int )tmp___7) { tmp___6 = PTR_ERR((void const *)op_data); rc = (int )tmp___6; goto out_free; } else { } op_data->op_valid = 1ULL; rc = md_getattr_name(sbi->ll_md_exp, op_data, & request); ll_finish_md_op_data(op_data); if (rc < 0) { tmp___8 = cfs_cdebug_show(64U, 128U); if (tmp___8 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___1.msg_fn = "ll_dir_ioctl"; msgdata___1.msg_line = 1317; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 64; libcfs_debug_msg(& msgdata___1, "md_getattr_name: %d\n", rc); } else { } goto out_free; } else { } ptlrpc_req_finished(request); out_free: obd_ioctl_freedata(buf, len); return ((long )rc); case 3224397552U: buf___0 = (char *)0; namelen___0 = 0; lumlen = 0; rc___0 = obd_ioctl_getdata(& buf___0, & len___0, (void *)arg); if (rc___0 != 0) { return ((long )rc___0); } else { } data = (struct obd_ioctl_data *)buf___0; if ((((unsigned long )data->ioc_inlbuf1 == (unsigned long )((char *)0) || (unsigned long )data->ioc_inlbuf2 == (unsigned long )((char *)0)) || data->ioc_inllen1 == 0U) || data->ioc_inllen2 == 0U) { rc___0 = -22; goto lmv_out_free; } else { } filename___0 = data->ioc_inlbuf1; namelen___0 = (int )data->ioc_inllen1; if (namelen___0 <= 0) { tmp___9 = cfs_cdebug_show(64U, 128U); if (tmp___9 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___2.msg_fn = "ll_dir_ioctl"; msgdata___2.msg_line = 1349; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 64; libcfs_debug_msg(& msgdata___2, "IOC_MDC_LOOKUP missing filename\n"); } else { } rc___0 = -22; goto lmv_out_free; } else { } lum = (struct lmv_user_md_v1 *)data->ioc_inlbuf2; lumlen = (int )data->ioc_inllen2; if (lum->lum_magic != 215092432U || lumlen != 48) { tmp___10 = cfs_cdebug_show(131072U, 128U); if (tmp___10 != 0) { msgdata___3.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___3.msg_fn = "ll_dir_ioctl"; msgdata___3.msg_line = 1359; msgdata___3.msg_cdls = & cdls; msgdata___3.msg_mask = 131072; libcfs_debug_msg(& msgdata___3, "%s: wrong lum magic %x or size %d: rc = %d\n", filename___0, lum->lum_magic, lumlen, -14); } else { } rc___0 = -22; goto lmv_out_free; } else { } rc___0 = ll_dir_setdirstripe(inode, lum, filename___0); lmv_out_free: obd_ioctl_freedata(buf___0, len___0); return ((long )rc___0); case 1074292378U: lumv1 = (struct lov_user_md_v1 *)(& lumv3); lumv1p = (struct lov_user_md_v1 *)arg; lumv3p = (struct lov_user_md_v3 *)arg; set_default = 0; tmp___11 = ldv__builtin_expect(0L, 0L); if (tmp___11 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; __msg_data.msg_fn = "ll_dir_ioctl"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1382; __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(lumv3) == sizeof(*lumv3p)"); lbug_with_loc(& __msg_data); } else { } tmp___12 = ldv__builtin_expect(0L, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; __msg_data___0.msg_fn = "ll_dir_ioctl"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 1384; __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(lumv3.lmm_objects[0]) == sizeof(lumv3p->lmm_objects[0])"); lbug_with_loc(& __msg_data___0); } else { } tmp___13 = copy_from_user((void *)lumv1, (void const *)lumv1p, 32UL); if (tmp___13 != 0UL) { return (-14L); } else { } if (lumv1->lmm_magic == 198380496U) { tmp___14 = copy_from_user((void *)(& lumv3), (void const *)lumv3p, 48UL); if (tmp___14 != 0UL) { return (-14L); } else { } } else { } tmp___15 = is_root_inode(inode); if ((int )tmp___15) { set_default = 1; } else { } rc = ll_dir_setstripe(inode, lumv1, set_default); return ((long )rc); case 3224397553U: lump = (struct lmv_user_md_v1 *)arg; rc___1 = 0; tmp___17 = copy_from_user((void *)(& lum___0), (void const *)lump, 48UL); if (tmp___17 != 0UL) { return (-14L); } else { } if (lum___0.lum_magic != 215026896U) { return (-22L); } else { } lum_size = lmv_user_md_size(1, 215026896); tmp___18 = kzalloc((size_t )lum_size, 80U); tmp___16 = (struct lmv_user_md_v1 *)tmp___18; if ((unsigned long )tmp___16 == (unsigned long )((struct lmv_user_md_v1 *)0)) { rc___1 = -12; goto free_lmv; } else { } *tmp___16 = lum___0; tmp___16->lum_type = 0U; tmp___16->lum_stripe_count = 1U; mdtindex = ll_get_mdt_idx(inode); if (mdtindex < 0) { rc___1 = -12; goto free_lmv; } else { } tmp___16->lum_stripe_offset = (__u32 )mdtindex; tmp___16->lum_objects[0].lum_mds = (__u32 )mdtindex; tmp___19 = ll_inode2fid(inode); memcpy((void *)(& tmp___16->lum_objects[0].lum_fid), (void const *)tmp___19, 16UL); tmp___20 = copy_to_user((void *)arg, (void const *)tmp___16, (unsigned long )lum_size); if (tmp___20 != 0UL) { rc___1 = -14; goto free_lmv; } else { } free_lmv: kfree((void const *)tmp___16); return ((long )rc___1); case 1075865307U: ; return (-1L); case 3221776036U: tmp___21 = ll_obd_statfs(inode, (void *)arg); return ((long )tmp___21); case 1074292379U: ; case 3221776663U: ; case 3221776662U: ; case 3221776661U: request___0 = (struct ptlrpc_request *)0; lmm = (struct lov_mds_md_v1 *)0; filename___1 = (char *)0; if (cmd == 3221776662U || cmd == 3221776661U) { filename___1 = ll_getname((char const *)arg); tmp___23 = IS_ERR((void const *)filename___1); if ((int )tmp___23) { tmp___22 = PTR_ERR((void const *)filename___1); return (tmp___22); } else { } rc = ll_lov_getstripe_ea_info(inode, (char const *)filename___1, & lmm, & lmmsize, & request___0); } else { rc = ll_dir_getstripe(inode, & lmm, & lmmsize, & request___0); } if ((unsigned long )request___0 != (unsigned long )((struct ptlrpc_request *)0)) { tmp___24 = req_capsule_server_get(& request___0->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp___24; tmp___25 = ldv__builtin_expect((unsigned long )body == (unsigned long )((struct mdt_body *)0), 0L); if (tmp___25 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; __msg_data___1.msg_fn = "ll_dir_ioctl"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 1474; __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 != ((void *)0)"); lbug_with_loc(& __msg_data___1); } else { } } else { goto out_req; } if (rc < 0) { if (rc == -61 && (cmd == 3221776662U || cmd == 3221776663U)) { rc = 0; goto skip_lmm; } else { goto out_req; } } else { } if (cmd == 3221776661U || cmd == 1074292379U) { lump___0 = (struct lov_user_md_v1 *)arg; } else { lmdp = (struct lov_user_mds_data_v1 *)arg; lump___0 = & lmdp->lmd_lmm; } tmp___27 = copy_to_user((void *)lump___0, (void const *)lmm, (unsigned long )lmmsize); if (tmp___27 != 0UL) { tmp___26 = copy_to_user((void *)lump___0, (void const *)lmm, 32UL); if (tmp___26 != 0UL) { rc = -14; goto out_req; } else { } rc = -75; } else { } skip_lmm: ; if (cmd == 3221776662U || cmd == 3221776663U) { st.st_dev = 0UL; st.st_ino = 0UL; st.st_nlink = 0UL; st.st_mode = 0U; st.st_uid = 0U; st.st_gid = 0U; st.__pad0 = 0U; st.st_rdev = 0UL; st.st_size = 0L; st.st_blksize = 0L; st.st_blocks = 0L; st.st_atime = 0UL; st.st_atime_nsec = 0UL; st.st_mtime = 0UL; st.st_mtime_nsec = 0UL; st.st_ctime = 0UL; st.st_ctime_nsec = 0UL; st.__unused[0] = 0L; st.__unused[1] = 0L; st.__unused[2] = 0L; st.st_dev = (__kernel_ulong_t )(inode->i_sb)->s_dev; st.st_mode = body->mode; st.st_nlink = (__kernel_ulong_t )body->nlink; st.st_uid = body->uid; st.st_gid = body->gid; st.st_rdev = (__kernel_ulong_t )body->rdev; st.st_size = (__kernel_long_t )body->size; st.st_blksize = 4096L; st.st_blocks = (__kernel_long_t )body->blocks; st.st_atime = (__kernel_ulong_t )body->atime; st.st_mtime = (__kernel_ulong_t )body->mtime; st.st_ctime = (__kernel_ulong_t )body->ctime; st.st_ino = inode->i_ino; lmdp___0 = (struct lov_user_mds_data_v1 *)arg; tmp___28 = copy_to_user((void *)(& lmdp___0->lmd_st), (void const *)(& st), 144UL); if (tmp___28 != 0UL) { rc = -14; goto out_req; } else { } } else { } out_req: ptlrpc_req_finished(request___0); if ((unsigned long )filename___1 != (unsigned long )((char *)0)) { kfree((void const *)filename___1); } else { } return ((long )rc); case 3221776037U: lumd = (struct lov_user_mds_data_v1 *)arg; lum___1 = & lumd->lmd_lmm; rc = ll_get_max_mdsize(sbi, & lmmsize___0); if (rc != 0) { return ((long )rc); } else { } tmp___29 = libcfs_kvzalloc((size_t )lmmsize___0, 80U); lmm___0 = (struct lov_mds_md_v1 *)tmp___29; if ((unsigned long )lmm___0 == (unsigned long )((struct lov_mds_md_v1 *)0)) { return (-12L); } else { } tmp___30 = copy_from_user((void *)lmm___0, (void const *)lum___1, (unsigned long )lmmsize___0); if (tmp___30 != 0UL) { rc = -14; goto free_lmm; } else { } switch (lmm___0->lmm_magic) { case 198249424U: ; goto ldv_69064; lustre_swab_lov_user_md_objects((struct lov_user_ost_data_v1 *)(& ((struct lov_user_md_v1 *)lmm___0)->lmm_objects), (int )((struct lov_user_md_v1 *)lmm___0)->lmm_stripe_count); lustre_swab_lov_user_md_v1((struct lov_user_md_v1 *)lmm___0); goto ldv_69064; case 198380496U: ; goto ldv_69064; lustre_swab_lov_user_md_objects((struct lov_user_ost_data_v1 *)(& ((struct lov_user_md_v3 *)lmm___0)->lmm_objects), (int )((struct lov_user_md_v3 *)lmm___0)->lmm_stripe_count); lustre_swab_lov_user_md_v3((struct lov_user_md_v3 *)lmm___0); goto ldv_69064; default: rc = -22; goto free_lmm; } ldv_69064: rc = obd_unpackmd(sbi->ll_dt_exp, & lsm, lmm___0, lmmsize___0); if (rc < 0) { rc = -12; goto free_lmm; } else { } memset((void *)(& st___0), 0, 144UL); rc = ll_glimpse_ioctl(sbi, lsm, & st___0); if (rc != 0) { goto free_lsm; } else { } tmp___31 = copy_to_user((void *)(& lumd->lmd_st), (void const *)(& st___0), 144UL); if (tmp___31 != 0UL) { rc = -14; goto free_lsm; } else { } free_lsm: obd_free_memmd(sbi->ll_dt_exp, & lsm); free_lmm: kvfree((void const *)lmm___0); return ((long )rc); case 3221776068U: ; return (-95L); case 1074030240U: error = 0; tmp___32 = capable(21); if (tmp___32) { tmp___33 = 0; } else { tmp___33 = 1; } if (tmp___33 || (sbi->ll_flags & 64) != 0) { return (-1L); } else { } tmp___34 = kzalloc(112UL, 80U); oqctl = (struct obd_quotactl *)tmp___34; if ((unsigned long )oqctl == (unsigned long )((struct obd_quotactl *)0)) { return (-12L); } else { } oqctl->qc_type = (__u32 )arg; rc = obd_quotacheck(sbi->ll_md_exp, oqctl); if (rc < 0) { tmp___35 = cfs_cdebug_show(64U, 128U); if (tmp___35 != 0) { msgdata___4.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___4.msg_fn = "ll_dir_ioctl"; msgdata___4.msg_line = 1624; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 64; libcfs_debug_msg(& msgdata___4, "md_quotacheck failed: rc %d\n", rc); } else { } error = rc; } else { } rc = obd_quotacheck(sbi->ll_dt_exp, oqctl); if (rc < 0) { tmp___36 = cfs_cdebug_show(64U, 128U); if (tmp___36 != 0) { msgdata___5.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___5.msg_fn = "ll_dir_ioctl"; msgdata___5.msg_line = 1630; msgdata___5.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___5.msg_mask = 64; libcfs_debug_msg(& msgdata___5, "obd_quotacheck failed: rc %d\n", rc); } else { } } else { } kfree((void const *)oqctl); return ((long )(error != 0 ? error != 0 : rc)); case 2148034209U: tmp___37 = capable(21); if (tmp___37) { tmp___38 = 0; } else { tmp___38 = 1; } if (tmp___38 || (sbi->ll_flags & 64) != 0) { return (-1L); } else { } tmp___39 = kzalloc(56UL, 80U); check = (struct if_quotacheck *)tmp___39; if ((unsigned long )check == (unsigned long )((struct if_quotacheck *)0)) { return (-12L); } else { } rc = obd_iocontrol(cmd, sbi->ll_md_exp, 0, (void *)check, (void *)0); if (rc != 0) { tmp___40 = cfs_cdebug_show(67108864U, 128U); if (tmp___40 != 0) { msgdata___6.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___6.msg_fn = "ll_dir_ioctl"; msgdata___6.msg_line = 1649; msgdata___6.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___6.msg_mask = 67108864; libcfs_debug_msg(& msgdata___6, "mdc ioctl %d failed: %d\n", cmd, rc); } else { } tmp___42 = copy_to_user((void *)arg, (void const *)check, 56UL); if (tmp___42 != 0UL) { tmp___41 = cfs_cdebug_show(67108864U, 128U); if (tmp___41 != 0) { msgdata___7.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___7.msg_fn = "ll_dir_ioctl"; msgdata___7.msg_line = 1652; msgdata___7.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___7.msg_mask = 67108864; libcfs_debug_msg(& msgdata___7, "copy_to_user failed\n"); } else { } } else { } goto out_poll; } else { } rc = obd_iocontrol(cmd, sbi->ll_dt_exp, 0, (void *)check, (void *)0); if (rc != 0) { tmp___43 = cfs_cdebug_show(67108864U, 128U); if (tmp___43 != 0) { msgdata___8.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___8.msg_fn = "ll_dir_ioctl"; msgdata___8.msg_line = 1659; msgdata___8.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___8.msg_mask = 67108864; libcfs_debug_msg(& msgdata___8, "osc ioctl %d failed: %d\n", cmd, rc); } else { } tmp___45 = copy_to_user((void *)arg, (void const *)check, 56UL); if (tmp___45 != 0UL) { tmp___44 = cfs_cdebug_show(67108864U, 128U); if (tmp___44 != 0) { msgdata___9.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___9.msg_fn = "ll_dir_ioctl"; msgdata___9.msg_line = 1662; msgdata___9.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___9.msg_mask = 67108864; libcfs_debug_msg(& msgdata___9, "copy_to_user failed\n"); } else { } } else { } goto out_poll; } else { } out_poll: kfree((void const *)check); return ((long )rc); case 3232786082U: tmp___46 = kzalloc(176UL, 80U); qctl = (struct if_quotactl *)tmp___46; if ((unsigned long )qctl == (unsigned long )((struct if_quotactl *)0)) { return (-12L); } else { } tmp___47 = copy_from_user((void *)qctl, (void const *)arg, 176UL); if (tmp___47 != 0UL) { rc = -14; goto out_quotactl; } else { } rc = quotactl_ioctl(sbi, qctl); if (rc == 0) { tmp___48 = copy_to_user((void *)arg, (void const *)qctl, 176UL); if (tmp___48 != 0UL) { rc = -14; } else { } } else { } out_quotactl: kfree((void const *)qctl); return ((long )rc); case 3221776003U: ; case 2155898499U: tmp___49 = ll_get_obd_name(inode, cmd, arg); return ((long )tmp___49); case 1074292390U: tmp___50 = ll_flush_ctx(inode); return ((long )tmp___50); case 1074292391U: ; if ((sbi->ll_flags & 64) != 0) { tmp___53 = is_root_inode(inode); if ((int )tmp___53) { fd = (struct ll_file_data *)file->private_data; tmp___51 = ldv__builtin_expect((unsigned long )fd == (unsigned long )((struct ll_file_data *)0), 0L); if (tmp___51 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; __msg_data___2.msg_fn = "ll_dir_ioctl"; __msg_data___2.msg_subsys = 128; __msg_data___2.msg_line = 1700; __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 *)"fd != ((void *)0)"); lbug_with_loc(& __msg_data___2); } else { } tmp___52 = get_current(); rc = rct_add(& sbi->ll_rct, tmp___52->pid, (int )arg); if (rc == 0) { fd->fd_flags = fd->fd_flags | 32U; } else { } return ((long )rc); } else { return (0L); } } else { return (0L); } case 2148034216U: tmp___54 = copy_from_user((void *)(& count), (void const *)arg, 4UL); if (tmp___54 != 0UL) { return (-14L); } else { } exp = count != 0 ? sbi->ll_md_exp : sbi->ll_dt_exp; vallen = 4; rc = obd_get_info((struct lu_env const *)0, exp, 10U, (void *)"tgt_count", (__u32 *)(& vallen), (void *)(& count), (struct lov_stripe_md *)0); if (rc != 0) { tmp___55 = cfs_cdebug_show(131072U, 128U); if (tmp___55 != 0) { msgdata___10.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/dir.c"; msgdata___10.msg_fn = "ll_dir_ioctl"; msgdata___10.msg_line = 1722; msgdata___10.msg_cdls = & cdls___0; msgdata___10.msg_mask = 131072; libcfs_debug_msg(& msgdata___10, "get target count failed: %d\n", rc); } else { } return ((long )rc); } else { } tmp___56 = copy_to_user((void *)arg, (void const *)(& count), 4UL); if (tmp___56 != 0UL) { return (-14L); } else { } return (0L); case 2148034221U: tmp___57 = ll_inode2fid(inode); tmp___58 = copy_to_user((void *)arg, (void const *)tmp___57, 16UL); if (tmp___58 != 0UL) { return (-14L); } else { } return (0L); case 3221776046U: tmp___59 = obd_iocontrol(cmd, sbi->ll_md_exp, 0, (void *)0, (void *)arg); return ((long )tmp___59); case 1074292372U: ; case 1111516851U: rc = copy_and_ioctl((int )cmd, sbi->ll_md_exp, (void const *)arg, 24UL); return ((long )rc); case 3221776022U: tmp___60 = ll_fid2path(inode, (void *)arg); return ((long )tmp___60); case 1075341017U: tmp___61 = memdup_user((void const *)arg, 24UL); hur = (struct hsm_user_request *)tmp___61; tmp___63 = IS_ERR((void const *)hur); if ((int )tmp___63) { tmp___62 = PTR_ERR((void const *)hur); return (tmp___62); } else { } totalsize = hur_len(hur); kfree((void const *)hur); if (totalsize < 0L) { return (-7L); } else { } if (totalsize > 1705L) { return (-7L); } else { } tmp___64 = libcfs_kvzalloc((size_t )totalsize, 80U); hur = (struct hsm_user_request *)tmp___64; if ((unsigned long )hur == (unsigned long )((struct hsm_user_request *)0)) { return (-12L); } else { } tmp___65 = copy_from_user((void *)hur, (void const *)arg, (unsigned long )totalsize); if (tmp___65 != 0UL) { kvfree((void const *)hur); return (-14L); } else { } if (hur->hur_request.hr_action == 12U) { i = 0; goto ldv_69109; ldv_69108: fid = (struct lu_fid const *)(& hur->hur_user_item[i].hui_fid); f = search_inode_for_lustre(inode->i_sb, fid); tmp___67 = IS_ERR((void const *)f); if ((int )tmp___67) { tmp___66 = PTR_ERR((void const *)f); rc = (int )tmp___66; goto ldv_69107; } else { } rc = ll_hsm_release(f); iput(f); if (rc != 0) { goto ldv_69107; } else { } i = i + 1; ldv_69109: ; if ((__u32 )i < hur->hur_request.hr_itemcount) { goto ldv_69108; } else { } ldv_69107: ; } else { tmp___68 = ll_i2mdexp(inode); rc = obd_iocontrol(cmd, tmp___68, (int )totalsize, (void *)hur, (void *)0); } kvfree((void const *)hur); return ((long )rc); case 1075341016U: tmp___69 = copy_from_user((void *)(& hp), (void const *)arg, 48UL); if (tmp___69 != 0UL) { return (-14L); } else { } hpk.hpk_fid = hp.hp_fid; hpk.hpk_cookie = hp.hp_cookie; hpk.hpk_extent = hp.hp_extent; hpk.hpk_flags = hp.hp_flags; hpk.hpk_errval = hp.hp_errval; hpk.hpk_data_version = 0ULL; rc = obd_iocontrol(cmd, sbi->ll_md_exp, 64, (void *)(& hpk), (void *)0); return ((long )rc); case 1075341013U: rc = copy_and_ioctl((int )cmd, sbi->ll_md_exp, (void const *)arg, 24UL); return ((long )rc); case 1074292438U: tmp___70 = memdup_user((void const *)arg, 88UL); copy = (struct hsm_copy *)tmp___70; tmp___72 = IS_ERR((void const *)copy); if ((int )tmp___72) { tmp___71 = PTR_ERR((void const *)copy); return (tmp___71); } else { } rc___2 = ll_ioc_copy_start(inode->i_sb, copy); tmp___73 = copy_to_user((void *)arg, (void const *)copy, 88UL); if (tmp___73 != 0UL) { rc___2 = -14; } else { } kfree((void const *)copy); return ((long )rc___2); case 1074292439U: tmp___74 = memdup_user((void const *)arg, 88UL); copy___0 = (struct hsm_copy *)tmp___74; tmp___76 = IS_ERR((void const *)copy___0); if ((int )tmp___76) { tmp___75 = PTR_ERR((void const *)copy___0); return (tmp___75); } else { } rc___3 = ll_ioc_copy_end(inode->i_sb, copy___0); tmp___77 = copy_to_user((void *)arg, (void const *)copy___0, 88UL); if (tmp___77 != 0UL) { rc___3 = -14; } else { } kfree((void const *)copy___0); return ((long )rc___3); default: tmp___78 = obd_iocontrol(cmd, sbi->ll_dt_exp, 0, (void *)0, (void *)arg); return ((long )tmp___78); } } } static loff_t ll_dir_seek(struct file *file , loff_t offset , int origin ) { struct inode *inode ; struct ll_file_data *fd ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; int api32 ; int tmp___0 ; loff_t ret ; { inode = (file->f_mapping)->host; fd = (struct ll_file_data *)file->private_data; tmp = ll_i2sbi(inode); sbi = tmp; tmp___0 = ll_need_32bit_api(sbi); api32 = tmp___0; ret = -22LL; mutex_lock_nested(& inode->i_mutex, 0U); switch (origin) { case 0: ; goto ldv_69132; case 1: offset = file->f_pos + offset; goto ldv_69132; case 2: ; if (offset > 0LL) { goto out; } else { } if (api32 != 0) { offset = (loff_t )((unsigned long long )offset + 2147483647ULL); } else { offset = (loff_t )((unsigned long long )offset + 9223372036854775807ULL); } goto ldv_69132; default: ; goto out; } ldv_69132: ; if (offset >= 0LL && ((api32 != 0 && (unsigned long long )offset <= 2147483647ULL) || (api32 == 0 && (long )offset >= 0L))) { if (file->f_pos != offset) { if ((api32 != 0 && offset == 2147483647LL) || (api32 == 0 && offset == 9223372036854775807LL)) { fd->lfd_pos = 0xfffffffffffffffeULL; } else if (api32 != 0 && (sbi->ll_flags & 16384) != 0) { fd->lfd_pos = (__u64 )(offset << 32); } else { fd->lfd_pos = (__u64 )offset; } file->f_pos = offset; file->f_version = 0ULL; } else { } ret = offset; } else { } goto out; out: mutex_unlock(& inode->i_mutex); return (ret); } } static int ll_dir_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = ll_file_open(inode, file); return (tmp); } } static int ll_dir_release(struct inode *inode , struct file *file ) { int tmp ; { tmp = ll_file_release(inode, file); return (tmp); } } struct file_operations const ll_dir_operations = {0, & ll_dir_seek, & generic_read_dir, 0, 0, 0, & ll_readdir, 0, & ll_dir_ioctl, 0, 0, 0, & ll_dir_open, 0, & ll_dir_release, & ll_fsync, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; int ldv_retval_4 ; void ldv_file_operations_59(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); ll_dir_operations_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); ll_dir_operations_group2 = (struct file *)tmp___0; return; } } void ldv_main_exported_59(void) { int ldvarg114 ; loff_t *ldvarg117 ; void *tmp ; char *ldvarg119 ; void *tmp___0 ; struct dir_context *ldvarg113 ; void *tmp___1 ; loff_t ldvarg112 ; unsigned int ldvarg110 ; int ldvarg111 ; unsigned long ldvarg109 ; loff_t ldvarg115 ; size_t ldvarg118 ; loff_t ldvarg116 ; int tmp___2 ; { tmp = ldv_init_zalloc(8UL); ldvarg117 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg119 = (char *)tmp___0; tmp___1 = ldv_init_zalloc(16UL); ldvarg113 = (struct dir_context *)tmp___1; ldv_memset((void *)(& ldvarg114), 0, 4UL); ldv_memset((void *)(& ldvarg112), 0, 8UL); ldv_memset((void *)(& ldvarg110), 0, 4UL); ldv_memset((void *)(& ldvarg111), 0, 4UL); ldv_memset((void *)(& ldvarg109), 0, 8UL); ldv_memset((void *)(& ldvarg115), 0, 8UL); ldv_memset((void *)(& ldvarg118), 0, 8UL); ldv_memset((void *)(& ldvarg116), 0, 8UL); tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_59 == 2) { ll_dir_release(ll_dir_operations_group1, ll_dir_operations_group2); ldv_state_variable_59 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_69165; case 1: ; if (ldv_state_variable_59 == 2) { generic_read_dir(ll_dir_operations_group2, ldvarg119, ldvarg118, ldvarg117); ldv_state_variable_59 = 2; } else { } goto ldv_69165; case 2: ; if (ldv_state_variable_59 == 1) { ll_fsync(ll_dir_operations_group2, ldvarg116, ldvarg115, ldvarg114); ldv_state_variable_59 = 1; } else { } if (ldv_state_variable_59 == 2) { ll_fsync(ll_dir_operations_group2, ldvarg116, ldvarg115, ldvarg114); ldv_state_variable_59 = 2; } else { } goto ldv_69165; case 3: ; if (ldv_state_variable_59 == 1) { ll_readdir(ll_dir_operations_group2, ldvarg113); ldv_state_variable_59 = 1; } else { } if (ldv_state_variable_59 == 2) { ll_readdir(ll_dir_operations_group2, ldvarg113); ldv_state_variable_59 = 2; } else { } goto ldv_69165; case 4: ; if (ldv_state_variable_59 == 2) { ll_dir_seek(ll_dir_operations_group2, ldvarg112, ldvarg111); ldv_state_variable_59 = 2; } else { } goto ldv_69165; case 5: ; if (ldv_state_variable_59 == 1) { ldv_retval_4 = ll_dir_open(ll_dir_operations_group1, ll_dir_operations_group2); if (ldv_retval_4 == 0) { ldv_state_variable_59 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_69165; case 6: ; if (ldv_state_variable_59 == 2) { ll_dir_ioctl(ll_dir_operations_group2, ldvarg110, ldvarg109); ldv_state_variable_59 = 2; } else { } goto ldv_69165; default: ldv_stop(); } ldv_69165: ; return; } } __inline static void *ERR_PTR(long error ) { void *tmp ; { tmp = ldv_err_ptr(error); return (tmp); } } __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_irq(spinlock_t *lock ) { { ldv_spin_lock(); ldv_spin_lock_irq_45(lock); return; } } __inline static void spin_unlock_irq(spinlock_t *lock ) { { ldv_spin_unlock(); ldv_spin_unlock_irq_48(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); } } int ldv_pskb_expand_head_63(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_65(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_67(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_68(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_69(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_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); } } int ldv_pskb_expand_head_71(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_72(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_73(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 ) ; extern void __list_add(struct list_head * , struct list_head * , struct list_head * ) ; __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(struct list_head * ) ; __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 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); } } 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); } } __inline static void spin_lock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; __inline static int mutex_is_locked(struct mutex *lock ) { int tmp ; { tmp = atomic_read((atomic_t const *)(& lock->count)); return (tmp != 1); } } extern int mutex_lock_interruptible_nested(struct mutex * , unsigned int ) ; 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 ; void *ldv_kmem_cache_alloc_112(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; void *ldv_kmem_cache_alloc_113(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; extern void kmem_cache_free(struct kmem_cache * , void * ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; struct dentry *ll_file_inode_operations_group1 ; struct inode *ll_file_operations_group1 ; struct inode *ll_file_operations_noflock_group1 ; int ldv_state_variable_55 ; struct file *ll_file_operations_noflock_group2 ; struct file *ll_file_operations_flock_group2 ; int ldv_state_variable_58 ; int ldv_state_variable_56 ; struct file *ll_file_operations_group2 ; int ldv_state_variable_57 ; struct inode *ll_file_inode_operations_group0 ; struct inode *ll_file_operations_flock_group1 ; void ldv_initialize_inode_operations_55(void) ; void ldv_file_operations_56(void) ; void ldv_file_operations_57(void) ; void ldv_file_operations_58(void) ; extern void fput(struct file * ) ; extern struct file *fget(unsigned int ) ; extern int posix_lock_file_wait(struct file * , struct file_lock * ) ; extern int flock_lock_file_wait(struct file * , struct file_lock * ) ; extern int filemap_fdatawrite(struct address_space * ) ; extern int filemap_write_and_wait_range(struct address_space * , loff_t , loff_t ) ; extern int inode_permission(struct inode * , int ) ; extern int generic_permission(struct inode * , int ) ; extern loff_t generic_file_llseek_size(struct file * , loff_t , int , loff_t , loff_t ) ; __inline static size_t iov_iter_count(struct iov_iter *i ) { { return (i->count); } } struct sk_buff *ldv_skb_clone_102(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_110(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_104(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_100(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_108(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_109(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_105(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_106(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_107(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); } } extern void libcfs_debug_dumplog(void) ; extern unsigned long cfs_fail_loc ; extern unsigned int cfs_fail_val ; 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../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 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); } } __inline static int fid_seq_is_mdt0(__u64 seq ) { { return (seq == 0ULL); } } __inline static int fid_seq_is_rsvd(__u64 const seq ) { { return ((unsigned long long )seq != 0ULL && (unsigned long long )seq <= 11ULL); } } __inline static int fid_seq_is_default(__u64 const seq ) { { return ((unsigned long long )seq == 0xffffffffffffffffULL); } } __inline static int fid_seq_is_igif(__u64 const seq ) { { return ((unsigned long long )seq > 11ULL && (unsigned long long )seq <= 4294967295ULL); } } __inline static int fid_is_igif(struct lu_fid const *fid ) { __u64 tmp ; int tmp___0 ; { tmp = fid_seq(fid); tmp___0 = fid_seq_is_igif(tmp); return (tmp___0); } } __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 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_seq_mdt0(struct ost_id *oi ) { { ostid_set_seq(oi, 0ULL); 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, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/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, 128U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/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; } } __inline static int fid_to_ostid(struct lu_fid const *fid , struct ost_id *ostid ) { struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; int tmp___0 ; long tmp___1 ; __u32 tmp___2 ; __u32 tmp___3 ; __u64 tmp___4 ; __u64 tmp___5 ; int tmp___6 ; { tmp___0 = fid_seq_is_igif(fid->f_seq); tmp___1 = ldv__builtin_expect(tmp___0 != 0, 0L); if (tmp___1 != 0L) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/lustre/lustre_idl.h"; msgdata.msg_fn = "fid_to_ostid"; msgdata.msg_line = 719; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "bad IGIF, [%#llx:0x%x:0x%x]\n", fid->f_seq, fid->f_oid, fid->f_ver); } else { } return (-9); } else { } tmp___6 = fid_is_idif(fid); if (tmp___6 != 0) { ostid_set_seq_mdt0(ostid); tmp___2 = fid_ver(fid); tmp___3 = fid_oid(fid); tmp___4 = fid_seq(fid); tmp___5 = fid_idif_id(tmp___4, tmp___3, tmp___2); ostid_set_id(ostid, tmp___5); } else { ostid->__annonCompField108.oi_fid = *fid; } return (0); } } __inline static int fid_is_sane(struct lu_fid const *fid ) { __u64 tmp ; __u32 tmp___0 ; int tmp___1 ; int tmp___2 ; __u64 tmp___3 ; int tmp___4 ; int tmp___5 ; { if ((unsigned long )fid != (unsigned long )((struct lu_fid const *)0)) { tmp = fid_seq(fid); if (tmp > 8589934591ULL) { tmp___0 = fid_ver(fid); if (tmp___0 == 0U) { tmp___5 = 1; } else { goto _L; } } else { _L: /* CIL Label */ tmp___1 = fid_is_igif(fid); if (tmp___1 != 0) { tmp___5 = 1; } else { tmp___2 = fid_is_idif(fid); if (tmp___2 != 0) { tmp___5 = 1; } else { tmp___3 = fid_seq(fid); tmp___4 = fid_seq_is_rsvd(tmp___3); if (tmp___4 != 0) { tmp___5 = 1; } else { tmp___5 = 0; } } } } } else { tmp___5 = 0; } return (tmp___5); } } __inline static int lu_fid_cmp(struct lu_fid const *f0 , struct lu_fid const *f1 ) { __u32 __val0___1 ; __u32 tmp___3 ; __u32 __val1___1 ; __u32 tmp___4 ; int tmp___5 ; __u32 __val0___2 ; __u32 tmp___6 ; __u32 __val1___2 ; __u32 tmp___7 ; int tmp___8 ; __u64 __val0___3 ; __u64 tmp___9 ; __u64 __val1___3 ; __u64 tmp___10 ; { tmp___9 = fid_seq(f0); __val0___3 = tmp___9; tmp___10 = fid_seq(f1); __val1___3 = tmp___10; tmp___8 = (__val0___3 != __val1___3 ? (__val0___3 > __val1___3 ? 1 : -1) : 0) != 0; if (tmp___8) { } else { tmp___6 = fid_oid(f0); __val0___2 = tmp___6; tmp___7 = fid_oid(f1); __val1___2 = tmp___7; tmp___5 = (__val0___2 != __val1___2 ? (__val0___2 > __val1___2 ? 1 : -1) : 0) != 0; if (tmp___5) { } else { tmp___3 = fid_ver(f0); __val0___1 = tmp___3; tmp___4 = fid_ver(f1); __val1___1 = tmp___4; tmp___5 = __val0___1 != __val1___1 ? (__val0___1 > __val1___1 ? 1 : -1) : 0; } tmp___8 = tmp___5; } return (tmp___8); } } __inline static int lustre_handle_is_used(struct lustre_handle *lh ) { { return (lh->cookie != 0ULL); } } __inline static int ll_inode_to_ext_flags(int iflags ) { { return (((((iflags & 1 ? 8 : 0) | ((iflags & 2) != 0 ? 128 : 0)) | ((iflags & 4) != 0 ? 32 : 0)) | ((iflags & 64) != 0 ? 65536 : 0)) | ((iflags & 8) != 0 ? 16 : 0)); } } extern void lprocfs_counter_sub(struct lprocfs_stats * , int , long ) ; extern struct lprocfs_stats *obd_memory ; extern unsigned int obd_alloc_fail_rate ; extern int obd_alloc_fail(void const * , char const * , char const * , size_t , char const * , int ) ; __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 struct req_msg_field RMF_EADATA ; extern struct ptlrpc_request_set *ptlrpc_prep_set(void) ; extern int ptlrpc_set_wait(struct ptlrpc_request_set * ) ; extern void ptlrpc_set_destroy(struct ptlrpc_request_set * ) ; __inline static bool ldlm_has_layout(struct ldlm_lock *lock ) { { return ((bool )((unsigned int )(lock->l_resource)->lr_type == 13U && (lock->l_policy_data.l_inodebits.bits & 8ULL) != 0ULL)); } } extern char *ldlm_lockname[] ; extern void _ldlm_lock_debug(struct ldlm_lock * , struct libcfs_debug_msg_data * , char const * , ...) ; extern int ldlm_flock_completion_ast(struct ldlm_lock * , __u64 , void * ) ; extern void ldlm_lock2handle(struct ldlm_lock const * , struct lustre_handle * ) ; 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_decref_and_cancel(struct lustre_handle * , __u32 ) ; extern void ldlm_lock_allow_match(struct ldlm_lock * ) ; extern int ldlm_cli_cancel(struct lustre_handle * , ldlm_cancel_flags_t ) ; extern struct ldlm_resource *lock_res_and_lock(struct ldlm_lock * ) ; extern void unlock_res_and_lock(struct ldlm_lock * ) ; __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_som(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/llite/../include/linux/../lustre_export.h"; __msg_data.msg_fn = "exp_connect_som"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 310; __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 & 8388608ULL) != 0ULL); } } extern void _debug_capa(struct lustre_capa * , struct libcfs_debug_msg_data * , char const * , ...) ; extern struct kmem_cache *capa_cachep ; __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/llite/../include/linux/../lustre_capa.h"; msgdata.msg_fn = "capa_put"; msgdata.msg_subsys = 128; 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/llite/../include/linux/../lustre_capa.h"; msgdata___0.msg_fn = "capa_put"; msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../lustre_capa.h"; __msg_data.msg_fn = "capa_put"; __msg_data.msg_subsys = 128; __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/llite/../include/linux/../lustre_capa.h"; __msg_data___0.msg_fn = "capa_put"; __msg_data___0.msg_subsys = 128; __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/llite/../include/linux/../lustre_capa.h"; __msg_data___1.msg_fn = "capa_put"; __msg_data___1.msg_subsys = 128; __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/llite/../include/linux/../lustre_capa.h"; __msg_data___2.msg_fn = "capa_put"; __msg_data___2.msg_subsys = 128; __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, 128U); if (tmp___6 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../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 bool lsm_is_released(struct lov_stripe_md *lsm ) { { return ((int )lsm->lsm_wire.lw_pattern < 0); } } __inline static bool lsm_has_objects(struct lov_stripe_md *lsm ) { bool tmp ; { if ((unsigned long )lsm == (unsigned long )((struct lov_stripe_md *)0)) { return (0); } else { } tmp = lsm_is_released(lsm); if ((int )tmp) { return (0); } else { } return (1); } } extern void obdo_from_inode(struct obdo * , struct inode * , u32 ) ; extern void obdo_set_parent_fid(struct obdo * , struct lu_fid const * ) ; extern struct obd_device *class_exp2obd(struct obd_export * ) ; extern void obdo_refresh_inode(struct inode * , struct obdo * , u32 ) ; __inline static int obd_get_info___0(struct lu_env const *env , struct obd_export *exp , __u32 keylen , void *key , __u32 *vallen , void *val , struct lov_stripe_md *lsm ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "obd_get_info"; msgdata.msg_line = 480; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_get_info: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "obd_get_info"; msgdata___0.msg_line = 480; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_get_info: 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_get_info == (unsigned long )((int (*)(struct lu_env const * , struct obd_export * , __u32 , void * , __u32 * , void * , struct lov_stripe_md * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "obd_get_info"; msgdata___1.msg_line = 480; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_get_info: 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 + 1U; 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_get_info"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 481; __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_get_info))(env, exp, keylen, key, vallen, val, lsm); return (rc); } } __inline static int obd_unpackmd___0(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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../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, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_unpackmd"; __msg_data.msg_subsys = 128; __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_free_memmd___0(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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_free_memmd"; __msg_data.msg_subsys = 128; __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/llite/../include/linux/../obd_class.h"; __msg_data___0.msg_fn = "obd_free_memmd"; __msg_data___0.msg_subsys = 128; __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___0(exp, mem_tgt, (struct lov_mds_md_v1 *)0, 0); *mem_tgt = (struct lov_stripe_md *)0; return (rc); } } __inline static int obd_create(struct lu_env const *env , struct obd_export *exp , struct obdo *obdo , struct lov_stripe_md **ea , struct obd_trans_info *oti ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "obd_create"; msgdata.msg_line = 762; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_create: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "obd_create"; msgdata___0.msg_line = 762; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_create: 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_create == (unsigned long )((int (*)(struct lu_env const * , struct obd_export * , struct obdo * , struct lov_stripe_md ** , struct obd_trans_info * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "obd_create"; msgdata___1.msg_line = 762; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_create: 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 + 23U; 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_create"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 763; __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_create))(env, exp, obdo, ea, oti); return (rc); } } __inline static int obd_getattr_async(struct obd_export *exp , struct obd_info *oinfo , struct ptlrpc_request_set *set ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "obd_getattr_async"; msgdata.msg_line = 801; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_getattr_async: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "obd_getattr_async"; msgdata___0.msg_line = 801; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_getattr_async: 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_getattr_async == (unsigned long )((int (*)(struct obd_export * , struct obd_info * , struct ptlrpc_request_set * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "obd_getattr_async"; msgdata___1.msg_line = 801; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_getattr_async: 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 + 28U; 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_getattr_async"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 802; __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_getattr_async))(exp, oinfo, set); return (rc); } } __inline static int obd_iocontrol___0(unsigned int cmd , struct obd_export *exp , int len , void *karg , void *uarg ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "obd_iocontrol"; msgdata.msg_line = 1226; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_iocontrol: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "obd_iocontrol"; msgdata___0.msg_line = 1226; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_iocontrol: 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_iocontrol == (unsigned long )((int (*)(unsigned int , struct obd_export * , int , void * , void * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "obd_iocontrol"; msgdata___1.msg_line = 1226; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_iocontrol: 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; 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_iocontrol"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1227; __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_iocontrol))(cmd, exp, len, karg, uarg); return (rc); } } __inline static int md_getattr___0(struct obd_export *exp , struct md_op_data *op_data , struct ptlrpc_request **request ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_getattr"; msgdata.msg_line = 1453; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_getattr: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_getattr"; msgdata___0.msg_line = 1453; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_getattr: 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_md_ops)->m_getattr == (unsigned long )((int (*)(struct obd_export * , struct md_op_data * , struct ptlrpc_request ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_getattr"; msgdata___1.msg_line = 1453; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_getattr: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 7U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_getattr"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1454; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_getattr))(exp, op_data, request); return (rc); } } __inline static int md_close(struct obd_export *exp , struct md_op_data *op_data , struct md_open_data *mod , struct ptlrpc_request **request ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_close"; msgdata.msg_line = 1488; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_close: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_close"; msgdata___0.msg_line = 1488; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_close: 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_md_ops)->m_close == (unsigned long )((int (*)(struct obd_export * , struct md_op_data * , struct md_open_data * , struct ptlrpc_request ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_close"; msgdata___1.msg_line = 1488; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_close: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 3U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_close"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1489; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_close))(exp, op_data, mod, request); return (rc); } } __inline static int md_enqueue___0(struct obd_export *exp , struct ldlm_enqueue_info *einfo , struct lookup_intent *it , struct md_op_data *op_data , struct lustre_handle *lockh , void *lmm , int lmmsize , struct ptlrpc_request **req , __u64 extra_lock_flags ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_enqueue"; msgdata.msg_line = 1531; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_enqueue: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_enqueue"; msgdata___0.msg_line = 1531; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_enqueue: 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_md_ops)->m_enqueue == (unsigned long )((int (*)(struct obd_export * , struct ldlm_enqueue_info * , struct lookup_intent * , struct md_op_data * , struct lustre_handle * , void * , int , struct ptlrpc_request ** , __u64 ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_enqueue"; msgdata___1.msg_line = 1531; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_enqueue: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 6U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_enqueue"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1532; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_enqueue))(exp, einfo, it, op_data, lockh, lmm, lmmsize, req, extra_lock_flags); return (rc); } } __inline static int md_getattr_name___0(struct obd_export *exp , struct md_op_data *op_data , struct ptlrpc_request **request ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_getattr_name"; msgdata.msg_line = 1544; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_getattr_name: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_getattr_name"; msgdata___0.msg_line = 1544; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_getattr_name: 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_md_ops)->m_getattr_name == (unsigned long )((int (*)(struct obd_export * , struct md_op_data * , struct ptlrpc_request ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_getattr_name"; msgdata___1.msg_line = 1544; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_getattr_name: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 8U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_getattr_name"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1545; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_getattr_name))(exp, op_data, request); return (rc); } } __inline static int md_intent_lock(struct obd_export *exp , struct md_op_data *op_data , void *lmm , int lmmsize , struct lookup_intent *it , int lookup_flags , struct ptlrpc_request **reqp , int (*cb_blocking)(struct ldlm_lock * , struct ldlm_lock_desc * , void * , int ) , __u64 extra_lock_flags ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_intent_lock"; msgdata.msg_line = 1559; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_intent_lock: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_intent_lock"; msgdata___0.msg_line = 1559; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_intent_lock: 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_md_ops)->m_intent_lock == (unsigned long )((int (*)(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 ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_intent_lock"; msgdata___1.msg_line = 1559; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_intent_lock: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 9U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_intent_lock"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1560; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_intent_lock))(exp, op_data, lmm, lmmsize, it, lookup_flags, reqp, cb_blocking, extra_lock_flags); return (rc); } } __inline static int md_sync(struct obd_export *exp , struct lu_fid const *fid , struct obd_capa *oc , struct ptlrpc_request **request ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_sync"; msgdata.msg_line = 1623; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_sync: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_sync"; msgdata___0.msg_line = 1623; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_sync: 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_md_ops)->m_sync == (unsigned long )((int (*)(struct obd_export * , struct lu_fid const * , struct obd_capa * , struct ptlrpc_request ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_sync"; msgdata___1.msg_line = 1623; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_sync: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 14U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_sync"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1624; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_sync))(exp, fid, oc, request); return (rc); } } __inline static int md_getxattr(struct obd_export *exp , struct lu_fid const *fid , struct obd_capa *oc , u64 valid , char const *name , char const *input , int input_size , int output_size , int flags , struct ptlrpc_request **request ) { 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 ; int tmp___3 ; { if ((unsigned long )exp == (unsigned long )((struct obd_export *)0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_getxattr"; msgdata.msg_line = 1692; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_getxattr: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_getxattr"; msgdata___0.msg_line = 1692; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_getxattr: 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_md_ops)->m_getxattr == (unsigned long )((int (*)(struct obd_export * , struct lu_fid const * , struct obd_capa * , u64 , char const * , char const * , int , int , int , struct ptlrpc_request ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_getxattr"; msgdata___1.msg_line = 1692; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_getxattr: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 18U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_getxattr"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1693; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } tmp___3 = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_getxattr))(exp, fid, oc, valid, name, input, input_size, output_size, flags, request); return (tmp___3); } } __inline static int md_set_open_replay_data(struct obd_export *exp , struct obd_client_handle *och , struct lookup_intent *it ) { 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 ; int tmp___3 ; { if ((unsigned long )exp == (unsigned long )((struct obd_export *)0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_set_open_replay_data"; msgdata.msg_line = 1703; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_set_open_replay_data: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_set_open_replay_data"; msgdata___0.msg_line = 1703; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_set_open_replay_data: 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_md_ops)->m_set_open_replay_data == (unsigned long )((int (*)(struct obd_export * , struct obd_client_handle * , struct lookup_intent * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_set_open_replay_data"; msgdata___1.msg_line = 1703; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_set_open_replay_data: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 22U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_set_open_replay_data"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1704; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } tmp___3 = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_set_open_replay_data))(exp, och, it); return (tmp___3); } } __inline static int md_clear_open_replay_data(struct obd_export *exp , struct obd_client_handle *och ) { 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 ; int tmp___3 ; { if ((unsigned long )exp == (unsigned long )((struct obd_export *)0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_clear_open_replay_data"; msgdata.msg_line = 1711; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_clear_open_replay_data: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_clear_open_replay_data"; msgdata___0.msg_line = 1711; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_clear_open_replay_data: 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_md_ops)->m_clear_open_replay_data == (unsigned long )((int (*)(struct obd_export * , struct obd_client_handle * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_clear_open_replay_data"; msgdata___1.msg_line = 1711; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_clear_open_replay_data: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 23U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_clear_open_replay_data"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1712; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } tmp___3 = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_clear_open_replay_data))(exp, och); return (tmp___3); } } __inline static ldlm_mode_t md_lock_match___0(struct obd_export *exp , __u64 flags , struct lu_fid const *fid , ldlm_type_t type , ldlm_policy_data_t *policy , ldlm_mode_t mode , struct lustre_handle *lockh ) { 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 ; ldlm_mode_t tmp___3 ; { if ((unsigned long )exp == (unsigned long )((struct obd_export *)0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_lock_match"; msgdata.msg_line = 1748; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_lock_match: NULL export\n"); } else { } return (4294967277L); } 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_lock_match"; msgdata___0.msg_line = 1748; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_lock_match: cleaned up obd\n"); } else { } return (4294967201L); } else { } if ((unsigned long )(exp->exp_obd)->obd_type == (unsigned long )((struct obd_type *)0) || (unsigned long )(((exp->exp_obd)->obd_type)->typ_md_ops)->m_lock_match == (unsigned long )((ldlm_mode_t (*)(struct obd_export * , __u64 , struct lu_fid const * , ldlm_type_t , ldlm_policy_data_t * , ldlm_mode_t , struct lustre_handle * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_lock_match"; msgdata___1.msg_line = 1748; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_lock_match: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (exp->exp_obd)->obd_minor); } else { } return (4294967201L); } else { } if ((unsigned long )(exp->exp_obd)->obd_stats != (unsigned long )((struct lprocfs_stats *)0)) { coffset = (exp->exp_obd)->md_cntr_base + 25U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_lock_match"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1749; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } tmp___3 = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_lock_match))(exp, flags, fid, type, policy, mode, lockh); return (tmp___3); } } extern struct kmem_cache *obdo_cachep ; __inline static struct posix_acl *posix_acl_dup(struct posix_acl *acl ) { { if ((unsigned long )acl != (unsigned long )((struct posix_acl *)0)) { atomic_inc(& acl->__annonCompField124.a_refcount); } else { } return (acl); } } extern void cl_object_attr_lock(struct cl_object * ) ; extern void cl_object_attr_unlock(struct cl_object * ) ; extern int cl_object_attr_get(struct lu_env const * , struct cl_object * , struct cl_attr * ) ; extern int cl_conf_set(struct lu_env const * , struct cl_object * , struct cl_object_conf const * ) ; extern int cl_io_init(struct lu_env const * , struct cl_io * , enum cl_io_type , struct cl_object * ) ; extern int cl_io_rw_init(struct lu_env const * , struct cl_io * , enum cl_io_type , loff_t , size_t ) ; extern int cl_io_loop(struct lu_env const * , struct cl_io * ) ; extern void cl_io_fini(struct lu_env const * , struct cl_io * ) ; extern struct lu_env *cl_env_get(int * ) ; extern struct lu_env *cl_env_nested_get(struct cl_env_nest * ) ; extern void cl_env_put(struct lu_env * , int * ) ; extern void cl_env_nested_put(struct cl_env_nest * , struct lu_env * ) ; int cl_glimpse_size0(struct inode *inode , int agl ) ; __inline static int cl_glimpse_size(struct inode *inode ) { int tmp ; { tmp = cl_glimpse_size0(inode, 0); return (tmp); } } struct lu_context_key ccc_key ; struct lu_context_key ccc_session_key ; __inline static struct ccc_thread_info *ccc_env_info(struct lu_env const *env ) { struct ccc_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 *)(& ccc_key)); info = (struct ccc_thread_info *)tmp; tmp___0 = ldv__builtin_expect((unsigned long )info == (unsigned long )((struct ccc_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/llite/../include/lclient.h"; __msg_data.msg_fn = "ccc_env_info"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 131; __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_attr *ccc_env_thread_attr(struct lu_env const *env ) { struct cl_attr *attr ; struct ccc_thread_info *tmp ; { tmp = ccc_env_info(env); attr = & tmp->cti_attr; memset((void *)attr, 0, 56UL); return (attr); } } __inline static struct cl_io *ccc_env_thread_io(struct lu_env const *env ) { struct cl_io *io ; struct ccc_thread_info *tmp ; { tmp = ccc_env_info(env); io = & tmp->cti_io; memset((void *)io, 0, 256UL); return (io); } } __inline static struct ccc_session *ccc_env_session(struct lu_env const *env ) { struct ccc_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 *)(& ccc_session_key)); ses = (struct ccc_session *)tmp; tmp___0 = ldv__builtin_expect((unsigned long )ses == (unsigned long )((struct ccc_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/llite/../include/lclient.h"; __msg_data.msg_fn = "ccc_env_session"; __msg_data.msg_subsys = 128; __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 *)"ses != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } return (ses); } } __inline static struct ccc_io *ccc_env_io(struct lu_env const *env ) { struct ccc_session *tmp ; { tmp = ccc_env_session(env); return (& tmp->cs_ios); } } int cl_get_grouplock(struct cl_object *obj , unsigned long gid , int nonblock , struct ccc_grouplock *cg ) ; void cl_put_grouplock(struct ccc_grouplock *cg ) ; extern int lov_read_and_clear_async_rc(struct cl_object * ) ; extern void it_clear_disposition(struct lookup_intent * , int ) ; extern int it_open_error(int , struct lookup_intent * ) ; __inline static bool cl_is_lov_delay_create(unsigned int flags ) { { return ((flags & 8448U) == 8448U); } } __inline static void cl_lov_delay_create_clear(unsigned int *flags ) { { if ((*flags & 8448U) == 8448U) { *flags = *flags & 4294958847U; } else { } return; } } __inline static __u32 ll_layout_version_get(struct ll_inode_info *lli ) { __u32 gen ; { spin_lock(& lli->lli_layout_lock); gen = lli->lli_layout_gen; spin_unlock(& lli->lli_layout_lock); return (gen); } } struct kmem_cache *ll_file_data_slab ; int ll_objects_destroy(struct ptlrpc_request *request , struct inode *dir ) ; void ll_readahead_init(struct inode *inode , struct ll_readahead_state *ras ) ; struct file_operations ll_file_operations ; struct file_operations ll_file_operations_flock ; struct file_operations ll_file_operations_noflock ; struct inode_operations ll_file_inode_operations ; int ll_have_md_lock(struct inode *inode , __u64 *bits , ldlm_mode_t l_req_mode ) ; ldlm_mode_t ll_take_md_lock(struct inode *inode , __u64 bits , struct lustre_handle *lockh , __u64 flags , ldlm_mode_t mode ) ; void ll_ioepoch_open(struct ll_inode_info *lli , __u64 ioepoch ) ; int ll_release_openhandle(struct inode *inode , struct lookup_intent *it ) ; int ll_md_real_close(struct inode *inode , fmode_t fmode ) ; void ll_ioepoch_close(struct inode *inode , struct md_op_data *op_data , struct obd_client_handle **och , unsigned long flags ) ; int ll_som_update(struct inode *inode , struct md_op_data *op_data ) ; int ll_inode_getattr(struct inode *inode , struct obdo *obdo , __u64 ioepoch , int sync ) ; void ll_pack_inode2opdata(struct inode *inode , struct md_op_data *op_data , struct lustre_handle *fh ) ; int ll_getattr(struct vfsmount *mnt , struct dentry *de , struct kstat *stat ) ; struct posix_acl *ll_get_acl(struct inode *inode , int type ) ; int ll_inode_permission(struct inode *inode , int mask ) ; int ll_lov_setstripe_ea_info(struct inode *inode , struct dentry *dentry , int flags , struct lov_user_md_v1 *lum , int lum_size ) ; int ll_merge_lvb(struct lu_env const *env , struct inode *inode ) ; int ll_setattr_raw(struct dentry *dentry , struct iattr *attr , bool hsm_import ) ; int ll_setattr(struct dentry *de , struct iattr *attr ) ; __inline static struct vvp_thread_info *vvp_env_info(struct lu_env const *env ) { struct lu_context_key vvp_key___0 ; struct vvp_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 *)(& vvp_key___0)); info = (struct vvp_thread_info *)tmp; tmp___0 = ldv__builtin_expect((unsigned long )info == (unsigned long )((struct vvp_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/llite/llite_internal.h"; __msg_data.msg_fn = "vvp_env_info"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 925; __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 vvp_io_args *vvp_env_args(struct lu_env const *env , enum vvp_io_subtype type ) { struct vvp_io_args *ret ; struct vvp_thread_info *tmp ; { tmp = vvp_env_info(env); ret = & tmp->vti_args; ret->via_io_subtype = type; return (ret); } } __inline static struct vvp_session *vvp_env_session(struct lu_env const *env ) { struct lu_context_key vvp_session_key___0 ; struct vvp_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 *)(& vvp_session_key___0)); ses = (struct vvp_session *)tmp; tmp___0 = ldv__builtin_expect((unsigned long )ses == (unsigned long )((struct vvp_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/llite/llite_internal.h"; __msg_data.msg_fn = "vvp_env_session"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 949; __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 vvp_io *vvp_env_io(struct lu_env const *env ) { struct vvp_session *tmp ; { tmp = vvp_env_session(env); return (& tmp->vs_ios); } } void ll_queue_done_writing(struct inode *inode , unsigned long flags ) ; int ll_file_mmap(struct file *file , struct vm_area_struct *vma ) ; __inline static struct obd_export *ll_s2dtexp(struct super_block *sb ) { { return ((((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi)->ll_dt_exp); } } __inline static struct obd_export *ll_i2dtexp(struct inode *inode ) { struct obd_export *tmp ; { tmp = ll_s2dtexp(inode->i_sb); return (tmp); } } __inline static __u64 ll_file_maxbytes(struct inode *inode ) { struct ll_inode_info *tmp ; { tmp = ll_i2info(inode); return (tmp->u.f.f_maxbytes); } } int ll_setxattr(struct dentry *dentry , char const *name , void const *value , size_t size , int flags ) ; ssize_t ll_getxattr(struct dentry *dentry , char const *name , void *buffer , size_t size ) ; ssize_t ll_listxattr(struct dentry *dentry , char *buffer , size_t size ) ; int ll_removexattr(struct dentry *dentry , char const *name ) ; int lustre_check_remote_perm(struct inode *inode , int mask ) ; void ll_capa_open(struct inode *inode ) ; void ll_capa_close(struct inode *inode ) ; struct obd_capa *ll_mdscapa_get(struct inode *inode ) ; struct obd_capa *ll_osscapa_get(struct inode *inode , __u64 opc ) ; void ll_io_init(struct cl_io *io , struct file const *file , int write ) ; int rct_del(struct rmtacl_ctl_table *rct , pid_t key ) ; void et_search_free(struct eacl_table *et , pid_t key ) ; void ll_stop_statahead(struct inode *dir , void *key ) ; __inline static int ll_glimpse_size(struct inode *inode ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; int rc ; { tmp = ll_i2info(inode); lli = tmp; down_read(& lli->u.f.f_glimpse_sem); rc = cl_glimpse_size(inode); lli->u.f.f_glimpse_time = cfs_time_current(); up_read(& lli->u.f.f_glimpse_sem); return (rc); } } void *ll_iocontrol_register(enum llioc_iter (*cb)(struct inode * , struct file * , unsigned int , unsigned long , void * , int * ) , int count , unsigned int *cmd ) ; void ll_iocontrol_unregister(void *magic ) ; __inline static void cl_isize_write_nolock(struct inode *inode , loff_t kms ) { struct libcfs_debug_msg_data __msg_data ; struct ll_inode_info *tmp ; int tmp___0 ; long tmp___1 ; { tmp = ll_i2info(inode); tmp___0 = mutex_is_locked(& tmp->u.f.f_size_mutex); 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/llite/llite_internal.h"; __msg_data.msg_fn = "cl_isize_write_nolock"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1326; __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 *)"mutex_is_locked(&ll_i2info(inode)->u.f.f_size_mutex)"); lbug_with_loc(& __msg_data); } else { } i_size_write(inode, kms); return; } } int cl_sync_file_range(struct inode *inode , loff_t start , loff_t end , enum cl_fsync_mode mode , int ignore_layout ) ; __inline static int ll_file_nolock(struct file const *file ) { struct ll_file_data *fd ; struct inode *inode ; struct inode *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct ll_sb_info *tmp___1 ; int tmp___2 ; { fd = (struct ll_file_data *)file->private_data; tmp = file_inode(file); inode = tmp; tmp___0 = ldv__builtin_expect((unsigned long )fd == (unsigned long )((struct ll_file_data *)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/llite/llite_internal.h"; __msg_data.msg_fn = "ll_file_nolock"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1388; __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 *)"fd != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } if ((int )fd->fd_flags & 1) { tmp___2 = 1; } else { tmp___1 = ll_i2sbi(inode); if (tmp___1->ll_flags & 1) { tmp___2 = 1; } else { tmp___2 = 0; } } return (tmp___2); } } __inline static void d_lustre_invalidate___0(struct dentry *dentry , int nested ) { struct libcfs_debug_msg_data msgdata ; unsigned int tmp ; struct inode *tmp___0 ; int tmp___1 ; unsigned int tmp___2 ; { tmp___1 = cfs_cdebug_show(8192U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/llite_internal.h"; msgdata.msg_fn = "d_lustre_invalidate"; msgdata.msg_line = 1464; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 8192; tmp = d_count((struct dentry const *)dentry); tmp___0 = d_inode((struct dentry const *)dentry); libcfs_debug_msg(& msgdata, "invalidate dentry %pd (%p) parent %p inode %p refc %d\n", dentry, dentry, dentry->d_parent, tmp___0, tmp); } else { } ldv_spin_lock(); __d_lustre_invalidate(dentry); tmp___2 = d_count((struct dentry const *)dentry); if (tmp___2 == 0U) { __d_drop(dentry); } else { } spin_unlock(& dentry->d_lockref.__annonCompField59.__annonCompField58.lock); return; } } int ll_layout_conf(struct inode *inode , struct cl_object_conf const *conf ) ; int ll_layout_refresh(struct inode *inode , __u32 *gen ) ; int ll_layout_restore(struct inode *inode ) ; static int ll_put_grouplock(struct inode *inode , struct file *file , unsigned long arg ) ; static int ll_lease_close(struct obd_client_handle *och , struct inode *inode , bool *lease_broken ) ; static enum llioc_iter ll_iocontrol_call(struct inode *inode , struct file *file , unsigned int cmd , unsigned long arg , int *rcp ) ; static struct ll_file_data *ll_file_data_get(void) { struct ll_file_data *fd ; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_file_data_get"; __msg_data.msg_subsys = 128; __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 *)"(!((((( 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_112(ll_file_data_slab, 32848U); fd = (struct ll_file_data *)tmp___1; if ((unsigned long )fd != (unsigned long )((struct ll_file_data *)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 *)fd, "fd", "slab-", 264UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c", 67); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(ll_file_data_slab, (void *)fd); fd = (struct ll_file_data *)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, 264L); tmp___2 = cfs_cdebug_show(16U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_file_data_get"; msgdata.msg_line = 67; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'fd\': %d at %p.\n", 264, fd); } else { } } else { } if ((unsigned long )fd == (unsigned long )((struct ll_file_data *)0)) { return ((struct ll_file_data *)0); } else { } fd->fd_write_failed = 0; return (fd); } } static void ll_file_data_put(struct ll_file_data *fd ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { if ((unsigned long )fd != (unsigned long )((struct ll_file_data *)0)) { tmp = ldv__builtin_expect((unsigned long )fd == (unsigned long )((struct ll_file_data *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_file_data_put"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 77; __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 *)"(fd)"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 264L); tmp___0 = cfs_cdebug_show(16U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_file_data_put"; msgdata.msg_line = 77; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(fd)\': %d at %p.\n", 264, fd); } else { } memset((void *)fd, 90, 264UL); kmem_cache_free(ll_file_data_slab, (void *)fd); fd = (struct ll_file_data *)3735928559L; } else { } return; } } void ll_pack_inode2opdata(struct inode *inode , struct md_op_data *op_data , struct lustre_handle *fh ) { struct ll_inode_info *tmp ; int tmp___0 ; struct ll_inode_info *tmp___1 ; struct ll_inode_info *tmp___2 ; { tmp = ll_i2info(inode); op_data->op_fid1 = tmp->lli_fid; op_data->op_attr.ia_mode = inode->i_mode; op_data->op_attr.ia_atime = inode->i_atime; op_data->op_attr.ia_mtime = inode->i_mtime; op_data->op_attr.ia_ctime = inode->i_ctime; op_data->op_attr.ia_size = i_size_read((struct inode const *)inode); op_data->op_attr_blocks = (loff_t )inode->i_blocks; tmp___0 = ll_inode_to_ext_flags((int )inode->i_flags); ((struct ll_iattr *)(& op_data->op_attr))->ia_attr_flags = (unsigned int )tmp___0; tmp___1 = ll_i2info(inode); op_data->op_ioepoch = tmp___1->lli_ioepoch; if ((unsigned long )fh != (unsigned long )((struct lustre_handle *)0)) { op_data->op_handle = *fh; } else { } op_data->op_capa1 = ll_mdscapa_get(inode); tmp___2 = ll_i2info(inode); if ((tmp___2->lli_flags & 16U) != 0U) { op_data->op_bias = (enum mds_op_bias )((unsigned int )op_data->op_bias | 512U); } else { } return; } } static void ll_prepare_close(struct inode *inode , struct md_op_data *op_data , struct obd_client_handle *och ) { struct obd_export *tmp ; int tmp___0 ; { op_data->op_attr.ia_valid = 268435953U; if ((och->och_flags & 2U) == 0U) { goto out; } else { } tmp = ll_i2mdexp(inode); tmp___0 = exp_connect_som(tmp); if (tmp___0 == 0 || ((int )inode->i_mode & 61440) != 32768) { op_data->op_attr.ia_valid = op_data->op_attr.ia_valid | 134217736U; } else { ll_ioepoch_close(inode, op_data, & och, 0UL); } out: ll_pack_inode2opdata(inode, op_data, & och->och_fh); ll_prep_md_op_data(op_data, inode, (struct inode *)0, (char const *)0, 0, 0, 16U, (void *)0); return; } } static int ll_close_inode_openhandle(struct obd_export *md_exp , struct inode *inode , struct obd_client_handle *och , __u64 const *data_version ) { struct obd_export *exp ; struct obd_export *tmp ; struct md_op_data *op_data ; struct ptlrpc_request *req ; struct obd_device *obd ; struct obd_device *tmp___0 ; int epoch_close ; int rc ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; struct obd_export *tmp___1 ; int tmp___2 ; void *tmp___3 ; struct libcfs_debug_msg_data __msg_data ; long tmp___4 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___5 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___6 ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___7 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___8 ; struct mdt_body *body ; void *tmp___9 ; int tmp___10 ; { tmp = ll_i2mdexp(inode); exp = tmp; req = (struct ptlrpc_request *)0; tmp___0 = class_exp2obd(exp); obd = tmp___0; epoch_close = 1; if ((unsigned long )obd == (unsigned long )((struct obd_device *)0)) { tmp___2 = cfs_cdebug_show(131072U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_close_inode_openhandle"; msgdata.msg_line = 144; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; tmp___1 = ll_i2mdexp(inode); libcfs_debug_msg(& msgdata, "Invalid MDC connection handle %#llx\n", tmp___1->exp_handle.h_cookie); } else { } rc = 0; goto out; } else { } tmp___3 = kzalloc(328UL, 80U); op_data = (struct md_op_data *)tmp___3; if ((unsigned long )op_data == (unsigned long )((struct md_op_data *)0)) { rc = -12; goto out; } else { } ll_prepare_close(inode, op_data, och); if ((unsigned long )data_version != (unsigned long )((__u64 const *)0ULL)) { op_data->op_bias = (enum mds_op_bias )((unsigned int )op_data->op_bias | 4096U); op_data->op_data_version = *data_version; op_data->op_lease_handle = och->och_lease_handle; op_data->op_attr.ia_valid = op_data->op_attr.ia_valid | 134217736U; } else { } epoch_close = (int )op_data->op_flags & 4; rc = md_close(md_exp, op_data, och->och_mod, & req); if (rc == -11) { tmp___4 = ldv__builtin_expect(epoch_close == 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_close_inode_openhandle"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 168; __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 *)"epoch_close"); lbug_with_loc(& __msg_data); } else { } rc = ll_som_update(inode, op_data); if (rc != 0) { tmp___5 = cfs_cdebug_show(131072U, 128U); if (tmp___5 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___0.msg_fn = "ll_close_inode_openhandle"; msgdata___0.msg_line = 174; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "inode %lu mdc Size-on-MDS update failed: rc = %d\n", inode->i_ino, rc); } else { } rc = 0; } else { } } else if (rc != 0) { tmp___6 = cfs_cdebug_show(131072U, 128U); if (tmp___6 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___1.msg_fn = "ll_close_inode_openhandle"; msgdata___1.msg_line = 179; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "inode %lu mdc close failed: rc = %d\n", inode->i_ino, rc); } else { } } else { } if (rc == 0 && ((unsigned int )op_data->op_bias & 512U) != 0U) { tmp___7 = ll_i2info(inode); lli = tmp___7; spin_lock(& lli->lli_lock); lli->lli_flags = lli->lli_flags & 4294967279U; spin_unlock(& lli->lli_lock); } else { } if (rc == 0) { rc = ll_objects_destroy(req, inode); if (rc != 0) { tmp___8 = cfs_cdebug_show(131072U, 128U); if (tmp___8 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___2.msg_fn = "ll_close_inode_openhandle"; msgdata___2.msg_line = 196; msgdata___2.msg_cdls = & cdls___2; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "inode %lu ll_objects destroy: rc = %d\n", inode->i_ino, rc); } else { } } else { } } else { } if (rc == 0 && ((unsigned int )op_data->op_bias & 4096U) != 0U) { tmp___9 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp___9; if ((body->valid & 9007199254740992ULL) == 0ULL) { rc = -16; } else { } } else { } ll_finish_md_op_data(op_data); out: tmp___10 = exp_connect_som(exp); if (((tmp___10 != 0 && epoch_close == 0) && ((int )inode->i_mode & 61440) == 32768) && (och->och_flags & 2U) != 0U) { ll_queue_done_writing(inode, 4UL); } else { md_clear_open_replay_data(md_exp, och); och->och_fh.cookie = 0xdeadbeefcafebabeULL; kfree((void const *)och); } if ((unsigned long )req != (unsigned long )((struct ptlrpc_request *)0)) { ptlrpc_req_finished(req); } else { } return (rc); } } int ll_md_real_close(struct inode *inode , fmode_t fmode ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct obd_client_handle **och_p ; struct obd_client_handle *och ; __u64 *och_usecount ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct ll_sb_info *tmp___1 ; { tmp = ll_i2info(inode); lli = tmp; rc = 0; if ((fmode & 2U) != 0U) { och_p = & lli->lli_mds_write_och; och_usecount = & lli->lli_open_fd_write_count; } else if ((fmode & 32U) != 0U) { och_p = & lli->lli_mds_exec_och; och_usecount = & lli->lli_open_fd_exec_count; } else { tmp___0 = ldv__builtin_expect((fmode & 1U) == 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_md_real_close"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 238; __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 *)"fmode & (( fmode_t)0x1)"); lbug_with_loc(& __msg_data); } else { } och_p = & lli->lli_mds_read_och; och_usecount = & lli->lli_open_fd_read_count; } mutex_lock_nested(& lli->lli_och_mutex, 0U); if (*och_usecount != 0ULL) { mutex_unlock(& lli->lli_och_mutex); return (0); } else { } och = *och_p; *och_p = (struct obd_client_handle *)0; mutex_unlock(& lli->lli_och_mutex); if ((unsigned long )och != (unsigned long )((struct obd_client_handle *)0)) { tmp___1 = ll_i2sbi(inode); rc = ll_close_inode_openhandle(tmp___1->ll_md_exp, inode, och, (__u64 const *)0ULL); } else { } return (rc); } } static int ll_md_close(struct obd_export *md_exp , struct inode *inode , struct file *file ) { struct ll_file_data *fd ; struct ll_inode_info *lli ; struct ll_inode_info *tmp ; int lockmode ; __u64 flags ; struct lustre_handle lockh ; ldlm_policy_data_t policy ; int rc ; long tmp___0 ; bool lease_broken ; struct libcfs_debug_msg_data msgdata ; int 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 lu_fid *tmp___5 ; ldlm_mode_t tmp___6 ; { fd = (struct ll_file_data *)file->private_data; tmp = ll_i2info(inode); lli = tmp; flags = 524290ULL; policy.l_inodebits.bits = 4ULL; rc = 0; tmp___0 = ldv__builtin_expect((fd->fd_flags & 2U) != 0U, 0L); if (tmp___0 != 0L) { ll_put_grouplock(inode, file, fd->fd_grouplock.cg_gid); } else { } if ((unsigned long )fd->fd_lease_och != (unsigned long )((struct obd_client_handle *)0)) { rc = ll_lease_close(fd->fd_lease_och, inode, & lease_broken); tmp___1 = cfs_cdebug_show(rc != 0 ? 131072U : 2U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_md_close"; msgdata.msg_line = 287; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = rc != 0 ? 131072 : 2; libcfs_debug_msg(& msgdata, "Clean up lease [%#llx:0x%x:0x%x] %d/%d\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, rc, (int )lease_broken); } else { } fd->fd_lease_och = (struct obd_client_handle *)0; } else { } if ((unsigned long )fd->fd_och != (unsigned long )((struct obd_client_handle *)0)) { rc = ll_close_inode_openhandle(md_exp, inode, fd->fd_och, (__u64 const *)0ULL); fd->fd_och = (struct obd_client_handle *)0; goto out; } else { } mutex_lock_nested(& lli->lli_och_mutex, 0U); if ((fd->fd_omode & 2U) != 0U) { lockmode = 8; tmp___2 = ldv__builtin_expect(lli->lli_open_fd_write_count == 0ULL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_md_close"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 304; __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 *)"lli->lli_open_fd_write_count"); lbug_with_loc(& __msg_data); } else { } lli->lli_open_fd_write_count = lli->lli_open_fd_write_count - 1ULL; } else if ((fd->fd_omode & 32U) != 0U) { lockmode = 4; tmp___3 = ldv__builtin_expect(lli->lli_open_fd_exec_count == 0ULL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data___0.msg_fn = "ll_md_close"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 308; __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 *)"lli->lli_open_fd_exec_count"); lbug_with_loc(& __msg_data___0); } else { } lli->lli_open_fd_exec_count = lli->lli_open_fd_exec_count - 1ULL; } else { lockmode = 16; tmp___4 = ldv__builtin_expect(lli->lli_open_fd_read_count == 0ULL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data___1.msg_fn = "ll_md_close"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 312; __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 *)"lli->lli_open_fd_read_count"); lbug_with_loc(& __msg_data___1); } else { } lli->lli_open_fd_read_count = lli->lli_open_fd_read_count - 1ULL; } mutex_unlock(& lli->lli_och_mutex); tmp___5 = ll_inode2fid(inode); tmp___6 = md_lock_match___0(md_exp, flags, (struct lu_fid const *)tmp___5, 13, & policy, (ldlm_mode_t )lockmode, & lockh); if ((unsigned int )tmp___6 == 0U) { rc = ll_md_real_close(inode, fd->fd_omode); } else { } out: file->private_data = (void *)0; ll_file_data_put(fd); ll_capa_close(inode); return (rc); } } int ll_file_release(struct inode *inode , struct file *file ) { struct ll_file_data *fd ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___0 ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; struct ll_file_data *fd___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___2 ; struct task_struct *tmp___3 ; struct task_struct *tmp___4 ; long tmp___5 ; bool tmp___6 ; bool tmp___7 ; int tmp___8 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___9 ; bool tmp___10 ; int tmp___11 ; { tmp = ll_i2sbi(inode); sbi = tmp; tmp___0 = ll_i2info(inode); lli = tmp___0; tmp___1 = cfs_cdebug_show(2097152U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_file_release"; msgdata.msg_line = 342; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p)\n", inode->i_ino, inode->i_generation, inode); } else { } if ((sbi->ll_flags & 64) != 0) { tmp___6 = is_root_inode(inode); if ((int )tmp___6) { fd___0 = (struct ll_file_data *)file->private_data; tmp___2 = ldv__builtin_expect((unsigned long )fd___0 == (unsigned long )((struct ll_file_data *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_file_release"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 348; __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 *)"fd != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___5 = ldv__builtin_expect((fd___0->fd_flags & 32U) != 0U, 0L); if (tmp___5 != 0L) { fd___0->fd_flags = fd___0->fd_flags & 4294967263U; tmp___3 = get_current(); rct_del(& sbi->ll_rct, tmp___3->pid); tmp___4 = get_current(); et_search_free(& sbi->ll_et, tmp___4->pid); } else { } } else { } } else { } tmp___7 = is_root_inode(inode); if (tmp___7) { tmp___8 = 0; } else { tmp___8 = 1; } if (tmp___8) { ll_stats_ops_tally(sbi, 10, 1); } else { } fd = (struct ll_file_data *)file->private_data; tmp___9 = ldv__builtin_expect((unsigned long )fd == (unsigned long )((struct ll_file_data *)0), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data___0.msg_fn = "ll_file_release"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 360; __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 *)"fd != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } if ((((int )inode->i_mode & 61440) == 16384 && (unsigned long )lli->u.d.d_opendir_key == (unsigned long )((void *)fd)) && lli->u.d.d_opendir_pid != 0) { ll_stop_statahead(inode, lli->u.d.d_opendir_key); } else { } tmp___10 = is_root_inode(inode); if ((int )tmp___10) { file->private_data = (void *)0; ll_file_data_put(fd); return (0); } else { } if (((int )inode->i_mode & 61440) != 16384) { lov_read_and_clear_async_rc(lli->lli_clob); lli->u.f.f_async_rc = 0; } else { } rc = ll_md_close(sbi->ll_md_exp, inode, file); tmp___11 = cfs_fail_timeout_set(1294U, 0U, (int )cfs_fail_val, 0); if (tmp___11 != 0) { libcfs_debug_dumplog(); } else { } return (rc); } } static int ll_intent_file_open(struct dentry *dentry , void *lmm , int lmmsize , struct lookup_intent *itp ) { struct inode *inode ; struct inode *tmp ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___0 ; struct dentry *parent ; char const *name ; int len ; struct md_op_data *op_data ; struct ptlrpc_request *req ; __u32 opc ; int rc ; struct inode *tmp___1 ; long tmp___2 ; bool tmp___3 ; int tmp___4 ; int tmp___5 ; int tmp___6 ; int tmp___7 ; struct libcfs_debug_msg_data msgdata ; int tmp___8 ; int tmp___9 ; { tmp = d_inode((struct dentry const *)dentry); inode = tmp; tmp___0 = ll_i2sbi(inode); sbi = tmp___0; parent = dentry->d_parent; name = (char const *)dentry->d_name.name; len = (int const )dentry->d_name.__annonCompField61.__annonCompField60.len; opc = 16U; if ((unsigned long )lmm == (unsigned long )((void *)0) && lmmsize == 0) { itp->it_flags = itp->it_flags | 536870912ULL; if ((itp->it_flags & 2ULL) != 0ULL) { opc = 8U; } else { } } else { } tmp___1 = d_inode((struct dentry const *)parent); op_data = ll_prep_md_op_data((struct md_op_data *)0, tmp___1, inode, name, len, 2, opc, (void *)0); tmp___3 = IS_ERR((void const *)op_data); if ((int )tmp___3) { tmp___2 = PTR_ERR((void const *)op_data); return ((int )tmp___2); } else { } itp->it_flags = itp->it_flags | 8388608ULL; rc = md_intent_lock(sbi->ll_md_exp, op_data, lmm, lmmsize, itp, 0, & req, & ll_md_blocking_ast, 0ULL); ll_finish_md_op_data(op_data); if (rc == -116) { tmp___4 = it_disposition(itp, 32); if (tmp___4 == 0) { goto out; } else { tmp___5 = it_open_error(32, itp); if (tmp___5 != 0) { goto out; } else { } } ll_release_openhandle(inode, itp); goto out; } else { } tmp___6 = it_disposition(itp, 4); if (tmp___6 != 0) { rc = -2; goto out; } else { } if (rc != 0) { goto _L; } else { tmp___9 = it_open_error(32, itp); if (tmp___9 != 0) { _L: /* CIL Label */ if (rc == 0) { tmp___7 = it_open_error(32, itp); rc = tmp___7; } else { rc = rc; } tmp___8 = cfs_cdebug_show(2097152U, 128U); if (tmp___8 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_intent_file_open"; msgdata.msg_line = 444; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "lock enqueue: err: %d\n", rc); } else { } goto out; } else { } } rc = ll_prep_inode(& inode, req, (struct super_block *)0, itp); if (rc == 0 && itp->d.lustre.it_lock_mode != 0) { ll_set_lock_data(sbi->ll_md_exp, inode, itp, (__u64 *)0ULL); } else { } out: ptlrpc_req_finished(req); ll_intent_drop_lock(itp); return (rc); } } void ll_ioepoch_open(struct ll_inode_info *lli , __u64 ioepoch ) { struct libcfs_debug_msg_data msgdata ; int tmp ; { if (ioepoch != 0ULL && lli->lli_ioepoch != ioepoch) { lli->lli_ioepoch = ioepoch; tmp = cfs_cdebug_show(2U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_ioepoch_open"; msgdata.msg_line = 469; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; libcfs_debug_msg(& msgdata, "Epoch %llu opened on [%#llx:0x%x:0x%x]\n", ioepoch, lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver); } else { } } else { } return; } } static int ll_och_fill(struct obd_export *md_exp , struct lookup_intent *it , struct obd_client_handle *och ) { struct ptlrpc_request *req ; struct mdt_body *body ; void *tmp ; int tmp___0 ; { req = (struct ptlrpc_request *)it->d.lustre.it_data; tmp = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp; och->och_fh = body->handle; och->och_fid = body->fid1; och->och_lease_handle.cookie = it->d.lustre.it_lock_handle; och->och_magic = 3512641005U; och->och_flags = (fmode_t )it->it_flags; tmp___0 = md_set_open_replay_data(md_exp, och, it); return (tmp___0); } } static int ll_local_open(struct file *file , struct lookup_intent *it , struct ll_file_data *fd , struct obd_client_handle *och ) { struct inode *inode ; struct inode *tmp ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___2 ; struct ptlrpc_request *req ; struct mdt_body *body ; int rc ; struct ll_sb_info *tmp___3 ; void *tmp___4 ; { tmp = file_inode((struct file const *)file); inode = tmp; tmp___0 = ll_i2info(inode); lli = tmp___0; tmp___1 = ldv__builtin_expect((unsigned long )file->private_data != (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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_local_open"; __msg_data.msg_subsys = 128; __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 *)"!((file)->private_data)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = ldv__builtin_expect((unsigned long )fd == (unsigned long )((struct ll_file_data *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data___0.msg_fn = "ll_local_open"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 497; __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 *)"fd != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } if ((unsigned long )och != (unsigned long )((struct obd_client_handle *)0)) { req = (struct ptlrpc_request *)it->d.lustre.it_data; tmp___3 = ll_i2sbi(inode); rc = ll_och_fill(tmp___3->ll_md_exp, it, och); if (rc != 0) { return (rc); } else { } tmp___4 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp___4; ll_ioepoch_open(lli, body->ioepoch); } else { } file->private_data = (void *)fd; ll_readahead_init(inode, & fd->fd_ras); fd->fd_omode = (fmode_t )it->it_flags & 35U; return (0); } } int ll_file_open(struct inode *inode , struct file *file ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct lookup_intent *it ; struct lookup_intent oit ; struct obd_client_handle **och_p ; __u64 *och_usecount ; struct ll_file_data *fd ; int rc ; int opendir_set ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct task_struct *tmp___1 ; bool tmp___2 ; int tmp___3 ; struct libcfs_debug_msg_data __msg_data ; long tmp___4 ; void *tmp___5 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___6 ; long tmp___7 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___8 ; bool tmp___9 ; struct ll_sb_info *tmp___10 ; int tmp___11 ; { tmp = ll_i2info(inode); lli = tmp; oit.it_op = 1; oit.it_create_mode = 0; oit.it_flags = (unsigned long long )file->f_flags; oit.d.lustre.it_disposition = 0; oit.d.lustre.it_status = 0; oit.d.lustre.it_lock_handle = 0ULL; oit.d.lustre.it_lock_bits = 0ULL; oit.d.lustre.it_lock_mode = 0; oit.d.lustre.it_remote_lock_mode = 0; oit.d.lustre.it_remote_lock_handle = 0ULL; oit.d.lustre.it_data = 0; oit.d.lustre.it_lock_set = (unsigned char)0; och_p = (struct obd_client_handle **)0; och_usecount = (__u64 *)0ULL; rc = 0; opendir_set = 0; tmp___0 = cfs_cdebug_show(2097152U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_file_open"; msgdata.msg_line = 542; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p), flags %o\n", inode->i_ino, inode->i_generation, inode, file->f_flags); } else { } it = (struct lookup_intent *)file->private_data; file->private_data = (void *)0; fd = ll_file_data_get(); if ((unsigned long )fd == (unsigned long )((struct ll_file_data *)0)) { rc = -12; goto out_openerr; } else { } fd->fd_file = file; if (((int )inode->i_mode & 61440) == 16384) { spin_lock(& lli->u.d.d_sa_lock); if (((unsigned long )lli->u.d.d_opendir_key == (unsigned long )((void *)0) && (unsigned long )lli->u.d.d_sai == (unsigned long )((struct ll_statahead_info *)0)) && lli->u.d.d_opendir_pid == 0) { lli->u.d.d_opendir_key = (void *)fd; tmp___1 = get_current(); lli->u.d.d_opendir_pid = tmp___1->pid; opendir_set = 1; } else { } spin_unlock(& lli->u.d.d_sa_lock); } else { } tmp___2 = is_root_inode(inode); if ((int )tmp___2) { file->private_data = (void *)fd; return (0); } else { } if ((unsigned long )it == (unsigned long )((struct lookup_intent *)0) || it->d.lustre.it_disposition == 0) { if (((oit.it_flags + 1ULL) & 3ULL) != 0ULL) { oit.it_flags = oit.it_flags + 1ULL; } else { } if ((file->f_flags & 512U) != 0U) { oit.it_flags = oit.it_flags | 2ULL; } else { } if ((oit.it_flags & 3ULL) != 0ULL) { oit.it_flags = oit.it_flags | 33554432ULL; } else { } oit.it_flags = oit.it_flags & 0xffffffffffffff7fULL; if ((oit.it_flags & 64ULL) != 0ULL) { oit.it_op = oit.it_op | 2; } else { } it = & oit; } else { } restart: ; if ((it->it_flags & 2ULL) != 0ULL) { och_p = & lli->lli_mds_write_och; och_usecount = & lli->lli_open_fd_write_count; } else if ((it->it_flags & 32ULL) != 0ULL) { och_p = & lli->lli_mds_exec_och; och_usecount = & lli->lli_open_fd_exec_count; } else { och_p = & lli->lli_mds_read_och; och_usecount = & lli->lli_open_fd_read_count; } mutex_lock_nested(& lli->lli_och_mutex, 0U); if ((unsigned long )*och_p != (unsigned long )((struct obd_client_handle *)0)) { tmp___3 = it_disposition(it, 32); if (tmp___3 != 0) { rc = it_open_error(32, it); if (rc != 0) { mutex_unlock(& lli->lli_och_mutex); goto out_openerr; } else { } ll_release_openhandle(inode, it); } else { } *och_usecount = *och_usecount + 1ULL; rc = ll_local_open(file, it, fd, (struct obd_client_handle *)0); if (rc != 0) { *och_usecount = *och_usecount - 1ULL; mutex_unlock(& lli->lli_och_mutex); goto out_openerr; } else { } } else { tmp___4 = ldv__builtin_expect(*och_usecount != 0ULL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_file_open"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 634; __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 *)"*och_usecount == 0"); lbug_with_loc(& __msg_data); } else { } if (it->d.lustre.it_disposition == 0) { mutex_unlock(& lli->lli_och_mutex); it->it_create_mode = it->it_create_mode | 33554432; rc = ll_intent_file_open(file->f_path.dentry, (void *)0, 0, it); it->it_create_mode = it->it_create_mode & -33554433; if (rc != 0) { goto out_openerr; } else { } goto restart; } else { } tmp___5 = kzalloc(48UL, 80U); *och_p = (struct obd_client_handle *)tmp___5; if ((unsigned long )*och_p == (unsigned long )((struct obd_client_handle *)0)) { rc = -12; goto out_och_free; } else { } *och_usecount = *och_usecount + 1ULL; rc = it_open_error(32, it); if (rc != 0) { goto out_och_free; } else { } tmp___6 = it_disposition(it, 8388608); tmp___7 = ldv__builtin_expect(tmp___6 == 0, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data___0.msg_fn = "ll_file_open"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 667; __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 *)"it_disposition(it, 0x00800000)"); lbug_with_loc(& __msg_data___0); } else { } rc = ll_local_open(file, it, fd, *och_p); if (rc != 0) { goto out_och_free; } else { } } mutex_unlock(& lli->lli_och_mutex); fd = (struct ll_file_data *)0; if (((int )inode->i_mode & 61440) != 32768) { goto out_och_free; } else { } ll_capa_open(inode); if (! lli->lli_has_smd) { tmp___9 = cl_is_lov_delay_create(file->f_flags); if ((int )tmp___9 || (file->f_mode & 2U) == 0U) { tmp___8 = cfs_cdebug_show(2U, 128U); if (tmp___8 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___0.msg_fn = "ll_file_open"; msgdata___0.msg_line = 687; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 2; libcfs_debug_msg(& msgdata___0, "object creation was delayed\n"); } else { } goto out_och_free; } else { } } else { } cl_lov_delay_create_clear(& file->f_flags); goto out_och_free; out_och_free: ; if (rc != 0) { if ((unsigned long )och_p != (unsigned long )((struct obd_client_handle **)0) && (unsigned long )*och_p != (unsigned long )((struct obd_client_handle *)0)) { kfree((void const *)*och_p); *och_p = (struct obd_client_handle *)0; *och_usecount = *och_usecount - 1ULL; } else { } mutex_unlock(& lli->lli_och_mutex); out_openerr: ; if (opendir_set != 0) { ll_stop_statahead(inode, lli->u.d.d_opendir_key); } else { } if ((unsigned long )fd != (unsigned long )((struct ll_file_data *)0)) { ll_file_data_put(fd); } else { } } else { tmp___10 = ll_i2sbi(inode); ll_stats_ops_tally(tmp___10, 9, 1); } if ((unsigned long )it != (unsigned long )((struct lookup_intent *)0)) { tmp___11 = it_disposition(it, 8388608); if (tmp___11 != 0) { ptlrpc_req_finished((struct ptlrpc_request *)it->d.lustre.it_data); it_clear_disposition(it, 8388608); } else { } } else { } return (rc); } } static int ll_md_blocking_lease_ast(struct ldlm_lock *lock , struct ldlm_lock_desc *desc , void *data , int flag ) { int rc ; struct lustre_handle lockh ; struct libcfs_debug_msg_data msgdata ; int tmp ; { switch (flag) { case 1: ldlm_lock2handle((struct ldlm_lock const *)lock, & lockh); rc = ldlm_cli_cancel(& lockh, 1); if (rc < 0) { tmp = cfs_cdebug_show(2U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_md_blocking_lease_ast"; msgdata.msg_line = 730; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; libcfs_debug_msg(& msgdata, "ldlm_cli_cancel: %d\n", rc); } else { } return (rc); } else { } goto ldv_68344; case 2: ; goto ldv_68344; } ldv_68344: ; return (0); } } static struct obd_client_handle *ll_lease_open(struct inode *inode , struct file *file , fmode_t fmode , __u64 open_flags ) { struct lookup_intent it ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct md_op_data *op_data ; struct ptlrpc_request *req ; struct lustre_handle old_handle ; struct obd_client_handle *och ; int rc ; int rc2 ; void *tmp___0 ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___1 ; struct ll_file_data *fd ; struct obd_client_handle **och_p ; __u64 *och_usecount ; void *tmp___2 ; void *tmp___3 ; struct libcfs_debug_msg_data __msg_data ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___5 ; void *tmp___6 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___7 ; void *tmp___8 ; void *tmp___9 ; long tmp___10 ; bool tmp___11 ; int tmp___12 ; struct libcfs_debug_msg_data __msg_data___2 ; int tmp___13 ; long tmp___14 ; int tmp___15 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; struct lu_fid *tmp___16 ; struct lu_fid *tmp___17 ; struct lu_fid *tmp___18 ; int tmp___19 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___20 ; void *tmp___21 ; { it.it_op = 1; it.it_create_mode = 0; it.it_flags = 0ULL; it.d.lustre.it_disposition = 0; it.d.lustre.it_status = 0; it.d.lustre.it_lock_handle = 0ULL; it.d.lustre.it_lock_bits = 0ULL; it.d.lustre.it_lock_mode = 0; it.d.lustre.it_remote_lock_mode = 0; it.d.lustre.it_remote_lock_handle = 0ULL; it.d.lustre.it_data = 0; it.d.lustre.it_lock_set = (unsigned char)0; tmp = ll_i2sbi(inode); sbi = tmp; old_handle.cookie = 0ULL; och = (struct obd_client_handle *)0; if (fmode != 2U && fmode != 1U) { tmp___0 = ERR_PTR(-22L); return ((struct obd_client_handle *)tmp___0); } else { } if ((unsigned long )file != (unsigned long )((struct file *)0)) { tmp___1 = ll_i2info(inode); lli = tmp___1; fd = (struct ll_file_data *)file->private_data; if ((file->f_mode & fmode) == 0U || (file->f_mode & 32U) != 0U) { tmp___2 = ERR_PTR(-1L); return ((struct obd_client_handle *)tmp___2); } else { } rc = -16; mutex_lock_nested(& lli->lli_och_mutex, 0U); if ((unsigned long )fd->fd_lease_och != (unsigned long )((struct obd_client_handle *)0)) { mutex_unlock(& lli->lli_och_mutex); tmp___3 = ERR_PTR((long )rc); return ((struct obd_client_handle *)tmp___3); } else { } if ((unsigned long )fd->fd_och == (unsigned long )((struct obd_client_handle *)0)) { if ((file->f_mode & 2U) != 0U) { tmp___4 = ldv__builtin_expect((unsigned long )lli->lli_mds_write_och == (unsigned long )((struct obd_client_handle *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_lease_open"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 779; __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 *)"lli->lli_mds_write_och != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } och_p = & lli->lli_mds_write_och; och_usecount = & lli->lli_open_fd_write_count; } else { tmp___5 = ldv__builtin_expect((unsigned long )lli->lli_mds_read_och == (unsigned long )((struct obd_client_handle *)0), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data___0.msg_fn = "ll_lease_open"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 783; __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 *)"lli->lli_mds_read_och != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } och_p = & lli->lli_mds_read_och; och_usecount = & lli->lli_open_fd_read_count; } if (*och_usecount == 1ULL) { fd->fd_och = *och_p; *och_p = (struct obd_client_handle *)0; *och_usecount = 0ULL; rc = 0; } else { } } else { } mutex_unlock(& lli->lli_och_mutex); if (rc < 0) { tmp___6 = ERR_PTR((long )rc); return ((struct obd_client_handle *)tmp___6); } else { } tmp___7 = ldv__builtin_expect((unsigned long )fd->fd_och == (unsigned long )((struct obd_client_handle *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data___1.msg_fn = "ll_lease_open"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 798; __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 *)"fd->fd_och != ((void *)0)"); lbug_with_loc(& __msg_data___1); } else { } old_handle = (fd->fd_och)->och_fh; } else { } tmp___8 = kzalloc(48UL, 80U); och = (struct obd_client_handle *)tmp___8; if ((unsigned long )och == (unsigned long )((struct obd_client_handle *)0)) { tmp___9 = ERR_PTR(-12L); return ((struct obd_client_handle *)tmp___9); } else { } op_data = ll_prep_md_op_data((struct md_op_data *)0, inode, inode, (char const *)0, 0, 0, 16U, (void *)0); tmp___11 = IS_ERR((void const *)op_data); if ((int )tmp___11) { tmp___10 = PTR_ERR((void const *)op_data); rc = (int )tmp___10; goto out; } else { } op_data->op_handle = old_handle; it.it_flags = (__u64 )fmode | open_flags; it.it_flags = it.it_flags | 69264736256ULL; rc = md_intent_lock(sbi->ll_md_exp, op_data, (void *)0, 0, & it, 0, & req, & ll_md_blocking_lease_ast, 36310271995674624ULL); ll_finish_md_op_data(op_data); ptlrpc_req_finished(req); if (rc < 0) { goto out_release_it; } else { } tmp___12 = it_disposition(& it, 4); if (tmp___12 != 0) { rc = -2; goto out_release_it; } else { } rc = it_open_error(32, & it); if (rc != 0) { goto out_release_it; } else { } tmp___13 = it_disposition(& it, 8388608); tmp___14 = ldv__builtin_expect(tmp___13 == 0, 0L); if (tmp___14 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data___2.msg_fn = "ll_lease_open"; __msg_data___2.msg_subsys = 128; __msg_data___2.msg_line = 841; __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 *)"it_disposition(&it, 0x00800000)"); lbug_with_loc(& __msg_data___2); } else { } ll_och_fill(sbi->ll_md_exp, & it, och); tmp___15 = it_disposition(& it, 67108864); if (tmp___15 == 0) { rc = -95; goto out_close; } else { } ll_set_lock_data(sbi->ll_md_exp, inode, & it, (__u64 *)0ULL); if (it.d.lustre.it_lock_mode == 0 || it.d.lustre.it_lock_bits != 4ULL) { tmp___19 = cfs_cdebug_show(131072U, 128U); if (tmp___19 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_lease_open"; msgdata.msg_line = 856; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; tmp___16 = ll_inode2fid(inode); tmp___17 = ll_inode2fid(inode); tmp___18 = ll_inode2fid(inode); libcfs_debug_msg(& msgdata, "[%#llx:0x%x:0x%x]lease granted but no open lock, %d/%llu.\n", tmp___18->f_seq, tmp___17->f_oid, tmp___16->f_ver, it.d.lustre.it_lock_mode, it.d.lustre.it_lock_bits); } else { } rc = -71; goto out_close; } else { } ll_intent_release(& it); return (och); out_close: rc2 = ll_close_inode_openhandle(sbi->ll_md_exp, inode, och, (__u64 const *)0ULL); if (rc2 != 0) { tmp___20 = cfs_cdebug_show(131072U, 128U); if (tmp___20 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___0.msg_fn = "ll_lease_open"; msgdata___0.msg_line = 867; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "Close openhandle returned %d\n", rc2); } else { } } else { } if (it.d.lustre.it_lock_mode != 0) { ldlm_lock_decref_and_cancel(& och->och_lease_handle, (__u32 )it.d.lustre.it_lock_mode); it.d.lustre.it_lock_mode = 0; } else { } out_release_it: ll_intent_release(& it); out: kfree((void const *)och); tmp___21 = ERR_PTR((long )rc); return ((struct obd_client_handle *)tmp___21); } } static int ll_lease_close(struct obd_client_handle *och , struct inode *inode , bool *lease_broken ) { struct ldlm_lock *lock ; bool cancelled ; int rc ; struct libcfs_debug_msg_data msgdata ; struct ll_inode_info *tmp ; struct ll_inode_info *tmp___0 ; struct ll_inode_info *tmp___1 ; int tmp___2 ; struct ll_sb_info *tmp___3 ; { cancelled = 1; lock = ldlm_handle2lock((struct lustre_handle const *)(& och->och_lease_handle)); if ((unsigned long )lock != (unsigned long )((struct ldlm_lock *)0)) { lock_res_and_lock(lock); cancelled = (lock->l_flags & 68719476736ULL) != 0ULL; unlock_res_and_lock(lock); ldlm_lock_put(lock); } else { } tmp___2 = cfs_cdebug_show(2U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_lease_close"; msgdata.msg_line = 902; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; tmp = ll_i2info(inode); tmp___0 = ll_i2info(inode); tmp___1 = ll_i2info(inode); libcfs_debug_msg(& msgdata, "lease for [%#llx:0x%x:0x%x] broken? %d\n", tmp___1->lli_fid.f_seq, tmp___0->lli_fid.f_oid, tmp->lli_fid.f_ver, (int )cancelled); } else { } if (! cancelled) { ldlm_cli_cancel(& och->och_lease_handle, 0); } else { } if ((unsigned long )lease_broken != (unsigned long )((bool *)0)) { *lease_broken = cancelled; } else { } tmp___3 = ll_i2sbi(inode); rc = ll_close_inode_openhandle(tmp___3->ll_md_exp, inode, och, (__u64 const *)0ULL); return (rc); } } static int ll_lsm_getattr(struct lov_stripe_md *lsm , struct obd_export *exp , struct obd_capa *capa , struct obdo *obdo , __u64 ioepoch , int sync ) { struct ptlrpc_request_set *set ; struct obd_info oinfo ; 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 ; { 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 = ldv__builtin_expect((unsigned long )lsm == (unsigned long )((struct lov_stripe_md *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_lsm_getattr"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 923; __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 *)"lsm != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } oinfo.oi_md = lsm; oinfo.oi_oa = obdo; (oinfo.oi_oa)->o_oi = lsm->lsm_wire.lw_object_oi; (oinfo.oi_oa)->o_mode = 32768U; (oinfo.oi_oa)->o_ioepoch = ioepoch; (oinfo.oi_oa)->o_valid = 4503599711256959ULL; oinfo.oi_capa = (void *)capa; if (sync != 0) { (oinfo.oi_oa)->o_valid = (oinfo.oi_oa)->o_valid | 2048ULL; (oinfo.oi_oa)->o_flags = (oinfo.oi_oa)->o_flags | 2048U; } else { } set = ptlrpc_prep_set(); if ((unsigned long )set == (unsigned long )((struct ptlrpc_request_set *)0)) { tmp___0 = cfs_cdebug_show(131072U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_lsm_getattr"; msgdata.msg_line = 944; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "can\'t allocate ptlrpc set\n"); } else { } rc = -12; } else { rc = obd_getattr_async(exp, & oinfo, set); if (rc == 0) { rc = ptlrpc_set_wait(set); } else { } ptlrpc_set_destroy(set); } if (rc == 0) { (oinfo.oi_oa)->o_valid = (oinfo.oi_oa)->o_valid & 4503599627370622ULL; } else { } return (rc); } } int ll_inode_getattr(struct inode *inode , struct obdo *obdo , __u64 ioepoch , int sync ) { struct obd_capa *capa ; struct obd_capa *tmp ; struct lov_stripe_md *lsm ; int rc ; struct obd_export *tmp___0 ; struct ost_id *oi ; struct libcfs_debug_msg_data msgdata ; loff_t tmp___1 ; __u64 tmp___2 ; __u64 tmp___3 ; int tmp___4 ; { tmp = ll_mdscapa_get(inode); capa = tmp; lsm = ccc_inode_lsm_get(inode); tmp___0 = ll_i2dtexp(inode); rc = ll_lsm_getattr(lsm, tmp___0, capa, obdo, ioepoch, sync); capa_put(capa); if (rc == 0) { oi = (unsigned long )lsm != (unsigned long )((struct lov_stripe_md *)0) ? & lsm->lsm_wire.lw_object_oi : & obdo->o_oi; obdo_refresh_inode(inode, obdo, (u32 )obdo->o_valid); tmp___4 = cfs_cdebug_show(2U, 128U); if (tmp___4 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_inode_getattr"; msgdata.msg_line = 982; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; tmp___1 = i_size_read((struct inode const *)inode); tmp___2 = ostid_id((struct ost_id const *)oi); tmp___3 = ostid_seq((struct ost_id const *)oi); libcfs_debug_msg(& msgdata, "objid %#llx:%llu size %llu, blocks %llu, blksize %lu\n", tmp___3, tmp___2, tmp___1, (unsigned long long )inode->i_blocks, 1UL << (int )inode->i_blkbits); } else { } } else { } ccc_inode_lsm_put(inode, lsm); return (rc); } } int ll_merge_lvb(struct lu_env const *env , struct inode *inode ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct cl_object *obj ; struct cl_attr *attr ; struct cl_attr *tmp___0 ; struct ost_lvb lvb ; int rc ; loff_t tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; { tmp = ll_i2info(inode); lli = tmp; obj = lli->lli_clob; tmp___0 = ccc_env_thread_attr(env); attr = tmp___0; rc = 0; ll_inode_size_lock(inode); inode->i_atime.tv_sec = (__kernel_time_t )lli->lli_lvb.lvb_atime; inode->i_mtime.tv_sec = (__kernel_time_t )lli->lli_lvb.lvb_mtime; inode->i_ctime.tv_sec = (__kernel_time_t )lli->lli_lvb.lvb_ctime; tmp___1 = i_size_read((struct inode const *)inode); lvb.lvb_size = (__u64 )tmp___1; lvb.lvb_blocks = (__u64 )inode->i_blocks; lvb.lvb_mtime = (__s64 )inode->i_mtime.tv_sec; lvb.lvb_atime = (__s64 )inode->i_atime.tv_sec; lvb.lvb_ctime = (__s64 )inode->i_ctime.tv_sec; cl_object_attr_lock(obj); rc = cl_object_attr_get(env, obj, attr); cl_object_attr_unlock(obj); if (rc == 0) { if (lvb.lvb_atime < (long long )attr->cat_atime) { lvb.lvb_atime = (__s64 )attr->cat_atime; } else { } if (lvb.lvb_ctime < (long long )attr->cat_ctime) { lvb.lvb_ctime = (__s64 )attr->cat_ctime; } else { } if (lvb.lvb_mtime < (long long )attr->cat_mtime) { lvb.lvb_mtime = (__s64 )attr->cat_mtime; } else { } tmp___2 = cfs_cdebug_show(2097152U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_merge_lvb"; msgdata.msg_line = 1022; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "[%#llx:0x%x:0x%x] updating i_size %llu\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, attr->cat_size); } else { } cl_isize_write_nolock(inode, attr->cat_size); inode->i_blocks = (blkcnt_t )attr->cat_blocks; inode->i_mtime.tv_sec = (__kernel_time_t )lvb.lvb_mtime; inode->i_atime.tv_sec = (__kernel_time_t )lvb.lvb_atime; inode->i_ctime.tv_sec = (__kernel_time_t )lvb.lvb_ctime; } else { } ll_inode_size_unlock(inode); return (rc); } } int ll_glimpse_ioctl(struct ll_sb_info *sbi , struct lov_stripe_md *lsm , lstat_t *st ) { struct obdo obdo ; int rc ; { obdo.o_valid = 0ULL; obdo.o_oi.__annonCompField108.oi.oi_id = 0ULL; obdo.o_oi.__annonCompField108.oi.oi_seq = 0ULL; obdo.o_parent_seq = 0ULL; obdo.o_size = 0ULL; obdo.o_mtime = 0LL; obdo.o_atime = 0LL; obdo.o_ctime = 0LL; obdo.o_blocks = 0ULL; obdo.o_grant = 0ULL; obdo.o_blksize = 0U; obdo.o_mode = 0U; obdo.o_uid = 0U; obdo.o_gid = 0U; obdo.o_flags = 0U; obdo.o_nlink = 0U; obdo.o_parent_oid = 0U; obdo.o_misc = 0U; obdo.o_ioepoch = 0ULL; obdo.o_stripe_idx = 0U; obdo.o_parent_ver = 0U; obdo.o_handle.cookie = 0ULL; obdo.o_lcookie.lgc_lgl.lgl_oi.__annonCompField108.oi.oi_id = 0ULL; obdo.o_lcookie.lgc_lgl.lgl_oi.__annonCompField108.oi.oi_seq = 0ULL; obdo.o_lcookie.lgc_lgl.lgl_ogen = 0U; obdo.o_lcookie.lgc_subsys = 0U; obdo.o_lcookie.lgc_index = 0U; obdo.o_lcookie.lgc_padding = 0U; obdo.o_uid_h = 0U; obdo.o_gid_h = 0U; obdo.o_data_version = 0ULL; obdo.o_padding_4 = 0ULL; obdo.o_padding_5 = 0ULL; obdo.o_padding_6 = 0ULL; rc = ll_lsm_getattr(lsm, sbi->ll_dt_exp, (struct obd_capa *)0, & obdo, 0ULL, 0); if (rc == 0) { st->st_size = (__kernel_long_t )obdo.o_size; st->st_blocks = (__kernel_long_t )obdo.o_blocks; st->st_mtime = (__kernel_ulong_t )obdo.o_mtime; st->st_atime = (__kernel_ulong_t )obdo.o_atime; st->st_ctime = (__kernel_ulong_t )obdo.o_ctime; } else { } return (rc); } } static bool file_is_noatime(struct file const *file ) { struct vfsmount const *mnt ; struct inode const *inode ; struct inode *tmp ; { mnt = (struct vfsmount const *)file->f_path.mnt; tmp = file_inode(file); inode = (struct inode const *)tmp; if (((unsigned int )file->f_flags & 262144U) != 0U) { return (1); } else { } if (((unsigned int )inode->i_flags & 2U) != 0U) { return (1); } else { } if (((inode->i_sb)->s_flags & 1025UL) != 0UL) { return (1); } else { } if (((int )mnt->mnt_flags & 72) != 0) { return (1); } else { } if (((int )mnt->mnt_flags & 16) != 0 && ((int )inode->i_mode & 61440) == 16384) { return (1); } else { } if (((inode->i_sb)->s_flags & 2048UL) != 0UL && ((int )inode->i_mode & 61440) == 16384) { return (1); } else { } return (0); } } void ll_io_init(struct cl_io *io , struct file const *file , int write ) { struct inode *inode ; struct inode *tmp ; struct ll_inode_info *tmp___0 ; int tmp___1 ; bool tmp___2 ; { tmp = file_inode(file); inode = tmp; io->u.ci_rw.crw_nonblock = (int )file->f_flags & 2048; if (write != 0) { io->u.ci_wr.wr_append = ((unsigned int )file->f_flags & 1024U) != 0U; io->u.ci_wr.wr_sync = (((unsigned int )file->f_flags & 1052672U) != 0U || ((unsigned int )file->f_flags & 16384U) != 0U) || (((inode->i_sb)->s_flags & 16UL) != 0UL || (int )inode->i_flags & 1); } else { } tmp___0 = ll_i2info(inode); io->ci_obj = tmp___0->lli_clob; io->ci_lockreq = 1; tmp___1 = ll_file_nolock(file); if (tmp___1 != 0) { io->ci_lockreq = 2; io->ci_no_srvlock = 1U; } else if (((unsigned int )file->f_flags & 1024U) != 0U) { io->ci_lockreq = 0; } else { } tmp___2 = file_is_noatime(file); io->ci_noatime = (unsigned char )tmp___2; return; } } static ssize_t ll_file_io_generic(struct lu_env const *env , struct vvp_io_args *args , struct file *file , enum cl_io_type iot , loff_t *ppos , size_t count ) { struct ll_inode_info *lli ; struct inode *tmp ; struct ll_inode_info *tmp___0 ; struct ll_file_data *fd ; struct cl_io *io ; ssize_t result ; struct vvp_io *vio ; struct vvp_io *tmp___1 ; struct ccc_io *cio ; struct ccc_io *tmp___2 ; int write_mutex_locked ; int tmp___3 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___4 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___5 ; int tmp___6 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___7 ; struct libcfs_debug_msg_data __msg_data ; long tmp___8 ; struct inode *tmp___9 ; struct ll_sb_info *tmp___10 ; struct inode *tmp___11 ; struct ll_sb_info *tmp___12 ; { tmp = file_inode((struct file const *)file); tmp___0 = ll_i2info(tmp); lli = tmp___0; fd = (struct ll_file_data *)file->private_data; restart: io = ccc_env_thread_io(env); ll_io_init(io, (struct file const *)file, (unsigned int )iot == 1U); tmp___6 = cl_io_rw_init(env, io, iot, *ppos, count); if (tmp___6 == 0) { tmp___1 = vvp_env_io(env); vio = tmp___1; tmp___2 = ccc_env_io(env); cio = tmp___2; write_mutex_locked = 0; cio->cui_fd = (struct ll_file_data *)file->private_data; vio->cui_io_subtype = args->via_io_subtype; switch ((unsigned int )vio->cui_io_subtype) { case 0U: cio->cui_iter = args->u.normal.via_iter; cio->cui_iocb = args->u.normal.via_iocb; if ((unsigned int )iot == 1U && ((cio->cui_fd)->fd_flags & 2U) == 0U) { tmp___3 = mutex_lock_interruptible_nested(& lli->u.f.f_write_mutex, 0U); if (tmp___3 != 0) { result = -512L; goto out; } else { } write_mutex_locked = 1; } else if ((unsigned int )iot == 0U) { down_read(& lli->u.f.f_trunc_sem); } else { } goto ldv_68460; case 1U: vio->u.splice.cui_pipe = args->u.splice.via_pipe; vio->u.splice.cui_flags = args->u.splice.via_flags; goto ldv_68460; default: tmp___4 = cfs_cdebug_show(131072U, 128U); if (tmp___4 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_file_io_generic"; msgdata.msg_line = 1146; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Unknown IO type - %u\n", (unsigned int )vio->cui_io_subtype); } 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___0.msg_fn = "ll_file_io_generic"; msgdata___0.msg_subsys = 128; msgdata___0.msg_line = 1147; 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_68460: tmp___5 = cl_io_loop(env, io); result = (ssize_t )tmp___5; if (write_mutex_locked != 0) { mutex_unlock(& lli->u.f.f_write_mutex); } else if ((unsigned int )args->via_io_subtype == 0U && (unsigned int )iot == 0U) { up_read(& lli->u.f.f_trunc_sem); } else { } } else { result = (ssize_t )io->ci_result; } if (io->ci_nob != 0UL) { result = (ssize_t )io->ci_nob; *ppos = io->u.ci_wr.wr.crw_pos; } else { } goto out; out: cl_io_fini(env, io); if ((result == 0L || result == -61L) && (unsigned int )*((unsigned char *)io + 244UL) != 0U) { tmp___7 = cfs_cdebug_show(2097152U, 128U); if (tmp___7 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___1.msg_fn = "ll_file_io_generic"; msgdata___1.msg_line = 1171; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 2097152; libcfs_debug_msg(& msgdata___1, "Restart %s on %pD from %lld, count:%zd\n", (unsigned int )iot == 0U ? (char *)"read" : (char *)"write", file, *ppos, count); } else { } tmp___8 = ldv__builtin_expect(io->ci_nob != 0UL, 0L); if (tmp___8 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_file_io_generic"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1172; __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: %zd", (char *)"io->ci_nob == 0", io->ci_nob); lbug_with_loc(& __msg_data); } else { } goto restart; } else { } if ((unsigned int )iot == 0U) { if (result >= 0L) { tmp___9 = file_inode((struct file const *)file); tmp___10 = ll_i2sbi(tmp___9); ll_stats_ops_tally(tmp___10, 2, (int )result); } else { } } else if ((unsigned int )iot == 1U) { if (result >= 0L) { tmp___11 = file_inode((struct file const *)file); tmp___12 = ll_i2sbi(tmp___11); ll_stats_ops_tally(tmp___12, 3, (int )result); fd->fd_write_failed = 0; } else if (result != -512L) { fd->fd_write_failed = 1; } else { } } else { } return (result); } } static ssize_t ll_file_read_iter(struct kiocb *iocb , struct iov_iter *to ) { struct lu_env *env ; struct vvp_io_args *args ; ssize_t result ; int refcheck ; long tmp ; bool tmp___0 ; size_t tmp___1 ; { env = cl_env_get(& refcheck); tmp___0 = IS_ERR((void const *)env); if ((int )tmp___0) { tmp = PTR_ERR((void const *)env); return (tmp); } else { } args = vvp_env_args((struct lu_env const *)env, 0); args->u.normal.via_iter = to; args->u.normal.via_iocb = iocb; tmp___1 = iov_iter_count(to); result = ll_file_io_generic((struct lu_env const *)env, args, iocb->ki_filp, 0, & iocb->ki_pos, tmp___1); cl_env_put(env, & refcheck); return (result); } } static ssize_t ll_file_write_iter(struct kiocb *iocb , struct iov_iter *from ) { struct lu_env *env ; struct vvp_io_args *args ; ssize_t result ; int refcheck ; long tmp ; bool tmp___0 ; size_t tmp___1 ; { env = cl_env_get(& refcheck); tmp___0 = IS_ERR((void const *)env); if ((int )tmp___0) { tmp = PTR_ERR((void const *)env); return (tmp); } else { } args = vvp_env_args((struct lu_env const *)env, 0); args->u.normal.via_iter = from; args->u.normal.via_iocb = iocb; tmp___1 = iov_iter_count(from); result = ll_file_io_generic((struct lu_env const *)env, args, iocb->ki_filp, 1, & iocb->ki_pos, tmp___1); cl_env_put(env, & refcheck); return (result); } } static ssize_t ll_file_splice_read(struct file *in_file , loff_t *ppos , struct pipe_inode_info *pipe , size_t count , unsigned int flags ) { struct lu_env *env ; struct vvp_io_args *args ; ssize_t result ; int refcheck ; long tmp ; bool tmp___0 ; { env = cl_env_get(& refcheck); tmp___0 = IS_ERR((void const *)env); if ((int )tmp___0) { tmp = PTR_ERR((void const *)env); return (tmp); } else { } args = vvp_env_args((struct lu_env const *)env, 1); args->u.splice.via_pipe = pipe; args->u.splice.via_flags = flags; result = ll_file_io_generic((struct lu_env const *)env, args, in_file, 0, ppos, count); cl_env_put(env, & refcheck); return (result); } } static int ll_lov_recreate(struct inode *inode , struct ost_id *oi , u32 ost_idx ) { struct obd_export *exp ; struct obd_export *tmp ; struct obd_trans_info oti ; struct obdo *oa ; int lsm_size ; int rc ; struct lov_stripe_md *lsm ; struct lov_stripe_md *lsm2 ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; void *tmp___2 ; struct libcfs_debug_msg_data msgdata ; int tmp___3 ; int tmp___4 ; int tmp___5 ; int tmp___6 ; long tmp___7 ; bool tmp___8 ; int tmp___9 ; void *tmp___10 ; struct ll_inode_info *tmp___11 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___12 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___13 ; { tmp = ll_i2dtexp(inode); exp = tmp; oti.oti_transno = 0ULL; oti.oti_xid = 0ULL; oti.oti_ack_locks[0].lock.cookie = 0ULL; oti.oti_ack_locks[0].mode = 0U; oti.oti_ack_locks[1].lock.cookie = 0ULL; oti.oti_ack_locks[1].mode = 0U; oti.oti_ack_locks[2].lock.cookie = 0ULL; oti.oti_ack_locks[2].mode = 0U; oti.oti_ack_locks[3].lock.cookie = 0ULL; oti.oti_ack_locks[3].mode = 0U; oti.oti_handle = 0; oti.oti_onecookie.lgc_lgl.lgl_oi.__annonCompField108.oi.oi_id = 0ULL; oti.oti_onecookie.lgc_lgl.lgl_oi.__annonCompField108.oi.oi_seq = 0ULL; oti.oti_onecookie.lgc_lgl.lgl_ogen = 0U; oti.oti_onecookie.lgc_subsys = 0U; oti.oti_onecookie.lgc_index = 0U; oti.oti_onecookie.lgc_padding = 0U; oti.oti_logcookies = 0; oti.oti_numcookies = 0; oti.oti_sync_write = (unsigned char)0; oti.oti_thread = 0; oti.oti_conn_cnt = 0U; oti.oti_pre_version = 0ULL; oti.oti_jobid = 0; oti.oti_ost_uuid = 0; oa = (struct obdo *)0; rc = 0; lsm = (struct lov_stripe_md *)0; tmp___0 = preempt_count(); tmp___1 = ldv__builtin_expect(((unsigned long )tmp___0 & 2096896UL) != 0UL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_lov_recreate"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1272; __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___2 = ldv_kmem_cache_alloc_113(obdo_cachep, 32848U); oa = (struct obdo *)tmp___2; if ((unsigned long )oa != (unsigned long )((struct obdo *)0)) { tmp___4 = cfs_fail_check_set(3072U, 0U, 0, 0); if (tmp___4 == 0 || obd_alloc_fail_rate == 0U) { tmp___6 = 1; } else { tmp___5 = 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c", 1272); if (tmp___5 == 0) { tmp___6 = 1; } else { kmem_cache_free(obdo_cachep, (void *)oa); oa = (struct obdo *)0; tmp___6 = 0; } } } else { tmp___6 = 0; } tmp___7 = ldv__builtin_expect((long )tmp___6, 1L); if (tmp___7 != 0L) { lprocfs_counter_add(obd_memory, 0, 208L); tmp___3 = cfs_cdebug_show(16U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_lov_recreate"; msgdata.msg_line = 1272; 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)) { return (-12); } else { } lsm = ccc_inode_lsm_get(inode); tmp___8 = lsm_has_objects(lsm); if (tmp___8) { tmp___9 = 0; } else { tmp___9 = 1; } if (tmp___9) { rc = -2; goto out; } else { } lsm_size = (int )((unsigned int )lsm->lsm_wire.lw_stripe_count * 112U + 144U); tmp___10 = libcfs_kvzalloc((size_t )lsm_size, 80U); lsm2 = (struct lov_stripe_md *)tmp___10; if ((unsigned long )lsm2 == (unsigned long )((struct lov_stripe_md *)0)) { rc = -12; goto out; } else { } oa->o_oi = *oi; oa->o_nlink = ost_idx; oa->o_flags = oa->o_flags | 32U; oa->o_valid = 16779265ULL; obdo_from_inode(oa, inode, 270U); tmp___11 = ll_i2info(inode); obdo_set_parent_fid(oa, (struct lu_fid const *)(& tmp___11->lli_fid)); memcpy((void *)lsm2, (void const *)lsm, (size_t )lsm_size); ll_inode_size_lock(inode); rc = obd_create((struct lu_env const *)0, exp, oa, & lsm2, & oti); ll_inode_size_unlock(inode); kvfree((void const *)lsm2); goto out; out: ccc_inode_lsm_put(inode, lsm); tmp___12 = ldv__builtin_expect((unsigned long )oa == (unsigned long )((struct obdo *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data___0.msg_fn = "ll_lov_recreate"; __msg_data___0.msg_subsys = 128; __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 *)"((oa))"); lbug_with_loc(& __msg_data___0); } else { } lprocfs_counter_sub(obd_memory, 0, 208L); tmp___13 = cfs_cdebug_show(16U, 128U); if (tmp___13 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___0.msg_fn = "ll_lov_recreate"; msgdata___0.msg_line = 1307; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; libcfs_debug_msg(& msgdata___0, "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 int ll_lov_recreate_obj(struct inode *inode , unsigned long arg ) { struct ll_recreate_obj ucreat ; struct ost_id oi ; bool tmp ; int tmp___0 ; unsigned long tmp___1 ; int tmp___2 ; { tmp = capable(21); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return (-1); } else { } tmp___1 = copy_from_user((void *)(& ucreat), (void const *)arg, 16UL); if (tmp___1 != 0UL) { return (-14); } else { } ostid_set_seq_mdt0(& oi); ostid_set_id(& oi, ucreat.lrc_id); tmp___2 = ll_lov_recreate(inode, & oi, ucreat.lrc_ost_idx); return (tmp___2); } } static int ll_lov_recreate_fid(struct inode *inode , unsigned long arg ) { struct lu_fid fid ; struct ost_id oi ; u32 ost_idx ; bool tmp ; int tmp___0 ; unsigned long tmp___1 ; __u64 tmp___2 ; int tmp___3 ; { tmp = capable(21); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return (-1); } else { } tmp___1 = copy_from_user((void *)(& fid), (void const *)arg, 16UL); if (tmp___1 != 0UL) { return (-14); } else { } fid_to_ostid((struct lu_fid const *)(& fid), & oi); tmp___2 = fid_seq((struct lu_fid const *)(& fid)); ost_idx = (u32 )(tmp___2 >> 16) & 65535U; tmp___3 = ll_lov_recreate(inode, & oi, ost_idx); return (tmp___3); } } int ll_lov_setstripe_ea_info(struct inode *inode , struct dentry *dentry , int flags , struct lov_user_md_v1 *lum , int lum_size ) { struct lov_stripe_md *lsm ; struct lookup_intent oit ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp ; { lsm = (struct lov_stripe_md *)0; oit.it_op = 1; oit.it_create_mode = 0; oit.it_flags = (unsigned long long )flags; oit.d.lustre.it_disposition = 0; oit.d.lustre.it_status = 0; oit.d.lustre.it_lock_handle = 0ULL; oit.d.lustre.it_lock_bits = 0ULL; oit.d.lustre.it_lock_mode = 0; oit.d.lustre.it_remote_lock_mode = 0; oit.d.lustre.it_remote_lock_handle = 0ULL; oit.d.lustre.it_data = 0; oit.d.lustre.it_lock_set = (unsigned char)0; rc = 0; lsm = ccc_inode_lsm_get(inode); if ((unsigned long )lsm != (unsigned long )((struct lov_stripe_md *)0)) { ccc_inode_lsm_put(inode, lsm); tmp = cfs_cdebug_show(128U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_lov_setstripe_ea_info"; msgdata.msg_line = 1356; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 128; libcfs_debug_msg(& msgdata, "stripe already exists for ino %lu\n", inode->i_ino); } else { } rc = -17; goto out; } else { } ll_inode_size_lock(inode); rc = ll_intent_file_open(dentry, (void *)lum, lum_size, & oit); if (rc != 0) { goto out_unlock; } else { } rc = oit.d.lustre.it_status; if (rc < 0) { goto out_req_free; } else { } ll_release_openhandle(inode, & oit); out_unlock: ll_inode_size_unlock(inode); ll_intent_release(& oit); ccc_inode_lsm_put(inode, lsm); out: ; return (rc); out_req_free: ptlrpc_req_finished((struct ptlrpc_request *)oit.d.lustre.it_data); goto out; } } int ll_lov_getstripe_ea_info(struct inode *inode , char const *filename , struct lov_mds_md_v1 **lmmp , int *lmm_size , struct ptlrpc_request **request ) { struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct mdt_body *body ; struct lov_mds_md_v1 *lmm ; struct ptlrpc_request *req ; struct md_op_data *op_data ; int rc ; int lmmsize ; size_t tmp___0 ; long tmp___1 ; bool tmp___2 ; struct libcfs_debug_msg_data msgdata ; int tmp___3 ; void *tmp___4 ; struct libcfs_debug_msg_data __msg_data ; long tmp___5 ; void *tmp___6 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___7 ; { tmp = ll_i2sbi(inode); sbi = tmp; lmm = (struct lov_mds_md_v1 *)0; req = (struct ptlrpc_request *)0; rc = ll_get_default_mdsize(sbi, & lmmsize); if (rc != 0) { return (rc); } else { } tmp___0 = strlen(filename); op_data = ll_prep_md_op_data((struct md_op_data *)0, inode, (struct inode *)0, filename, (int )tmp___0, lmmsize, 16U, (void *)0); tmp___2 = IS_ERR((void const *)op_data); if ((int )tmp___2) { tmp___1 = PTR_ERR((void const *)op_data); return ((int )tmp___1); } else { } op_data->op_valid = 268566528ULL; rc = md_getattr_name___0(sbi->ll_md_exp, op_data, & req); ll_finish_md_op_data(op_data); if (rc < 0) { tmp___3 = cfs_cdebug_show(64U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_lov_getstripe_ea_info"; msgdata.msg_line = 1408; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "md_getattr_name failed on %s: rc %d\n", filename, rc); } else { } goto out; } else { } tmp___4 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp___4; tmp___5 = ldv__builtin_expect((unsigned long )body == (unsigned long )((struct mdt_body *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_lov_getstripe_ea_info"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1413; __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)"); lbug_with_loc(& __msg_data); } else { } lmmsize = (int )body->eadatasize; if ((body->valid & 268566528ULL) == 0ULL || lmmsize == 0) { rc = -61; goto out; } else { } tmp___6 = req_capsule_server_sized_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_MDT_MD), lmmsize); lmm = (struct lov_mds_md_v1 *)tmp___6; tmp___7 = ldv__builtin_expect((unsigned long )lmm == (unsigned long )((struct lov_mds_md_v1 *)0), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data___0.msg_fn = "ll_lov_getstripe_ea_info"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 1424; __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 *)"lmm != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } if (lmm->lmm_magic != 198249424U && lmm->lmm_magic != 198380496U) { rc = -71; goto out; } else { } out: *lmmp = lmm; *lmm_size = lmmsize; *request = req; return (rc); } } static int ll_lov_setea(struct inode *inode , struct file *file , unsigned long arg ) { int flags ; struct lov_user_md_v1 *lump ; int lum_size ; int rc ; bool tmp ; int tmp___0 ; void *tmp___1 ; unsigned long tmp___2 ; { flags = -2147483646; lum_size = 56; tmp = capable(21); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return (-1); } else { } tmp___1 = libcfs_kvzalloc((size_t )lum_size, 80U); lump = (struct lov_user_md_v1 *)tmp___1; if ((unsigned long )lump == (unsigned long )((struct lov_user_md_v1 *)0)) { return (-12); } else { } tmp___2 = copy_from_user((void *)lump, (void const *)arg, (unsigned long )lum_size); if (tmp___2 != 0UL) { kvfree((void const *)lump); return (-14); } else { } rc = ll_lov_setstripe_ea_info(inode, file->f_path.dentry, flags, lump, lum_size); cl_lov_delay_create_clear(& file->f_flags); kvfree((void const *)lump); return (rc); } } static int ll_lov_setstripe(struct inode *inode , struct file *file , unsigned long arg ) { struct lov_user_md_v3 lumv3 ; struct lov_user_md_v1 *lumv1 ; struct lov_user_md_v1 *lumv1p ; struct lov_user_md_v3 *lumv3p ; int lum_size ; int rc ; int flags ; unsigned long tmp ; unsigned long tmp___0 ; struct lov_stripe_md *lsm ; __u32 gen ; int __ret_pu ; __u16 __pu_val ; struct obd_export *tmp___1 ; { lumv1 = (struct lov_user_md_v1 *)(& lumv3); lumv1p = (struct lov_user_md_v1 *)arg; lumv3p = (struct lov_user_md_v3 *)arg; flags = 2; lum_size = 32; tmp = copy_from_user((void *)lumv1, (void const *)lumv1p, (unsigned long )lum_size); if (tmp != 0UL) { return (-14); } else { } if (lumv1->lmm_magic == 198380496U) { lum_size = 48; tmp___0 = copy_from_user((void *)(& lumv3), (void const *)lumv3p, (unsigned long )lum_size); if (tmp___0 != 0UL) { return (-14); } else { } } else { } rc = ll_lov_setstripe_ea_info(inode, file->f_path.dentry, flags, lumv1, lum_size); cl_lov_delay_create_clear(& file->f_flags); if (rc == 0) { __might_fault("/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c", 1525); __pu_val = 0U; switch (2UL) { case 1UL: __asm__ volatile ("call __put_user_1": "=a" (__ret_pu): "0" (__pu_val), "c" (& lumv1p->lmm_stripe_count): "ebx"); goto ldv_68589; case 2UL: __asm__ volatile ("call __put_user_2": "=a" (__ret_pu): "0" (__pu_val), "c" (& lumv1p->lmm_stripe_count): "ebx"); goto ldv_68589; case 4UL: __asm__ volatile ("call __put_user_4": "=a" (__ret_pu): "0" (__pu_val), "c" (& lumv1p->lmm_stripe_count): "ebx"); goto ldv_68589; case 8UL: __asm__ volatile ("call __put_user_8": "=a" (__ret_pu): "0" (__pu_val), "c" (& lumv1p->lmm_stripe_count): "ebx"); goto ldv_68589; default: __asm__ volatile ("call __put_user_X": "=a" (__ret_pu): "0" (__pu_val), "c" (& lumv1p->lmm_stripe_count): "ebx"); goto ldv_68589; } ldv_68589: ll_layout_refresh(inode, & gen); lsm = ccc_inode_lsm_get(inode); tmp___1 = ll_i2dtexp(inode); rc = obd_iocontrol___0(1074292379U, tmp___1, 0, (void *)lsm, (void *)arg); ccc_inode_lsm_put(inode, lsm); } else { } return (rc); } } static int ll_lov_getstripe(struct inode *inode , unsigned long arg ) { struct lov_stripe_md *lsm ; int rc ; struct obd_export *tmp ; { rc = -61; lsm = ccc_inode_lsm_get(inode); if ((unsigned long )lsm != (unsigned long )((struct lov_stripe_md *)0)) { tmp = ll_i2dtexp(inode); rc = obd_iocontrol___0(1074292379U, tmp, 0, (void *)lsm, (void *)arg); } else { } ccc_inode_lsm_put(inode, lsm); return (rc); } } static int ll_get_grouplock(struct inode *inode , struct file *file , unsigned long arg ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ll_file_data *fd ; struct ccc_grouplock grouplock ; int rc ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; int tmp___1 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; struct libcfs_debug_msg_data __msg_data ; long tmp___3 ; struct ll_inode_info *tmp___4 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___6 ; { tmp = ll_i2info(inode); lli = tmp; fd = (struct ll_file_data *)file->private_data; if (arg == 0UL) { tmp___0 = cfs_cdebug_show(1024U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_get_grouplock"; msgdata.msg_line = 1558; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "group id for group lock must not be 0\n"); } else { } return (-22); } else { } tmp___1 = ll_file_nolock((struct file const *)file); if (tmp___1 != 0) { return (-95); } else { } spin_lock(& lli->lli_lock); if ((fd->fd_flags & 2U) != 0U) { tmp___2 = cfs_cdebug_show(1024U, 128U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___0.msg_fn = "ll_get_grouplock"; msgdata___0.msg_line = 1568; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 1024; libcfs_debug_msg(& msgdata___0, "group lock already existed with gid %lu\n", fd->fd_grouplock.cg_gid); } else { } spin_unlock(& lli->lli_lock); return (-22); } else { } tmp___3 = ldv__builtin_expect((unsigned long )fd->fd_grouplock.cg_lock != (unsigned long )((struct cl_lock *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_get_grouplock"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1572; __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 *)"fd->fd_grouplock.cg_lock == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } spin_unlock(& lli->lli_lock); tmp___4 = ll_i2info(inode); rc = cl_get_grouplock(tmp___4->lli_clob, arg, (int )file->f_flags & 2048, & grouplock); if (rc != 0) { return (rc); } else { } spin_lock(& lli->lli_lock); if ((fd->fd_flags & 2U) != 0U) { spin_unlock(& lli->lli_lock); tmp___5 = cfs_cdebug_show(131072U, 128U); if (tmp___5 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___1.msg_fn = "ll_get_grouplock"; msgdata___1.msg_line = 1583; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "another thread just won the race\n"); } else { } cl_put_grouplock(& grouplock); return (-22); } else { } fd->fd_flags = fd->fd_flags | 2U; fd->fd_grouplock = grouplock; spin_unlock(& lli->lli_lock); tmp___6 = cfs_cdebug_show(64U, 128U); if (tmp___6 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___2.msg_fn = "ll_get_grouplock"; msgdata___2.msg_line = 1592; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 64; libcfs_debug_msg(& msgdata___2, "group lock %lu obtained\n", arg); } else { } return (0); } } static int ll_put_grouplock(struct inode *inode , struct file *file , unsigned long arg ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ll_file_data *fd ; struct ccc_grouplock grouplock ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___3 ; { tmp = ll_i2info(inode); lli = tmp; fd = (struct ll_file_data *)file->private_data; spin_lock(& lli->lli_lock); if ((fd->fd_flags & 2U) == 0U) { spin_unlock(& lli->lli_lock); tmp___0 = cfs_cdebug_show(1024U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_put_grouplock"; msgdata.msg_line = 1606; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "no group lock held\n"); } else { } return (-22); } else { } tmp___1 = ldv__builtin_expect((unsigned long )fd->fd_grouplock.cg_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_put_grouplock"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1609; __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 *)"fd->fd_grouplock.cg_lock != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } if (fd->fd_grouplock.cg_gid != arg) { tmp___2 = cfs_cdebug_show(1024U, 128U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___0.msg_fn = "ll_put_grouplock"; msgdata___0.msg_line = 1613; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 1024; libcfs_debug_msg(& msgdata___0, "group lock %lu doesn\'t match current id %lu\n", arg, fd->fd_grouplock.cg_gid); } else { } spin_unlock(& lli->lli_lock); return (-22); } else { } grouplock = fd->fd_grouplock; memset((void *)(& fd->fd_grouplock), 0, 32UL); fd->fd_flags = fd->fd_flags & 4294967293U; spin_unlock(& lli->lli_lock); cl_put_grouplock(& grouplock); tmp___3 = cfs_cdebug_show(64U, 128U); if (tmp___3 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___1.msg_fn = "ll_put_grouplock"; msgdata___1.msg_line = 1624; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 64; libcfs_debug_msg(& msgdata___1, "group lock %lu released\n", arg); } else { } return (0); } } int ll_release_openhandle(struct inode *inode , struct lookup_intent *it ) { struct obd_client_handle *och ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; bool tmp___0 ; int tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___2 ; long tmp___3 ; void *tmp___4 ; struct ll_sb_info *tmp___5 ; struct ll_sb_info *tmp___6 ; int tmp___7 ; { tmp = ldv__builtin_expect((unsigned long )inode == (unsigned long )((struct inode *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_release_openhandle"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1642; __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 *)"inode"); lbug_with_loc(& __msg_data); } else { } tmp___0 = is_root_inode(inode); if ((int )tmp___0) { return (0); } else { } tmp___1 = it_disposition(it, 32); if (tmp___1 == 0) { return (0); } else { } tmp___2 = it_open_error(32, it); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data___0.msg_fn = "ll_release_openhandle"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 1652; __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 *)"it_open_error(0x00000020, it) == 0"); lbug_with_loc(& __msg_data___0); } else { } tmp___4 = kzalloc(48UL, 80U); och = (struct obd_client_handle *)tmp___4; if ((unsigned long )och == (unsigned long )((struct obd_client_handle *)0)) { rc = -12; goto out; } else { } tmp___5 = ll_i2sbi(inode); ll_och_fill(tmp___5->ll_md_exp, it, och); tmp___6 = ll_i2sbi(inode); rc = ll_close_inode_openhandle(tmp___6->ll_md_exp, inode, och, (__u64 const *)0ULL); out: tmp___7 = it_disposition(it, 8388608); if (tmp___7 != 0) { ptlrpc_req_finished((struct ptlrpc_request *)it->d.lustre.it_data); it_clear_disposition(it, 8388608); } else { } return (rc); } } static int ll_do_fiemap(struct inode *inode , struct ll_user_fiemap *fiemap , size_t num_bytes ) { struct obd_export *exp ; struct obd_export *tmp ; struct lov_stripe_md *lsm ; struct ll_fiemap_info_key fm_key ; unsigned int tmp___0 ; __u32 vallen ; int rc ; loff_t tmp___1 ; struct ll_inode_info *tmp___2 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___3 ; { tmp = ll_i2dtexp(inode); exp = tmp; lsm = (struct lov_stripe_md *)0; fm_key.name[0] = 'f'; fm_key.name[1] = 'i'; fm_key.name[2] = 'e'; fm_key.name[3] = 'm'; fm_key.name[4] = 'a'; fm_key.name[5] = 'p'; fm_key.name[6] = '\000'; tmp___0 = 7U; while (1) { if (tmp___0 >= 8U) { break; } else { } fm_key.name[tmp___0] = (char)0; tmp___0 = tmp___0 + 1U; } fm_key.oa.o_valid = 0ULL; fm_key.oa.o_oi.__annonCompField108.oi.oi_id = 0ULL; fm_key.oa.o_oi.__annonCompField108.oi.oi_seq = 0ULL; fm_key.oa.o_parent_seq = 0ULL; fm_key.oa.o_size = 0ULL; fm_key.oa.o_mtime = 0LL; fm_key.oa.o_atime = 0LL; fm_key.oa.o_ctime = 0LL; fm_key.oa.o_blocks = 0ULL; fm_key.oa.o_grant = 0ULL; fm_key.oa.o_blksize = 0U; fm_key.oa.o_mode = 0U; fm_key.oa.o_uid = 0U; fm_key.oa.o_gid = 0U; fm_key.oa.o_flags = 0U; fm_key.oa.o_nlink = 0U; fm_key.oa.o_parent_oid = 0U; fm_key.oa.o_misc = 0U; fm_key.oa.o_ioepoch = 0ULL; fm_key.oa.o_stripe_idx = 0U; fm_key.oa.o_parent_ver = 0U; fm_key.oa.o_handle.cookie = 0ULL; fm_key.oa.o_lcookie.lgc_lgl.lgl_oi.__annonCompField108.oi.oi_id = 0ULL; fm_key.oa.o_lcookie.lgc_lgl.lgl_oi.__annonCompField108.oi.oi_seq = 0ULL; fm_key.oa.o_lcookie.lgc_lgl.lgl_ogen = 0U; fm_key.oa.o_lcookie.lgc_subsys = 0U; fm_key.oa.o_lcookie.lgc_index = 0U; fm_key.oa.o_lcookie.lgc_padding = 0U; fm_key.oa.o_uid_h = 0U; fm_key.oa.o_gid_h = 0U; fm_key.oa.o_data_version = 0ULL; fm_key.oa.o_padding_4 = 0ULL; fm_key.oa.o_padding_5 = 0ULL; fm_key.oa.o_padding_6 = 0ULL; fm_key.fiemap.fm_start = 0ULL; fm_key.fiemap.fm_length = 0ULL; fm_key.fiemap.fm_flags = 0U; fm_key.fiemap.fm_mapped_extents = 0U; fm_key.fiemap.fm_extent_count = 0U; fm_key.fiemap.fm_reserved = 0U; vallen = (__u32 )num_bytes; if ((fiemap->fm_flags & 3221225470U) != 0U) { fiemap->fm_flags = fiemap->fm_flags & 3221225470U; return (-53); } else { } if ((int )fiemap->fm_flags & 1) { rc = filemap_fdatawrite(inode->i_mapping); if (rc != 0) { return (rc); } else { } } else { } lsm = ccc_inode_lsm_get(inode); if ((unsigned long )lsm == (unsigned long )((struct lov_stripe_md *)0)) { return (-2); } else { } if ((unsigned int )lsm->lsm_wire.lw_stripe_count > 1U && (fiemap->fm_flags & 1073741824U) == 0U) { rc = -95; goto out; } else { } fm_key.oa.o_oi = lsm->lsm_wire.lw_object_oi; fm_key.oa.o_valid = 16777217ULL; tmp___1 = i_size_read((struct inode const *)inode); if (tmp___1 == 0LL) { rc = ll_glimpse_size(inode); if (rc != 0) { goto out; } else { } } else { } obdo_from_inode(& fm_key.oa, inode, 16U); tmp___2 = ll_i2info(inode); obdo_set_parent_fid(& fm_key.oa, (struct lu_fid const *)(& tmp___2->lli_fid)); if (fm_key.oa.o_size == 0ULL) { fiemap->fm_mapped_extents = 0U; rc = 0; goto out; } else { } memcpy((void *)(& fm_key.fiemap), (void const *)fiemap, 32UL); rc = obd_get_info___0((struct lu_env const *)0, exp, 248U, (void *)(& fm_key), & vallen, (void *)fiemap, lsm); if (rc != 0) { tmp___3 = cfs_cdebug_show(131072U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_do_fiemap"; msgdata.msg_line = 1735; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_get_info failed: rc = %d\n", rc); } else { } } else { } out: ccc_inode_lsm_put(inode, lsm); return (rc); } } int ll_fid2path(struct inode *inode , void *arg ) { struct obd_export *exp ; struct obd_export *tmp ; struct getinfo_fid2path const *gfin ; struct getinfo_fid2path *gfout ; u32 pathlen ; size_t outsize ; int rc ; bool tmp___0 ; int tmp___1 ; struct ll_sb_info *tmp___2 ; int __ret_gu ; register unsigned long __val_gu ; void *tmp___3 ; unsigned long tmp___4 ; unsigned long tmp___5 ; { tmp = ll_i2mdexp(inode); exp = tmp; gfin = (struct getinfo_fid2path const *)arg; tmp___0 = capable(2); if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { tmp___2 = ll_i2sbi(inode); if ((tmp___2->ll_flags & 262144) == 0) { return (-1); } else { } } else { } __might_fault("/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c", 1756); __asm__ volatile ("call __get_user_%P3": "=a" (__ret_gu), "=r" (__val_gu): "0" (& gfin->gf_pathlen), "i" (4UL)); pathlen = (unsigned int )__val_gu; if (__ret_gu != 0) { return (-14); } else { } if (pathlen > 4096U) { return (-22); } else { } outsize = (unsigned long )pathlen + 32UL; tmp___3 = kzalloc(outsize, 80U); gfout = (struct getinfo_fid2path *)tmp___3; if ((unsigned long )gfout == (unsigned long )((struct getinfo_fid2path *)0)) { return (-12); } else { } tmp___4 = copy_from_user((void *)gfout, (void const *)arg, 32UL); if (tmp___4 != 0UL) { rc = -14; goto gf_free; } else { } rc = obd_iocontrol___0(3221776022U, exp, (int )outsize, (void *)gfout, (void *)0); if (rc != 0) { goto gf_free; } else { } tmp___5 = copy_to_user(arg, (void const *)gfout, outsize); if (tmp___5 != 0UL) { rc = -14; } else { } gf_free: kfree((void const *)gfout); return (rc); } } static int ll_ioctl_fiemap(struct inode *inode , unsigned long arg ) { struct ll_user_fiemap *fiemap_s ; size_t num_bytes ; size_t ret_bytes ; unsigned int extent_count ; int rc ; int __ret_gu ; register unsigned long __val_gu ; void *tmp ; unsigned long tmp___0 ; unsigned long tmp___1 ; unsigned long tmp___2 ; { rc = 0; __might_fault("/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c", 1796); __asm__ volatile ("call __get_user_%P3": "=a" (__ret_gu), "=r" (__val_gu): "0" (& ((struct ll_user_fiemap *)arg)->fm_extent_count), "i" (4UL)); extent_count = (unsigned int )__val_gu; if (__ret_gu != 0) { return (-14); } else { } num_bytes = (unsigned long )extent_count * 56UL + 32UL; tmp = libcfs_kvzalloc(num_bytes, 80U); fiemap_s = (struct ll_user_fiemap *)tmp; if ((unsigned long )fiemap_s == (unsigned long )((struct ll_user_fiemap *)0)) { return (-12); } else { } tmp___0 = copy_from_user((void *)fiemap_s, (void const *)arg, 32UL); if (tmp___0 != 0UL) { rc = -14; goto error; } else { } if (extent_count != 0U) { tmp___1 = copy_from_user((void *)(& fiemap_s->fm_extents), (void const *)(arg + 32UL), 56UL); if (tmp___1 != 0UL) { rc = -14; goto error; } else { } } else { } rc = ll_do_fiemap(inode, fiemap_s, num_bytes); if (rc != 0) { goto error; } else { } ret_bytes = 32UL; if (extent_count != 0U) { ret_bytes = (unsigned long )fiemap_s->fm_mapped_extents * 56UL + ret_bytes; } else { } tmp___2 = copy_to_user((void *)arg, (void const *)fiemap_s, ret_bytes); if (tmp___2 != 0UL) { rc = -14; } else { } error: kvfree((void const *)fiemap_s); return (rc); } } int ll_data_version(struct inode *inode , __u64 *data_version , int extent_lock ) { struct lov_stripe_md *lsm ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct obdo *obdo ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; bool tmp___1 ; int tmp___2 ; void *tmp___3 ; { lsm = (struct lov_stripe_md *)0; tmp = ll_i2sbi(inode); sbi = tmp; obdo = (struct obdo *)0; lsm = ccc_inode_lsm_get(inode); tmp___1 = lsm_has_objects(lsm); if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { *data_version = 0ULL; tmp___0 = cfs_cdebug_show(2U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_data_version"; msgdata.msg_line = 1867; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; libcfs_debug_msg(& msgdata, "No object for inode\n"); } else { } rc = 0; goto out; } else { } tmp___3 = kzalloc(208UL, 80U); obdo = (struct obdo *)tmp___3; if ((unsigned long )obdo == (unsigned long )((struct obdo *)0)) { rc = -12; goto out; } else { } rc = ll_lsm_getattr(lsm, sbi->ll_dt_exp, (struct obd_capa *)0, obdo, 0ULL, extent_lock); if (rc == 0) { if ((obdo->o_valid & 4503599627370496ULL) == 0ULL) { rc = -95; } else { *data_version = obdo->o_data_version; } } else { } kfree((void const *)obdo); out: ccc_inode_lsm_put(inode, lsm); return (rc); } } int ll_hsm_release(struct inode *inode ) { struct cl_env_nest nest ; struct lu_env *env ; struct obd_client_handle *och ; __u64 data_version ; int rc ; struct libcfs_debug_msg_data msgdata ; struct ll_inode_info *tmp ; struct ll_inode_info *tmp___0 ; struct ll_inode_info *tmp___1 ; char *tmp___2 ; int tmp___3 ; long tmp___4 ; bool tmp___5 ; long tmp___6 ; bool tmp___7 ; struct ll_sb_info *tmp___8 ; bool tmp___9 ; int tmp___10 ; { och = (struct obd_client_handle *)0; data_version = 0ULL; tmp___3 = cfs_cdebug_show(2U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_hsm_release"; msgdata.msg_line = 1906; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; tmp = ll_i2info(inode); tmp___0 = ll_i2info(inode); tmp___1 = ll_i2info(inode); tmp___2 = ll_get_fsname(inode->i_sb, (char *)0, 0); libcfs_debug_msg(& msgdata, "%s: Releasing file [%#llx:0x%x:0x%x].\n", tmp___2, tmp___1->lli_fid.f_seq, tmp___0->lli_fid.f_oid, tmp->lli_fid.f_ver); } else { } och = ll_lease_open(inode, (struct file *)0, 2U, 137438953472ULL); tmp___5 = IS_ERR((void const *)och); if ((int )tmp___5) { tmp___4 = PTR_ERR((void const *)och); rc = (int )tmp___4; goto out; } else { } rc = ll_data_version(inode, & data_version, 1); if (rc != 0) { goto out; } else { } env = cl_env_nested_get(& nest); tmp___7 = IS_ERR((void const *)env); if ((int )tmp___7) { tmp___6 = PTR_ERR((void const *)env); rc = (int )tmp___6; goto out; } else { } ll_merge_lvb((struct lu_env const *)env, inode); cl_env_nested_put(& nest, env); tmp___8 = ll_i2sbi(inode); rc = ll_close_inode_openhandle(tmp___8->ll_md_exp, inode, och, (__u64 const *)(& data_version)); och = (struct obd_client_handle *)0; out: ; if ((unsigned long )och != (unsigned long )((struct obd_client_handle *)0)) { tmp___9 = IS_ERR((void const *)och); if (tmp___9) { tmp___10 = 0; } else { tmp___10 = 1; } if (tmp___10) { ll_lease_close(och, inode, (bool *)0); } else { } } else { } return (rc); } } static int ll_swap_layouts(struct file *file1 , struct file *file2 , struct lustre_swap_layouts *lsl ) { struct mdc_swap_layouts msl ; struct md_op_data *op_data ; __u32 gid ; __u64 dv ; struct ll_swap_stack *llss ; int rc ; void *tmp ; int tmp___0 ; int tmp___1 ; struct lu_fid *tmp___2 ; struct lu_fid *tmp___3 ; struct inode *__tmp ; struct file *__tmp___0 ; __u64 __tmp___1 ; bool __tmp___2 ; long tmp___4 ; bool tmp___5 ; struct obd_export *tmp___6 ; int rc1 ; { llss = (struct ll_swap_stack *)0; tmp = kzalloc(200UL, 80U); llss = (struct ll_swap_stack *)tmp; if ((unsigned long )llss == (unsigned long )((struct ll_swap_stack *)0)) { return (-12); } else { } llss->inode1 = file_inode((struct file const *)file1); llss->inode2 = file_inode((struct file const *)file2); if (((int )(llss->inode2)->i_mode & 61440) != 32768) { rc = -22; goto free; } else { } tmp___0 = inode_permission(llss->inode1, 2); if (tmp___0 != 0) { rc = -1; goto free; } else { tmp___1 = inode_permission(llss->inode2, 2); if (tmp___1 != 0) { rc = -1; goto free; } else { } } if ((unsigned long )(llss->inode2)->i_sb != (unsigned long )(llss->inode1)->i_sb) { rc = -18; goto free; } else { } if ((int )lsl->sl_flags & 1) { llss->check_dv1 = 1; } else { } if ((lsl->sl_flags & 2ULL) != 0ULL) { llss->check_dv2 = 1; } else { } llss->dv1 = lsl->sl_dv1; llss->dv2 = lsl->sl_dv2; tmp___2 = ll_inode2fid(llss->inode2); tmp___3 = ll_inode2fid(llss->inode1); rc = lu_fid_cmp((struct lu_fid const *)tmp___3, (struct lu_fid const *)tmp___2); if (rc == 0) { rc = 0; goto free; } else { } if (rc < 0) { __tmp = llss->inode1; llss->inode1 = llss->inode2; llss->inode2 = __tmp; __tmp___0 = file1; file1 = file2; file2 = __tmp___0; __tmp___1 = llss->dv1; llss->dv1 = llss->dv2; llss->dv2 = __tmp___1; __tmp___2 = llss->check_dv1; llss->check_dv1 = llss->check_dv2; llss->check_dv2 = __tmp___2; } else { } gid = lsl->sl_gid; if (gid != 0U) { rc = ll_get_grouplock(llss->inode1, file1, (unsigned long )gid); if (rc < 0) { goto free; } else { } rc = ll_get_grouplock(llss->inode2, file2, (unsigned long )gid); if (rc < 0) { ll_put_grouplock(llss->inode1, file1, (unsigned long )gid); goto free; } else { } } else { } if ((lsl->sl_flags & 12ULL) != 0ULL) { llss->ia1.ia_mtime = (llss->inode1)->i_mtime; llss->ia1.ia_atime = (llss->inode1)->i_atime; llss->ia1.ia_valid = 48U; llss->ia2.ia_mtime = (llss->inode2)->i_mtime; llss->ia2.ia_atime = (llss->inode2)->i_atime; llss->ia2.ia_valid = 48U; } else { } if ((int )llss->check_dv1) { rc = ll_data_version(llss->inode1, & dv, 0); if (rc != 0) { goto putgl; } else { } if (llss->dv1 != dv) { rc = -11; goto putgl; } else { } } else { } if ((int )llss->check_dv2) { rc = ll_data_version(llss->inode2, & dv, 0); if (rc != 0) { goto putgl; } else { } if (llss->dv2 != dv) { rc = -11; goto putgl; } else { } } else { } msl.msl_flags = 0ULL; rc = -12; op_data = ll_prep_md_op_data((struct md_op_data *)0, llss->inode1, llss->inode2, (char const *)0, 0, 0, 16U, (void *)(& msl)); tmp___5 = IS_ERR((void const *)op_data); if ((int )tmp___5) { tmp___4 = PTR_ERR((void const *)op_data); rc = (int )tmp___4; goto free; } else { } tmp___6 = ll_i2mdexp(llss->inode1); rc = obd_iocontrol___0(1075865307U, tmp___6, 328, (void *)op_data, (void *)0); ll_finish_md_op_data(op_data); putgl: ; if (gid != 0U) { ll_put_grouplock(llss->inode2, file2, (unsigned long )gid); ll_put_grouplock(llss->inode1, file1, (unsigned long )gid); } else { } if (rc != 0) { goto free; } else { } if ((lsl->sl_flags & 4ULL) == 0ULL) { llss->ia1.ia_valid = llss->ia1.ia_valid & 4294967263U; llss->ia2.ia_valid = llss->ia2.ia_valid & 4294967263U; } else { } if ((lsl->sl_flags & 8ULL) == 0ULL) { llss->ia1.ia_valid = llss->ia1.ia_valid & 4294967279U; llss->ia2.ia_valid = llss->ia2.ia_valid & 4294967279U; } else { } rc = 0; if (llss->ia2.ia_valid != 0U) { mutex_lock_nested(& (llss->inode1)->i_mutex, 0U); rc = ll_setattr(file1->f_path.dentry, & llss->ia2); mutex_unlock(& (llss->inode1)->i_mutex); } else { } if (llss->ia1.ia_valid != 0U) { mutex_lock_nested(& (llss->inode2)->i_mutex, 0U); rc1 = ll_setattr(file2->f_path.dentry, & llss->ia1); mutex_unlock(& (llss->inode2)->i_mutex); if (rc == 0) { rc = rc1; } else { } } else { } free: kfree((void const *)llss); return (rc); } } static int ll_hsm_state_set(struct inode *inode , struct hsm_state_set *hss ) { struct md_op_data *op_data ; int rc ; bool tmp ; int tmp___0 ; long tmp___1 ; bool tmp___2 ; struct obd_export *tmp___3 ; { if (((hss->hss_setmask | hss->hss_clearmask) & 0xffffffffffffffcdULL) != 0ULL) { tmp = capable(21); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return (-1); } else { } } else { } op_data = ll_prep_md_op_data((struct md_op_data *)0, inode, (struct inode *)0, (char const *)0, 0, 0, 16U, (void *)hss); tmp___2 = IS_ERR((void const *)op_data); if ((int )tmp___2) { tmp___1 = PTR_ERR((void const *)op_data); return ((int )tmp___1); } else { } tmp___3 = ll_i2mdexp(inode); rc = obd_iocontrol___0(1075341012U, tmp___3, 328, (void *)op_data, (void *)0); ll_finish_md_op_data(op_data); return (rc); } } static int ll_hsm_import(struct inode *inode , struct file *file , struct hsm_user_import *hui ) { struct hsm_state_set *hss ; struct iattr *attr ; int rc ; void *tmp ; void *tmp___0 ; { hss = (struct hsm_state_set *)0; attr = (struct iattr *)0; if (((int )inode->i_mode & 61440) != 32768) { return (-22); } else { } tmp = kzalloc(24UL, 80U); hss = (struct hsm_state_set *)tmp; if ((unsigned long )hss == (unsigned long )((struct hsm_state_set *)0)) { return (-12); } else { } hss->hss_valid = 5U; hss->hss_archive_id = hui->hui_archive_id; hss->hss_setmask = 13ULL; rc = ll_hsm_state_set(inode, hss); if (rc != 0) { goto free_hss; } else { } tmp___0 = kzalloc(80UL, 80U); attr = (struct iattr *)tmp___0; if ((unsigned long )attr == (unsigned long )((struct iattr *)0)) { rc = -12; goto free_hss; } else { } attr->ia_mode = (unsigned int )((umode_t )hui->hui_mode) & 511U; attr->ia_mode = (umode_t )((unsigned int )attr->ia_mode | 32768U); attr->ia_uid = make_kuid(& init_user_ns, hui->hui_uid); attr->ia_gid = make_kgid(& init_user_ns, hui->hui_gid); attr->ia_size = (loff_t )hui->hui_size; attr->ia_mtime.tv_sec = (__kernel_time_t )hui->hui_mtime; attr->ia_mtime.tv_nsec = (long )hui->hui_mtime_ns; attr->ia_atime.tv_sec = (__kernel_time_t )hui->hui_atime; attr->ia_atime.tv_nsec = (long )hui->hui_atime_ns; attr->ia_valid = 959U; mutex_lock_nested(& inode->i_mutex, 0U); rc = ll_setattr_raw(file->f_path.dentry, attr, 1); if (rc == -61) { rc = 0; } else { } mutex_unlock(& inode->i_mutex); kfree((void const *)attr); free_hss: kfree((void const *)hss); return (rc); } } static long ll_file_ioctl(struct file *file , unsigned int cmd , unsigned long arg ) { struct inode *inode ; struct inode *tmp ; struct ll_file_data *fd ; int flags ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct ll_sb_info *tmp___1 ; int __ret_pu ; int __pu_val ; int __ret_gu ; register unsigned long __val_gu ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; struct task_struct *tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; struct file *file2 ; struct lustre_swap_layouts lsl ; unsigned long tmp___6 ; int tmp___7 ; int tmp___8 ; int tmp___9 ; int tmp___10 ; int tmp___11 ; int __ret_pu___0 ; int __pu_val___0 ; int tmp___12 ; int tmp___13 ; int tmp___14 ; int tmp___15 ; struct lu_fid *tmp___16 ; unsigned long tmp___17 ; int tmp___18 ; struct ioc_data_version idv ; int rc___0 ; unsigned long tmp___19 ; unsigned long tmp___20 ; int mdtidx ; int __ret_pu___1 ; int __pu_val___1 ; int tmp___21 ; struct md_op_data *op_data ; struct hsm_user_state *hus ; int rc___1 ; void *tmp___22 ; long tmp___23 ; bool tmp___24 ; struct obd_export *tmp___25 ; unsigned long tmp___26 ; struct hsm_state_set *hss ; int rc___2 ; void *tmp___27 ; long tmp___28 ; bool tmp___29 ; struct md_op_data *op_data___0 ; struct hsm_current_action *hca ; int rc___3 ; void *tmp___30 ; long tmp___31 ; bool tmp___32 ; struct obd_export *tmp___33 ; unsigned long tmp___34 ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___35 ; struct obd_client_handle *och ; bool lease_broken ; fmode_t mode ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___36 ; long tmp___37 ; bool tmp___38 ; struct ll_inode_info *lli___0 ; struct ll_inode_info *tmp___39 ; struct ldlm_lock *lock ; struct obd_client_handle *och___0 ; struct hsm_user_import *hui ; void *tmp___40 ; long tmp___41 ; bool tmp___42 ; int err ; enum llioc_iter tmp___43 ; struct obd_export *tmp___44 ; int tmp___45 ; { tmp = file_inode((struct file const *)file); inode = tmp; fd = (struct ll_file_data *)file->private_data; tmp___0 = cfs_cdebug_show(2097152U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_file_ioctl"; msgdata.msg_line = 2207; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p),cmd=%x\n", inode->i_ino, inode->i_generation, inode, cmd); } else { } tmp___1 = ll_i2sbi(inode); ll_stats_ops_tally(tmp___1, 8, 1); if (((cmd >> 8) & 255U) == 84U || ((cmd >> 8) & 255U) == 116U) { return (-25L); } else { } switch (cmd) { case 2148034199U: __might_fault("/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c", 2217); __pu_val = (int )fd->fd_flags; switch (4UL) { case 1UL: __asm__ volatile ("call __put_user_1": "=a" (__ret_pu): "0" (__pu_val), "c" ((int *)arg): "ebx"); goto ldv_68765; case 2UL: __asm__ volatile ("call __put_user_2": "=a" (__ret_pu): "0" (__pu_val), "c" ((int *)arg): "ebx"); goto ldv_68765; case 4UL: __asm__ volatile ("call __put_user_4": "=a" (__ret_pu): "0" (__pu_val), "c" ((int *)arg): "ebx"); goto ldv_68765; case 8UL: __asm__ volatile ("call __put_user_8": "=a" (__ret_pu): "0" (__pu_val), "c" ((int *)arg): "ebx"); goto ldv_68765; default: __asm__ volatile ("call __put_user_X": "=a" (__ret_pu): "0" (__pu_val), "c" ((int *)arg): "ebx"); goto ldv_68765; } ldv_68765: ; return ((long )__ret_pu); case 1074292376U: ; case 1074292377U: __might_fault("/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c", 2224); __asm__ volatile ("call __get_user_%P3": "=a" (__ret_gu), "=r" (__val_gu): "0" ((int *)arg), "i" (4UL)); flags = (int )__val_gu; if (__ret_gu != 0) { return (-14L); } else { } if (cmd == 1074292376U) { if (flags & 1 && (file->f_flags & 16384U) == 0U) { tmp___3 = cfs_cdebug_show(131072U, 128U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___0.msg_fn = "ll_file_ioctl"; msgdata___0.msg_line = 2231; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; tmp___2 = get_current(); libcfs_debug_msg(& msgdata___0, "%s: unable to disable locking on non-O_DIRECT file\n", (char *)(& tmp___2->comm)); } else { } return (-22L); } else { } fd->fd_flags = fd->fd_flags | (__u32 )flags; } else { fd->fd_flags = fd->fd_flags & (__u32 )(~ flags); } return (0L); case 1074292378U: tmp___4 = ll_lov_setstripe(inode, file, arg); return ((long )tmp___4); case 1074292380U: tmp___5 = ll_lov_setea(inode, file, arg); return ((long )tmp___5); case 1075865307U: tmp___6 = copy_from_user((void *)(& lsl), (void const *)arg, 32UL); if (tmp___6 != 0UL) { return (-14L); } else { } if ((file->f_flags & 3U) == 0U) { return (-1L); } else { } file2 = fget(lsl.sl_fd); if ((unsigned long )file2 == (unsigned long )((struct file *)0)) { return (-9L); } else { } rc = -1; if ((file2->f_flags & 3U) != 0U) { rc = ll_swap_layouts(file, file2, & lsl); } else { } fput(file2); return ((long )rc); case 1074292379U: tmp___7 = ll_lov_getstripe(inode, arg); return ((long )tmp___7); case 1074292381U: tmp___8 = ll_lov_recreate_obj(inode, arg); return ((long )tmp___8); case 1074816669U: tmp___9 = ll_lov_recreate_fid(inode, arg); return ((long )tmp___9); case 3223348747U: tmp___10 = ll_ioctl_fiemap(inode, arg); return ((long )tmp___10); case 2148034049U: ; case 1074292226U: tmp___11 = ll_iocontrol(inode, file, cmd, arg); return ((long )tmp___11); case 2148038145U: ; case 2148034051U: __might_fault("/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c", 2278); __pu_val___0 = (int )inode->i_generation; switch (4UL) { case 1UL: __asm__ volatile ("call __put_user_1": "=a" (__ret_pu___0): "0" (__pu_val___0), "c" ((int *)arg): "ebx"); goto ldv_68794; case 2UL: __asm__ volatile ("call __put_user_2": "=a" (__ret_pu___0): "0" (__pu_val___0), "c" ((int *)arg): "ebx"); goto ldv_68794; case 4UL: __asm__ volatile ("call __put_user_4": "=a" (__ret_pu___0): "0" (__pu_val___0), "c" ((int *)arg): "ebx"); goto ldv_68794; case 8UL: __asm__ volatile ("call __put_user_8": "=a" (__ret_pu___0): "0" (__pu_val___0), "c" ((int *)arg): "ebx"); goto ldv_68794; default: __asm__ volatile ("call __put_user_X": "=a" (__ret_pu___0): "0" (__pu_val___0), "c" ((int *)arg): "ebx"); goto ldv_68794; } ldv_68794: ; return ((long )__ret_pu___0); case 1074292382U: tmp___12 = ll_get_grouplock(inode, file, arg); return ((long )tmp___12); case 1074292383U: tmp___13 = ll_put_grouplock(inode, file, arg); return ((long )tmp___13); case 3221776036U: tmp___14 = ll_obd_statfs(inode, (void *)arg); return ((long )tmp___14); case 1074292390U: tmp___15 = ll_flush_ctx(inode); return ((long )tmp___15); case 2148034221U: tmp___16 = ll_inode2fid(inode); tmp___17 = copy_to_user((void *)arg, (void const *)tmp___16, 16UL); if (tmp___17 != 0UL) { return (-14L); } else { } return (0L); case 3221776022U: tmp___18 = ll_fid2path(inode, (void *)arg); return ((long )tmp___18); case 2148558554U: tmp___19 = copy_from_user((void *)(& idv), (void const *)arg, 16UL); if (tmp___19 != 0UL) { return (-14L); } else { } rc___0 = ll_data_version(inode, & idv.idv_version, (idv.idv_flags & 1ULL) == 0ULL); if (rc___0 == 0) { tmp___20 = copy_to_user((void *)arg, (void const *)(& idv), 16UL); if (tmp___20 != 0UL) { return (-14L); } else { } } else { } return ((long )rc___0); case 2147772079U: mdtidx = ll_get_mdt_idx(inode); if (mdtidx < 0) { return ((long )mdtidx); } else { } __might_fault("/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c", 2326); __pu_val___1 = mdtidx; switch (4UL) { case 1UL: __asm__ volatile ("call __put_user_1": "=a" (__ret_pu___1): "0" (__pu_val___1), "c" ((int *)arg): "ebx"); goto ldv_68814; case 2UL: __asm__ volatile ("call __put_user_2": "=a" (__ret_pu___1): "0" (__pu_val___1), "c" ((int *)arg): "ebx"); goto ldv_68814; case 4UL: __asm__ volatile ("call __put_user_4": "=a" (__ret_pu___1): "0" (__pu_val___1), "c" ((int *)arg): "ebx"); goto ldv_68814; case 8UL: __asm__ volatile ("call __put_user_8": "=a" (__ret_pu___1): "0" (__pu_val___1), "c" ((int *)arg): "ebx"); goto ldv_68814; default: __asm__ volatile ("call __put_user_X": "=a" (__ret_pu___1): "0" (__pu_val___1), "c" ((int *)arg): "ebx"); goto ldv_68814; } ldv_68814: ; if (__ret_pu___1 != 0) { return (-14L); } else { } return (0L); case 3221776003U: ; case 2155898499U: tmp___21 = ll_get_obd_name(inode, cmd, arg); return ((long )tmp___21); case 2149607123U: tmp___22 = kzalloc(32UL, 80U); hus = (struct hsm_user_state *)tmp___22; if ((unsigned long )hus == (unsigned long )((struct hsm_user_state *)0)) { return (-12L); } else { } op_data = ll_prep_md_op_data((struct md_op_data *)0, inode, (struct inode *)0, (char const *)0, 0, 0, 16U, (void *)hus); tmp___24 = IS_ERR((void const *)op_data); if ((int )tmp___24) { kfree((void const *)hus); tmp___23 = PTR_ERR((void const *)op_data); return (tmp___23); } else { } tmp___25 = ll_i2mdexp(inode); rc___1 = obd_iocontrol___0(cmd, tmp___25, 328, (void *)op_data, (void *)0); tmp___26 = copy_to_user((void *)arg, (void const *)hus, 32UL); if (tmp___26 != 0UL) { rc___1 = -14; } else { } ll_finish_md_op_data(op_data); kfree((void const *)hus); return ((long )rc___1); case 1075341012U: tmp___27 = memdup_user((void const *)arg, 24UL); hss = (struct hsm_state_set *)tmp___27; tmp___29 = IS_ERR((void const *)hss); if ((int )tmp___29) { tmp___28 = PTR_ERR((void const *)hss); return (tmp___28); } else { } rc___2 = ll_hsm_state_set(inode, hss); kfree((void const *)hss); return ((long )rc___2); case 2149082844U: tmp___30 = kzalloc(24UL, 80U); hca = (struct hsm_current_action *)tmp___30; if ((unsigned long )hca == (unsigned long )((struct hsm_current_action *)0)) { return (-12L); } else { } op_data___0 = ll_prep_md_op_data((struct md_op_data *)0, inode, (struct inode *)0, (char const *)0, 0, 0, 16U, (void *)hca); tmp___32 = IS_ERR((void const *)op_data___0); if ((int )tmp___32) { kfree((void const *)hca); tmp___31 = PTR_ERR((void const *)op_data___0); return (tmp___31); } else { } tmp___33 = ll_i2mdexp(inode); rc___3 = obd_iocontrol___0(cmd, tmp___33, 328, (void *)op_data___0, (void *)0); tmp___34 = copy_to_user((void *)arg, (void const *)hca, 24UL); if (tmp___34 != 0UL) { rc___3 = -14; } else { } ll_finish_md_op_data(op_data___0); kfree((void const *)hca); return ((long )rc___3); case 3221776115U: tmp___35 = ll_i2info(inode); lli = tmp___35; och = (struct obd_client_handle *)0; mode = 0U; switch (arg) { case 1UL: ; if ((file->f_mode & 2U) == 0U) { return (-1L); } else { } mode = 2U; goto ldv_68839; case 0UL: ; if ((file->f_mode & 1U) == 0U) { return (-1L); } else { } mode = 1U; goto ldv_68839; case 2UL: mutex_lock_nested(& lli->lli_och_mutex, 0U); if ((unsigned long )fd->fd_lease_och != (unsigned long )((struct obd_client_handle *)0)) { och = fd->fd_lease_och; fd->fd_lease_och = (struct obd_client_handle *)0; } else { } mutex_unlock(& lli->lli_och_mutex); if ((unsigned long )och != (unsigned long )((struct obd_client_handle *)0)) { mode = och->och_flags & 3U; rc = ll_lease_close(och, inode, & lease_broken); if (rc == 0 && (int )lease_broken) { mode = 0U; } else { } } else { rc = -37; } return ((long )(rc >= 0 ? (int )mode : rc)); default: ; return (-22L); } ldv_68839: tmp___36 = cfs_cdebug_show(2U, 128U); if (tmp___36 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___1.msg_fn = "ll_file_ioctl"; msgdata___1.msg_line = 2440; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 2; libcfs_debug_msg(& msgdata___1, "Set lease with mode %d\n", mode); } else { } och = ll_lease_open(inode, file, mode, 0ULL); tmp___38 = IS_ERR((void const *)och); if ((int )tmp___38) { tmp___37 = PTR_ERR((void const *)och); return (tmp___37); } else { } rc = 0; mutex_lock_nested(& lli->lli_och_mutex, 0U); if ((unsigned long )fd->fd_lease_och == (unsigned long )((struct obd_client_handle *)0)) { fd->fd_lease_och = och; och = (struct obd_client_handle *)0; } else { } mutex_unlock(& lli->lli_och_mutex); if ((unsigned long )och != (unsigned long )((struct obd_client_handle *)0)) { ll_lease_close(och, inode, & lease_broken); rc = -16; } else { } return ((long )rc); case 26356U: tmp___39 = ll_i2info(inode); lli___0 = tmp___39; lock = (struct ldlm_lock *)0; rc = 0; mutex_lock_nested(& lli___0->lli_och_mutex, 0U); if ((unsigned long )fd->fd_lease_och != (unsigned long )((struct obd_client_handle *)0)) { och___0 = fd->fd_lease_och; lock = ldlm_handle2lock((struct lustre_handle const *)(& och___0->och_lease_handle)); if ((unsigned long )lock != (unsigned long )((struct ldlm_lock *)0)) { lock_res_and_lock(lock); if ((lock->l_flags & 68719476736ULL) == 0ULL) { rc = (int )och___0->och_flags & 3; } else { } unlock_res_and_lock(lock); ldlm_lock_put(lock); } else { } } else { } mutex_unlock(& lli___0->lli_och_mutex); return ((long )rc); case 3224397557U: tmp___40 = memdup_user((void const *)arg, 48UL); hui = (struct hsm_user_import *)tmp___40; tmp___42 = IS_ERR((void const *)hui); if ((int )tmp___42) { tmp___41 = PTR_ERR((void const *)hui); return (tmp___41); } else { } rc = ll_hsm_import(inode, file, hui); kfree((void const *)hui); return ((long )rc); default: tmp___43 = ll_iocontrol_call(inode, file, cmd, arg, & err); if ((unsigned int )tmp___43 == 1U) { return ((long )err); } else { } tmp___44 = ll_i2dtexp(inode); tmp___45 = obd_iocontrol___0(cmd, tmp___44, 0, (void *)0, (void *)arg); return ((long )tmp___45); } } } static loff_t ll_file_seek(struct file *file , loff_t offset , int origin ) { struct inode *inode ; struct inode *tmp ; loff_t retval ; loff_t eof ; loff_t tmp___0 ; loff_t tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; struct ll_sb_info *tmp___3 ; int tmp___4 ; __u64 tmp___5 ; { tmp = file_inode((struct file const *)file); inode = tmp; eof = 0LL; if (origin == 2) { tmp___0 = i_size_read((struct inode const *)inode); tmp___1 = tmp___0; } else { tmp___1 = origin == 1 ? file->f_pos : 0LL; } retval = tmp___1 + offset; tmp___2 = cfs_cdebug_show(2097152U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_file_seek"; msgdata.msg_line = 2518; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p), to=%llu=%#llx(%d)\n", inode->i_ino, inode->i_generation, inode, retval, retval, origin); } else { } tmp___3 = ll_i2sbi(inode); ll_stats_ops_tally(tmp___3, 12, 1); if ((origin == 2 || origin == 4) || origin == 3) { tmp___4 = ll_glimpse_size(inode); retval = (loff_t )tmp___4; if (retval != 0LL) { return (retval); } else { } eof = i_size_read((struct inode const *)inode); } else { } tmp___5 = ll_file_maxbytes(inode); retval = generic_file_llseek_size(file, offset, origin, (loff_t )tmp___5, eof); return (retval); } } static int ll_flush(struct file *file , fl_owner_t id ) { struct inode *inode ; struct inode *tmp ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___0 ; struct ll_file_data *fd ; int rc ; int err ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; { tmp = file_inode((struct file const *)file); inode = tmp; tmp___0 = ll_i2info(inode); lli = tmp___0; fd = (struct ll_file_data *)file->private_data; tmp___1 = ldv__builtin_expect(((int )inode->i_mode & 61440) == 16384, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_flush"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 2540; __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 *)"!(((inode->i_mode) & 00170000) == 0040000)"); lbug_with_loc(& __msg_data); } else { } rc = lli->u.f.f_async_rc; lli->u.f.f_async_rc = 0; err = lov_read_and_clear_async_rc(lli->lli_clob); if (rc == 0) { rc = err; } else { } if ((int )fd->fd_write_failed) { return (0); } else { } return (rc != 0 ? -5 : 0); } } int cl_sync_file_range(struct inode *inode , loff_t start , loff_t end , enum cl_fsync_mode mode , int ignore_layout ) { struct cl_env_nest nest ; struct lu_env *env ; struct cl_io *io ; struct obd_capa *capa ; struct cl_fsync_io *fio ; int result ; long tmp ; bool tmp___0 ; struct ll_inode_info *tmp___1 ; int tmp___2 ; { capa = (struct obd_capa *)0; if ((((unsigned int )mode != 0U && (unsigned int )mode != 1U) && (unsigned int )mode != 2U) && (unsigned int )mode != 3U) { return (-22); } else { } env = cl_env_nested_get(& nest); tmp___0 = IS_ERR((void const *)env); if ((int )tmp___0) { tmp = PTR_ERR((void const *)env); return ((int )tmp); } else { } capa = ll_osscapa_get(inode, 32ULL); io = ccc_env_thread_io((struct lu_env const *)env); tmp___1 = ll_i2info(inode); io->ci_obj = tmp___1->lli_clob; io->ci_ignore_layout = (unsigned char )ignore_layout; fio = & io->u.ci_fsync; fio->fi_capa = capa; fio->fi_start = start; fio->fi_end = end; fio->fi_fid = ll_inode2fid(inode); fio->fi_mode = mode; fio->fi_nr_written = 0U; tmp___2 = cl_io_init((struct lu_env const *)env, io, 4, io->ci_obj); if (tmp___2 == 0) { result = cl_io_loop((struct lu_env const *)env, io); } else { result = io->ci_result; } if (result == 0) { result = (int )fio->fi_nr_written; } else { } cl_io_fini((struct lu_env const *)env, io); cl_env_nested_put(& nest, env); capa_put(capa); return (result); } } int ll_fsync(struct file *file , loff_t start , loff_t end , int datasync ) { struct inode *inode ; struct inode *tmp ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___0 ; struct ptlrpc_request *req ; struct obd_capa *oc ; int rc ; int err ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; struct ll_sb_info *tmp___2 ; struct lu_fid *tmp___3 ; struct ll_sb_info *tmp___4 ; struct ll_file_data *fd ; { tmp = file_inode((struct file const *)file); inode = tmp; tmp___0 = ll_i2info(inode); lli = tmp___0; tmp___1 = cfs_cdebug_show(2097152U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_fsync"; msgdata.msg_line = 2619; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p)\n", inode->i_ino, inode->i_generation, inode); } else { } tmp___2 = ll_i2sbi(inode); ll_stats_ops_tally(tmp___2, 13, 1); rc = filemap_write_and_wait_range(inode->i_mapping, start, end); mutex_lock_nested(& inode->i_mutex, 0U); if (((int )inode->i_mode & 61440) != 16384) { err = lli->u.f.f_async_rc; lli->u.f.f_async_rc = 0; if (rc == 0) { rc = err; } else { } err = lov_read_and_clear_async_rc(lli->lli_clob); if (rc == 0) { rc = err; } else { } } else { } oc = ll_mdscapa_get(inode); tmp___3 = ll_inode2fid(inode); tmp___4 = ll_i2sbi(inode); err = md_sync(tmp___4->ll_md_exp, (struct lu_fid const *)tmp___3, oc, & req); capa_put(oc); if (rc == 0) { rc = err; } else { } if (err == 0) { ptlrpc_req_finished(req); } else { } if (((int )inode->i_mode & 61440) == 32768) { fd = (struct ll_file_data *)file->private_data; err = cl_sync_file_range(inode, start, end, 3, 0); if (rc == 0 && err < 0) { rc = err; } else { } if (rc < 0) { fd->fd_write_failed = 1; } else { fd->fd_write_failed = 0; } } else { } mutex_unlock(& inode->i_mutex); return (rc); } } static int ll_file_flock(struct file *file , int cmd , struct file_lock *file_lock ) { struct inode *inode ; struct inode *tmp ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___0 ; struct ldlm_enqueue_info einfo ; struct md_op_data *op_data ; struct lustre_handle lockh ; ldlm_policy_data_t flock ; __u64 flags ; int rc ; int rc2 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; struct ll_sb_info *tmp___2 ; struct libcfs_debug_msg_data __msg_data ; long tmp___3 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___4 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; long tmp___6 ; bool tmp___7 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___8 ; { tmp = file_inode((struct file const *)file); inode = tmp; tmp___0 = ll_i2sbi(inode); sbi = tmp___0; einfo.ei_type = 12U; einfo.ei_mode = 0U; einfo.ei_cb_bl = 0; einfo.ei_cb_cp = (void *)(& ldlm_flock_completion_ast); einfo.ei_cb_gl = 0; einfo.ei_cbdata = (void *)file_lock; lockh.cookie = 0ULL; flock.l_extent.start = 0ULL; flock.l_extent.end = 0ULL; flock.l_extent.gid = 0ULL; flags = 0ULL; rc2 = 0; tmp___1 = cfs_cdebug_show(2097152U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_file_flock"; msgdata.msg_line = 2680; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu file_lock=%p\n", inode->i_ino, file_lock); } else { } tmp___2 = ll_i2sbi(inode); ll_stats_ops_tally(tmp___2, 17, 1); if ((file_lock->fl_flags & 2U) != 0U) { tmp___3 = ldv__builtin_expect((long )(cmd != 7 && cmd != 6), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_file_flock"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 2685; __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 == 7) || (cmd == 6)"); lbug_with_loc(& __msg_data); } else { } } else if ((file_lock->fl_flags & 1U) == 0U) { return (-22); } else { } flock.l_flock.owner = (__u64 )file_lock->fl_owner; flock.l_flock.pid = file_lock->fl_pid; flock.l_flock.start = (__u64 )file_lock->fl_start; flock.l_flock.end = (__u64 )file_lock->fl_end; if ((unsigned long )file_lock->fl_lmops != (unsigned long )((struct lock_manager_operations const *)0) && (unsigned long )(file_lock->fl_lmops)->lm_compare_owner != (unsigned long )((int (*/* const */)(struct file_lock * , struct file_lock * ))0)) { flock.l_flock.owner = (__u64 )file_lock->fl_pid; } else { } switch ((int )file_lock->fl_type) { case 0: einfo.ei_mode = 4U; goto ldv_68919; case 2: einfo.ei_mode = 32U; goto ldv_68919; case 1: einfo.ei_mode = 2U; goto ldv_68919; default: tmp___4 = cfs_cdebug_show(64U, 128U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___0.msg_fn = "ll_file_flock"; msgdata___0.msg_line = 2724; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 64; libcfs_debug_msg(& msgdata___0, "Unknown fcntl lock type: %d\n", (int )file_lock->fl_type); } else { } return (-524); } ldv_68919: ; switch (cmd) { case 7: ; case 14: flags = 0ULL; goto ldv_68926; case 6: ; case 13: flags = 262144ULL; goto ldv_68926; case 5: ; case 12: flags = 524288ULL; file_lock->fl_type = (unsigned char )einfo.ei_mode; goto ldv_68926; default: tmp___5 = cfs_cdebug_show(131072U, 128U); if (tmp___5 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___1.msg_fn = "ll_file_flock"; msgdata___1.msg_line = 2751; msgdata___1.msg_cdls = & cdls; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "unknown fcntl lock command: %d\n", cmd); } else { } return (-22); } ldv_68926: op_data = ll_prep_md_op_data((struct md_op_data *)0, inode, (struct inode *)0, (char const *)0, 0, 0, 16U, (void *)0); tmp___7 = IS_ERR((void const *)op_data); if ((int )tmp___7) { tmp___6 = PTR_ERR((void const *)op_data); return ((int )tmp___6); } else { } tmp___8 = cfs_cdebug_show(65536U, 128U); if (tmp___8 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___2.msg_fn = "ll_file_flock"; msgdata___2.msg_line = 2762; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 65536; libcfs_debug_msg(& msgdata___2, "inode=%lu, pid=%u, flags=%#llx, mode=%u, start=%llu, end=%llu\n", inode->i_ino, flock.l_flock.pid, flags, einfo.ei_mode, flock.l_flock.start, flock.l_flock.end); } else { } rc = md_enqueue___0(sbi->ll_md_exp, & einfo, (struct lookup_intent *)0, op_data, & lockh, (void *)(& flock), 0, (struct ptlrpc_request **)0, flags); if ((file_lock->fl_flags & 2U) != 0U && (rc == 0 || (unsigned int )file_lock->fl_type == 2U)) { rc2 = flock_lock_file_wait(file, file_lock); } else { } if (((int )file_lock->fl_flags & 1 && (rc == 0 || (unsigned int )file_lock->fl_type == 2U)) && (flags & 524288ULL) == 0ULL) { rc2 = posix_lock_file_wait(file, file_lock); } else { } if (rc2 != 0 && (unsigned int )file_lock->fl_type != 2U) { einfo.ei_mode = 32U; md_enqueue___0(sbi->ll_md_exp, & einfo, (struct lookup_intent *)0, op_data, & lockh, (void *)(& flock), 0, (struct ptlrpc_request **)0, flags); rc = rc2; } else { } ll_finish_md_op_data(op_data); return (rc); } } static int ll_file_noflock(struct file *file , int cmd , struct file_lock *file_lock ) { { return (-38); } } int ll_have_md_lock(struct inode *inode , __u64 *bits , ldlm_mode_t l_req_mode ) { struct lustre_handle lockh ; ldlm_policy_data_t policy ; ldlm_mode_t mode ; struct lu_fid *fid ; __u64 flags ; int i ; struct ll_inode_info *tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct ldlm_lock *lock ; struct task_struct *tmp___1 ; struct obd_export *tmp___2 ; ldlm_mode_t tmp___3 ; { mode = (unsigned int )l_req_mode != 0U ? (unsigned int )l_req_mode : 30U; if ((unsigned long )inode == (unsigned long )((struct inode *)0)) { return (0); } else { } tmp = ll_i2info(inode); fid = & tmp->lli_fid; tmp___0 = cfs_cdebug_show(64U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_have_md_lock"; msgdata.msg_line = 2818; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "trying to match res [%#llx:0x%x:0x%x] mode %s\n", fid->f_seq, fid->f_oid, fid->f_ver, ldlm_lockname[(unsigned int )mode]); } else { } flags = 17180393474ULL; i = 0; goto ldv_68956; ldv_68955: policy.l_inodebits.bits = *bits & (__u64 )(1 << i); if (policy.l_inodebits.bits == 0ULL) { goto ldv_68953; } else { } tmp___2 = ll_i2mdexp(inode); tmp___3 = md_lock_match___0(tmp___2, flags, (struct lu_fid const *)fid, 13, & policy, mode, & lockh); if ((unsigned int )tmp___3 != 0U) { lock = ldlm_handle2lock((struct lustre_handle const *)(& lockh)); if ((unsigned long )lock != (unsigned long )((struct ldlm_lock *)0)) { *bits = *bits & ~ lock->l_policy_data.l_inodebits.bits; tmp___1 = get_current(); lu_ref_del(& lock->l_reference, "handle", (void const *)tmp___1); ldlm_lock_put(lock); } else { *bits = *bits & ~ policy.l_inodebits.bits; } } else { } ldv_68953: i = i + 1; ldv_68956: ; if (i <= 5 && *bits != 0ULL) { goto ldv_68955; } else { } return (*bits == 0ULL); } } ldlm_mode_t ll_take_md_lock(struct inode *inode , __u64 bits , struct lustre_handle *lockh , __u64 flags , ldlm_mode_t mode ) { ldlm_policy_data_t policy ; struct lu_fid *fid ; ldlm_mode_t rc ; struct ll_inode_info *tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct obd_export *tmp___1 ; { policy.l_inodebits.bits = bits; tmp = ll_i2info(inode); fid = & tmp->lli_fid; tmp___0 = cfs_cdebug_show(64U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_take_md_lock"; msgdata.msg_line = 2852; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "trying to match res [%#llx:0x%x:0x%x]\n", fid->f_seq, fid->f_oid, fid->f_ver); } else { } tmp___1 = ll_i2mdexp(inode); rc = md_lock_match___0(tmp___1, flags | 2ULL, (struct lu_fid const *)fid, 13, & policy, mode, lockh); return (rc); } } static int ll_inode_revalidate_fini(struct inode *inode , int rc ) { struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; struct lu_fid *tmp ; struct lu_fid *tmp___0 ; struct lu_fid *tmp___1 ; char *tmp___2 ; int tmp___3 ; { if (rc == -2) { clear_nlink(inode); if (((int )inode->i_mode & 61440) != 32768 && ((int )inode->i_mode & 61440) != 16384) { return (0); } else { } } else if (rc != 0) { tmp___3 = cfs_cdebug_show(rc == -13 || rc == -43 ? 64U : 131072U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_inode_revalidate_fini"; msgdata.msg_line = 2874; msgdata.msg_cdls = & cdls; msgdata.msg_mask = rc == -13 || rc == -43 ? 64 : 131072; tmp = ll_inode2fid(inode); tmp___0 = ll_inode2fid(inode); tmp___1 = ll_inode2fid(inode); tmp___2 = ll_get_fsname(inode->i_sb, (char *)0, 0); libcfs_debug_msg(& msgdata, "%s: revalidate FID [%#llx:0x%x:0x%x] error: rc = %d\n", tmp___2, tmp___1->f_seq, tmp___0->f_oid, tmp->f_ver, rc); } else { } } else { } return (rc); } } static int __ll_inode_revalidate(struct dentry *dentry , __u64 ibits ) { struct inode *inode ; struct inode *tmp ; struct ptlrpc_request *req ; struct obd_export *exp ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; struct lookup_intent oit ; struct md_op_data *op_data ; long tmp___2 ; bool tmp___3 ; struct inode *tmp___4 ; struct ll_sb_info *sbi ; struct inode *tmp___5 ; struct ll_sb_info *tmp___6 ; u64 valid ; struct md_op_data *op_data___0 ; int ealen ; long tmp___7 ; bool tmp___8 ; struct inode *tmp___9 ; int tmp___10 ; __u64 tmp___11 ; { tmp = d_inode((struct dentry const *)dentry); inode = tmp; req = (struct ptlrpc_request *)0; rc = 0; tmp___0 = ldv__builtin_expect((unsigned long )inode == (unsigned long )((struct inode *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "__ll_inode_revalidate"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 2887; __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 *)"inode != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = cfs_cdebug_show(2097152U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "__ll_inode_revalidate"; msgdata.msg_line = 2890; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p),name=%pd\n", inode->i_ino, inode->i_generation, inode, dentry); } else { } exp = ll_i2mdexp(inode); tmp___11 = exp_connect_flags(exp); if ((tmp___11 & 16384ULL) != 0ULL) { oit.it_op = 8; oit.it_create_mode = 0; oit.it_flags = 0ULL; oit.d.lustre.it_disposition = 0; oit.d.lustre.it_status = 0; oit.d.lustre.it_lock_handle = 0ULL; oit.d.lustre.it_lock_bits = 0ULL; oit.d.lustre.it_lock_mode = 0; oit.d.lustre.it_remote_lock_mode = 0; oit.d.lustre.it_remote_lock_handle = 0ULL; oit.d.lustre.it_data = 0; oit.d.lustre.it_lock_set = (unsigned char)0; if (ibits == 1ULL) { oit.it_op = 16; } else { } op_data = ll_prep_md_op_data((struct md_op_data *)0, inode, inode, (char const *)0, 0, 0, 16U, (void *)0); tmp___3 = IS_ERR((void const *)op_data); if ((int )tmp___3) { tmp___2 = PTR_ERR((void const *)op_data); return ((int )tmp___2); } else { } oit.it_create_mode = oit.it_create_mode | 33554432; rc = md_intent_lock(exp, op_data, (void *)0, 0, & oit, 0, & req, & ll_md_blocking_ast, 0ULL); ll_finish_md_op_data(op_data); oit.it_create_mode = oit.it_create_mode & -33554433; if (rc < 0) { rc = ll_inode_revalidate_fini(inode, rc); goto out; } else { } rc = ll_revalidate_it_finish(req, & oit, inode); if (rc != 0) { ll_intent_release(& oit); goto out; } else { } tmp___4 = d_inode((struct dentry const *)dentry); if ((unsigned int )tmp___4->__annonCompField66.i_nlink == 0U) { d_lustre_invalidate___0(dentry, 0); } else { } ll_lookup_finish_locks(& oit, inode); } else { tmp___9 = d_inode((struct dentry const *)dentry); tmp___10 = ll_have_md_lock(tmp___9, & ibits, 0); if (tmp___10 == 0) { tmp___5 = d_inode((struct dentry const *)dentry); tmp___6 = ll_i2sbi(tmp___5); sbi = tmp___6; valid = 16871391ULL; ealen = 0; if (((int )inode->i_mode & 61440) == 32768) { rc = ll_get_default_mdsize(sbi, & ealen); if (rc != 0) { return (rc); } else { } valid = valid | 2147614720ULL; } else { } op_data___0 = ll_prep_md_op_data((struct md_op_data *)0, inode, (struct inode *)0, (char const *)0, 0, ealen, 16U, (void *)0); tmp___8 = IS_ERR((void const *)op_data___0); if ((int )tmp___8) { tmp___7 = PTR_ERR((void const *)op_data___0); return ((int )tmp___7); } else { } op_data___0->op_valid = valid; rc = md_getattr___0(sbi->ll_md_exp, op_data___0, & req); ll_finish_md_op_data(op_data___0); if (rc != 0) { rc = ll_inode_revalidate_fini(inode, rc); return (rc); } else { } rc = ll_prep_inode(& inode, req, (struct super_block *)0, (struct lookup_intent *)0); } else { } } out: ptlrpc_req_finished(req); return (rc); } } static int ll_inode_revalidate(struct dentry *dentry , __u64 ibits ) { struct inode *inode ; struct inode *tmp ; int rc ; struct ll_inode_info *tmp___0 ; struct ll_inode_info *tmp___1 ; struct ll_inode_info *tmp___2 ; struct ll_inode_info *tmp___3 ; { tmp = d_inode((struct dentry const *)dentry); inode = tmp; rc = __ll_inode_revalidate(dentry, ibits); if (rc != 0) { return (rc); } else { } if (((int )inode->i_mode & 61440) != 32768) { tmp___0 = ll_i2info(inode); inode->i_atime.tv_sec = (__kernel_time_t )tmp___0->lli_lvb.lvb_atime; tmp___1 = ll_i2info(inode); inode->i_mtime.tv_sec = (__kernel_time_t )tmp___1->lli_lvb.lvb_mtime; tmp___2 = ll_i2info(inode); inode->i_ctime.tv_sec = (__kernel_time_t )tmp___2->lli_lvb.lvb_ctime; } else { tmp___3 = ll_i2info(inode); if ((tmp___3->lli_flags & 32U) == 0U) { rc = ll_glimpse_size(inode); } else { } } return (rc); } } int ll_getattr(struct vfsmount *mnt , struct dentry *de , struct kstat *stat ) { struct inode *inode ; struct inode *tmp ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___0 ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___1 ; int res ; int tmp___2 ; { tmp = d_inode((struct dentry const *)de); inode = tmp; tmp___0 = ll_i2sbi(inode); sbi = tmp___0; tmp___1 = ll_i2info(inode); lli = tmp___1; res = 0; res = ll_inode_revalidate(de, 3ULL); ll_stats_ops_tally(sbi, 18, 1); if (res != 0) { return (res); } else { } stat->dev = (inode->i_sb)->s_dev; tmp___2 = ll_need_32bit_api(sbi); if (tmp___2 != 0) { stat->ino = cl_fid_build_ino((struct lu_fid const *)(& lli->lli_fid), 1); } else { stat->ino = (u64 )inode->i_ino; } stat->mode = inode->i_mode; stat->nlink = inode->__annonCompField66.i_nlink; stat->uid = inode->i_uid; stat->gid = inode->i_gid; stat->rdev = inode->i_rdev; stat->atime = inode->i_atime; stat->mtime = inode->i_mtime; stat->ctime = inode->i_ctime; stat->blksize = (unsigned long )(1 << (int )inode->i_blkbits); stat->size = i_size_read((struct inode const *)inode); stat->blocks = (unsigned long long )inode->i_blocks; return (0); } } static int ll_fiemap(struct inode *inode , struct fiemap_extent_info *fieinfo , __u64 start , __u64 len ) { int rc ; size_t num_bytes ; struct ll_user_fiemap *fiemap ; unsigned int extent_count ; void *tmp ; { extent_count = fieinfo->fi_extents_max; num_bytes = (unsigned long )extent_count * 56UL + 32UL; tmp = libcfs_kvzalloc(num_bytes, 80U); fiemap = (struct ll_user_fiemap *)tmp; if ((unsigned long )fiemap == (unsigned long )((struct ll_user_fiemap *)0)) { return (-12); } else { } fiemap->fm_flags = fieinfo->fi_flags; fiemap->fm_extent_count = fieinfo->fi_extents_max; fiemap->fm_start = start; fiemap->fm_length = len; if (extent_count != 0U) { memcpy((void *)(& fiemap->fm_extents), (void const *)fieinfo->fi_extents_start, 56UL); } else { } rc = ll_do_fiemap(inode, fiemap, num_bytes); fieinfo->fi_flags = fiemap->fm_flags; fieinfo->fi_extents_mapped = fiemap->fm_mapped_extents; if (extent_count != 0U) { memcpy((void *)fieinfo->fi_extents_start, (void const *)(& fiemap->fm_extents), (unsigned long )fiemap->fm_mapped_extents * 56UL); } else { } kvfree((void const *)fiemap); return (rc); } } struct posix_acl *ll_get_acl(struct inode *inode , int type ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct posix_acl *acl ; { tmp = ll_i2info(inode); lli = tmp; acl = (struct posix_acl *)0; spin_lock(& lli->lli_lock); acl = posix_acl_dup(lli->lli_posix_acl); spin_unlock(& lli->lli_lock); return (acl); } } int ll_inode_permission(struct inode *inode , int mask ) { int rc ; bool tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; int tmp___1 ; struct ll_sb_info *tmp___2 ; struct ll_sb_info *tmp___3 ; { rc = 0; if ((mask & 128) != 0) { return (-10); } else { } tmp = is_root_inode(inode); if ((int )tmp) { rc = __ll_inode_revalidate((inode->i_sb)->s_root, 1ULL); if (rc != 0) { return (rc); } else { } } else { } tmp___0 = cfs_cdebug_show(2097152U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_inode_permission"; msgdata.msg_line = 3108; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p), inode mode %x mask %o\n", inode->i_ino, inode->i_generation, inode, (int )inode->i_mode, mask); } else { } tmp___2 = ll_i2sbi(inode); if ((tmp___2->ll_flags & 64) != 0) { tmp___1 = lustre_check_remote_perm(inode, mask); return (tmp___1); } else { } tmp___3 = ll_i2sbi(inode); ll_stats_ops_tally(tmp___3, 34, 1); rc = generic_permission(inode, mask); return (rc); } } struct file_operations ll_file_operations = {0, & ll_file_seek, 0, 0, & ll_file_read_iter, & ll_file_write_iter, 0, 0, & ll_file_ioctl, 0, & ll_file_mmap, 0, & ll_file_open, & ll_flush, & ll_file_release, & ll_fsync, 0, 0, 0, 0, 0, 0, 0, 0, & ll_file_splice_read, 0, 0, 0}; struct file_operations ll_file_operations_flock = {0, & ll_file_seek, 0, 0, & ll_file_read_iter, & ll_file_write_iter, 0, 0, & ll_file_ioctl, 0, & ll_file_mmap, 0, & ll_file_open, & ll_flush, & ll_file_release, & ll_fsync, 0, 0, & ll_file_flock, 0, 0, 0, & ll_file_flock, 0, & ll_file_splice_read, 0, 0, 0}; struct file_operations ll_file_operations_noflock = {0, & ll_file_seek, 0, 0, & ll_file_read_iter, & ll_file_write_iter, 0, 0, & ll_file_ioctl, 0, & ll_file_mmap, 0, & ll_file_open, & ll_flush, & ll_file_release, & ll_fsync, 0, 0, & ll_file_noflock, 0, 0, 0, & ll_file_noflock, 0, & ll_file_splice_read, 0, 0, 0}; struct inode_operations ll_file_inode_operations = {0, 0, & ll_inode_permission, & ll_get_acl, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, & ll_setattr, & ll_getattr, & ll_setxattr, & ll_getxattr, & ll_listxattr, & ll_removexattr, & ll_fiemap, 0, 0, 0, 0}; static struct llioc_ctl_data llioc = {{0L, {& llioc.ioc_sem.wait_list, & llioc.ioc_sem.wait_list}, {{{0}}, 3735899821U, 4294967295U, (void *)-1, {0, {0, 0}, "llioc.ioc_sem.wait_lock", 0, 0UL}}, {{0}}, (struct task_struct *)0, {0, {0, 0}, "llioc.ioc_sem", 0, 0UL}}, {& llioc.ioc_head, & llioc.ioc_head}}; void *ll_iocontrol_register(enum llioc_iter (*cb)(struct inode * , struct file * , unsigned int , unsigned long , void * , int * ) , int count , unsigned int *cmd ) { unsigned int size ; struct llioc_data *in_data ; void *tmp ; { in_data = (struct llioc_data *)0; if ((((unsigned long )cb == (unsigned long )((enum llioc_iter (*)(struct inode * , struct file * , unsigned int , unsigned long , void * , int * ))0) || (unsigned long )cmd == (unsigned long )((unsigned int *)0U)) || count > 256) || count < 0) { return ((void *)0); } else { } size = (unsigned int )((unsigned long )count + 10UL) * 4U; tmp = kzalloc((size_t )size, 80U); in_data = (struct llioc_data *)tmp; if ((unsigned long )in_data == (unsigned long )((struct llioc_data *)0)) { return ((void *)0); } else { } memset((void *)in_data, 0, 40UL); in_data->iocd_size = size; in_data->iocd_cb = cb; in_data->iocd_count = (unsigned int )count; memcpy((void *)(& in_data->iocd_cmd), (void const *)cmd, (unsigned long )count * 4UL); down_write(& llioc.ioc_sem); list_add_tail(& in_data->iocd_list, & llioc.ioc_head); up_write(& llioc.ioc_sem); return ((void *)in_data); } } static char const __kstrtab_ll_iocontrol_register[22U] = { 'l', 'l', '_', 'i', 'o', 'c', 'o', 'n', 't', 'r', 'o', 'l', '_', 'r', 'e', 'g', 'i', 's', 't', 'e', 'r', '\000'}; struct kernel_symbol const __ksymtab_ll_iocontrol_register ; struct kernel_symbol const __ksymtab_ll_iocontrol_register = {(unsigned long )(& ll_iocontrol_register), (char const *)(& __kstrtab_ll_iocontrol_register)}; void ll_iocontrol_unregister(void *magic ) { struct llioc_data *tmp ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { if ((unsigned long )magic == (unsigned long )((void *)0)) { return; } else { } down_write(& llioc.ioc_sem); __mptr = (struct list_head const *)llioc.ioc_head.next; tmp = (struct llioc_data *)__mptr; goto ldv_69073; ldv_69072: ; if ((unsigned long )((void *)tmp) == (unsigned long )magic) { list_del(& tmp->iocd_list); up_write(& llioc.ioc_sem); kfree((void const *)tmp); return; } else { } __mptr___0 = (struct list_head const *)tmp->iocd_list.next; tmp = (struct llioc_data *)__mptr___0; ldv_69073: ; if ((unsigned long )(& tmp->iocd_list) != (unsigned long )(& llioc.ioc_head)) { goto ldv_69072; } else { } up_write(& llioc.ioc_sem); tmp___0 = cfs_cdebug_show(1024U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_iocontrol_unregister"; msgdata.msg_line = 3241; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "didn\'t find iocontrol register block with magic: %p\n", magic); } else { } return; } } static char const __kstrtab_ll_iocontrol_unregister[24U] = { 'l', 'l', '_', 'i', 'o', 'c', 'o', 'n', 't', 'r', 'o', 'l', '_', 'u', 'n', 'r', 'e', 'g', 'i', 's', 't', 'e', 'r', '\000'}; struct kernel_symbol const __ksymtab_ll_iocontrol_unregister ; struct kernel_symbol const __ksymtab_ll_iocontrol_unregister = {(unsigned long )(& ll_iocontrol_unregister), (char const *)(& __kstrtab_ll_iocontrol_unregister)}; static enum llioc_iter ll_iocontrol_call(struct inode *inode , struct file *file , unsigned int cmd , unsigned long arg , int *rcp ) { enum llioc_iter ret ; struct llioc_data *data ; int rc ; int i ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; { ret = 0; rc = -22; down_read(& llioc.ioc_sem); __mptr = (struct list_head const *)llioc.ioc_head.next; data = (struct llioc_data *)__mptr; goto ldv_69106; ldv_69105: i = 0; goto ldv_69103; ldv_69102: ; if (data->iocd_cmd[i] != cmd) { goto ldv_69100; } else { } ret = (*(data->iocd_cb))(inode, file, cmd, arg, (void *)data, & rc); goto ldv_69101; ldv_69100: i = i + 1; ldv_69103: ; if ((unsigned int )i < data->iocd_count) { goto ldv_69102; } else { } ldv_69101: ; if ((unsigned int )ret == 1U) { goto ldv_69104; } else { } __mptr___0 = (struct list_head const *)data->iocd_list.next; data = (struct llioc_data *)__mptr___0; ldv_69106: ; if ((unsigned long )(& data->iocd_list) != (unsigned long )(& llioc.ioc_head)) { goto ldv_69105; } else { } ldv_69104: up_read(& llioc.ioc_sem); if ((unsigned long )rcp != (unsigned long )((int *)0)) { *rcp = rc; } else { } return (ret); } } int ll_layout_conf(struct inode *inode , struct cl_object_conf const *conf ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct cl_env_nest nest ; struct lu_env *env ; int result ; long tmp___0 ; bool tmp___1 ; struct ldlm_lock *lock ; struct libcfs_debug_msg_data __msg_data ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___0 ; bool tmp___3 ; int tmp___4 ; long tmp___5 ; { tmp = ll_i2info(inode); lli = tmp; if ((unsigned long )lli->lli_clob == (unsigned long )((struct cl_object *)0)) { return (0); } else { } env = cl_env_nested_get(& nest); tmp___1 = IS_ERR((void const *)env); if ((int )tmp___1) { tmp___0 = PTR_ERR((void const *)env); return ((int )tmp___0); } else { } result = cl_conf_set((struct lu_env const *)env, lli->lli_clob, conf); cl_env_nested_put(& nest, env); if ((int )conf->coc_opc == 0) { lock = conf->coc_lock; tmp___2 = ldv__builtin_expect((unsigned long )lock == (unsigned long )((struct ldlm_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_layout_conf"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 3293; __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 = ldlm_has_layout(lock); if (tmp___3) { tmp___4 = 0; } else { tmp___4 = 1; } tmp___5 = ldv__builtin_expect((long )tmp___4, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data___0.msg_fn = "ll_layout_conf"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 3294; __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 *)"ldlm_has_layout(lock)"); lbug_with_loc(& __msg_data___0); } else { } if (result == 0) { ldlm_lock_allow_match(lock); } else { } } else { } return (result); } } static int ll_layout_fetch(struct inode *inode , struct ldlm_lock *lock ) { struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct obd_capa *oc ; struct ptlrpc_request *req ; struct mdt_body *body ; void *lvbdata ; void *lmm ; int lmmsize ; int rc ; struct libcfs_debug_msg_data msgdata ; struct lu_fid *tmp___0 ; struct lu_fid *tmp___1 ; struct lu_fid *tmp___2 ; int tmp___3 ; struct lu_fid *tmp___4 ; void *tmp___5 ; { tmp = ll_i2sbi(inode); sbi = tmp; tmp___3 = cfs_cdebug_show(2U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_layout_fetch"; msgdata.msg_line = 3321; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; tmp___0 = ll_inode2fid(inode); tmp___1 = ll_inode2fid(inode); tmp___2 = ll_inode2fid(inode); libcfs_debug_msg(& msgdata, "[%#llx:0x%x:0x%x] LVB_READY=%d l_lvb_data=%p l_lvb_len=%d\n", tmp___2->f_seq, tmp___1->f_oid, tmp___0->f_ver, (lock->l_flags & 2199023255552ULL) != 0ULL, lock->l_lvb_data, lock->l_lvb_len); } else { } if ((unsigned long )lock->l_lvb_data != (unsigned long )((void *)0) && (lock->l_flags & 2199023255552ULL) != 0ULL) { return (0); } else { } oc = ll_mdscapa_get(inode); rc = ll_get_default_mdsize(sbi, & lmmsize); if (rc == 0) { tmp___4 = ll_inode2fid(inode); rc = md_getxattr(sbi->ll_md_exp, (struct lu_fid const *)tmp___4, oc, 68719476736ULL, "trusted.lov", (char const *)0, 0, lmmsize, 0, & req); } else { } capa_put(oc); if (rc < 0) { return (rc); } else { } tmp___5 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp___5; if ((unsigned long )body == (unsigned long )((struct mdt_body *)0)) { rc = -71; goto out; } else { } lmmsize = (int )body->eadatasize; if (lmmsize == 0) { rc = 0; goto out; } else { } lmm = req_capsule_server_sized_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_EADATA), lmmsize); if ((unsigned long )lmm == (unsigned long )((void *)0)) { rc = -14; goto out; } else { } lvbdata = libcfs_kvzalloc((size_t )lmmsize, 80U); if ((unsigned long )lvbdata == (unsigned long )((void *)0)) { rc = -12; goto out; } else { } memcpy(lvbdata, (void const *)lmm, (size_t )lmmsize); lock_res_and_lock(lock); if ((unsigned long )lock->l_lvb_data != (unsigned long )((void *)0)) { kvfree((void const *)lock->l_lvb_data); } else { } lock->l_lvb_data = lvbdata; lock->l_lvb_len = (__u32 )lmmsize; unlock_res_and_lock(lock); out: ptlrpc_req_finished(req); return (rc); } } static int ll_layout_lock_set(struct lustre_handle *lockh , ldlm_mode_t mode , struct inode *inode , __u32 *gen , bool reconf ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___0 ; struct ldlm_lock *lock ; struct lustre_md md ; struct cl_object_conf conf ; int rc ; bool lvb_ready ; bool wait_layout ; struct libcfs_debug_msg_data __msg_data ; int tmp___1 ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___3 ; struct libcfs_debug_msg_data __msg_data___1 ; bool tmp___4 ; int tmp___5 ; long tmp___6 ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___7 ; long tmp___8 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___1 ; char *tmp___9 ; int tmp___10 ; struct task_struct *tmp___11 ; struct libcfs_debug_msg_data msgdata___2 ; char *tmp___12 ; int tmp___13 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___14 ; { tmp = ll_i2info(inode); lli = tmp; tmp___0 = ll_i2sbi(inode); sbi = tmp___0; md.body = (struct mdt_body *)0; md.lsm = 0; md.mea = 0; md.posix_acl = 0; md.remote_perm = 0; md.mds_capa = 0; md.oss_capa = 0; rc = 0; wait_layout = 0; tmp___1 = lustre_handle_is_used(lockh); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_layout_lock_set"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 3395; __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_handle_is_used(lockh)"); lbug_with_loc(& __msg_data); } else { } lock = ldlm_handle2lock((struct lustre_handle const *)lockh); tmp___3 = ldv__builtin_expect((unsigned long )lock == (unsigned long )((struct ldlm_lock *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data___0.msg_fn = "ll_layout_lock_set"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 3398; __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 != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } tmp___4 = ldlm_has_layout(lock); if (tmp___4) { tmp___5 = 0; } else { tmp___5 = 1; } 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data___1.msg_fn = "ll_layout_lock_set"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 3399; __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 *)"ldlm_has_layout(lock)"); lbug_with_loc(& __msg_data___1); } else { } tmp___8 = ldv__builtin_expect((unsigned long )lock != (unsigned long )((struct ldlm_lock *)0), 1L); if (tmp___8 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_layout_lock_set"; msgdata.msg_subsys = 128; msgdata.msg_line = 3402; 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 & 128U) != 0U) { _ldlm_lock_debug(lock, & msgdata, "### File %p/[%#llx:0x%x:0x%x] being reconfigured: %d.\n", inode, lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, (int )reconf); } else { } } else { tmp___7 = cfs_cdebug_show(65536U, 128U); if (tmp___7 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___0.msg_fn = "ll_layout_lock_set"; msgdata___0.msg_line = 3402; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 65536; libcfs_debug_msg(& msgdata___0, "### no dlm lock: File %p/[%#llx:0x%x:0x%x] being reconfigured: %d.\n\n", inode, lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, (int )reconf); } else { } } md_set_lock_data(sbi->ll_md_exp, & lockh->cookie, (void *)inode, (__u64 *)0ULL); lock_res_and_lock(lock); lvb_ready = (lock->l_flags & 2199023255552ULL) != 0ULL; unlock_res_and_lock(lock); if ((int )lvb_ready || ! reconf) { rc = -61; if ((int )lvb_ready) { *gen = ll_layout_version_get(lli); rc = 0; } else { } goto out; } else { } rc = ll_layout_fetch(inode, lock); if (rc < 0) { goto out; } else { } if ((unsigned long )lock->l_lvb_data != (unsigned long )((void *)0)) { rc = obd_unpackmd___0(sbi->ll_dt_exp, & md.lsm, (struct lov_mds_md_v1 *)lock->l_lvb_data, (int )lock->l_lvb_len); if (rc >= 0) { *gen = 4294967295U; if ((unsigned long )md.lsm != (unsigned long )((struct lov_stripe_md *)0)) { *gen = (__u32 )(md.lsm)->lsm_wire.lw_layout_gen; } else { } rc = 0; } else { tmp___10 = cfs_cdebug_show(131072U, 128U); if (tmp___10 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___1.msg_fn = "ll_layout_lock_set"; msgdata___1.msg_line = 3442; msgdata___1.msg_cdls = & cdls; msgdata___1.msg_mask = 131072; tmp___9 = ll_get_fsname(inode->i_sb, (char *)0, 0); libcfs_debug_msg(& msgdata___1, "%s: file [%#llx:0x%x:0x%x] unpackmd error: %d\n", tmp___9, lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, rc); } else { } } } else { } if (rc < 0) { goto out; } else { } memset((void *)(& conf), 0, 40UL); conf.coc_opc = 0; conf.coc_inode = inode; conf.coc_lock = lock; conf.u.coc_md = & md; rc = ll_layout_conf(inode, (struct cl_object_conf const *)(& conf)); if ((unsigned long )md.lsm != (unsigned long )((struct lov_stripe_md *)0)) { obd_free_memmd___0(sbi->ll_dt_exp, & md.lsm); } else { } wait_layout = rc == -16; out: tmp___11 = get_current(); lu_ref_del(& lock->l_reference, "handle", (void const *)tmp___11); ldlm_lock_put(lock); ldlm_lock_decref(lockh, (__u32 )mode); if ((int )wait_layout) { tmp___13 = cfs_cdebug_show(2U, 128U); if (tmp___13 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___2.msg_fn = "ll_layout_lock_set"; msgdata___2.msg_line = 3471; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 2; tmp___12 = ll_get_fsname(inode->i_sb, (char *)0, 0); libcfs_debug_msg(& msgdata___2, "%s: %p/[%#llx:0x%x:0x%x] wait for layout reconf.\n", tmp___12, inode, lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver); } else { } memset((void *)(& conf), 0, 40UL); conf.coc_opc = 2; conf.coc_inode = inode; rc = ll_layout_conf(inode, (struct cl_object_conf const *)(& conf)); if (rc == 0) { rc = -11; } else { } tmp___14 = cfs_cdebug_show(2U, 128U); if (tmp___14 != 0) { msgdata___3.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata___3.msg_fn = "ll_layout_lock_set"; msgdata___3.msg_line = 3481; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 2; libcfs_debug_msg(& msgdata___3, "file: [%#llx:0x%x:0x%x] waiting layout return: %d.\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, rc); } else { } } else { } return (rc); } } int ll_layout_refresh(struct inode *inode , __u32 *gen ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___0 ; struct md_op_data *op_data ; struct lookup_intent it ; struct lustre_handle lockh ; ldlm_mode_t mode ; struct ldlm_enqueue_info einfo ; int rc ; struct libcfs_debug_msg_data __msg_data ; struct lu_fid *tmp___1 ; int tmp___2 ; long tmp___3 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___4 ; long tmp___5 ; bool tmp___6 ; struct libcfs_debug_msg_data msgdata ; char *tmp___7 ; int tmp___8 ; { tmp = ll_i2info(inode); lli = tmp; tmp___0 = ll_i2sbi(inode); sbi = tmp___0; einfo.ei_type = 13U; einfo.ei_mode = 16U; einfo.ei_cb_bl = (void *)(& ll_md_blocking_ast); einfo.ei_cb_cp = (void *)(& ldlm_completion_ast); einfo.ei_cb_gl = 0; einfo.ei_cbdata = 0; *gen = ll_layout_version_get(lli); if ((sbi->ll_flags & 131072) == 0 || *gen != 4294967294U) { return (0); } else { } tmp___1 = ll_inode2fid(inode); tmp___2 = fid_is_sane((struct lu_fid const *)tmp___1); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data.msg_fn = "ll_layout_refresh"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 3520; __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 *)"fid_is_sane(ll_inode2fid(inode))"); lbug_with_loc(& __msg_data); } else { } tmp___4 = ldv__builtin_expect(((int )inode->i_mode & 61440) != 32768, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; __msg_data___0.msg_fn = "ll_layout_refresh"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 3521; __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 *)"(((inode->i_mode) & 00170000) == 0100000)"); lbug_with_loc(& __msg_data___0); } else { } mutex_lock_nested(& lli->lli_layout_mutex, 0U); again: mode = ll_take_md_lock(inode, 8ULL, & lockh, 0ULL, 30); if ((unsigned int )mode != 0U) { rc = ll_layout_lock_set(& lockh, mode, inode, gen, 1); if (rc == -11) { goto again; } else { } mutex_unlock(& lli->lli_layout_mutex); return (rc); } else { } op_data = ll_prep_md_op_data((struct md_op_data *)0, inode, inode, (char const *)0, 0, 0, 16U, (void *)0); tmp___6 = IS_ERR((void const *)op_data); if ((int )tmp___6) { mutex_unlock(& lli->lli_layout_mutex); tmp___5 = PTR_ERR((void const *)op_data); return ((int )tmp___5); } else { } memset((void *)(& it), 0, 72UL); it.it_op = 1024; lockh.cookie = 0ULL; tmp___8 = cfs_cdebug_show(65536U, 128U); if (tmp___8 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/file.c"; msgdata.msg_fn = "ll_layout_refresh"; msgdata.msg_line = 3554; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 65536; tmp___7 = ll_get_fsname(inode->i_sb, (char *)0, 0); libcfs_debug_msg(& msgdata, "### %s: requeue layout lock for file %p/[%#llx:0x%x:0x%x].\n\n", tmp___7, inode, lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver); } else { } rc = md_enqueue___0(sbi->ll_md_exp, & einfo, & it, op_data, & lockh, (void *)0, 0, (struct ptlrpc_request **)0, 0ULL); if ((unsigned long )it.d.lustre.it_data != (unsigned long )((void *)0)) { ptlrpc_req_finished((struct ptlrpc_request *)it.d.lustre.it_data); } else { } it.d.lustre.it_data = (void *)0; ll_finish_md_op_data(op_data); mode = (ldlm_mode_t )it.d.lustre.it_lock_mode; it.d.lustre.it_lock_mode = 0; ll_intent_drop_lock(& it); if (rc == 0) { ll_set_lock_data(sbi->ll_md_exp, inode, & it, (__u64 *)0ULL); rc = ll_layout_lock_set(& lockh, mode, inode, gen, 1); if (rc == -11) { goto again; } else { } } else { } mutex_unlock(& lli->lli_layout_mutex); return (rc); } } int ll_layout_restore(struct inode *inode ) { struct hsm_user_request *hur ; int len ; int rc ; void *tmp ; struct ll_inode_info *tmp___0 ; struct ll_sb_info *tmp___1 ; { len = 56; tmp = kzalloc((size_t )len, 80U); hur = (struct hsm_user_request *)tmp; if ((unsigned long )hur == (unsigned long )((struct hsm_user_request *)0)) { return (-12); } else { } hur->hur_request.hr_action = 11U; hur->hur_request.hr_archive_id = 0U; hur->hur_request.hr_flags = 0ULL; tmp___0 = ll_i2info(inode); memcpy((void *)(& hur->hur_user_item[0].hui_fid), (void const *)(& tmp___0->lli_fid), 16UL); hur->hur_user_item[0].hui_extent.length = 0xffffffffffffffffULL; hur->hur_request.hr_itemcount = 1U; tmp___1 = ll_i2sbi(inode); rc = obd_iocontrol___0(1075341017U, tmp___1->ll_md_exp, len, (void *)hur, (void *)0); kfree((void const *)hur); return (rc); } } int ldv_retval_11 ; int ldv_retval_14 ; int ldv_retval_3 ; void ldv_initialize_inode_operations_55(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); ll_file_inode_operations_group0 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(320UL); ll_file_inode_operations_group1 = (struct dentry *)tmp___0; return; } } void ldv_file_operations_56(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); ll_file_operations_noflock_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); ll_file_operations_noflock_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_57(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); ll_file_operations_flock_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); ll_file_operations_flock_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_58(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); ll_file_operations_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); ll_file_operations_group2 = (struct file *)tmp___0; return; } } void ldv_main_exported_57(void) { loff_t ldvarg82 ; loff_t ldvarg92 ; struct file_lock *ldvarg89 ; void *tmp ; loff_t ldvarg93 ; int ldvarg90 ; void *ldvarg88 ; void *tmp___0 ; struct kiocb *ldvarg85 ; void *tmp___1 ; struct iov_iter *ldvarg95 ; void *tmp___2 ; int ldvarg81 ; struct file_lock *ldvarg83 ; void *tmp___3 ; unsigned int ldvarg99 ; size_t ldvarg96 ; struct pipe_inode_info *ldvarg97 ; void *tmp___4 ; unsigned long ldvarg79 ; loff_t *ldvarg98 ; void *tmp___5 ; struct iov_iter *ldvarg86 ; void *tmp___6 ; struct vm_area_struct *ldvarg87 ; void *tmp___7 ; unsigned int ldvarg80 ; int ldvarg91 ; struct kiocb *ldvarg94 ; void *tmp___8 ; int ldvarg84 ; int tmp___9 ; { tmp = ldv_init_zalloc(272UL); ldvarg89 = (struct file_lock *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg88 = tmp___0; tmp___1 = ldv_init_zalloc(40UL); ldvarg85 = (struct kiocb *)tmp___1; tmp___2 = ldv_init_zalloc(40UL); ldvarg95 = (struct iov_iter *)tmp___2; tmp___3 = ldv_init_zalloc(272UL); ldvarg83 = (struct file_lock *)tmp___3; tmp___4 = ldv_init_zalloc(320UL); ldvarg97 = (struct pipe_inode_info *)tmp___4; tmp___5 = ldv_init_zalloc(8UL); ldvarg98 = (loff_t *)tmp___5; tmp___6 = ldv_init_zalloc(40UL); ldvarg86 = (struct iov_iter *)tmp___6; tmp___7 = ldv_init_zalloc(184UL); ldvarg87 = (struct vm_area_struct *)tmp___7; tmp___8 = ldv_init_zalloc(40UL); ldvarg94 = (struct kiocb *)tmp___8; ldv_memset((void *)(& ldvarg82), 0, 8UL); ldv_memset((void *)(& ldvarg92), 0, 8UL); ldv_memset((void *)(& ldvarg93), 0, 8UL); ldv_memset((void *)(& ldvarg90), 0, 4UL); ldv_memset((void *)(& ldvarg81), 0, 4UL); ldv_memset((void *)(& ldvarg99), 0, 4UL); ldv_memset((void *)(& ldvarg96), 0, 8UL); ldv_memset((void *)(& ldvarg79), 0, 8UL); ldv_memset((void *)(& ldvarg80), 0, 4UL); ldv_memset((void *)(& ldvarg91), 0, 4UL); ldv_memset((void *)(& ldvarg84), 0, 4UL); tmp___9 = __VERIFIER_nondet_int(); switch (tmp___9) { case 0: ; if (ldv_state_variable_57 == 1) { ll_file_splice_read(ll_file_operations_flock_group2, ldvarg98, ldvarg97, ldvarg96, ldvarg99); ldv_state_variable_57 = 1; } else { } if (ldv_state_variable_57 == 2) { ll_file_splice_read(ll_file_operations_flock_group2, ldvarg98, ldvarg97, ldvarg96, ldvarg99); ldv_state_variable_57 = 2; } else { } goto ldv_69223; case 1: ; if (ldv_state_variable_57 == 1) { ll_file_write_iter(ldvarg94, ldvarg95); ldv_state_variable_57 = 1; } else { } if (ldv_state_variable_57 == 2) { ll_file_write_iter(ldvarg94, ldvarg95); ldv_state_variable_57 = 2; } else { } goto ldv_69223; case 2: ; if (ldv_state_variable_57 == 1) { ll_fsync(ll_file_operations_flock_group2, ldvarg93, ldvarg92, ldvarg91); ldv_state_variable_57 = 1; } else { } if (ldv_state_variable_57 == 2) { ll_fsync(ll_file_operations_flock_group2, ldvarg93, ldvarg92, ldvarg91); ldv_state_variable_57 = 2; } else { } goto ldv_69223; case 3: ; if (ldv_state_variable_57 == 1) { ll_file_flock(ll_file_operations_flock_group2, ldvarg90, ldvarg89); ldv_state_variable_57 = 1; } else { } if (ldv_state_variable_57 == 2) { ll_file_flock(ll_file_operations_flock_group2, ldvarg90, ldvarg89); ldv_state_variable_57 = 2; } else { } goto ldv_69223; case 4: ; if (ldv_state_variable_57 == 1) { ll_flush(ll_file_operations_flock_group2, ldvarg88); ldv_state_variable_57 = 1; } else { } if (ldv_state_variable_57 == 2) { ll_flush(ll_file_operations_flock_group2, ldvarg88); ldv_state_variable_57 = 2; } else { } goto ldv_69223; case 5: ; if (ldv_state_variable_57 == 1) { ldv_retval_3 = ll_file_open(ll_file_operations_flock_group1, ll_file_operations_flock_group2); if (ldv_retval_3 == 0) { ldv_state_variable_57 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_69223; case 6: ; if (ldv_state_variable_57 == 1) { ll_file_mmap(ll_file_operations_flock_group2, ldvarg87); ldv_state_variable_57 = 1; } else { } if (ldv_state_variable_57 == 2) { ll_file_mmap(ll_file_operations_flock_group2, ldvarg87); ldv_state_variable_57 = 2; } else { } goto ldv_69223; case 7: ; if (ldv_state_variable_57 == 1) { ll_file_read_iter(ldvarg85, ldvarg86); ldv_state_variable_57 = 1; } else { } if (ldv_state_variable_57 == 2) { ll_file_read_iter(ldvarg85, ldvarg86); ldv_state_variable_57 = 2; } else { } goto ldv_69223; case 8: ; if (ldv_state_variable_57 == 2) { ll_file_release(ll_file_operations_flock_group1, ll_file_operations_flock_group2); ldv_state_variable_57 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_69223; case 9: ; if (ldv_state_variable_57 == 1) { ll_file_flock(ll_file_operations_flock_group2, ldvarg84, ldvarg83); ldv_state_variable_57 = 1; } else { } if (ldv_state_variable_57 == 2) { ll_file_flock(ll_file_operations_flock_group2, ldvarg84, ldvarg83); ldv_state_variable_57 = 2; } else { } goto ldv_69223; case 10: ; if (ldv_state_variable_57 == 2) { ll_file_seek(ll_file_operations_flock_group2, ldvarg82, ldvarg81); ldv_state_variable_57 = 2; } else { } goto ldv_69223; case 11: ; if (ldv_state_variable_57 == 2) { ll_file_ioctl(ll_file_operations_flock_group2, ldvarg80, ldvarg79); ldv_state_variable_57 = 2; } else { } goto ldv_69223; default: ldv_stop(); } ldv_69223: ; return; } } void ldv_main_exported_56(void) { struct kiocb *ldvarg316 ; void *tmp ; struct iov_iter *ldvarg317 ; void *tmp___0 ; struct pipe_inode_info *ldvarg328 ; void *tmp___1 ; unsigned int ldvarg330 ; struct kiocb *ldvarg325 ; void *tmp___2 ; struct file_lock *ldvarg320 ; void *tmp___3 ; size_t ldvarg327 ; loff_t ldvarg323 ; loff_t *ldvarg329 ; void *tmp___4 ; void *ldvarg319 ; void *tmp___5 ; unsigned long ldvarg310 ; int ldvarg322 ; struct file_lock *ldvarg314 ; void *tmp___6 ; unsigned int ldvarg311 ; int ldvarg321 ; loff_t ldvarg324 ; loff_t ldvarg313 ; struct vm_area_struct *ldvarg318 ; void *tmp___7 ; struct iov_iter *ldvarg326 ; void *tmp___8 ; int ldvarg312 ; int ldvarg315 ; int tmp___9 ; { tmp = ldv_init_zalloc(40UL); ldvarg316 = (struct kiocb *)tmp; tmp___0 = ldv_init_zalloc(40UL); ldvarg317 = (struct iov_iter *)tmp___0; tmp___1 = ldv_init_zalloc(320UL); ldvarg328 = (struct pipe_inode_info *)tmp___1; tmp___2 = ldv_init_zalloc(40UL); ldvarg325 = (struct kiocb *)tmp___2; tmp___3 = ldv_init_zalloc(272UL); ldvarg320 = (struct file_lock *)tmp___3; tmp___4 = ldv_init_zalloc(8UL); ldvarg329 = (loff_t *)tmp___4; tmp___5 = ldv_init_zalloc(1UL); ldvarg319 = tmp___5; tmp___6 = ldv_init_zalloc(272UL); ldvarg314 = (struct file_lock *)tmp___6; tmp___7 = ldv_init_zalloc(184UL); ldvarg318 = (struct vm_area_struct *)tmp___7; tmp___8 = ldv_init_zalloc(40UL); ldvarg326 = (struct iov_iter *)tmp___8; ldv_memset((void *)(& ldvarg330), 0, 4UL); ldv_memset((void *)(& ldvarg327), 0, 8UL); ldv_memset((void *)(& ldvarg323), 0, 8UL); ldv_memset((void *)(& ldvarg310), 0, 8UL); ldv_memset((void *)(& ldvarg322), 0, 4UL); ldv_memset((void *)(& ldvarg311), 0, 4UL); ldv_memset((void *)(& ldvarg321), 0, 4UL); ldv_memset((void *)(& ldvarg324), 0, 8UL); ldv_memset((void *)(& ldvarg313), 0, 8UL); ldv_memset((void *)(& ldvarg312), 0, 4UL); ldv_memset((void *)(& ldvarg315), 0, 4UL); tmp___9 = __VERIFIER_nondet_int(); switch (tmp___9) { case 0: ; if (ldv_state_variable_56 == 1) { ll_file_splice_read(ll_file_operations_noflock_group2, ldvarg329, ldvarg328, ldvarg327, ldvarg330); ldv_state_variable_56 = 1; } else { } if (ldv_state_variable_56 == 2) { ll_file_splice_read(ll_file_operations_noflock_group2, ldvarg329, ldvarg328, ldvarg327, ldvarg330); ldv_state_variable_56 = 2; } else { } goto ldv_69261; case 1: ; if (ldv_state_variable_56 == 1) { ll_file_write_iter(ldvarg325, ldvarg326); ldv_state_variable_56 = 1; } else { } if (ldv_state_variable_56 == 2) { ll_file_write_iter(ldvarg325, ldvarg326); ldv_state_variable_56 = 2; } else { } goto ldv_69261; case 2: ; if (ldv_state_variable_56 == 1) { ll_fsync(ll_file_operations_noflock_group2, ldvarg324, ldvarg323, ldvarg322); ldv_state_variable_56 = 1; } else { } if (ldv_state_variable_56 == 2) { ll_fsync(ll_file_operations_noflock_group2, ldvarg324, ldvarg323, ldvarg322); ldv_state_variable_56 = 2; } else { } goto ldv_69261; case 3: ; if (ldv_state_variable_56 == 1) { ll_file_noflock(ll_file_operations_noflock_group2, ldvarg321, ldvarg320); ldv_state_variable_56 = 1; } else { } if (ldv_state_variable_56 == 2) { ll_file_noflock(ll_file_operations_noflock_group2, ldvarg321, ldvarg320); ldv_state_variable_56 = 2; } else { } goto ldv_69261; case 4: ; if (ldv_state_variable_56 == 1) { ll_flush(ll_file_operations_noflock_group2, ldvarg319); ldv_state_variable_56 = 1; } else { } if (ldv_state_variable_56 == 2) { ll_flush(ll_file_operations_noflock_group2, ldvarg319); ldv_state_variable_56 = 2; } else { } goto ldv_69261; case 5: ; if (ldv_state_variable_56 == 1) { ldv_retval_14 = ll_file_open(ll_file_operations_noflock_group1, ll_file_operations_noflock_group2); if (ldv_retval_14 == 0) { ldv_state_variable_56 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_69261; case 6: ; if (ldv_state_variable_56 == 1) { ll_file_mmap(ll_file_operations_noflock_group2, ldvarg318); ldv_state_variable_56 = 1; } else { } if (ldv_state_variable_56 == 2) { ll_file_mmap(ll_file_operations_noflock_group2, ldvarg318); ldv_state_variable_56 = 2; } else { } goto ldv_69261; case 7: ; if (ldv_state_variable_56 == 1) { ll_file_read_iter(ldvarg316, ldvarg317); ldv_state_variable_56 = 1; } else { } if (ldv_state_variable_56 == 2) { ll_file_read_iter(ldvarg316, ldvarg317); ldv_state_variable_56 = 2; } else { } goto ldv_69261; case 8: ; if (ldv_state_variable_56 == 2) { ll_file_release(ll_file_operations_noflock_group1, ll_file_operations_noflock_group2); ldv_state_variable_56 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_69261; case 9: ; if (ldv_state_variable_56 == 1) { ll_file_noflock(ll_file_operations_noflock_group2, ldvarg315, ldvarg314); ldv_state_variable_56 = 1; } else { } if (ldv_state_variable_56 == 2) { ll_file_noflock(ll_file_operations_noflock_group2, ldvarg315, ldvarg314); ldv_state_variable_56 = 2; } else { } goto ldv_69261; case 10: ; if (ldv_state_variable_56 == 2) { ll_file_seek(ll_file_operations_noflock_group2, ldvarg313, ldvarg312); ldv_state_variable_56 = 2; } else { } goto ldv_69261; case 11: ; if (ldv_state_variable_56 == 2) { ll_file_ioctl(ll_file_operations_noflock_group2, ldvarg311, ldvarg310); ldv_state_variable_56 = 2; } else { } goto ldv_69261; default: ldv_stop(); } ldv_69261: ; return; } } void ldv_main_exported_58(void) { size_t ldvarg255 ; struct kiocb *ldvarg253 ; void *tmp ; unsigned int ldvarg258 ; void *ldvarg249 ; void *tmp___0 ; int ldvarg250 ; loff_t ldvarg251 ; loff_t *ldvarg257 ; void *tmp___1 ; int ldvarg244 ; loff_t ldvarg252 ; struct pipe_inode_info *ldvarg256 ; void *tmp___2 ; loff_t ldvarg245 ; unsigned int ldvarg243 ; struct vm_area_struct *ldvarg248 ; void *tmp___3 ; struct iov_iter *ldvarg254 ; void *tmp___4 ; struct iov_iter *ldvarg247 ; void *tmp___5 ; struct kiocb *ldvarg246 ; void *tmp___6 ; unsigned long ldvarg242 ; int tmp___7 ; { tmp = ldv_init_zalloc(40UL); ldvarg253 = (struct kiocb *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg249 = tmp___0; tmp___1 = ldv_init_zalloc(8UL); ldvarg257 = (loff_t *)tmp___1; tmp___2 = ldv_init_zalloc(320UL); ldvarg256 = (struct pipe_inode_info *)tmp___2; tmp___3 = ldv_init_zalloc(184UL); ldvarg248 = (struct vm_area_struct *)tmp___3; tmp___4 = ldv_init_zalloc(40UL); ldvarg254 = (struct iov_iter *)tmp___4; tmp___5 = ldv_init_zalloc(40UL); ldvarg247 = (struct iov_iter *)tmp___5; tmp___6 = ldv_init_zalloc(40UL); ldvarg246 = (struct kiocb *)tmp___6; ldv_memset((void *)(& ldvarg255), 0, 8UL); ldv_memset((void *)(& ldvarg258), 0, 4UL); ldv_memset((void *)(& ldvarg250), 0, 4UL); ldv_memset((void *)(& ldvarg251), 0, 8UL); ldv_memset((void *)(& ldvarg244), 0, 4UL); ldv_memset((void *)(& ldvarg252), 0, 8UL); ldv_memset((void *)(& ldvarg245), 0, 8UL); ldv_memset((void *)(& ldvarg243), 0, 4UL); ldv_memset((void *)(& ldvarg242), 0, 8UL); tmp___7 = __VERIFIER_nondet_int(); switch (tmp___7) { case 0: ; if (ldv_state_variable_58 == 1) { ll_file_splice_read(ll_file_operations_group2, ldvarg257, ldvarg256, ldvarg255, ldvarg258); ldv_state_variable_58 = 1; } else { } if (ldv_state_variable_58 == 2) { ll_file_splice_read(ll_file_operations_group2, ldvarg257, ldvarg256, ldvarg255, ldvarg258); ldv_state_variable_58 = 2; } else { } goto ldv_69295; case 1: ; if (ldv_state_variable_58 == 1) { ll_file_write_iter(ldvarg253, ldvarg254); ldv_state_variable_58 = 1; } else { } if (ldv_state_variable_58 == 2) { ll_file_write_iter(ldvarg253, ldvarg254); ldv_state_variable_58 = 2; } else { } goto ldv_69295; case 2: ; if (ldv_state_variable_58 == 1) { ll_fsync(ll_file_operations_group2, ldvarg252, ldvarg251, ldvarg250); ldv_state_variable_58 = 1; } else { } if (ldv_state_variable_58 == 2) { ll_fsync(ll_file_operations_group2, ldvarg252, ldvarg251, ldvarg250); ldv_state_variable_58 = 2; } else { } goto ldv_69295; case 3: ; if (ldv_state_variable_58 == 1) { ll_flush(ll_file_operations_group2, ldvarg249); ldv_state_variable_58 = 1; } else { } if (ldv_state_variable_58 == 2) { ll_flush(ll_file_operations_group2, ldvarg249); ldv_state_variable_58 = 2; } else { } goto ldv_69295; case 4: ; if (ldv_state_variable_58 == 1) { ldv_retval_11 = ll_file_open(ll_file_operations_group1, ll_file_operations_group2); if (ldv_retval_11 == 0) { ldv_state_variable_58 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_69295; case 5: ; if (ldv_state_variable_58 == 1) { ll_file_mmap(ll_file_operations_group2, ldvarg248); ldv_state_variable_58 = 1; } else { } if (ldv_state_variable_58 == 2) { ll_file_mmap(ll_file_operations_group2, ldvarg248); ldv_state_variable_58 = 2; } else { } goto ldv_69295; case 6: ; if (ldv_state_variable_58 == 1) { ll_file_read_iter(ldvarg246, ldvarg247); ldv_state_variable_58 = 1; } else { } if (ldv_state_variable_58 == 2) { ll_file_read_iter(ldvarg246, ldvarg247); ldv_state_variable_58 = 2; } else { } goto ldv_69295; case 7: ; if (ldv_state_variable_58 == 2) { ll_file_release(ll_file_operations_group1, ll_file_operations_group2); ldv_state_variable_58 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_69295; case 8: ; if (ldv_state_variable_58 == 2) { ll_file_seek(ll_file_operations_group2, ldvarg245, ldvarg244); ldv_state_variable_58 = 2; } else { } goto ldv_69295; case 9: ; if (ldv_state_variable_58 == 2) { ll_file_ioctl(ll_file_operations_group2, ldvarg243, ldvarg242); ldv_state_variable_58 = 2; } else { } goto ldv_69295; default: ldv_stop(); } ldv_69295: ; return; } } void ldv_main_exported_55(void) { u64 ldvarg52 ; int ldvarg61 ; struct fiemap_extent_info *ldvarg54 ; void *tmp ; int ldvarg69 ; char *ldvarg68 ; void *tmp___0 ; char *ldvarg63 ; void *tmp___1 ; struct vfsmount *ldvarg55 ; void *tmp___2 ; size_t ldvarg64 ; char *ldvarg66 ; void *tmp___3 ; u64 ldvarg53 ; void *ldvarg58 ; void *tmp___4 ; size_t ldvarg57 ; void *ldvarg65 ; void *tmp___5 ; struct iattr *ldvarg62 ; void *tmp___6 ; struct kstat *ldvarg56 ; void *tmp___7 ; char *ldvarg59 ; void *tmp___8 ; int ldvarg60 ; size_t ldvarg67 ; int tmp___9 ; { tmp = ldv_init_zalloc(24UL); ldvarg54 = (struct fiemap_extent_info *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg68 = (char *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg63 = (char *)tmp___1; tmp___2 = ldv_init_zalloc(24UL); ldvarg55 = (struct vfsmount *)tmp___2; tmp___3 = ldv_init_zalloc(1UL); ldvarg66 = (char *)tmp___3; tmp___4 = ldv_init_zalloc(1UL); ldvarg58 = tmp___4; tmp___5 = ldv_init_zalloc(1UL); ldvarg65 = tmp___5; tmp___6 = ldv_init_zalloc(80UL); ldvarg62 = (struct iattr *)tmp___6; tmp___7 = ldv_init_zalloc(104UL); ldvarg56 = (struct kstat *)tmp___7; tmp___8 = ldv_init_zalloc(1UL); ldvarg59 = (char *)tmp___8; ldv_memset((void *)(& ldvarg52), 0, 8UL); ldv_memset((void *)(& ldvarg61), 0, 4UL); ldv_memset((void *)(& ldvarg69), 0, 4UL); ldv_memset((void *)(& ldvarg64), 0, 8UL); ldv_memset((void *)(& ldvarg53), 0, 8UL); ldv_memset((void *)(& ldvarg57), 0, 8UL); ldv_memset((void *)(& ldvarg60), 0, 4UL); ldv_memset((void *)(& ldvarg67), 0, 8UL); tmp___9 = __VERIFIER_nondet_int(); switch (tmp___9) { case 0: ; if (ldv_state_variable_55 == 1) { ll_get_acl(ll_file_inode_operations_group0, ldvarg69); ldv_state_variable_55 = 1; } else { } goto ldv_69328; case 1: ; if (ldv_state_variable_55 == 1) { ll_listxattr(ll_file_inode_operations_group1, ldvarg68, ldvarg67); ldv_state_variable_55 = 1; } else { } goto ldv_69328; case 2: ; if (ldv_state_variable_55 == 1) { ll_getxattr(ll_file_inode_operations_group1, (char const *)ldvarg66, ldvarg65, ldvarg64); ldv_state_variable_55 = 1; } else { } goto ldv_69328; case 3: ; if (ldv_state_variable_55 == 1) { ll_removexattr(ll_file_inode_operations_group1, (char const *)ldvarg63); ldv_state_variable_55 = 1; } else { } goto ldv_69328; case 4: ; if (ldv_state_variable_55 == 1) { ll_setattr(ll_file_inode_operations_group1, ldvarg62); ldv_state_variable_55 = 1; } else { } goto ldv_69328; case 5: ; if (ldv_state_variable_55 == 1) { ll_inode_permission(ll_file_inode_operations_group0, ldvarg61); ldv_state_variable_55 = 1; } else { } goto ldv_69328; case 6: ; if (ldv_state_variable_55 == 1) { ll_setxattr(ll_file_inode_operations_group1, (char const *)ldvarg59, (void const *)ldvarg58, ldvarg57, ldvarg60); ldv_state_variable_55 = 1; } else { } goto ldv_69328; case 7: ; if (ldv_state_variable_55 == 1) { ll_getattr(ldvarg55, ll_file_inode_operations_group1, ldvarg56); ldv_state_variable_55 = 1; } else { } goto ldv_69328; case 8: ; if (ldv_state_variable_55 == 1) { ll_fiemap(ll_file_inode_operations_group0, ldvarg54, ldvarg53, ldvarg52); ldv_state_variable_55 = 1; } else { } goto ldv_69328; default: ldv_stop(); } ldv_69328: ; return; } } int ldv_pskb_expand_head_100(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_102(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_104(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_105(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_106(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_107(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_108(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_109(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_110(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_112(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(264UL); return (tmp); } } void *ldv_kmem_cache_alloc_113(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); } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static void INIT_LIST_HEAD(struct list_head *list ) { { list->next = list; list->prev = list; return; } } __inline static void list_add(struct list_head *new , struct list_head *head ) { { __list_add(new, head, head->next); 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 void *ERR_PTR(long error ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; extern void __xchg_wrong_size(void) ; extern void __raw_spin_lock_init(raw_spinlock_t * , char const * , struct lock_class_key * ) ; __inline static raw_spinlock_t *spinlock_check(spinlock_t *lock ) { { return (& lock->__annonCompField18.rlock); } } __inline static void spin_lock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; extern int default_wake_function(wait_queue_t * , unsigned int , int , void * ) ; extern void __init_waitqueue_head(wait_queue_head_t * , char const * , struct lock_class_key * ) ; __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 * ) ; __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 long schedule_timeout(long ) ; extern void schedule(void) ; extern int wake_up_process(struct task_struct * ) ; void *ldv_kmem_cache_alloc_151(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; extern struct inode *igrab(struct inode * ) ; extern struct task_struct *kthread_create_on_node(int (*)(void * ) , void * , int , char const * , ...) ; struct sk_buff *ldv_skb_clone_141(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_149(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_143(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_139(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_147(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_148(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_144(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_145(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_146(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; 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) ; __inline static unsigned long cfs_time_sub(unsigned long t1 , unsigned long t2 ) { { return (t1 - t2); } } __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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../../../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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../../../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 void md_from_obdo(struct md_op_data * , struct obdo * , u32 ) ; __inline static int md_done_writing(struct obd_export *exp , struct md_op_data *op_data , struct md_open_data *mod ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_done_writing"; msgdata.msg_line = 1514; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_done_writing: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_done_writing"; msgdata___0.msg_line = 1514; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_done_writing: 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_md_ops)->m_done_writing == (unsigned long )((int (*)(struct obd_export * , struct md_op_data * , struct md_open_data * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_done_writing"; msgdata___1.msg_line = 1514; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_done_writing: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 5U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_done_writing"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1515; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_done_writing))(exp, op_data, mod); return (rc); } } __inline static int md_setattr___0(struct obd_export *exp , struct md_op_data *op_data , void *ea , int ealen , void *ea2 , int ea2len , struct ptlrpc_request **request , struct md_open_data **mod ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_setattr"; msgdata.msg_line = 1611; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_setattr: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_setattr"; msgdata___0.msg_line = 1611; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_setattr: 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_md_ops)->m_setattr == (unsigned long )((int (*)(struct obd_export * , struct md_op_data * , void * , int , void * , int , struct ptlrpc_request ** , struct md_open_data ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_setattr"; msgdata___1.msg_line = 1611; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_setattr: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 13U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_setattr"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1612; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_setattr))(exp, op_data, ea, ealen, ea2, ea2len, request, mod); return (rc); } } struct ccc_object *cl2ccc(struct cl_object const *obj ) ; int cl_local_size(struct inode *inode ) ; __inline static struct inode *ll_info2i(struct ll_inode_info *lli ) { { return (& lli->lli_vfs_inode); } } void ll_done_writing_attr(struct inode *inode , struct md_op_data *op_data ) ; void vvp_write_pending(struct ccc_object *club , struct ccc_page *page ) ; void vvp_write_complete(struct ccc_object *club , struct ccc_page *page ) ; void ll_close_thread_shutdown(struct ll_close_queue *lcq ) ; int ll_close_thread_start(struct ll_close_queue **lcq_ret ) ; void vvp_write_pending(struct ccc_object *club , struct ccc_page *page ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; int tmp___0 ; { tmp = ll_i2info(club->cob_inode); lli = tmp; spin_lock(& lli->lli_lock); lli->lli_flags = lli->lli_flags | 8U; if ((unsigned long )page != (unsigned long )((struct ccc_page *)0)) { tmp___0 = list_empty((struct list_head const *)(& page->cpg_pending_linkage)); if (tmp___0 != 0) { list_add(& page->cpg_pending_linkage, & club->cob_pending_list); } else { } } else { } spin_unlock(& lli->lli_lock); return; } } void vvp_write_complete(struct ccc_object *club , struct ccc_page *page ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; int rc ; int tmp___0 ; { tmp = ll_i2info(club->cob_inode); lli = tmp; rc = 0; spin_lock(& lli->lli_lock); if ((unsigned long )page != (unsigned long )((struct ccc_page *)0)) { tmp___0 = list_empty((struct list_head const *)(& page->cpg_pending_linkage)); if (tmp___0 == 0) { list_del_init(& page->cpg_pending_linkage); rc = 1; } else { } } else { } spin_unlock(& lli->lli_lock); if (rc != 0) { ll_queue_done_writing(club->cob_inode, 0UL); } else { } return; } } void ll_queue_done_writing(struct inode *inode , unsigned long flags ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ccc_object *club ; struct ll_inode_info *tmp___0 ; struct ccc_object *tmp___1 ; struct ll_close_queue *lcq ; struct ll_sb_info *tmp___2 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___3 ; struct libcfs_debug_msg_data __msg_data ; int tmp___4 ; long tmp___5 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___6 ; int tmp___7 ; { tmp = ll_i2info(inode); lli = tmp; tmp___0 = ll_i2info(inode); tmp___1 = cl2ccc((struct cl_object const *)tmp___0->lli_clob); club = tmp___1; spin_lock(& lli->lli_lock); lli->lli_flags = lli->lli_flags | (__u32 )flags; if ((lli->lli_flags & 4U) != 0U) { tmp___7 = list_empty((struct list_head const *)(& club->cob_pending_list)); if (tmp___7 != 0) { tmp___2 = ll_i2sbi(inode); lcq = tmp___2->ll_lcq; if ((int )lli->lli_flags & 1) { tmp___3 = cfs_cdebug_show(1024U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; msgdata.msg_fn = "ll_queue_done_writing"; msgdata.msg_line = 95; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "ino %lu/%u(flags %u) som valid it just after recovery\n", inode->i_ino, inode->i_generation, lli->lli_flags); } else { } } else { } spin_lock(& lcq->lcq_lock); tmp___4 = list_empty((struct list_head const *)(& lli->lli_close_list)); tmp___5 = ldv__builtin_expect(tmp___4 == 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; __msg_data.msg_fn = "ll_queue_done_writing"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 99; __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(&lli->lli_close_list)"); lbug_with_loc(& __msg_data); } else { } tmp___6 = cfs_cdebug_show(2U, 128U); if (tmp___6 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; msgdata___0.msg_fn = "ll_queue_done_writing"; msgdata___0.msg_line = 101; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 2; libcfs_debug_msg(& msgdata___0, "adding inode %lu/%u to close list\n", inode->i_ino, inode->i_generation); } else { } list_add_tail(& lli->lli_close_list, & lcq->lcq_head); lli->lli_flags = lli->lli_flags & 4294967291U; __wake_up(& lcq->lcq_waitq, 3U, 1, (void *)0); spin_unlock(& lcq->lcq_lock); } else { } } else { } spin_unlock(& lli->lli_lock); return; } } void ll_done_writing_attr(struct inode *inode , struct md_op_data *op_data ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; int tmp___1 ; { tmp = ll_i2info(inode); lli = tmp; op_data->op_flags = op_data->op_flags | 1U; if ((int )lli->lli_flags & 1) { tmp___0 = cfs_cdebug_show(131072U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; msgdata.msg_fn = "ll_done_writing_attr"; msgdata.msg_line = 128; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "ino %lu/%u(flags %u) som valid it just after recovery\n", inode->i_ino, inode->i_generation, lli->lli_flags); } else { } } else { } tmp___1 = cl_local_size(inode); if (tmp___1 == 0) { op_data->op_attr.ia_valid = op_data->op_attr.ia_valid | 402653576U; } else { } return; } } void ll_ioepoch_close(struct inode *inode , struct md_op_data *op_data , struct obd_client_handle **och , unsigned long flags ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ccc_object *club ; struct ll_inode_info *tmp___0 ; struct ccc_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 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___6 ; int tmp___7 ; struct libcfs_debug_msg_data msgdata ; struct ll_inode_info *tmp___8 ; int tmp___9 ; struct libcfs_debug_msg_data __msg_data___4 ; long tmp___10 ; struct libcfs_debug_msg_data __msg_data___5 ; long tmp___11 ; struct libcfs_debug_msg_data __msg_data___6 ; int tmp___12 ; long tmp___13 ; { tmp = ll_i2info(inode); lli = tmp; tmp___0 = ll_i2info(inode); tmp___1 = cl2ccc((struct cl_object const *)tmp___0->lli_clob); club = tmp___1; spin_lock(& lli->lli_lock); tmp___7 = list_empty((struct list_head const *)(& club->cob_pending_list)); if (tmp___7 == 0) { if ((lli->lli_flags & 2U) == 0U) { tmp___2 = ldv__builtin_expect((unsigned long )*och == (unsigned long )((struct obd_client_handle *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; __msg_data.msg_fn = "ll_ioepoch_close"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 147; __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 *)"*och != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___3 = ldv__builtin_expect((unsigned long )lli->lli_pending_och != (unsigned long )((struct obd_client_handle *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; __msg_data___0.msg_fn = "ll_ioepoch_close"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 148; __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 *)"lli->lli_pending_och == ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } lli->lli_flags = lli->lli_flags | 2U; lli->lli_pending_och = *och; spin_unlock(& lli->lli_lock); inode = igrab(inode); tmp___4 = ldv__builtin_expect((unsigned long )inode == (unsigned long )((struct inode *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; __msg_data___1.msg_fn = "ll_ioepoch_close"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 156; __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 *)"inode"); lbug_with_loc(& __msg_data___1); } else { } goto out; } else { } if ((flags & 4UL) != 0UL) { tmp___5 = ldv__builtin_expect((lli->lli_flags & 4U) != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; __msg_data___2.msg_fn = "ll_ioepoch_close"; __msg_data___2.msg_subsys = 128; __msg_data___2.msg_line = 163; __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 *)"!(lli->lli_flags & LLIF_DONE_WRITING)"); lbug_with_loc(& __msg_data___2); } else { } lli->lli_flags = lli->lli_flags | 4U; spin_unlock(& lli->lli_lock); inode = igrab(inode); tmp___6 = ldv__builtin_expect((unsigned long )inode == (unsigned long )((struct inode *)0), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; __msg_data___3.msg_fn = "ll_ioepoch_close"; __msg_data___3.msg_subsys = 128; __msg_data___3.msg_line = 168; __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 *)"inode"); lbug_with_loc(& __msg_data___3); } else { } goto out; } else { } } else { } tmp___9 = cfs_cdebug_show(2U, 128U); if (tmp___9 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; msgdata.msg_fn = "ll_ioepoch_close"; msgdata.msg_line = 173; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; tmp___8 = ll_i2info(inode); libcfs_debug_msg(& msgdata, "Epoch %llu closed on [%#llx:0x%x:0x%x]\n", tmp___8->lli_ioepoch, lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver); } else { } op_data->op_flags = op_data->op_flags | 4U; if ((flags & 4UL) != 0UL) { tmp___10 = ldv__builtin_expect((lli->lli_flags & 8U) == 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; __msg_data___4.msg_fn = "ll_ioepoch_close"; __msg_data___4.msg_subsys = 128; __msg_data___4.msg_line = 177; __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 *)"lli->lli_flags & LLIF_SOM_DIRTY"); lbug_with_loc(& __msg_data___4); } else { } tmp___11 = ldv__builtin_expect((lli->lli_flags & 4U) != 0U, 0L); if (tmp___11 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; __msg_data___5.msg_fn = "ll_ioepoch_close"; __msg_data___5.msg_subsys = 128; __msg_data___5.msg_line = 178; __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 *)"!(lli->lli_flags & LLIF_DONE_WRITING)"); lbug_with_loc(& __msg_data___5); } else { } *och = lli->lli_pending_och; lli->lli_pending_och = (struct obd_client_handle *)0; lli->lli_flags = lli->lli_flags & 4294967293U; } else { if ((lli->lli_flags & 8U) == 0U) { spin_unlock(& lli->lli_lock); goto out; } else { } if ((lli->lli_flags & 2U) != 0U) { spin_unlock(& lli->lli_lock); goto out; } else { } } tmp___12 = list_empty((struct list_head const *)(& club->cob_pending_list)); tmp___13 = ldv__builtin_expect(tmp___12 == 0, 0L); if (tmp___13 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; __msg_data___6.msg_fn = "ll_ioepoch_close"; __msg_data___6.msg_subsys = 128; __msg_data___6.msg_line = 197; __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(&club->cob_pending_list)"); lbug_with_loc(& __msg_data___6); } else { } lli->lli_flags = lli->lli_flags & 4294967287U; spin_unlock(& lli->lli_lock); ll_done_writing_attr(inode, op_data); out: ; return; } } int ll_som_update(struct inode *inode , struct md_op_data *op_data ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ptlrpc_request *request ; __u32 old_flags ; struct obdo *oa ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___2 ; long tmp___3 ; void *tmp___4 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___5 ; int tmp___6 ; int tmp___7 ; int tmp___8 ; long tmp___9 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___10 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___11 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___12 ; struct ll_sb_info *tmp___13 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___14 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___15 ; { tmp = ll_i2info(inode); lli = tmp; request = (struct ptlrpc_request *)0; tmp___0 = ldv__builtin_expect((unsigned long )op_data == (unsigned long )((struct md_op_data *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; __msg_data.msg_fn = "ll_som_update"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 218; __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 *)"op_data != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } if ((int )lli->lli_flags & 1) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; msgdata.msg_fn = "ll_som_update"; msgdata.msg_line = 222; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "ino %lu/%u(flags %u) som valid it just after recovery\n", inode->i_ino, inode->i_generation, lli->lli_flags); } else { } } else { } tmp___2 = preempt_count(); tmp___3 = ldv__builtin_expect(((unsigned long )tmp___2 & 2096896UL) != 0UL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; __msg_data___0.msg_fn = "ll_som_update"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 224; __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 *)"(!((((( 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___0); } else { } tmp___4 = ldv_kmem_cache_alloc_151(obdo_cachep, 32848U); oa = (struct obdo *)tmp___4; if ((unsigned long )oa != (unsigned long )((struct obdo *)0)) { tmp___6 = cfs_fail_check_set___0(3072U, 0U, 0, 0); if (tmp___6 == 0 || obd_alloc_fail_rate == 0U) { tmp___8 = 1; } else { tmp___7 = 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c", 224); if (tmp___7 == 0) { tmp___8 = 1; } else { kmem_cache_free(obdo_cachep, (void *)oa); oa = (struct obdo *)0; tmp___8 = 0; } } } else { tmp___8 = 0; } tmp___9 = ldv__builtin_expect((long )tmp___8, 1L); if (tmp___9 != 0L) { lprocfs_counter_add(obd_memory, 0, 208L); tmp___5 = cfs_cdebug_show(16U, 128U); if (tmp___5 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; msgdata___0.msg_fn = "ll_som_update"; msgdata___0.msg_line = 224; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; libcfs_debug_msg(& msgdata___0, "slab-alloced \'(oa)\': %d at %p.\n", 208, oa); } else { } } else { } if ((unsigned long )oa == (unsigned long )((struct obdo *)0)) { tmp___10 = cfs_cdebug_show(131072U, 128U); if (tmp___10 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; msgdata___1.msg_fn = "ll_som_update"; msgdata___1.msg_line = 226; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "can\'t allocate memory for Size-on-MDS update.\n"); } else { } return (-12); } else { } old_flags = op_data->op_flags; op_data->op_flags = 1U; if (lli->lli_ioepoch == op_data->op_ioepoch) { rc = ll_inode_getattr(inode, oa, op_data->op_ioepoch, (int )old_flags & 256); if (rc != 0) { oa->o_valid = 0ULL; if (rc != -2) { tmp___11 = cfs_cdebug_show(131072U, 128U); if (tmp___11 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; msgdata___2.msg_fn = "ll_som_update"; msgdata___2.msg_line = 242; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "inode_getattr failed (%d): unable to send a Size-on-MDS attribute update for inode %lu/%u\n", rc, inode->i_ino, inode->i_generation); } else { } } else { } } else { tmp___12 = cfs_cdebug_show(2U, 128U); if (tmp___12 != 0) { msgdata___3.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; msgdata___3.msg_fn = "ll_som_update"; msgdata___3.msg_line = 245; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 2; libcfs_debug_msg(& msgdata___3, "Size-on-MDS update on [%#llx:0x%x:0x%x]\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver); } else { } } md_from_obdo(op_data, oa, (u32 )oa->o_valid); } else { } tmp___13 = ll_i2sbi(inode); rc = md_setattr___0(tmp___13->ll_md_exp, op_data, (void *)0, 0, (void *)0, 0, & request, (struct md_open_data **)0); ptlrpc_req_finished(request); tmp___14 = ldv__builtin_expect((unsigned long )oa == (unsigned long )((struct obdo *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; __msg_data___1.msg_fn = "ll_som_update"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 255; __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))"); lbug_with_loc(& __msg_data___1); } else { } lprocfs_counter_sub(obd_memory, 0, 208L); tmp___15 = cfs_cdebug_show(16U, 128U); if (tmp___15 != 0) { msgdata___4.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; msgdata___4.msg_fn = "ll_som_update"; msgdata___4.msg_line = 255; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 16; libcfs_debug_msg(& msgdata___4, "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 ll_prepare_done_writing(struct inode *inode , struct md_op_data *op_data , struct obd_client_handle **och ) { { ll_ioepoch_close(inode, op_data, och, 4UL); if ((unsigned long )*och == (unsigned long )((struct obd_client_handle *)0)) { return; } else { } ll_pack_inode2opdata(inode, op_data, & (*och)->och_fh); ll_prep_md_op_data(op_data, inode, (struct inode *)0, (char const *)0, 0, 0, 16U, (void *)0); return; } } static void ll_done_writing(struct inode *inode ) { struct obd_client_handle *och ; struct md_op_data *op_data ; int rc ; struct libcfs_debug_msg_data __msg_data ; struct obd_export *tmp ; int tmp___0 ; long tmp___1 ; void *tmp___2 ; struct ll_sb_info *tmp___3 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___4 ; struct ll_sb_info *tmp___5 ; { och = (struct obd_client_handle *)0; tmp = ll_i2mdexp(inode); tmp___0 = exp_connect_som(tmp); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; __msg_data.msg_fn = "ll_done_writing"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 284; __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_connect_som(ll_i2mdexp(inode))"); lbug_with_loc(& __msg_data); } else { } tmp___2 = kzalloc(328UL, 80U); op_data = (struct md_op_data *)tmp___2; if ((unsigned long )op_data == (unsigned long )((struct md_op_data *)0)) { return; } else { } ll_prepare_done_writing(inode, op_data, & och); if ((unsigned long )och == (unsigned long )((struct obd_client_handle *)0)) { goto out; } else { } tmp___3 = ll_i2sbi(inode); rc = md_done_writing(tmp___3->ll_md_exp, op_data, (struct md_open_data *)0); if (rc == -11) { rc = ll_som_update(inode, op_data); } else if (rc != 0) { tmp___4 = cfs_cdebug_show(131072U, 128U); if (tmp___4 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; msgdata.msg_fn = "ll_done_writing"; msgdata.msg_line = 302; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "inode %lu mdc done_writing failed: rc = %d\n", inode->i_ino, rc); } else { } } else { } out: ll_finish_md_op_data(op_data); if ((unsigned long )och != (unsigned long )((struct obd_client_handle *)0)) { tmp___5 = ll_i2sbi(inode); md_clear_open_replay_data(tmp___5->ll_md_exp, och); kfree((void const *)och); } else { } return; } } static struct ll_inode_info *ll_close_next_lli(struct ll_close_queue *lcq ) { struct ll_inode_info *lli ; struct list_head const *__mptr ; void *tmp ; int tmp___0 ; int tmp___1 ; { lli = (struct ll_inode_info *)0; spin_lock(& lcq->lcq_lock); tmp___1 = list_empty((struct list_head const *)(& lcq->lcq_head)); if (tmp___1 == 0) { __mptr = (struct list_head const *)lcq->lcq_head.next; lli = (struct ll_inode_info *)__mptr + 0xfffffffffffffed8UL; list_del_init(& lli->lli_close_list); } else { tmp___0 = atomic_read((atomic_t const *)(& lcq->lcq_stop)); if (tmp___0 != 0) { tmp = ERR_PTR(-114L); lli = (struct ll_inode_info *)tmp; } else { } } spin_unlock(& lcq->lcq_lock); return (lli); } } static int ll_close_thread(void *arg ) { struct ll_close_queue *lcq ; struct l_wait_info lwi ; struct ll_inode_info *lli ; struct inode *inode ; int __ret ; struct l_wait_info *__info ; wait_queue_t __wait ; long __timeout ; sigset_t __blocked ; int __allow_intr ; struct task_struct *tmp ; struct task_struct *tmp___0 ; long volatile __ret___0 ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; struct task_struct *tmp___3 ; struct task_struct *tmp___4 ; long interval ; long __min1 ; long __min2 ; long tmp___5 ; long remaining ; long tmp___6 ; unsigned long tmp___7 ; unsigned long tmp___8 ; int tmp___9 ; struct task_struct *tmp___10 ; long volatile __ret___1 ; struct task_struct *tmp___11 ; struct task_struct *tmp___12 ; struct task_struct *tmp___13 ; struct task_struct *tmp___14 ; int tmp___15 ; bool tmp___16 ; struct libcfs_debug_msg_data msgdata ; int tmp___17 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___18 ; { lcq = (struct ll_close_queue *)arg; complete(& lcq->lcq_comp); ldv_68292: lwi.lwi_timeout = 0L; lwi.lwi_interval = 0L; lwi.lwi_allow_intr = 0; lwi.lwi_on_timeout = 0; lwi.lwi_on_signal = 0; lwi.lwi_cb_data = 0; __info = & lwi; __timeout = __info->lwi_timeout; __allow_intr = __info->lwi_allow_intr; __ret = 0; lli = ll_close_next_lli(lcq); if ((unsigned long )lli != (unsigned long )((struct ll_inode_info *)0)) { goto ldv_68263; } else { } tmp = get_current(); init_waitqueue_entry(& __wait, tmp); add_wait_queue_exclusive(& lcq->lcq_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_68287: lli = ll_close_next_lli(lcq); if ((unsigned long )lli != (unsigned long )((struct ll_inode_info *)0)) { goto ldv_68264; } else { } tmp___0 = get_current(); tmp___0->task_state_change = 0UL; __ret___0 = 1L; switch (8UL) { case 1UL: tmp___1 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___0), "+m" (tmp___1->state): : "memory", "cc"); goto ldv_68267; case 2UL: tmp___2 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___0), "+m" (tmp___2->state): : "memory", "cc"); goto ldv_68267; case 4UL: tmp___3 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___0), "+m" (tmp___3->state): : "memory", "cc"); goto ldv_68267; case 8UL: tmp___4 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___0), "+m" (tmp___4->state): : "memory", "cc"); goto ldv_68267; default: __xchg_wrong_size(); } ldv_68267: ; if (__timeout == 0L) { schedule(); } else { if (__info->lwi_interval != 0L) { __min1 = __info->lwi_interval; __min2 = __timeout; tmp___5 = __min1 < __min2 ? __min1 : __min2; } else { tmp___5 = __timeout; } interval = tmp___5; tmp___6 = schedule_timeout(interval); remaining = tmp___6; tmp___7 = cfs_time_sub((unsigned long )interval, (unsigned long )remaining); tmp___8 = cfs_time_sub((unsigned long )__timeout, tmp___7); __timeout = (long )tmp___8; if (__timeout == 0L) { if ((unsigned long )__info->lwi_on_timeout == (unsigned long )((int (*)(void * ))0)) { __ret = -110; goto ldv_68264; } else { tmp___9 = (*(__info->lwi_on_timeout))(__info->lwi_cb_data); if (tmp___9 != 0) { __ret = -110; goto ldv_68264; } else { } } if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0)) { cfs_block_sigsinv(24838UL); } else { } } else { } } tmp___10 = get_current(); tmp___10->task_state_change = 0UL; __ret___1 = 0L; switch (8UL) { case 1UL: tmp___11 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___1), "+m" (tmp___11->state): : "memory", "cc"); goto ldv_68280; case 2UL: tmp___12 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___1), "+m" (tmp___12->state): : "memory", "cc"); goto ldv_68280; case 4UL: tmp___13 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___1), "+m" (tmp___13->state): : "memory", "cc"); goto ldv_68280; case 8UL: tmp___14 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___1), "+m" (tmp___14->state): : "memory", "cc"); goto ldv_68280; default: __xchg_wrong_size(); } ldv_68280: lli = ll_close_next_lli(lcq); if ((unsigned long )lli != (unsigned long )((struct ll_inode_info *)0)) { goto ldv_68264; } else { } tmp___15 = cfs_signal_pending(); if (tmp___15 != 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_68264; } else { } cfs_clear_sigpending(); } else { } goto ldv_68287; ldv_68264: cfs_restore_sigs(__blocked); remove_wait_queue(& lcq->lcq_waitq, & __wait); ldv_68263: tmp___16 = IS_ERR((void const *)lli); if ((int )tmp___16) { goto ldv_68289; } else { } inode = ll_info2i(lli); tmp___17 = cfs_cdebug_show(64U, 128U); if (tmp___17 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; msgdata.msg_fn = "ll_close_thread"; msgdata.msg_line = 348; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "done_writing for inode %lu/%u\n", inode->i_ino, inode->i_generation); } else { } ll_done_writing(inode); iput(inode); goto ldv_68292; ldv_68289: tmp___18 = cfs_cdebug_show(64U, 128U); if (tmp___18 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_close.c"; msgdata___0.msg_fn = "ll_close_thread"; msgdata___0.msg_line = 353; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 64; libcfs_debug_msg(& msgdata___0, "ll_close exiting\n"); } else { } complete(& lcq->lcq_comp); return (0); } } int ll_close_thread_start(struct ll_close_queue **lcq_ret ) { struct ll_close_queue *lcq ; struct task_struct *task ; int tmp ; void *tmp___0 ; struct lock_class_key __key ; struct lock_class_key __key___0 ; struct task_struct *__k ; struct task_struct *tmp___1 ; bool tmp___2 ; int tmp___3 ; long tmp___4 ; bool tmp___5 ; { tmp = cfs_fail_check_set___0(787U, 0U, 0, 0); if (tmp != 0) { return (-4); } else { } tmp___0 = kzalloc(280UL, 80U); lcq = (struct ll_close_queue *)tmp___0; if ((unsigned long )lcq == (unsigned long )((struct ll_close_queue *)0)) { return (-12); } else { } spinlock_check(& lcq->lcq_lock); __raw_spin_lock_init(& lcq->lcq_lock.__annonCompField18.rlock, "&(&lcq->lcq_lock)->rlock", & __key); INIT_LIST_HEAD(& lcq->lcq_head); __init_waitqueue_head(& lcq->lcq_waitq, "&lcq->lcq_waitq", & __key___0); init_completion(& lcq->lcq_comp); tmp___1 = kthread_create_on_node(& ll_close_thread, (void *)lcq, -1, "ll_close"); __k = tmp___1; tmp___2 = IS_ERR((void const *)__k); if (tmp___2) { tmp___3 = 0; } else { tmp___3 = 1; } if (tmp___3) { wake_up_process(__k); } else { } task = __k; tmp___5 = IS_ERR((void const *)task); if ((int )tmp___5) { kfree((void const *)lcq); tmp___4 = PTR_ERR((void const *)task); return ((int )tmp___4); } else { } wait_for_completion(& lcq->lcq_comp); *lcq_ret = lcq; return (0); } } void ll_close_thread_shutdown(struct ll_close_queue *lcq ) { { init_completion(& lcq->lcq_comp); atomic_inc(& lcq->lcq_stop); __wake_up(& lcq->lcq_waitq, 3U, 1, (void *)0); wait_for_completion(& lcq->lcq_comp); kfree((void const *)lcq); return; } } int ldv_pskb_expand_head_139(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_141(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_143(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_144(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_145(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_146(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_147(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_148(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_149(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_151(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); } } __inline static long ldv__builtin_expect(long exp , long c ) ; extern struct module __this_module ; __inline static unsigned long ffz(unsigned long word ) { { __asm__ ("rep; bsf %1,%0": "=r" (word): "r" (~ word)); return (word); } } 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 unsigned long simple_strtoul(char const * , char ** , unsigned int ) ; extern char *kasprintf(gfp_t , char const * , ...) ; extern int strcmp(char const * , char const * ) ; extern int strncmp(char const * , char const * , __kernel_size_t ) ; extern char *strchr(char const * , int ) ; extern char *strrchr(char const * , int ) ; __inline static void *ERR_PTR(long error ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; extern void __xadd_wrong_size(void) ; __inline static void atomic_set(atomic_t *v , int i ) { { v->counter = i; return; } } __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 void spin_lock(spinlock_t *lock ) ; __inline static void spin_lock_irq(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; __inline static void spin_unlock_irq(spinlock_t *lock ) ; extern void __mutex_init(struct mutex * , char const * , struct lock_class_key * ) ; extern void __init_rwsem(struct rw_semaphore * , char const * , struct lock_class_key * ) ; __inline static u64 get_jiffies_64(void) { { return ((u64 )jiffies); } } extern unsigned long get_seconds(void) ; extern struct timespec current_kernel_time(void) ; extern void kfree_call_rcu(struct callback_head * , void (*)(struct callback_head * ) ) ; unsigned long ldv___get_free_pages_190(gfp_t flags , unsigned int ldv_func_arg2 ) ; extern void free_pages(unsigned long , unsigned int ) ; extern bool try_module_get(struct module * ) ; extern void module_put(struct module * ) ; void *ldv_kmem_cache_alloc_189(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; extern void si_meminfo(struct sysinfo * ) ; extern void truncate_inode_pages_final(struct address_space * ) ; __inline static dev_t old_decode_dev(u16 val ) { { return ((dev_t )(((((int )val >> 8) & 255) << 20) | ((int )val & 255))); } } extern struct dentry *d_make_root(struct inode * ) ; extern struct dentry *d_find_alias(struct inode * ) ; extern char *dentry_path_raw(struct dentry * , char * , int ) ; extern void dput(struct dentry * ) ; extern void set_nlink(struct inode * , unsigned int ) ; extern void init_special_inode(struct inode * , umode_t , dev_t ) ; extern void clear_inode(struct inode * ) ; extern void inode_dio_wait(struct inode * ) ; extern int simple_setattr(struct dentry * , struct iattr * ) ; extern int inode_newsize_ok(struct inode const * , loff_t ) ; extern int seq_puts(struct seq_file * , char const * ) ; struct sk_buff *ldv_skb_clone_179(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_187(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_181(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_177(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_185(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_186(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_182(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_183(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , 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 ) ; __inline static long cfs_time_seconds(int seconds ) { { return ((long )seconds * 250L); } } __inline static __u64 cfs_time_add_64(__u64 t , __u64 d ) { { return (t + d); } } __inline static __u64 cfs_time_shift_64(int seconds ) { long tmp ; u64 tmp___0 ; __u64 tmp___1 ; { tmp = cfs_time_seconds(seconds); tmp___0 = get_jiffies_64(); tmp___1 = cfs_time_add_64(tmp___0, (__u64 )tmp); return (tmp___1); } } __inline static int cfs_time_before_64(__u64 t1 , __u64 t2 ) { { return ((long long )t2 - (long long )t1 > 0LL); } } extern void cfs_get_random_bytes(void * , int ) ; __inline static int cfs_size_round(int val ) { { return ((val + 7) & -8); } } extern int cfs_crypto_hash_speed(unsigned char ) ; __inline static void fid_zero(struct lu_fid *fid ) { { memset((void *)fid, 0, 16UL); return; } } __inline static int fid_is_zero(struct lu_fid const *fid ) { __u64 tmp ; __u32 tmp___0 ; int tmp___1 ; { tmp = fid_seq(fid); if (tmp == 0ULL) { tmp___0 = fid_oid(fid); if (tmp___0 == 0U) { tmp___1 = 1; } else { tmp___1 = 0; } } else { tmp___1 = 0; } return (tmp___1); } } __inline static int lu_fid_eq(struct lu_fid const *f0 , struct lu_fid const *f1 ) { int tmp ; { tmp = memcmp((void const *)f0, (void const *)f1, 16UL); return (tmp == 0); } } __inline static int ll_ext_to_inode_flags(int flags ) { { return ((((((flags & 8) != 0) | ((flags & 128) != 0 ? 2 : 0)) | ((flags & 32) != 0 ? 4 : 0)) | ((flags & 65536) != 0 ? 64 : 0)) | ((flags & 16) != 0 ? 8 : 0)); } } __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/llite/../include/linux/../lustre_cfg.h"; __msg_data.msg_fn = "lustre_cfg_buf"; __msg_data.msg_subsys = 128; __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/llite/../include/linux/../lustre_cfg.h"; __msg_data___0.msg_fn = "lustre_cfg_buf"; __msg_data___0.msg_subsys = 128; __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_56904; ldv_56903: tmp___1 = cfs_size_round((int )lcfg->lcfg_buflens[i]); offset = tmp___1 + offset; i = i + 1; ldv_56904: ; if (i < index) { goto ldv_56903; } 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, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../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 void statfs_unpack(struct kstatfs * , struct obd_statfs * ) ; __inline static bool filename_is_volatile(char const *name , int namelen , int *idx ) { char const *start ; char *end ; int tmp ; unsigned long tmp___0 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; { tmp = strncmp(name, ".\f\023\024\022:VOLATILE", 14UL); if (tmp != 0) { return (0); } else { } if ((unsigned long )idx == (unsigned long )((int *)0)) { return (1); } else { } if (namelen <= 15) { goto bad_format; } else { } if ((int )((signed char )*(name + 14UL)) == 58 && (int )((signed char )*(name + 15U)) == 58) { *idx = -1; return (1); } else { } start = name + 15U; tmp___0 = simple_strtoul(start, & end, 0U); *idx = (int )tmp___0; if (((*idx == 0 && (unsigned long )((char const *)end) == (unsigned long )start) || (int )((signed char )*end) != 58) || *idx < 0) { goto bad_format; } else { } return (1); bad_format: tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd.h"; msgdata.msg_fn = "filename_is_volatile"; msgdata.msg_line = 1488; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Bad volatile file name format: %s\n", name + 14UL); } else { } return (0); } } extern struct obd_device *class_name2obd(char const * ) ; extern struct obd_device *class_devices_in_group(struct obd_uuid * , int * ) ; extern int obd_connect_flags2str(char * , int , __u64 , char * ) ; extern void obd_zombie_barrier(void) ; extern int class_process_proc_param(char * , struct lprocfs_vars * , struct lustre_cfg * , void * ) ; extern int class_config_llog_handler(struct lu_env const * , struct llog_handle * , struct llog_rec_hdr * , void * ) ; extern struct lustre_profile *class_get_profile(char const * ) ; extern void class_del_profile(char const * ) ; extern int class_manual_cleanup(struct obd_device * ) ; __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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../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 int obd_check_dev_active(struct obd_device *obd ) { int rc ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; { 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(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "obd_check_dev_active"; msgdata.msg_line = 346; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Device %d not setup\n", obd->obd_minor); } else { } return (-19); } else { } return (rc); } } __inline static int obd_set_info_async___0(struct lu_env const *env , struct obd_export *exp , u32 keylen , void *key , u32 vallen , void *val , struct ptlrpc_request_set *set ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "obd_set_info_async"; msgdata.msg_line = 495; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_set_info_async: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "obd_set_info_async"; msgdata___0.msg_line = 495; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_set_info_async: 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_set_info_async == (unsigned long )((int (*)(struct lu_env const * , struct obd_export * , __u32 , void * , __u32 , void * , struct ptlrpc_request_set * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "obd_set_info_async"; msgdata___1.msg_line = 495; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_set_info_async: 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 + 2U; 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_set_info_async"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 496; __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_set_info_async))(env, exp, keylen, key, vallen, val, set); return (rc); } } __inline static int obd_packmd(struct obd_export *exp , struct lov_mds_md_v1 **disk_tgt , struct lov_stripe_md *mem_src ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "obd_packmd"; msgdata.msg_line = 683; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_packmd: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "obd_packmd"; msgdata___0.msg_line = 683; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_packmd: 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_packmd == (unsigned long )((int (*)(struct obd_export * , struct lov_mds_md_v1 ** , struct lov_stripe_md * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "obd_packmd"; msgdata___1.msg_line = 683; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_packmd: 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 + 20U; 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_packmd"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 684; __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_packmd))(exp, disk_tgt, mem_src); return (rc); } } __inline static int obd_size_diskmd(struct obd_export *exp , struct lov_stripe_md *mem_src ) { int tmp ; { tmp = obd_packmd(exp, (struct lov_mds_md_v1 **)0, mem_src); return (tmp); } } __inline static int obd_setattr_rqset(struct obd_export *exp , struct obd_info *oinfo , struct obd_trans_info *oti ) { struct ptlrpc_request_set *set ; 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 ; { set = (struct ptlrpc_request_set *)0; if ((unsigned long )exp == (unsigned long )((struct obd_export *)0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "obd_setattr_rqset"; msgdata.msg_line = 829; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_setattr_async: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "obd_setattr_rqset"; msgdata___0.msg_line = 829; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_setattr_async: 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_setattr_async == (unsigned long )((int (*)(struct obd_export * , struct obd_info * , struct obd_trans_info * , struct ptlrpc_request_set * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "obd_setattr_rqset"; msgdata___1.msg_line = 829; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_setattr_async: 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 + 26U; 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_setattr_rqset"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 830; __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 { } set = ptlrpc_prep_set(); if ((unsigned long )set == (unsigned long )((struct ptlrpc_request_set *)0)) { return (-12); } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_dt_ops)->o_setattr_async))(exp, oinfo, oti, set); if (rc == 0) { rc = ptlrpc_set_wait(set); } else { } ptlrpc_set_destroy(set); return (rc); } } __inline static struct obd_uuid *obd_get_uuid(struct obd_export *exp ) { struct obd_uuid *uuid ; unsigned int coffset ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; { 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_get_uuid == (unsigned long )((struct obd_uuid *(*)(struct obd_export * ))0)) { return ((struct obd_uuid *)0); } else { } if ((unsigned long )(exp->exp_obd)->obd_stats != (unsigned long )((struct lprocfs_stats *)0)) { coffset = (exp->exp_obd)->obd_cntr_base + 38U; tmp___0 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->obd_stats)->ls_num <= coffset, 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_get_uuid"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 895; __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 { } uuid = (*((((exp->exp_obd)->obd_type)->typ_dt_ops)->o_get_uuid))(exp); return (uuid); } } __inline static int obd_connect(struct lu_env const *env , struct obd_export **exp , struct obd_device *obd , struct obd_uuid *cluuid , struct obd_connect_data *data , void *localdata ) { int rc ; __u64 ocf ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; unsigned int coffset ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; { ocf = (unsigned long )data != (unsigned long )((struct obd_connect_data *)0) ? data->ocd_connect_flags : 0ULL; rc = obd_check_dev_active(obd); if (rc != 0) { return (rc); } else { } if ((unsigned long )obd->obd_type == (unsigned long )((struct obd_type *)0) || (unsigned long )((obd->obd_type)->typ_dt_ops)->o_connect == (unsigned long )((int (*)(struct lu_env const * , struct obd_export ** , struct obd_device * , struct obd_uuid * , struct obd_connect_data * , void * ))0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "obd_connect"; msgdata.msg_line = 919; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_connect: dev %d no operation\n", obd->obd_minor); } else { } return (-95); } else { } if ((unsigned long )obd->obd_stats != (unsigned long )((struct lprocfs_stats *)0)) { coffset = obd->obd_cntr_base + 12U; tmp___0 = ldv__builtin_expect((unsigned int )(obd->obd_stats)->ls_num <= coffset, 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_connect"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 920; __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_connect))(env, exp, obd, cluuid, data, localdata); tmp___1 = ldv__builtin_expect((long )((unsigned long )data != (unsigned long )((struct obd_connect_data *)0) && (data->ocd_connect_flags & ocf) != data->ocd_connect_flags), 0L); if (tmp___1 != 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/llite/../include/linux/../obd_class.h"; __msg_data___0.msg_fn = "obd_connect"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 925; __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 *)"(!(data != ((void *)0)) || ((data->ocd_connect_flags & ocf) == data->ocd_connect_flags))"); lbug_with_loc(& __msg_data___0); } else { } return (rc); } } __inline static int obd_disconnect(struct obd_export *exp ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "obd_disconnect"; msgdata.msg_line = 957; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_disconnect: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "obd_disconnect"; msgdata___0.msg_line = 957; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_disconnect: 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_disconnect == (unsigned long )((int (*)(struct obd_export * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "obd_disconnect"; msgdata___1.msg_line = 957; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_disconnect: 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 + 14U; 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_disconnect"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 958; __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_disconnect))(exp); return (rc); } } __inline static int obd_fid_init(struct obd_device *obd , struct obd_export *exp , enum lu_cli_type type ) { int rc ; unsigned int coffset ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; { if ((unsigned long )obd->obd_type == (unsigned long )((struct obd_type *)0) || (unsigned long )((obd->obd_type)->typ_dt_ops)->o_fid_init == (unsigned long )((int (*)(struct obd_device * , struct obd_export * , enum lu_cli_type ))0)) { return (0); } else { } if ((unsigned long )obd->obd_stats != (unsigned long )((struct lprocfs_stats *)0)) { coffset = obd->obd_cntr_base + 15U; tmp___0 = ldv__builtin_expect((unsigned int )(obd->obd_stats)->ls_num <= coffset, 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_fid_init"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 970; __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_fid_init))(obd, exp, type); return (rc); } } __inline static int obd_fid_fini(struct obd_device *obd ) { int rc ; unsigned int coffset ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; { if ((unsigned long )obd->obd_type == (unsigned long )((struct obd_type *)0) || (unsigned long )((obd->obd_type)->typ_dt_ops)->o_fid_fini == (unsigned long )((int (*)(struct obd_device * ))0)) { return (0); } else { } if ((unsigned long )obd->obd_stats != (unsigned long )((struct lprocfs_stats *)0)) { coffset = obd->obd_cntr_base + 16U; tmp___0 = ldv__builtin_expect((unsigned int )(obd->obd_stats)->ls_num <= coffset, 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_fid_fini"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 981; __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_fid_fini))(obd); return (rc); } } __inline static int obd_statfs_async(struct obd_export *exp , struct obd_info *oinfo , __u64 max_age , struct ptlrpc_request_set *rqset ) { int rc ; struct obd_device *obd ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; unsigned int coffset ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___2 ; int tmp___3 ; { rc = 0; if ((unsigned long )exp == (unsigned long )((struct obd_export *)0) || (unsigned long )exp->exp_obd == (unsigned long )((struct obd_device *)0)) { return (-22); } else { } obd = exp->exp_obd; if ((unsigned long )obd->obd_type == (unsigned long )((struct obd_type *)0) || (unsigned long )((obd->obd_type)->typ_dt_ops)->o_statfs == (unsigned long )((int (*)(struct lu_env const * , struct obd_export * , struct obd_statfs * , __u64 , __u32 ))0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "obd_statfs_async"; msgdata.msg_line = 1093; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_statfs: dev %d no operation\n", obd->obd_minor); } else { } return (-95); } else { } if ((unsigned long )obd->obd_stats != (unsigned long )((struct lprocfs_stats *)0)) { coffset = obd->obd_cntr_base + 18U; tmp___0 = ldv__builtin_expect((unsigned int )(obd->obd_stats)->ls_num <= coffset, 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_statfs_async"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1094; __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 { } tmp___1 = cfs_cdebug_show(4U, 128U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "obd_statfs_async"; msgdata___0.msg_line = 1097; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 4; libcfs_debug_msg(& msgdata___0, "%s: osfs %p age %llu, max_age %llu\n", (char *)(& obd->obd_name), & obd->obd_osfs, obd->obd_osfs_age, max_age); } else { } tmp___3 = cfs_time_before_64(obd->obd_osfs_age, max_age); if (tmp___3 != 0) { rc = (*(((obd->obd_type)->typ_dt_ops)->o_statfs_async))(exp, oinfo, max_age, rqset); } else { tmp___2 = cfs_cdebug_show(4U, 128U); if (tmp___2 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "obd_statfs_async"; msgdata___1.msg_line = 1105; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 4; libcfs_debug_msg(& msgdata___1, "%s: use %p cache blocks %llu/%llu objects %llu/%llu\n", (char *)(& obd->obd_name), & obd->obd_osfs, obd->obd_osfs.os_bavail, obd->obd_osfs.os_blocks, obd->obd_osfs.os_ffree, obd->obd_osfs.os_files); } else { } spin_lock(& obd->obd_osfs_lock); memcpy((void *)oinfo->oi_osfs, (void const *)(& obd->obd_osfs), 144UL); spin_unlock(& obd->obd_osfs_lock); oinfo->oi_flags = oinfo->oi_flags | 2ULL; if ((unsigned long )oinfo->oi_cb_up != (unsigned long )((int (*)(void * , int ))0)) { (*(oinfo->oi_cb_up))((void *)oinfo, 0); } else { } } return (rc); } } __inline static int obd_statfs_rqset(struct obd_export *exp , struct obd_statfs *osfs , __u64 max_age , __u32 flags ) { struct ptlrpc_request_set *set ; struct obd_info oinfo ; int rc ; { set = (struct ptlrpc_request_set *)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; rc = 0; set = ptlrpc_prep_set(); if ((unsigned long )set == (unsigned long )((struct ptlrpc_request_set *)0)) { return (-12); } else { } oinfo.oi_osfs = osfs; oinfo.oi_flags = (__u64 )flags; rc = obd_statfs_async(exp, & oinfo, max_age, set); if (rc == 0) { rc = ptlrpc_set_wait(set); } else { } ptlrpc_set_destroy(set); return (rc); } } __inline static int obd_statfs(struct lu_env const *env , struct obd_export *exp , struct obd_statfs *osfs , __u64 max_age , __u32 flags ) { int rc ; struct obd_device *obd ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; unsigned int coffset ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___2 ; int tmp___3 ; { rc = 0; obd = exp->exp_obd; if ((unsigned long )obd == (unsigned long )((struct obd_device *)0)) { return (-22); } else { } if ((unsigned long )obd->obd_type == (unsigned long )((struct obd_type *)0) || (unsigned long )((obd->obd_type)->typ_dt_ops)->o_statfs == (unsigned long )((int (*)(struct lu_env const * , struct obd_export * , struct obd_statfs * , __u64 , __u32 ))0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "obd_statfs"; msgdata.msg_line = 1150; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_statfs: dev %d no operation\n", obd->obd_minor); } else { } return (-95); } else { } if ((unsigned long )obd->obd_stats != (unsigned long )((struct lprocfs_stats *)0)) { coffset = obd->obd_cntr_base + 18U; tmp___0 = ldv__builtin_expect((unsigned int )(obd->obd_stats)->ls_num <= coffset, 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_statfs"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1151; __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 { } tmp___1 = cfs_cdebug_show(4U, 128U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "obd_statfs"; msgdata___0.msg_line = 1154; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 4; libcfs_debug_msg(& msgdata___0, "osfs %llu, max_age %llu\n", obd->obd_osfs_age, max_age); } else { } tmp___3 = cfs_time_before_64(obd->obd_osfs_age, max_age); if (tmp___3 != 0) { rc = (*(((obd->obd_type)->typ_dt_ops)->o_statfs))(env, exp, osfs, max_age, flags); if (rc == 0) { spin_lock(& obd->obd_osfs_lock); memcpy((void *)(& obd->obd_osfs), (void const *)osfs, 144UL); obd->obd_osfs_age = get_jiffies_64(); spin_unlock(& obd->obd_osfs_lock); } else { } } else { tmp___2 = cfs_cdebug_show(4U, 128U); if (tmp___2 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "obd_statfs"; msgdata___1.msg_line = 1167; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 4; libcfs_debug_msg(& msgdata___1, "%s: use %p cache blocks %llu/%llu objects %llu/%llu\n", (char *)(& obd->obd_name), & obd->obd_osfs, obd->obd_osfs.os_bavail, obd->obd_osfs.os_blocks, obd->obd_osfs.os_ffree, obd->obd_osfs.os_files); } else { } spin_lock(& obd->obd_osfs_lock); memcpy((void *)osfs, (void const *)(& obd->obd_osfs), 144UL); spin_unlock(& obd->obd_osfs_lock); } return (rc); } } __inline static int md_getstatus(struct obd_export *exp , struct lu_fid *fid , struct obd_capa **pc ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_getstatus"; msgdata.msg_line = 1442; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_getstatus: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_getstatus"; msgdata___0.msg_line = 1442; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_getstatus: 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_md_ops)->m_getstatus == (unsigned long )((int (*)(struct obd_export * , struct lu_fid * , struct obd_capa ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_getstatus"; msgdata___1.msg_line = 1442; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_getstatus: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_getstatus"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1443; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_getstatus))(exp, fid, pc); return (rc); } } __inline static int md_null_inode(struct obd_export *exp , struct lu_fid const *fid ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_null_inode"; msgdata.msg_line = 1464; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_null_inode: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_null_inode"; msgdata___0.msg_line = 1464; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_null_inode: 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_md_ops)->m_null_inode == (unsigned long )((int (*)(struct obd_export * , struct lu_fid const * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_null_inode"; msgdata___1.msg_line = 1464; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_null_inode: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 1U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_null_inode"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1465; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_null_inode))(exp, fid); return (rc); } } __inline static int md_get_lustre_md(struct obd_export *exp , struct ptlrpc_request *req , struct obd_export *dt_exp , struct obd_export *md_exp , struct lustre_md *md ) { 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 ; int tmp___3 ; { if ((unsigned long )exp == (unsigned long )((struct obd_export *)0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_get_lustre_md"; msgdata.msg_line = 1658; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_get_lustre_md: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_get_lustre_md"; msgdata___0.msg_line = 1658; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_get_lustre_md: 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_md_ops)->m_get_lustre_md == (unsigned long )((int (*)(struct obd_export * , struct ptlrpc_request * , struct obd_export * , struct obd_export * , struct lustre_md * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_get_lustre_md"; msgdata___1.msg_line = 1658; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_get_lustre_md: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 20U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_get_lustre_md"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1659; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } tmp___3 = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_get_lustre_md))(exp, req, dt_exp, md_exp, md); return (tmp___3); } } __inline static int md_free_lustre_md(struct obd_export *exp , struct lustre_md *md ) { 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 ; int tmp___3 ; { if ((unsigned long )exp == (unsigned long )((struct obd_export *)0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_free_lustre_md"; msgdata.msg_line = 1666; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_free_lustre_md: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_free_lustre_md"; msgdata___0.msg_line = 1666; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_free_lustre_md: 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_md_ops)->m_free_lustre_md == (unsigned long )((int (*)(struct obd_export * , struct lustre_md * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_free_lustre_md"; msgdata___1.msg_line = 1666; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_free_lustre_md: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 21U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_free_lustre_md"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1667; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } tmp___3 = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_free_lustre_md))(exp, md); return (tmp___3); } } extern void class_uuid_unparse(__u8 * , struct obd_uuid * ) ; extern int bdi_init(struct backing_dev_info * ) ; extern void bdi_destroy(struct backing_dev_info * ) ; extern int bdi_register(struct backing_dev_info * , struct device * , char const * , ...) ; extern int lustre_common_put_super(struct super_block * ) ; extern int lustre_process_log(struct super_block * , char * , struct config_llog_instance * ) ; extern int lustre_end_log(struct super_block * , char * , struct config_llog_instance * ) ; __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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../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/llite/../include/obd_cksum.h"; msgdata___0.msg_fn = "cksum_obd2cfs"; msgdata___0.msg_subsys = 128; 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 cksum_type_t cksum_types_supported_client(void) { cksum_type_t ret ; struct libcfs_debug_msg_data msgdata ; unsigned char tmp ; int tmp___0 ; unsigned char tmp___1 ; int tmp___2 ; unsigned char tmp___3 ; int tmp___4 ; int tmp___5 ; unsigned char tmp___6 ; int tmp___7 ; unsigned char tmp___8 ; int tmp___9 ; { ret = 2; tmp___5 = cfs_cdebug_show(64U, 128U); if (tmp___5 != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/obd_cksum.h"; msgdata.msg_fn = "cksum_types_supported_client"; msgdata.msg_line = 126; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; tmp = cksum_obd2cfs(2); tmp___0 = cfs_crypto_hash_speed((int )tmp); tmp___1 = cksum_obd2cfs(4); tmp___2 = cfs_crypto_hash_speed((int )tmp___1); tmp___3 = cksum_obd2cfs(1); tmp___4 = cfs_crypto_hash_speed((int )tmp___3); libcfs_debug_msg(& msgdata, "Crypto hash speed: crc %d, crc32c %d, adler %d\n", tmp___4, tmp___2, tmp___0); } else { } tmp___6 = cksum_obd2cfs(4); tmp___7 = cfs_crypto_hash_speed((int )tmp___6); if (tmp___7 > 0) { ret = (cksum_type_t )((unsigned int )ret | 4U); } else { } tmp___8 = cksum_obd2cfs(1); tmp___9 = cfs_crypto_hash_speed((int )tmp___8); if (tmp___9 > 0) { ret = (cksum_type_t )((unsigned int )ret | 1U); } else { } return (ret); } } __inline static void posix_acl_release(struct posix_acl *acl ) { int tmp ; { if ((unsigned long )acl != (unsigned long )((struct posix_acl *)0)) { tmp = atomic_dec_and_test(& acl->__annonCompField124.a_refcount); if (tmp != 0) { kfree_call_rcu(& acl->__annonCompField124.a_rcu, (void (*)(struct callback_head * ))0); } else { } } else { } return; } } struct ccc_object *cl_inode2ccc(struct inode *inode ) ; int cl_setattr_ost(struct inode *inode , struct iattr const *attr , struct obd_capa *capa ) ; int cl_file_inode_init(struct inode *inode , struct lustre_md *md ) ; void cl_inode_fini(struct inode *inode ) ; __u32 cl_fid_build_gen(struct lu_fid const *fid ) ; int cl_ocd_update(struct obd_device *host , struct obd_device *watched , enum obd_notify_event ev , void *owner , void *data ) ; __inline static void ll_layout_version_set(struct ll_inode_info *lli , __u32 gen ) { { spin_lock(& lli->lli_layout_lock); lli->lli_layout_gen = gen; spin_unlock(& lli->lli_layout_lock); return; } } int ll_xattr_cache_destroy(struct inode *inode ) ; struct kmem_cache *ll_file_data_slab ; struct dentry *llite_root ; struct kset *llite_kset ; void ll_i2gids(__u32 *suppgids , struct inode *i1 , struct inode *i2 ) ; int ldebugfs_register_mountpoint(struct dentry *parent , struct super_block *sb , char *osc , char *mdc ) ; void ldebugfs_unregister_mountpoint(struct ll_sb_info *sbi ) ; void lprocfs_llite_init_vars(struct lprocfs_static_vars *lvars ) ; struct inode_operations const ll_dir_inode_operations ; struct inode_operations const ll_special_inode_operations ; struct inode *ll_iget(struct super_block *sb , ino_t hash , struct lustre_md *md ) ; struct address_space_operations const ll_aops ; struct super_operations lustre_super_operations ; void ll_lli_init(struct ll_inode_info *lli ) ; int ll_fill_super(struct super_block *sb , struct vfsmount *mnt ) ; void ll_put_super(struct super_block *sb ) ; void ll_kill_super(struct super_block *sb ) ; struct inode *ll_inode_from_resource_lock(struct ldlm_lock *lock ) ; void ll_clear_inode(struct inode *inode ) ; int ll_statfs(struct dentry *de , struct kstatfs *sfs ) ; int ll_statfs_internal(struct super_block *sb , struct obd_statfs *osfs , __u64 max_age , __u32 flags ) ; void ll_update_inode(struct inode *inode , struct lustre_md *md ) ; void ll_read_inode2(struct inode *inode , void *opaque ) ; void ll_delete_inode(struct inode *inode ) ; void ll_umount_begin(struct super_block *sb ) ; int ll_remount_fs(struct super_block *sb , int *flags , char *data ) ; int ll_show_options(struct seq_file *seq , struct dentry *dentry ) ; void ll_dirty_page_discard_warn(struct page *page , int ioret ) ; int ll_get_max_cookiesize(struct ll_sb_info *sbi , int *lmmsize ) ; int ll_get_default_cookiesize(struct ll_sb_info *sbi , int *lmmsize ) ; int ll_process_config(struct lustre_cfg *lcfg ) ; struct export_operations lustre_export_operations ; __u32 get_uuid2int(char const *name , int len ) ; void get_uuid2fsid(char const *name , int len , __kernel_fsid_t *fsid ) ; struct inode_operations ll_fast_symlink_inode_operations ; void free_rmtperm_hash(struct hlist_head *hash ) ; int ll_update_remote_perm(struct inode *inode , struct mdt_remote_perm *perm ) ; struct obd_capa *ll_add_capa(struct inode *inode , struct obd_capa *ocapa ) ; void ll_truncate_free_capa(struct obd_capa *ocapa ) ; void ll_clear_inode_capas(struct inode *inode ) ; void ll_print_capa_stat(struct ll_sb_info *sbi ) ; int cl_sb_init(struct super_block *sb ) ; int cl_sb_fini(struct super_block *sb ) ; void rct_init(struct rmtacl_ctl_table *rct ) ; void rct_fini(struct rmtacl_ctl_table *rct ) ; void et_init(struct eacl_table *et ) ; void et_fini(struct eacl_table *et ) ; static struct list_head ll_super_blocks = {& ll_super_blocks, & ll_super_blocks}; static spinlock_t ll_sb_lock = {{{{{0}}, 3735899821U, 4294967295U, (void *)-1, {0, {0, 0}, "ll_sb_lock", 0, 0UL}}}}; static struct ll_sb_info *ll_init_sbi(struct super_block *sb ) { struct ll_sb_info *sbi ; unsigned long pages ; unsigned long lru_page_max ; struct sysinfo si ; class_uuid_t uuid ; int i ; void *tmp ; struct lock_class_key __key ; struct lock_class_key __key___0 ; struct lock_class_key __key___1 ; struct lock_class_key __key___2 ; struct lock_class_key __key___3 ; unsigned long _min1 ; unsigned long _min2 ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct lock_class_key __key___4 ; struct lock_class_key __key___5 ; { sbi = (struct ll_sb_info *)0; tmp = kzalloc(16728UL, 80U); sbi = (struct ll_sb_info *)tmp; if ((unsigned long )sbi == (unsigned long )((struct ll_sb_info *)0)) { return ((struct ll_sb_info *)0); } else { } spinlock_check(& sbi->ll_lock); __raw_spin_lock_init(& sbi->ll_lock.__annonCompField18.rlock, "&(&sbi->ll_lock)->rlock", & __key); __mutex_init(& sbi->ll_lco.lco_lock, "&sbi->ll_lco.lco_lock", & __key___0); spinlock_check(& sbi->ll_pp_extent_lock); __raw_spin_lock_init(& sbi->ll_pp_extent_lock.__annonCompField18.rlock, "&(&sbi->ll_pp_extent_lock)->rlock", & __key___1); spinlock_check(& sbi->ll_process_lock); __raw_spin_lock_init(& sbi->ll_process_lock.__annonCompField18.rlock, "&(&sbi->ll_process_lock)->rlock", & __key___2); sbi->ll_rw_stats_on = 0; si_meminfo(& si); pages = si.totalram - si.totalhigh; if (pages >> 8 <= 511UL) { lru_page_max = pages / 2UL; } else { lru_page_max = (pages / 4UL) * 3UL; } atomic_set(& sbi->ll_cache.ccc_users, 0); sbi->ll_cache.ccc_lru_max = lru_page_max; atomic_set(& sbi->ll_cache.ccc_lru_left, (int )lru_page_max); spinlock_check(& sbi->ll_cache.ccc_lru_lock); __raw_spin_lock_init(& sbi->ll_cache.ccc_lru_lock.__annonCompField18.rlock, "&(&sbi->ll_cache.ccc_lru_lock)->rlock", & __key___3); INIT_LIST_HEAD(& sbi->ll_cache.ccc_lru); _min1 = pages / 32UL; _min2 = 10240UL; sbi->ll_ra_info.ra_max_pages_per_file = _min1 < _min2 ? _min1 : _min2; sbi->ll_ra_info.ra_max_pages = sbi->ll_ra_info.ra_max_pages_per_file; sbi->ll_ra_info.ra_max_read_ahead_whole_pages = 512UL; INIT_LIST_HEAD(& sbi->ll_conn_chain); INIT_LIST_HEAD(& sbi->ll_orphan_dentry_list); cfs_get_random_bytes((void *)(& uuid), 16); class_uuid_unparse((__u8 *)(& uuid), & sbi->ll_sb_uuid); tmp___0 = cfs_cdebug_show(16777216U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_init_sbi"; msgdata.msg_line = 113; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16777216; libcfs_debug_msg(& msgdata, "generated uuid: %s\n", (char *)(& sbi->ll_sb_uuid.uuid)); } else { } spin_lock(& ll_sb_lock); list_add_tail(& sbi->ll_list, & ll_super_blocks); spin_unlock(& ll_sb_lock); sbi->ll_flags = sbi->ll_flags | 65536; sbi->ll_flags = sbi->ll_flags | 2; sbi->ll_flags = sbi->ll_flags | 1024; i = 0; goto ldv_69951; ldv_69950: spinlock_check(& sbi->ll_rw_extents_info.pp_extents[i].pp_r_hist.oh_lock); __raw_spin_lock_init(& sbi->ll_rw_extents_info.pp_extents[i].pp_r_hist.oh_lock.__annonCompField18.rlock, "&(&sbi->ll_rw_extents_info.pp_extents[i]. pp_r_hist.oh_lock)->rlock", & __key___4); spinlock_check(& sbi->ll_rw_extents_info.pp_extents[i].pp_w_hist.oh_lock); __raw_spin_lock_init(& sbi->ll_rw_extents_info.pp_extents[i].pp_w_hist.oh_lock.__annonCompField18.rlock, "&(&sbi->ll_rw_extents_info.pp_extents[i]. pp_w_hist.oh_lock)->rlock", & __key___5); i = i + 1; ldv_69951: ; if (i <= 10) { goto ldv_69950; } else { } sbi->ll_sa_max = 32U; atomic_set(& sbi->ll_sa_total, 0); atomic_set(& sbi->ll_sa_wrong, 0); atomic_set(& sbi->ll_agl_total, 0); sbi->ll_flags = sbi->ll_flags | 32768; sbi->ll_sb = sb; return (sbi); } } static void ll_free_sbi(struct super_block *sb ) { struct ll_sb_info *sbi ; { sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; if ((unsigned long )sbi != (unsigned long )((struct ll_sb_info *)0)) { spin_lock(& ll_sb_lock); list_del(& sbi->ll_list); spin_unlock(& ll_sb_lock); kfree((void const *)sbi); } else { } return; } } static int client_common_fill_super(struct super_block *sb , char *md , char *dt , struct vfsmount *mnt ) { struct inode *root ; struct ll_sb_info *sbi ; struct obd_device *obd ; struct obd_capa *oc ; struct obd_statfs *osfs ; struct ptlrpc_request *request ; struct obd_connect_data *data ; struct obd_uuid *uuid ; struct md_op_data *op_data ; struct lustre_md lmd ; u64 valid ; int size ; int err ; int checksum ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; void *tmp___0 ; void *tmp___1 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; int tmp___3 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___4 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___5 ; struct cfs_debug_limit_state cdls___3 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___6 ; __u64 tmp___7 ; __u64 tmp___8 ; char *buf ; void *tmp___9 ; struct cfs_debug_limit_state cdls___4 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___10 ; __u64 tmp___11 ; struct cfs_debug_limit_state cdls___5 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___12 ; struct libcfs_debug_msg_data __msg_data ; long tmp___13 ; unsigned long tmp___14 ; struct cfs_debug_limit_state cdls___6 ; struct libcfs_debug_msg_data msgdata___6 ; int tmp___15 ; struct cfs_debug_limit_state cdls___7 ; struct libcfs_debug_msg_data msgdata___7 ; int tmp___16 ; struct cfs_debug_limit_state cdls___8 ; struct libcfs_debug_msg_data msgdata___8 ; int tmp___17 ; struct cfs_debug_limit_state cdls___9 ; struct libcfs_debug_msg_data msgdata___9 ; int tmp___18 ; struct cfs_debug_limit_state cdls___10 ; struct libcfs_debug_msg_data msgdata___10 ; int tmp___19 ; struct cfs_debug_limit_state cdls___11 ; struct libcfs_debug_msg_data msgdata___11 ; int tmp___20 ; struct cfs_debug_limit_state cdls___12 ; struct libcfs_debug_msg_data msgdata___12 ; int tmp___21 ; struct cfs_debug_limit_state cdls___13 ; struct libcfs_debug_msg_data msgdata___13 ; int tmp___22 ; struct cfs_debug_limit_state cdls___14 ; struct libcfs_debug_msg_data msgdata___14 ; int tmp___23 ; cksum_type_t tmp___24 ; int tmp___25 ; int tmp___26 ; struct libcfs_debug_msg_data msgdata___15 ; int tmp___27 ; struct cfs_debug_limit_state cdls___15 ; struct libcfs_debug_msg_data msgdata___16 ; int tmp___28 ; struct cfs_debug_limit_state cdls___16 ; struct libcfs_debug_msg_data msgdata___17 ; int tmp___29 ; struct cfs_debug_limit_state cdls___17 ; struct libcfs_debug_msg_data msgdata___18 ; int tmp___30 ; struct cfs_debug_limit_state cdls___18 ; struct libcfs_debug_msg_data msgdata___19 ; int tmp___31 ; struct cfs_debug_limit_state cdls___19 ; struct libcfs_debug_msg_data msgdata___20 ; int tmp___32 ; int tmp___33 ; struct libcfs_debug_msg_data msgdata___21 ; int tmp___34 ; void *tmp___35 ; struct cfs_debug_limit_state cdls___20 ; struct libcfs_debug_msg_data msgdata___22 ; int tmp___36 ; struct cfs_debug_limit_state cdls___21 ; struct libcfs_debug_msg_data msgdata___23 ; int tmp___37 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___38 ; long tmp___39 ; __u64 tmp___40 ; long tmp___42 ; bool tmp___43 ; struct cfs_debug_limit_state cdls___22 ; struct libcfs_debug_msg_data msgdata___24 ; int tmp___44 ; bool tmp___45 ; struct cfs_debug_limit_state cdls___23 ; struct libcfs_debug_msg_data msgdata___25 ; int tmp___46 ; struct cfs_debug_limit_state cdls___24 ; struct libcfs_debug_msg_data msgdata___26 ; char *tmp___47 ; int tmp___48 ; size_t tmp___49 ; size_t tmp___50 ; { root = (struct inode *)0; sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; oc = (struct obd_capa *)0; osfs = (struct obd_statfs *)0; request = (struct ptlrpc_request *)0; data = (struct obd_connect_data *)0; obd = class_name2obd((char const *)md); if ((unsigned long )obd == (unsigned long )((struct obd_device *)0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "client_common_fill_super"; msgdata.msg_line = 173; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "MD %s: not setup or attached\n", md); } else { } return (-22); } else { } tmp___0 = kzalloc(192UL, 80U); data = (struct obd_connect_data *)tmp___0; if ((unsigned long )data == (unsigned long )((struct obd_connect_data *)0)) { return (-12); } else { } tmp___1 = kzalloc(144UL, 80U); osfs = (struct obd_statfs *)tmp___1; if ((unsigned long )osfs == (unsigned long )((struct obd_statfs *)0)) { kfree((void const *)data); return (-12); } else { } if ((unsigned long )llite_root != (unsigned long )((struct dentry *)0)) { err = ldebugfs_register_mountpoint(llite_root, sb, dt, md); if (err < 0) { tmp___2 = cfs_cdebug_show(131072U, 128U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___0.msg_fn = "client_common_fill_super"; msgdata___0.msg_line = 190; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "could not register mount in /lustre/llite\n"); } else { } } else { } } else { } data->ocd_connect_flags = 7963186145120288ULL; if ((sbi->ll_flags & 4096) != 0) { data->ocd_connect_flags = data->ocd_connect_flags | 8388608ULL; } else { } if ((sbi->ll_flags & 1024) != 0) { data->ocd_connect_flags = data->ocd_connect_flags | 33554432ULL; } else { } data->ocd_connect_flags = data->ocd_connect_flags | 4398046511232ULL; tmp___3 = cfs_fail_check_set___0(2053U, 0U, 0, 0); if (tmp___3 != 0) { data->ocd_connect_flags = data->ocd_connect_flags | 281474976710656ULL; } else { } data->ocd_ibits_known = 63ULL; data->ocd_version = 33767424U; if ((int )sb->s_flags & 1) { data->ocd_connect_flags = data->ocd_connect_flags | 1ULL; } else { } if ((sbi->ll_flags & 8) != 0) { data->ocd_connect_flags = data->ocd_connect_flags | 256ULL; } else { } if ((sbi->ll_flags & 4) != 0) { sbi->ll_fop = & ll_file_operations_flock; } else if ((sbi->ll_flags & 512) != 0) { sbi->ll_fop = & ll_file_operations; } else { sbi->ll_fop = & ll_file_operations_noflock; } data->ocd_connect_flags = data->ocd_connect_flags | 134217728ULL; if ((sbi->ll_flags & 64) != 0) { data->ocd_connect_flags = data->ocd_connect_flags | 131072ULL; } else { } data->ocd_brw_size = 1048576U; err = obd_connect((struct lu_env const *)0, & sbi->ll_md_exp, obd, & sbi->ll_sb_uuid, data, (void *)0); if (err == -16) { tmp___4 = cfs_cdebug_show(33685504U, 128U); if (tmp___4 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___1.msg_fn = "client_common_fill_super"; msgdata___1.msg_line = 250; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 33685504; libcfs_debug_msg(& msgdata___1, "%x-%x: An MDT (md %s) is performing recovery, of which this client is not a part. Please wait for recovery to complete, abort, or time out.\n", 335, 10, md); } else { } goto out; } else if (err != 0) { tmp___5 = cfs_cdebug_show(131072U, 128U); if (tmp___5 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___2.msg_fn = "client_common_fill_super"; msgdata___2.msg_line = 253; msgdata___2.msg_cdls = & cdls___2; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "cannot connect to %s: rc = %d\n", md, err); } else { } goto out; } else { } (sbi->ll_md_exp)->exp_connect_data = *data; err = obd_fid_init((sbi->ll_md_exp)->exp_obd, sbi->ll_md_exp, 1); if (err != 0) { tmp___6 = cfs_cdebug_show(131072U, 128U); if (tmp___6 != 0) { msgdata___3.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___3.msg_fn = "client_common_fill_super"; msgdata___3.msg_line = 263; msgdata___3.msg_cdls = & cdls___3; msgdata___3.msg_mask = 131072; libcfs_debug_msg(& msgdata___3, "%s: Can\'t init metadata layer FID infrastructure, rc = %d\n", (char *)(& ((sbi->ll_md_exp)->exp_obd)->obd_name), err); } else { } goto out_md; } else { } tmp___7 = cfs_time_shift_64(-1); err = obd_statfs((struct lu_env const *)0, sbi->ll_md_exp, osfs, tmp___7, 8U); if (err != 0) { goto out_md_fid; } else { } tmp___8 = exp_connect_flags(sbi->ll_md_exp); valid = tmp___8 & 69793222656ULL; tmp___11 = exp_connect_flags(sbi->ll_md_exp); if (tmp___11 != 0ULL && valid != 69793222656ULL) { tmp___9 = kzalloc(4096UL, 208U); buf = (char *)tmp___9; if ((unsigned long )buf == (unsigned long )((char *)0)) { err = -12; goto out_md_fid; } else { } obd_connect_flags2str(buf, 4096, valid ^ 69793222656ULL, (char *)","); tmp___10 = cfs_cdebug_show(33685504U, 128U); if (tmp___10 != 0) { msgdata___4.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___4.msg_fn = "client_common_fill_super"; msgdata___4.msg_line = 296; msgdata___4.msg_cdls = & cdls___4; msgdata___4.msg_mask = 33685504; libcfs_debug_msg(& msgdata___4, "%x-%x: Server %s does not support feature(s) needed for correct operation of this client (%s). Please upgrade server or downgrade client.\n", 368, 6, (char *)(& ((sbi->ll_md_exp)->exp_obd)->obd_name), buf); } else { } kfree((void const *)buf); err = -71; goto out_md_fid; } else { } size = 192; err = obd_get_info___0((struct lu_env const *)0, sbi->ll_md_exp, 10U, (void *)"conn_data", (__u32 *)(& size), (void *)data, (struct lov_stripe_md *)0); if (err != 0) { tmp___12 = cfs_cdebug_show(131072U, 128U); if (tmp___12 != 0) { msgdata___5.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___5.msg_fn = "client_common_fill_super"; msgdata___5.msg_line = 307; msgdata___5.msg_cdls = & cdls___5; msgdata___5.msg_mask = 131072; libcfs_debug_msg(& msgdata___5, "%s: Get connect data failed: rc = %d\n", (char *)(& ((sbi->ll_md_exp)->exp_obd)->obd_name), err); } else { } goto out_md_fid; } else { } tmp___13 = ldv__builtin_expect(osfs->os_bsize == 0U, 0L); if (tmp___13 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data.msg_fn = "client_common_fill_super"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 311; __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 *)"osfs->os_bsize"); lbug_with_loc(& __msg_data); } else { } sb->s_blocksize = (unsigned long )osfs->os_bsize; tmp___14 = ffz((unsigned long )(~ osfs->os_bsize)); sb->s_blocksize_bits = (unsigned char )tmp___14; sb->s_magic = 198183888UL; sb->s_maxbytes = 9223372036854775807LL; sbi->ll_namelen = osfs->os_namelen; if ((sbi->ll_flags & 8) != 0 && (data->ocd_connect_flags & 256ULL) == 0ULL) { tmp___15 = cfs_cdebug_show(33554432U, 128U); if (tmp___15 != 0) { msgdata___6.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___6.msg_fn = "client_common_fill_super"; msgdata___6.msg_line = 320; msgdata___6.msg_cdls = & cdls___6; msgdata___6.msg_mask = 33554432; libcfs_debug_msg(& msgdata___6, "Disabling user_xattr feature because it is not supported on the server\n"); } else { } sbi->ll_flags = sbi->ll_flags & -9; } else { } if ((data->ocd_connect_flags & 128ULL) != 0ULL) { sb->s_flags = sb->s_flags | 65536UL; sbi->ll_flags = sbi->ll_flags | 16; } else { tmp___16 = cfs_cdebug_show(33554432U, 128U); if (tmp___16 != 0) { msgdata___7.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___7.msg_fn = "client_common_fill_super"; msgdata___7.msg_line = 330; msgdata___7.msg_cdls = & cdls___7; msgdata___7.msg_mask = 33554432; libcfs_debug_msg(& msgdata___7, "client wants to enable acl, but mdt not!\n"); } else { } sb->s_flags = sb->s_flags & 0xfffffffffffeffffUL; sbi->ll_flags = sbi->ll_flags & -17; } if ((data->ocd_connect_flags & 65536ULL) != 0ULL) { if ((sbi->ll_flags & 64) == 0) { sbi->ll_flags = sbi->ll_flags | 64; tmp___17 = cfs_cdebug_show(33554432U, 128U); if (tmp___17 != 0) { msgdata___8.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___8.msg_fn = "client_common_fill_super"; msgdata___8.msg_line = 340; msgdata___8.msg_cdls = & cdls___8; msgdata___8.msg_mask = 33554432; libcfs_debug_msg(& msgdata___8, "client is set as remote by default.\n"); } else { } } else { } } else if ((sbi->ll_flags & 64) != 0) { sbi->ll_flags = sbi->ll_flags & -65; tmp___18 = cfs_cdebug_show(33554432U, 128U); if (tmp___18 != 0) { msgdata___9.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___9.msg_fn = "client_common_fill_super"; msgdata___9.msg_line = 345; msgdata___9.msg_cdls = & cdls___9; msgdata___9.msg_mask = 33554432; libcfs_debug_msg(& msgdata___9, "client claims to be remote, but server rejected, forced to be local.\n"); } else { } } else { } if ((data->ocd_connect_flags & 1048576ULL) != 0ULL) { tmp___19 = cfs_cdebug_show(33554432U, 128U); if (tmp___19 != 0) { msgdata___10.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___10.msg_fn = "client_common_fill_super"; msgdata___10.msg_line = 350; msgdata___10.msg_cdls = & cdls___10; msgdata___10.msg_mask = 33554432; libcfs_debug_msg(& msgdata___10, "client enabled MDS capability!\n"); } else { } sbi->ll_flags = sbi->ll_flags | 128; } else { } if ((data->ocd_connect_flags & 2097152ULL) != 0ULL) { tmp___20 = cfs_cdebug_show(33554432U, 128U); if (tmp___20 != 0) { msgdata___11.msg_subsys = 128; msgdata___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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___11.msg_fn = "client_common_fill_super"; msgdata___11.msg_line = 355; msgdata___11.msg_cdls = & cdls___11; msgdata___11.msg_mask = 33554432; libcfs_debug_msg(& msgdata___11, "client enabled OSS capability!\n"); } else { } sbi->ll_flags = sbi->ll_flags | 256; } else { } if ((data->ocd_connect_flags & 274877906944ULL) != 0ULL) { sbi->ll_flags = sbi->ll_flags | 16384; } else { } if ((data->ocd_connect_flags & 262144ULL) != 0ULL) { sbi->ll_md_brw_size = data->ocd_brw_size; } else { sbi->ll_md_brw_size = 4096U; } if ((data->ocd_connect_flags & 137438953472ULL) != 0ULL) { tmp___21 = cfs_cdebug_show(33554432U, 128U); if (tmp___21 != 0) { msgdata___12.msg_subsys = 128; msgdata___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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___12.msg_fn = "client_common_fill_super"; msgdata___12.msg_line = 368; msgdata___12.msg_cdls = & cdls___12; msgdata___12.msg_mask = 33554432; libcfs_debug_msg(& msgdata___12, "Layout lock feature supported.\n"); } else { } sbi->ll_flags = sbi->ll_flags | 131072; } else { } if ((data->ocd_ibits_known & 32ULL) != 0ULL) { if ((data->ocd_connect_flags & 34359738368ULL) == 0ULL) { tmp___22 = cfs_cdebug_show(33554432U, 128U); if (tmp___22 != 0) { msgdata___13.msg_subsys = 128; msgdata___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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___13.msg_fn = "client_common_fill_super"; msgdata___13.msg_line = 376; msgdata___13.msg_cdls = & cdls___13; msgdata___13.msg_mask = 33554432; libcfs_debug_msg(& msgdata___13, "%s: disabling xattr cache due to unknown maximum xattr size.\n", dt); } else { } } else { sbi->ll_flags = sbi->ll_flags | 524288; sbi->ll_xattr_cache_enabled = 1U; } } else { } obd = class_name2obd((char const *)dt); if ((unsigned long )obd == (unsigned long )((struct obd_device *)0)) { tmp___23 = cfs_cdebug_show(131072U, 128U); if (tmp___23 != 0) { msgdata___14.msg_subsys = 128; msgdata___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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___14.msg_fn = "client_common_fill_super"; msgdata___14.msg_line = 385; msgdata___14.msg_cdls = & cdls___14; msgdata___14.msg_mask = 131072; libcfs_debug_msg(& msgdata___14, "DT %s: not setup or attached\n", dt); } else { } err = -19; goto out_md_fid; } else { } data->ocd_connect_flags = 1208297804072056ULL; if ((sbi->ll_flags & 4096) != 0) { data->ocd_connect_flags = data->ocd_connect_flags | 8388608ULL; } else { } tmp___26 = cfs_fail_check_set___0(1035U, 0U, 0, 0); if (tmp___26 == 0) { data->ocd_connect_flags = data->ocd_connect_flags | 536870912ULL; tmp___25 = cfs_fail_check_set___0(1036U, 0U, 0, 0); if (tmp___25 != 0) { data->ocd_cksum_types = 2U; } else { tmp___24 = cksum_types_supported_client(); data->ocd_cksum_types = (__u32 )tmp___24; } } else { } data->ocd_connect_flags = data->ocd_connect_flags | 33554432ULL; if ((sbi->ll_flags & 64) != 0) { data->ocd_connect_flags = data->ocd_connect_flags | 131072ULL; } else { } tmp___27 = cfs_cdebug_show(1048576U, 128U); if (tmp___27 != 0) { msgdata___15.msg_subsys = 128; msgdata___15.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___15.msg_fn = "client_common_fill_super"; msgdata___15.msg_line = 424; msgdata___15.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___15.msg_mask = 1048576; libcfs_debug_msg(& msgdata___15, "ocd_connect_flags: %#llx ocd_version: %d ocd_grant: %d\n", data->ocd_connect_flags, data->ocd_version, data->ocd_grant); } else { } obd->obd_upcall.onu_owner = (void *)(& sbi->ll_lco); obd->obd_upcall.onu_upcall = & cl_ocd_update; data->ocd_brw_size = 4194304U; err = obd_connect((struct lu_env const *)0, & sbi->ll_dt_exp, obd, & sbi->ll_sb_uuid, data, (void *)0); if (err == -16) { tmp___28 = cfs_cdebug_show(33685504U, 128U); if (tmp___28 != 0) { msgdata___16.msg_subsys = 128; msgdata___16.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___16.msg_fn = "client_common_fill_super"; msgdata___16.msg_line = 435; msgdata___16.msg_cdls = & cdls___15; msgdata___16.msg_mask = 33685504; libcfs_debug_msg(& msgdata___16, "%x-%x: An OST (dt %s) is performing recovery, of which this client is not a part. Please wait for recovery to complete, abort, or time out.\n", 336, 4, dt); } else { } goto out_md; } else if (err != 0) { tmp___29 = cfs_cdebug_show(131072U, 128U); if (tmp___29 != 0) { msgdata___17.msg_subsys = 128; msgdata___17.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___17.msg_fn = "client_common_fill_super"; msgdata___17.msg_line = 439; msgdata___17.msg_cdls = & cdls___16; msgdata___17.msg_mask = 131072; libcfs_debug_msg(& msgdata___17, "%s: Cannot connect to %s: rc = %d\n", (char *)(& ((sbi->ll_dt_exp)->exp_obd)->obd_name), dt, err); } else { } goto out_md; } else { } (sbi->ll_dt_exp)->exp_connect_data = *data; err = obd_fid_init((sbi->ll_dt_exp)->exp_obd, sbi->ll_dt_exp, 1); if (err != 0) { tmp___30 = cfs_cdebug_show(131072U, 128U); if (tmp___30 != 0) { msgdata___18.msg_subsys = 128; msgdata___18.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___18.msg_fn = "client_common_fill_super"; msgdata___18.msg_line = 449; msgdata___18.msg_cdls = & cdls___17; msgdata___18.msg_mask = 131072; libcfs_debug_msg(& msgdata___18, "%s: Can\'t init data layer FID infrastructure, rc = %d\n", (char *)(& ((sbi->ll_dt_exp)->exp_obd)->obd_name), err); } else { } goto out_dt; } else { } mutex_lock_nested(& sbi->ll_lco.lco_lock, 0U); sbi->ll_lco.lco_flags = data->ocd_connect_flags; sbi->ll_lco.lco_md_exp = sbi->ll_md_exp; sbi->ll_lco.lco_dt_exp = sbi->ll_dt_exp; mutex_unlock(& sbi->ll_lco.lco_lock); fid_zero(& sbi->ll_root_fid); err = md_getstatus(sbi->ll_md_exp, & sbi->ll_root_fid, & oc); if (err != 0) { tmp___31 = cfs_cdebug_show(131072U, 128U); if (tmp___31 != 0) { msgdata___19.msg_subsys = 128; msgdata___19.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___19.msg_fn = "client_common_fill_super"; msgdata___19.msg_line = 462; msgdata___19.msg_cdls = & cdls___18; msgdata___19.msg_mask = 131072; libcfs_debug_msg(& msgdata___19, "cannot mds_connect: rc = %d\n", err); } else { } goto out_lock_cn_cb; } else { } tmp___33 = fid_is_sane((struct lu_fid const *)(& sbi->ll_root_fid)); if (tmp___33 == 0) { tmp___32 = cfs_cdebug_show(131072U, 128U); if (tmp___32 != 0) { msgdata___20.msg_subsys = 128; msgdata___20.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___20.msg_fn = "client_common_fill_super"; msgdata___20.msg_line = 468; msgdata___20.msg_cdls = & cdls___19; msgdata___20.msg_mask = 131072; libcfs_debug_msg(& msgdata___20, "%s: Invalid root fid [%#llx:0x%x:0x%x] during mount\n", (char *)(& ((sbi->ll_md_exp)->exp_obd)->obd_name), sbi->ll_root_fid.f_seq, sbi->ll_root_fid.f_oid, sbi->ll_root_fid.f_ver); } else { } err = -22; goto out_lock_cn_cb; } else { } tmp___34 = cfs_cdebug_show(4U, 128U); if (tmp___34 != 0) { msgdata___21.msg_subsys = 128; msgdata___21.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___21.msg_fn = "client_common_fill_super"; msgdata___21.msg_line = 472; msgdata___21.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___21.msg_mask = 4; libcfs_debug_msg(& msgdata___21, "rootfid [%#llx:0x%x:0x%x]\n", sbi->ll_root_fid.f_seq, sbi->ll_root_fid.f_oid, sbi->ll_root_fid.f_ver); } else { } sb->s_op = (struct super_operations const *)(& lustre_super_operations); sb->s_export_op = (struct export_operations const *)(& lustre_export_operations); valid = 2199040126975ULL; if ((sbi->ll_flags & 64) != 0) { valid = valid | 1099511627776ULL; } else if ((sbi->ll_flags & 16) != 0) { valid = valid | 549755813888ULL; } else { } tmp___35 = kzalloc(328UL, 80U); op_data = (struct md_op_data *)tmp___35; if ((unsigned long )op_data == (unsigned long )((struct md_op_data *)0)) { err = -12; goto out_lock_cn_cb; } else { } op_data->op_fid1 = sbi->ll_root_fid; op_data->op_mode = 0U; op_data->op_capa1 = oc; op_data->op_valid = valid; err = md_getattr___0(sbi->ll_md_exp, op_data, & request); if ((unsigned long )oc != (unsigned long )((struct obd_capa *)0)) { capa_put(oc); } else { } kfree((void const *)op_data); if (err != 0) { tmp___36 = cfs_cdebug_show(131072U, 128U); if (tmp___36 != 0) { msgdata___22.msg_subsys = 128; msgdata___22.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___22.msg_fn = "client_common_fill_super"; msgdata___22.msg_line = 504; msgdata___22.msg_cdls = & cdls___20; msgdata___22.msg_mask = 131072; libcfs_debug_msg(& msgdata___22, "%s: md_getattr failed for root: rc = %d\n", (char *)(& ((sbi->ll_md_exp)->exp_obd)->obd_name), err); } else { } goto out_lock_cn_cb; } else { } err = md_get_lustre_md(sbi->ll_md_exp, request, sbi->ll_dt_exp, sbi->ll_md_exp, & lmd); if (err != 0) { tmp___37 = cfs_cdebug_show(131072U, 128U); if (tmp___37 != 0) { msgdata___23.msg_subsys = 128; msgdata___23.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___23.msg_fn = "client_common_fill_super"; msgdata___23.msg_line = 511; msgdata___23.msg_cdls = & cdls___21; msgdata___23.msg_mask = 131072; libcfs_debug_msg(& msgdata___23, "failed to understand root inode md: rc = %d\n", err); } else { } ptlrpc_req_finished(request); goto out_lock_cn_cb; } else { } tmp___38 = fid_is_sane((struct lu_fid const *)(& sbi->ll_root_fid)); tmp___39 = ldv__builtin_expect(tmp___38 == 0, 0L); if (tmp___39 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___0.msg_fn = "client_common_fill_super"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 516; __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 *)"fid_is_sane(&sbi->ll_root_fid)"); lbug_with_loc(& __msg_data___0); } else { } tmp___40 = cl_fid_build_ino((struct lu_fid const *)(& sbi->ll_root_fid), sbi->ll_flags & 8192); root = ll_iget(sb, (ino_t )tmp___40, & lmd); md_free_lustre_md(sbi->ll_md_exp, & lmd); ptlrpc_req_finished(request); if ((unsigned long )root == (unsigned long )((struct inode *)0)) { goto _L; } else { tmp___45 = IS_ERR((void const *)root); if ((int )tmp___45) { _L: /* CIL Label */ if ((unsigned long )lmd.lsm != (unsigned long )((struct lov_stripe_md *)0)) { obd_free_memmd___0(sbi->ll_dt_exp, & lmd.lsm); } else { } if ((unsigned long )lmd.posix_acl != (unsigned long )((struct posix_acl *)0)) { posix_acl_release(lmd.posix_acl); lmd.posix_acl = (struct posix_acl *)0; } else { } tmp___43 = IS_ERR((void const *)root); if ((int )tmp___43) { tmp___42 = PTR_ERR((void const *)root); err = (int )tmp___42; } else { err = -9; } root = (struct inode *)0; tmp___44 = cfs_cdebug_show(131072U, 128U); if (tmp___44 != 0) { msgdata___24.msg_subsys = 128; msgdata___24.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___24.msg_fn = "client_common_fill_super"; msgdata___24.msg_line = 534; msgdata___24.msg_cdls = & cdls___22; msgdata___24.msg_mask = 131072; libcfs_debug_msg(& msgdata___24, "lustre_lite: bad iget4 for root\n"); } else { } goto out_root; } else { } } err = ll_close_thread_start(& sbi->ll_lcq); if (err != 0) { tmp___46 = cfs_cdebug_show(131072U, 128U); if (tmp___46 != 0) { msgdata___25.msg_subsys = 128; msgdata___25.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___25.msg_fn = "client_common_fill_super"; msgdata___25.msg_line = 540; msgdata___25.msg_cdls = & cdls___23; msgdata___25.msg_mask = 131072; libcfs_debug_msg(& msgdata___25, "cannot start close thread: rc %d\n", err); } else { } goto out_root; } else { } if ((sbi->ll_flags & 64) != 0) { rct_init(& sbi->ll_rct); et_init(& sbi->ll_et); } else { } checksum = sbi->ll_flags & 2; err = obd_set_info_async___0((struct lu_env const *)0, sbi->ll_dt_exp, 9U, (void *)"checksum", 4U, (void *)(& checksum), (struct ptlrpc_request_set *)0); cl_sb_init(sb); err = obd_set_info_async___0((struct lu_env const *)0, sbi->ll_dt_exp, 10U, (void *)"cache_set", 120U, (void *)(& sbi->ll_cache), (struct ptlrpc_request_set *)0); sb->s_root = d_make_root(root); if ((unsigned long )sb->s_root == (unsigned long )((struct dentry *)0)) { tmp___48 = cfs_cdebug_show(131072U, 128U); if (tmp___48 != 0) { msgdata___26.msg_subsys = 128; msgdata___26.msg_file = "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___26.msg_fn = "client_common_fill_super"; msgdata___26.msg_line = 564; msgdata___26.msg_cdls = & cdls___24; msgdata___26.msg_mask = 131072; tmp___47 = ll_get_fsname(sb, (char *)0, 0); libcfs_debug_msg(& msgdata___26, "%s: can\'t make root dentry\n", tmp___47); } else { } err = -12; goto out_lock_cn_cb; } else { } sbi->ll_sdev_orig = sb->s_dev; uuid = obd_get_uuid(sbi->ll_md_exp); if ((unsigned long )uuid != (unsigned long )((struct obd_uuid *)0)) { tmp___49 = strlen((char const *)(& uuid->uuid)); sb->s_dev = get_uuid2int((char const *)(& uuid->uuid), (int )tmp___49); tmp___50 = strlen((char const *)(& uuid->uuid)); get_uuid2fsid((char const *)(& uuid->uuid), (int )tmp___50, & sbi->ll_fsid); } else { } kfree((void const *)data); kfree((void const *)osfs); return (err); out_root: iput(root); out_lock_cn_cb: obd_fid_fini((sbi->ll_dt_exp)->exp_obd); out_dt: obd_disconnect(sbi->ll_dt_exp); sbi->ll_dt_exp = (struct obd_export *)0; obd_zombie_barrier(); out_md_fid: obd_fid_fini((sbi->ll_md_exp)->exp_obd); out_md: obd_disconnect(sbi->ll_md_exp); sbi->ll_md_exp = (struct obd_export *)0; out: kfree((void const *)data); kfree((void const *)osfs); ldebugfs_unregister_mountpoint(sbi); return (err); } } int ll_get_max_mdsize(struct ll_sb_info *sbi , int *lmmsize ) { int size ; int rc ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; { *lmmsize = obd_size_diskmd(sbi->ll_dt_exp, (struct lov_stripe_md *)0); size = 4; rc = obd_get_info___0((struct lu_env const *)0, sbi->ll_md_exp, 11U, (void *)"max_easize", (__u32 *)(& size), (void *)lmmsize, (struct lov_stripe_md *)0); if (rc != 0) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_get_max_mdsize"; msgdata.msg_line = 616; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Get max mdsize error rc %d\n", rc); } else { } } else { } return (rc); } } int ll_get_default_mdsize(struct ll_sb_info *sbi , int *lmmsize ) { int size ; int rc ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; { size = 4; rc = obd_get_info___0((struct lu_env const *)0, sbi->ll_md_exp, 15U, (void *)"default_easize", (__u32 *)(& size), (void *)lmmsize, (struct lov_stripe_md *)0); if (rc != 0) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_get_default_mdsize"; msgdata.msg_line = 629; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Get default mdsize error rc %d\n", rc); } else { } } else { } return (rc); } } int ll_get_max_cookiesize(struct ll_sb_info *sbi , int *lmmsize ) { int size ; int rc ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; { size = 4; rc = obd_get_info___0((struct lu_env const *)0, sbi->ll_md_exp, 15U, (void *)"max_cookiesize", (__u32 *)(& size), (void *)lmmsize, (struct lov_stripe_md *)0); if (rc != 0) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_get_max_cookiesize"; msgdata.msg_line = 642; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Get max cookiesize error rc %d\n", rc); } else { } } else { } return (rc); } } int ll_get_default_cookiesize(struct ll_sb_info *sbi , int *lmmsize ) { int size ; int rc ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; { size = 4; rc = obd_get_info___0((struct lu_env const *)0, sbi->ll_md_exp, 19U, (void *)"default_cookiesize", (__u32 *)(& size), (void *)lmmsize, (struct lov_stripe_md *)0); if (rc != 0) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_get_default_cookiesize"; msgdata.msg_line = 655; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Get default cookiesize error rc %d\n", rc); } else { } } else { } return (rc); } } static void client_common_put_super(struct super_block *sb ) { struct ll_sb_info *sbi ; { sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; if ((sbi->ll_flags & 64) != 0) { et_fini(& sbi->ll_et); rct_fini(& sbi->ll_rct); } else { } ll_close_thread_shutdown(sbi->ll_lcq); cl_sb_fini(sb); list_del(& sbi->ll_conn_chain); obd_fid_fini((sbi->ll_dt_exp)->exp_obd); obd_disconnect(sbi->ll_dt_exp); sbi->ll_dt_exp = (struct obd_export *)0; obd_zombie_barrier(); ldebugfs_unregister_mountpoint(sbi); obd_fid_fini((sbi->ll_md_exp)->exp_obd); obd_disconnect(sbi->ll_md_exp); sbi->ll_md_exp = (struct obd_export *)0; return; } } void ll_kill_super(struct super_block *sb ) { struct ll_sb_info *sbi ; { if ((sb->s_flags & 1073741824UL) == 0UL) { return; } else { } sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; if ((unsigned long )sbi != (unsigned long )((struct ll_sb_info *)0)) { sb->s_dev = sbi->ll_sdev_orig; sbi->ll_umounting = 1U; } else { } return; } } __inline static int ll_set_opt(char const *opt , char *data , int fl ) { size_t tmp ; int tmp___0 ; { tmp = strlen(opt); tmp___0 = strncmp(opt, (char const *)data, tmp); if (tmp___0 != 0) { return (0); } else { return (fl); } } } static int ll_options(char *options , int *flags ) { int tmp ; char *s1 ; char *s2 ; 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 ; { s1 = options; if ((unsigned long )options == (unsigned long )((char *)0)) { return (0); } else { } tmp___0 = cfs_cdebug_show(16777216U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_options"; msgdata.msg_line = 726; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16777216; libcfs_debug_msg(& msgdata, "Parsing opts %s\n", options); } else { } goto ldv_70105; ldv_70104: tmp___1 = cfs_cdebug_show(4U, 128U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___0.msg_fn = "ll_options"; msgdata___0.msg_line = 729; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 4; libcfs_debug_msg(& msgdata___0, "next opt=%s\n", s1); } else { } tmp = ll_set_opt("nolock", s1, 1); if (tmp != 0) { *flags = *flags | tmp; goto next; } else { } tmp = ll_set_opt("flock", s1, 4); if (tmp != 0) { *flags = *flags | tmp; goto next; } else { } tmp = ll_set_opt("localflock", s1, 512); if (tmp != 0) { *flags = *flags | tmp; goto next; } else { } tmp = ll_set_opt("noflock", s1, 516); if (tmp != 0) { *flags = *flags & ~ tmp; goto next; } else { } tmp = ll_set_opt("user_xattr", s1, 8); if (tmp != 0) { *flags = *flags | tmp; goto next; } else { } tmp = ll_set_opt("nouser_xattr", s1, 8); if (tmp != 0) { *flags = *flags & ~ tmp; goto next; } else { } tmp = ll_set_opt("remote_client", s1, 64); if (tmp != 0) { *flags = *flags | tmp; goto next; } else { } tmp = ll_set_opt("user_fid2path", s1, 262144); if (tmp != 0) { *flags = *flags | tmp; goto next; } else { } tmp = ll_set_opt("nouser_fid2path", s1, 262144); if (tmp != 0) { *flags = *flags & ~ tmp; goto next; } else { } tmp = ll_set_opt("checksum", s1, 2); if (tmp != 0) { *flags = *flags | tmp; goto next; } else { } tmp = ll_set_opt("nochecksum", s1, 2); if (tmp != 0) { *flags = *flags & ~ tmp; goto next; } else { } tmp = ll_set_opt("lruresize", s1, 1024); if (tmp != 0) { *flags = *flags | tmp; goto next; } else { } tmp = ll_set_opt("nolruresize", s1, 1024); if (tmp != 0) { *flags = *flags & ~ tmp; goto next; } else { } tmp = ll_set_opt("lazystatfs", s1, 2048); if (tmp != 0) { *flags = *flags | tmp; goto next; } else { } tmp = ll_set_opt("nolazystatfs", s1, 2048); if (tmp != 0) { *flags = *flags & ~ tmp; goto next; } else { } tmp = ll_set_opt("som_preview", s1, 4096); if (tmp != 0) { *flags = *flags | tmp; goto next; } else { } tmp = ll_set_opt("32bitapi", s1, 8192); if (tmp != 0) { *flags = *flags | tmp; goto next; } else { } tmp = ll_set_opt("verbose", s1, 65536); if (tmp != 0) { *flags = *flags | tmp; goto next; } else { } tmp = ll_set_opt("noverbose", s1, 65536); if (tmp != 0) { *flags = *flags & ~ tmp; goto next; } else { } tmp___2 = cfs_cdebug_show(33685504U, 128U); if (tmp___2 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___1.msg_fn = "ll_options"; msgdata___1.msg_line = 827; msgdata___1.msg_cdls = & cdls; msgdata___1.msg_mask = 33685504; libcfs_debug_msg(& msgdata___1, "%x-%x: Unknown option \'%s\', won\'t mount.\n", 338, 6, s1); } else { } return (-22); next: s2 = strchr((char const *)s1, 44); if ((unsigned long )s2 == (unsigned long )((char *)0)) { goto ldv_70103; } else { } s1 = s2 + 1UL; ldv_70105: ; if ((int )((signed char )*s1) != 0) { goto ldv_70104; } else { } ldv_70103: ; return (0); } } void ll_lli_init(struct ll_inode_info *lli ) { struct lock_class_key __key ; struct lock_class_key __key___0 ; struct lock_class_key __key___1 ; struct lock_class_key __key___2 ; struct lock_class_key __key___3 ; struct lock_class_key __key___4 ; struct lock_class_key __key___5 ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct lock_class_key __key___6 ; struct lock_class_key __key___7 ; struct lock_class_key __key___8 ; struct lock_class_key __key___9 ; struct lock_class_key __key___10 ; struct lock_class_key __key___11 ; struct lock_class_key __key___12 ; { lli->lli_inode_magic = 287116773U; lli->lli_flags = 0U; lli->lli_ioepoch = 0ULL; lli->u.f.f_maxbytes = 9223372036854775807ULL; spinlock_check(& lli->lli_lock); __raw_spin_lock_init(& lli->lli_lock.__annonCompField18.rlock, "&(&lli->lli_lock)->rlock", & __key); lli->lli_posix_acl = (struct posix_acl *)0; lli->lli_remote_perms = (struct hlist_head *)0; __mutex_init(& lli->lli_rmtperm_mutex, "&lli->lli_rmtperm_mutex", & __key___0); fid_zero(& lli->lli_pfid); INIT_LIST_HEAD(& lli->lli_close_list); INIT_LIST_HEAD(& lli->lli_oss_capas); atomic_set(& lli->lli_open_count, 0); lli->lli_mds_capa = (struct obd_capa *)0; lli->lli_rmtperm_time = 0UL; lli->lli_pending_och = (struct obd_client_handle *)0; lli->lli_mds_read_och = (struct obd_client_handle *)0; lli->lli_mds_write_och = (struct obd_client_handle *)0; lli->lli_mds_exec_och = (struct obd_client_handle *)0; lli->lli_open_fd_read_count = 0ULL; lli->lli_open_fd_write_count = 0ULL; lli->lli_open_fd_exec_count = 0ULL; __mutex_init(& lli->lli_och_mutex, "&lli->lli_och_mutex", & __key___1); spinlock_check(& lli->lli_agl_lock); __raw_spin_lock_init(& lli->lli_agl_lock.__annonCompField18.rlock, "&(&lli->lli_agl_lock)->rlock", & __key___2); lli->lli_has_smd = 0; spinlock_check(& lli->lli_layout_lock); __raw_spin_lock_init(& lli->lli_layout_lock.__annonCompField18.rlock, "&(&lli->lli_layout_lock)->rlock", & __key___3); ll_layout_version_set(lli, 4294967294U); lli->lli_clob = (struct cl_object *)0; __init_rwsem(& lli->lli_xattrs_list_rwsem, "&lli->lli_xattrs_list_rwsem", & __key___4); __mutex_init(& lli->lli_xattrs_enq_lock, "&lli->lli_xattrs_enq_lock", & __key___5); tmp = ldv__builtin_expect((unsigned int )lli->lli_vfs_inode.i_mode == 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data.msg_fn = "ll_lli_init"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 874; __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 *)"lli->lli_vfs_inode.i_mode != 0"); lbug_with_loc(& __msg_data); } else { } if (((int )lli->lli_vfs_inode.i_mode & 61440) == 16384) { __mutex_init(& lli->u.d.d_readdir_mutex, "&lli->lli_readdir_mutex", & __key___6); lli->u.d.d_opendir_key = (void *)0; lli->u.d.d_sai = (struct ll_statahead_info *)0; spinlock_check(& lli->u.d.d_sa_lock); __raw_spin_lock_init(& lli->u.d.d_sa_lock.__annonCompField18.rlock, "&(&lli->u.d.d_sa_lock)->rlock", & __key___7); lli->u.d.d_opendir_pid = 0; } else { __mutex_init(& lli->u.f.f_size_mutex, "&lli->lli_size_mutex", & __key___8); lli->u.f.f_symlink_name = (char *)0; __init_rwsem(& lli->u.f.f_trunc_sem, "&lli->lli_trunc_sem", & __key___9); __mutex_init(& lli->u.f.f_write_mutex, "&lli->lli_write_mutex", & __key___10); __init_rwsem(& lli->u.f.f_glimpse_sem, "&lli->lli_glimpse_sem", & __key___11); lli->u.f.f_glimpse_time = 0UL; INIT_LIST_HEAD(& lli->u.f.f_agl_list); lli->u.f.f_agl_index = 0ULL; lli->u.f.f_async_rc = 0; } __mutex_init(& lli->lli_layout_mutex, "&lli->lli_layout_mutex", & __key___12); return; } } __inline static int ll_bdi_register(struct backing_dev_info *bdi ) { atomic_t ll_bdi_num ; int tmp ; int tmp___0 ; { ll_bdi_num.counter = 0; bdi->name = (char *)"lustre"; tmp = atomic_add_return(1, & ll_bdi_num); tmp___0 = bdi_register(bdi, (struct device *)0, "lustre-%d", tmp); return (tmp___0); } } int ll_fill_super(struct super_block *sb , struct vfsmount *mnt ) { struct lustre_profile *lprof ; struct lustre_sb_info *lsi ; struct ll_sb_info *sbi ; char *dt ; char *md ; char *profilenm ; struct config_llog_instance *cfg ; int err ; struct libcfs_debug_msg_data msgdata ; int tmp ; void *tmp___0 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___2 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___3 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___4 ; { lprof = (struct lustre_profile *)0; lsi = (struct lustre_sb_info *)sb->s_fs_info; dt = (char *)0; md = (char *)0; profilenm = (((struct lustre_sb_info *)sb->s_fs_info)->lsi_lmd)->lmd_profile; tmp = cfs_cdebug_show(2097152U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_fill_super"; msgdata.msg_line = 914; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op: sb %p\n", sb); } else { } tmp___0 = kzalloc(80UL, 80U); cfg = (struct config_llog_instance *)tmp___0; if ((unsigned long )cfg == (unsigned long )((struct config_llog_instance *)0)) { return (-12); } else { } try_module_get(& __this_module); sbi = ll_init_sbi(sb); lsi->lsi_llsbi = sbi; if ((unsigned long )sbi == (unsigned long )((struct ll_sb_info *)0)) { module_put(& __this_module); kfree((void const *)cfg); return (-12); } else { } err = ll_options((lsi->lsi_lmd)->lmd_opts, & sbi->ll_flags); if (err != 0) { goto out_free; } else { } err = bdi_init(& lsi->lsi_bdi); if (err != 0) { goto out_free; } else { } lsi->lsi_flags = lsi->lsi_flags | 4194304; lsi->lsi_bdi.capabilities = 0U; err = ll_bdi_register(& lsi->lsi_bdi); if (err != 0) { goto out_free; } else { } sb->s_bdi = & lsi->lsi_bdi; sb->s_d_op = & ll_d_ops; cfg->cfg_instance = (void *)sb; cfg->cfg_uuid = (lsi->lsi_llsbi)->ll_sb_uuid; cfg->cfg_callback = & class_config_llog_handler; err = lustre_process_log(sb, profilenm, cfg); if (err < 0) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___0.msg_fn = "ll_fill_super"; msgdata___0.msg_line = 956; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "Unable to process log: %d\n", err); } else { } goto out_free; } else { } lprof = class_get_profile((char const *)profilenm); if ((unsigned long )lprof == (unsigned long )((struct lustre_profile *)0)) { tmp___2 = cfs_cdebug_show(33685504U, 128U); if (tmp___2 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___1.msg_fn = "ll_fill_super"; msgdata___1.msg_line = 964; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 33685504; libcfs_debug_msg(& msgdata___1, "%x-%x: The client profile \'%s\' could not be read from the MGS. Does that filesystem exist?\n", 342, 2, profilenm); } else { } err = -22; goto out_free; } else { } tmp___3 = cfs_cdebug_show(16777216U, 128U); if (tmp___3 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___2.msg_fn = "ll_fill_super"; msgdata___2.msg_line = 969; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 16777216; libcfs_debug_msg(& msgdata___2, "Found profile %s: mdc=%s osc=%s\n", profilenm, lprof->lp_md, lprof->lp_dt); } else { } dt = kasprintf(80U, "%s-%p", lprof->lp_dt, cfg->cfg_instance); if ((unsigned long )dt == (unsigned long )((char *)0)) { err = -12; goto out_free; } else { } md = kasprintf(80U, "%s-%p", lprof->lp_md, cfg->cfg_instance); if ((unsigned long )md == (unsigned long )((char *)0)) { err = -12; goto out_free; } else { } err = client_common_fill_super(sb, md, dt, mnt); out_free: kfree((void const *)md); kfree((void const *)dt); if (err != 0) { ll_put_super(sb); } else if ((sbi->ll_flags & 65536) != 0) { tmp___4 = cfs_cdebug_show(33555456U, 128U); if (tmp___4 != 0) { msgdata___3.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___3.msg_fn = "ll_fill_super"; msgdata___3.msg_line = 992; msgdata___3.msg_cdls = & cdls___1; msgdata___3.msg_mask = 33555456; libcfs_debug_msg(& msgdata___3, "Mounted %s\n", profilenm); } else { } } else { } kfree((void const *)cfg); return (err); } } void ll_put_super(struct super_block *sb ) { struct config_llog_instance cfg ; struct config_llog_instance params_cfg ; struct obd_device *obd ; struct lustre_sb_info *lsi ; struct ll_sb_info *sbi ; char *profilenm ; int next ; int force ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; { lsi = (struct lustre_sb_info *)sb->s_fs_info; sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; profilenm = (((struct lustre_sb_info *)sb->s_fs_info)->lsi_lmd)->lmd_profile; force = 1; tmp = cfs_cdebug_show(2097152U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_put_super"; msgdata.msg_line = 1007; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op: sb %p - %s\n", sb, profilenm); } else { } ll_print_capa_stat(sbi); cfg.cfg_instance = (void *)sb; lustre_end_log(sb, profilenm, & cfg); params_cfg.cfg_instance = (void *)sb; lustre_end_log(sb, (char *)"params", & params_cfg); if ((unsigned long )sbi->ll_md_exp != (unsigned long )((struct obd_export *)0)) { obd = class_exp2obd(sbi->ll_md_exp); if ((unsigned long )obd != (unsigned long )((struct obd_device *)0)) { force = (int )obd->obd_force; } else { } } else { } if (force != 0) { next = 0; goto ldv_70165; ldv_70164: obd->obd_force = (unsigned char )force; ldv_70165: obd = class_devices_in_group(& sbi->ll_sb_uuid, & next); if ((unsigned long )obd != (unsigned long )((struct obd_device *)0)) { goto ldv_70164; } else { } } else { } if ((unsigned long )sbi->ll_lcq != (unsigned long )((struct ll_close_queue *)0)) { client_common_put_super(sb); } else { } next = 0; goto ldv_70168; ldv_70167: class_manual_cleanup(obd); ldv_70168: obd = class_devices_in_group(& sbi->ll_sb_uuid, & next); if ((unsigned long )obd != (unsigned long )((struct obd_device *)0)) { goto ldv_70167; } else { } if ((sbi->ll_flags & 65536) != 0) { tmp___0 = cfs_cdebug_show(33555456U, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___0.msg_fn = "ll_put_super"; msgdata___0.msg_line = 1043; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 33555456; libcfs_debug_msg(& msgdata___0, "Unmounted %s\n", (unsigned long )profilenm != (unsigned long )((char *)0) ? profilenm : (char *)""); } else { } } else { } if ((unsigned long )profilenm != (unsigned long )((char *)0)) { class_del_profile((char const *)profilenm); } else { } if ((lsi->lsi_flags & 4194304) != 0) { bdi_destroy(& lsi->lsi_bdi); lsi->lsi_flags = lsi->lsi_flags & -4194305; } else { } ll_free_sbi(sb); lsi->lsi_llsbi = (struct ll_sb_info *)0; lustre_common_put_super(sb); module_put(& __this_module); return; } } struct inode *ll_inode_from_resource_lock(struct ldlm_lock *lock ) { struct inode *inode ; struct ll_inode_info *lli ; struct cfs_debug_limit_state _ldlm_cdls ; struct libcfs_debug_msg_data msgdata ; { inode = (struct inode *)0; lock_res_and_lock(lock); if ((unsigned long )(lock->l_resource)->lr_lvb_inode != (unsigned long )((struct inode *)0)) { lli = ll_i2info((lock->l_resource)->lr_lvb_inode); if (lli->lli_inode_magic == 287116773U) { inode = igrab((lock->l_resource)->lr_lvb_inode); } else { inode = (lock->l_resource)->lr_lvb_inode; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_inode_from_resource_lock"; msgdata.msg_subsys = 128; msgdata.msg_line = 1078; msgdata.msg_mask = 0; msgdata.msg_cdls = & _ldlm_cdls; msgdata.msg_mask = (inode->i_state & 32UL) != 0UL ? 64 : 1024; if ((inode->i_state & 32UL) == 0UL || ((((inode->i_state & 32UL) != 0UL ? 64U : 1024U) & libcfs_debug) != 0U && (libcfs_subsystem_debug & 128U) != 0U)) { _ldlm_lock_debug(lock, & msgdata, "### lr_lvb_inode %p is bogus: magic %08x", (lock->l_resource)->lr_lvb_inode, lli->lli_inode_magic); } else { } inode = (struct inode *)0; } } else { } unlock_res_and_lock(lock); return (inode); } } void ll_clear_inode(struct inode *inode ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___0 ; struct libcfs_debug_msg_data msgdata ; int 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 ll_inode_info *tmp___5 ; struct lu_fid *tmp___6 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___7 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___8 ; struct libcfs_debug_msg_data __msg_data___4 ; long tmp___9 ; struct libcfs_debug_msg_data __msg_data___5 ; long tmp___10 ; struct libcfs_debug_msg_data __msg_data___6 ; int tmp___11 ; long tmp___12 ; struct libcfs_debug_msg_data __msg_data___7 ; long tmp___13 ; struct libcfs_debug_msg_data __msg_data___8 ; int tmp___14 ; long tmp___15 ; { tmp = ll_i2info(inode); lli = tmp; tmp___0 = ll_i2sbi(inode); sbi = tmp___0; tmp___1 = cfs_cdebug_show(2097152U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_clear_inode"; msgdata.msg_line = 1092; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p)\n", inode->i_ino, inode->i_generation, inode); } else { } if (((int )inode->i_mode & 61440) == 16384) { tmp___2 = ldv__builtin_expect((unsigned long )lli->u.d.d_opendir_key != (unsigned long )((void *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data.msg_fn = "ll_clear_inode"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1096; __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 *)"lli->u.d.d_opendir_key == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___3 = ldv__builtin_expect((unsigned long )lli->u.d.d_sai != (unsigned long )((struct ll_statahead_info *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___0.msg_fn = "ll_clear_inode"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 1097; __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 *)"lli->u.d.d_sai == ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } tmp___4 = ldv__builtin_expect(lli->u.d.d_opendir_pid != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___1.msg_fn = "ll_clear_inode"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 1098; __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 *)"lli->u.d.d_opendir_pid == 0"); lbug_with_loc(& __msg_data___1); } else { } } else { } spin_lock(& lli->lli_lock); tmp___5 = ll_i2info(inode); tmp___5->lli_flags = tmp___5->lli_flags & 4294967294U; spin_unlock(& lli->lli_lock); tmp___6 = ll_inode2fid(inode); md_null_inode(sbi->ll_md_exp, (struct lu_fid const *)tmp___6); tmp___7 = ldv__builtin_expect(lli->lli_open_fd_write_count != 0ULL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___2.msg_fn = "ll_clear_inode"; __msg_data___2.msg_subsys = 128; __msg_data___2.msg_line = 1106; __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 *)"!lli->lli_open_fd_write_count"); lbug_with_loc(& __msg_data___2); } else { } tmp___8 = ldv__builtin_expect(lli->lli_open_fd_read_count != 0ULL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___3.msg_fn = "ll_clear_inode"; __msg_data___3.msg_subsys = 128; __msg_data___3.msg_line = 1107; __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 *)"!lli->lli_open_fd_read_count"); lbug_with_loc(& __msg_data___3); } else { } tmp___9 = ldv__builtin_expect(lli->lli_open_fd_exec_count != 0ULL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___4.msg_fn = "ll_clear_inode"; __msg_data___4.msg_subsys = 128; __msg_data___4.msg_line = 1108; __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 *)"!lli->lli_open_fd_exec_count"); lbug_with_loc(& __msg_data___4); } else { } if ((unsigned long )lli->lli_mds_write_och != (unsigned long )((struct obd_client_handle *)0)) { ll_md_real_close(inode, 2U); } else { } if ((unsigned long )lli->lli_mds_exec_och != (unsigned long )((struct obd_client_handle *)0)) { ll_md_real_close(inode, 32U); } else { } if ((unsigned long )lli->lli_mds_read_och != (unsigned long )((struct obd_client_handle *)0)) { ll_md_real_close(inode, 1U); } else { } if (((int )inode->i_mode & 61440) == 40960 && (unsigned long )lli->u.f.f_symlink_name != (unsigned long )((char *)0)) { kfree((void const *)lli->u.f.f_symlink_name); lli->u.f.f_symlink_name = (char *)0; } else { } ll_xattr_cache_destroy(inode); if ((sbi->ll_flags & 64) != 0) { tmp___10 = ldv__builtin_expect((unsigned long )lli->lli_posix_acl != (unsigned long )((struct posix_acl *)0), 0L); if (tmp___10 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___5.msg_fn = "ll_clear_inode"; __msg_data___5.msg_subsys = 128; __msg_data___5.msg_line = 1125; __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 *)"lli->lli_posix_acl == ((void *)0)"); lbug_with_loc(& __msg_data___5); } else { } if ((unsigned long )lli->lli_remote_perms != (unsigned long )((struct hlist_head *)0)) { free_rmtperm_hash(lli->lli_remote_perms); lli->lli_remote_perms = (struct hlist_head *)0; } else { } } else if ((unsigned long )lli->lli_posix_acl != (unsigned long )((struct posix_acl *)0)) { tmp___11 = atomic_read((atomic_t const *)(& (lli->lli_posix_acl)->__annonCompField124.a_refcount)); tmp___12 = ldv__builtin_expect(tmp___11 != 1, 0L); if (tmp___12 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___6.msg_fn = "ll_clear_inode"; __msg_data___6.msg_subsys = 128; __msg_data___6.msg_line = 1133; __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 *)"atomic_read(&lli->lli_posix_acl->a_refcount) == 1"); lbug_with_loc(& __msg_data___6); } else { } tmp___13 = ldv__builtin_expect((unsigned long )lli->lli_remote_perms != (unsigned long )((struct hlist_head *)0), 0L); if (tmp___13 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___7.msg_fn = "ll_clear_inode"; __msg_data___7.msg_subsys = 128; __msg_data___7.msg_line = 1134; __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 *)"lli->lli_remote_perms == ((void *)0)"); lbug_with_loc(& __msg_data___7); } else { } posix_acl_release(lli->lli_posix_acl); lli->lli_posix_acl = (struct posix_acl *)0; } else { } lli->lli_inode_magic = 3735932941U; ll_clear_inode_capas(inode); if (((int )inode->i_mode & 61440) != 16384) { tmp___14 = list_empty((struct list_head const *)(& lli->u.f.f_agl_list)); tmp___15 = ldv__builtin_expect(tmp___14 == 0, 0L); if (tmp___15 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___8.msg_fn = "ll_clear_inode"; __msg_data___8.msg_subsys = 128; __msg_data___8.msg_line = 1143; __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(&lli->u.f.f_agl_list)"); lbug_with_loc(& __msg_data___8); } else { } } else { } cl_inode_fini(inode); lli->lli_has_smd = 0; return; } } static int ll_md_setattr(struct dentry *dentry , struct md_op_data *op_data , struct md_open_data **mod ) { struct lustre_md md ; struct inode *inode ; struct inode *tmp ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___0 ; struct ptlrpc_request *request ; int rc ; int ia_valid ; long tmp___1 ; bool tmp___2 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___3 ; { tmp = d_inode((struct dentry const *)dentry); inode = tmp; tmp___0 = ll_i2sbi(inode); sbi = tmp___0; request = (struct ptlrpc_request *)0; op_data = ll_prep_md_op_data(op_data, inode, (struct inode *)0, (char const *)0, 0, 0, 16U, (void *)0); tmp___2 = IS_ERR((void const *)op_data); if ((int )tmp___2) { tmp___1 = PTR_ERR((void const *)op_data); return ((int )tmp___1); } else { } rc = md_setattr___0(sbi->ll_md_exp, op_data, (void *)0, 0, (void *)0, 0, & request, mod); if (rc != 0) { ptlrpc_req_finished(request); if (rc == -2) { clear_nlink(inode); if (((int )inode->i_mode & 61440) != 32768 && ((int )inode->i_mode & 61440) != 16384) { ia_valid = (int )op_data->op_attr.ia_valid; op_data->op_attr.ia_valid = op_data->op_attr.ia_valid & 4294901375U; rc = simple_setattr(dentry, & op_data->op_attr); op_data->op_attr.ia_valid = (unsigned int )ia_valid; } else { } } else if ((rc != -1 && rc != -13) && rc != -26) { tmp___3 = cfs_cdebug_show(131072U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_md_setattr"; msgdata.msg_line = 1183; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "md_setattr fails: rc = %d\n", rc); } else { } } else { } return (rc); } else { } rc = md_get_lustre_md(sbi->ll_md_exp, request, sbi->ll_dt_exp, sbi->ll_md_exp, & md); if (rc != 0) { ptlrpc_req_finished(request); return (rc); } else { } ia_valid = (int )op_data->op_attr.ia_valid; op_data->op_attr.ia_valid = op_data->op_attr.ia_valid & 4294901367U; rc = simple_setattr(dentry, & op_data->op_attr); op_data->op_attr.ia_valid = (unsigned int )ia_valid; op_data->op_handle = (md.body)->handle; op_data->op_ioepoch = (md.body)->ioepoch; ll_update_inode(inode, & md); ptlrpc_req_finished(request); return (rc); } } static int ll_setattr_done_writing(struct inode *inode , struct md_op_data *op_data , struct md_open_data *mod ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; struct ll_sb_info *tmp___2 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; { tmp = ll_i2info(inode); lli = tmp; rc = 0; tmp___0 = ldv__builtin_expect((unsigned long )op_data == (unsigned long )((struct md_op_data *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data.msg_fn = "ll_setattr_done_writing"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1220; __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 *)"op_data != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } if (((int )inode->i_mode & 61440) != 32768) { return (0); } else { } tmp___1 = cfs_cdebug_show(2U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_setattr_done_writing"; msgdata.msg_line = 1225; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; libcfs_debug_msg(& msgdata, "Epoch %llu closed on [%#llx:0x%x:0x%x] for truncate\n", op_data->op_ioepoch, lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver); } else { } op_data->op_flags = 4U; ll_done_writing_attr(inode, op_data); ll_pack_inode2opdata(inode, op_data, (struct lustre_handle *)0); tmp___2 = ll_i2sbi(inode); rc = md_done_writing(tmp___2->ll_md_exp, op_data, mod); if (rc == -11) { rc = ll_som_update(inode, op_data); } else if (rc != 0) { tmp___3 = cfs_cdebug_show(131072U, 128U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___0.msg_fn = "ll_setattr_done_writing"; msgdata___0.msg_line = 1238; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "inode %lu mdc truncate failed: rc = %d\n", inode->i_ino, rc); } else { } } else { } return (rc); } } static int ll_setattr_ost(struct inode *inode , struct iattr *attr ) { struct obd_capa *capa ; int rc ; { if ((attr->ia_valid & 8U) != 0U) { capa = ll_osscapa_get(inode, 128ULL); } else { capa = ll_mdscapa_get(inode); } rc = cl_setattr_ost(inode, (struct iattr const *)attr, capa); if ((attr->ia_valid & 8U) != 0U) { ll_truncate_free_capa(capa); } else { capa_put(capa); } return (rc); } } int ll_setattr_raw(struct dentry *dentry , struct iattr *attr , bool hsm_import ) { struct inode *inode ; struct inode *tmp ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___0 ; struct md_op_data *op_data ; struct md_open_data *mod ; bool file_is_released ; int rc ; int rc1 ; struct libcfs_debug_msg_data msgdata ; loff_t tmp___1 ; char *tmp___2 ; int tmp___3 ; struct libcfs_debug_msg_data msgdata___0 ; __u64 tmp___4 ; int tmp___5 ; __u64 tmp___6 ; int tmp___7 ; struct task_struct *tmp___8 ; bool tmp___9 ; int tmp___10 ; bool tmp___11 ; int tmp___12 ; struct libcfs_debug_msg_data msgdata___1 ; unsigned long tmp___13 ; int tmp___14 ; void *tmp___15 ; struct obd_export *tmp___16 ; int tmp___17 ; struct lov_stripe_md *lsm ; __u32 gen ; struct ll_sb_info *tmp___18 ; { tmp = d_inode((struct dentry const *)dentry); inode = tmp; tmp___0 = ll_i2info(inode); lli = tmp___0; op_data = (struct md_op_data *)0; mod = (struct md_open_data *)0; file_is_released = 0; rc = 0; rc1 = 0; tmp___3 = cfs_cdebug_show(2097152U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_setattr_raw"; msgdata.msg_line = 1293; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; tmp___1 = i_size_read((struct inode const *)inode); tmp___2 = ll_get_fsname(inode->i_sb, (char *)0, 0); libcfs_debug_msg(& msgdata, "%s: setattr inode %p/fid:[%#llx:0x%x:0x%x] from %llu to %llu, valid %x, hsm_import %d\n", tmp___2, inode, lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, tmp___1, attr->ia_size, attr->ia_valid, (int )hsm_import); } else { } if ((attr->ia_valid & 8U) != 0U) { rc = inode_newsize_ok((struct inode const *)inode, attr->ia_size); if (rc != 0) { return (rc); } else { } tmp___6 = ll_file_maxbytes(inode); if ((unsigned long long )attr->ia_size > tmp___6) { tmp___5 = cfs_cdebug_show(2U, 128U); if (tmp___5 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___0.msg_fn = "ll_setattr_raw"; msgdata___0.msg_line = 1307; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 2; tmp___4 = ll_file_maxbytes(inode); libcfs_debug_msg(& msgdata___0, "file [%#llx:0x%x:0x%x] too large %llu > %llu\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, attr->ia_size, tmp___4); } else { } return (-27); } else { } attr->ia_valid = attr->ia_valid | 96U; } else { } if ((attr->ia_valid & 65920U) != 0U) { tmp___7 = debug_lockdep_rcu_enabled(); tmp___8 = get_current(); tmp___9 = uid_eq((tmp___8->cred)->fsuid, inode->i_uid); if (tmp___9) { tmp___10 = 0; } else { tmp___10 = 1; } if (tmp___10) { tmp___11 = capable(3); if (tmp___11) { tmp___12 = 0; } else { tmp___12 = 1; } if (tmp___12) { return (-1); } else { } } else { } } else { } if ((attr->ia_valid & 64U) != 0U) { attr->ia_ctime = current_kernel_time(); attr->ia_valid = attr->ia_valid | 268435456U; } else { } if ((attr->ia_valid & 128U) == 0U && (attr->ia_valid & 16U) != 0U) { attr->ia_atime = current_kernel_time(); attr->ia_valid = attr->ia_valid | 128U; } else { } if ((attr->ia_valid & 256U) == 0U && (attr->ia_valid & 32U) != 0U) { attr->ia_mtime = current_kernel_time(); attr->ia_valid = attr->ia_valid | 256U; } else { } if ((attr->ia_valid & 96U) != 0U) { tmp___14 = cfs_cdebug_show(2U, 128U); if (tmp___14 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___1.msg_fn = "ll_setattr_raw"; msgdata___1.msg_line = 1340; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 2; tmp___13 = get_seconds(); libcfs_debug_msg(& msgdata___1, "setting mtime %lu, ctime %lu, now = %lu\n", attr->ia_mtime.tv_sec, attr->ia_ctime.tv_sec, tmp___13); } else { } } else { } if ((attr->ia_valid & 8U) != 0U) { attr->ia_valid = attr->ia_valid | 33554432U; spin_lock(& lli->lli_lock); lli->lli_flags = lli->lli_flags | 16U; spin_unlock(& lli->lli_lock); } else { } tmp___15 = kzalloc(328UL, 80U); op_data = (struct md_op_data *)tmp___15; if ((unsigned long )op_data == (unsigned long )((struct md_op_data *)0)) { return (-12); } else { } if (((int )inode->i_mode & 61440) != 16384) { mutex_unlock(& inode->i_mutex); } else { } memcpy((void *)(& op_data->op_attr), (void const *)attr, 80UL); tmp___16 = ll_i2mdexp(inode); tmp___17 = exp_connect_som(tmp___16); if (tmp___17 != 0 && (attr->ia_valid & 296U) != 0U) { op_data->op_flags = 2U; } else { } if (((int )inode->i_mode & 61440) == 32768) { ll_layout_refresh(inode, & gen); lsm = ccc_inode_lsm_get(inode); if ((unsigned long )lsm != (unsigned long )((struct lov_stripe_md *)0) && (int )lsm->lsm_wire.lw_pattern < 0) { file_is_released = 1; } else { } ccc_inode_lsm_put(inode, lsm); } else { } if (((int )file_is_released && (attr->ia_valid & 8U) != 0U) && ! hsm_import) { op_data->op_attr.ia_valid = op_data->op_attr.ia_valid & 4294967287U; } else { } rc = ll_md_setattr(dentry, op_data, & mod); if (rc != 0) { goto out; } else { } if ((int )file_is_released) { if ((attr->ia_valid & 8U) != 0U && ! hsm_import) { rc = -61; } else { rc = 0; } goto out; } else { } if (rc == 0 && ((unsigned int )op_data->op_bias & 512U) != 0U) { spin_lock(& lli->lli_lock); lli->lli_flags = lli->lli_flags & 4294967279U; spin_unlock(& lli->lli_lock); } else { } ll_ioepoch_open(lli, op_data->op_ioepoch); if (((int )inode->i_mode & 61440) != 32768) { rc = 0; goto out; } else { } if ((attr->ia_valid & 440U) != 0U) { if ((attr->ia_valid & 8U) != 0U) { down_write(& lli->u.f.f_trunc_sem); } else { } rc = ll_setattr_ost(inode, attr); if ((attr->ia_valid & 8U) != 0U) { up_write(& lli->u.f.f_trunc_sem); } else { } } else { } out: ; if ((unsigned long )op_data != (unsigned long )((struct md_op_data *)0)) { if (op_data->op_ioepoch != 0ULL) { rc1 = ll_setattr_done_writing(inode, op_data, mod); if (rc == 0) { rc = rc1; } else { } } else { } ll_finish_md_op_data(op_data); } else { } if (((int )inode->i_mode & 61440) != 16384) { mutex_lock_nested(& inode->i_mutex, 0U); if ((attr->ia_valid & 8U) != 0U && ! hsm_import) { inode_dio_wait(inode); } else { } } else { } tmp___18 = ll_i2sbi(inode); ll_stats_ops_tally(tmp___18, (attr->ia_valid & 8U) != 0U ? 16 : 15, 1); return (rc); } } int ll_setattr(struct dentry *de , struct iattr *attr ) { int mode ; struct inode *tmp ; int tmp___0 ; { tmp = d_inode((struct dentry const *)de); mode = (int )tmp->i_mode; if ((attr->ia_valid & 73U) == 73U) { attr->ia_valid = attr->ia_valid | 33554432U; } else { } if ((attr->ia_valid & 521U) == 9U && (((mode & 2048) != 0 && ((int )attr->ia_mode & 2048) == 0) || ((mode & 1032) == 1032 && ((int )attr->ia_mode & 1024) == 0))) { attr->ia_valid = attr->ia_valid | 512U; } else { } if ((((int )attr->ia_valid & 1 && (mode & 2048) != 0) && ((int )attr->ia_mode & 2048) == 0) && (attr->ia_valid & 2048U) == 0U) { attr->ia_valid = attr->ia_valid | 2048U; } else { } if ((((int )attr->ia_valid & 1 && (mode & 1032) == 1032) && ((int )attr->ia_mode & 1024) == 0) && (attr->ia_valid & 4096U) == 0U) { attr->ia_valid = attr->ia_valid | 4096U; } else { } tmp___0 = ll_setattr_raw(de, attr, 0); return (tmp___0); } } int ll_statfs_internal(struct super_block *sb , struct obd_statfs *osfs , __u64 max_age , __u32 flags ) { struct ll_sb_info *sbi ; struct obd_statfs obd_osfs ; 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 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___2 ; { sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; rc = obd_statfs((struct lu_env const *)0, sbi->ll_md_exp, osfs, max_age, flags); if (rc != 0) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_statfs_internal"; msgdata.msg_line = 1493; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "md_statfs fails: rc = %d\n", rc); } else { } return (rc); } else { } osfs->os_type = (__u64 )sb->s_magic; tmp___0 = cfs_cdebug_show(4U, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___0.msg_fn = "ll_statfs_internal"; msgdata___0.msg_line = 1501; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 4; libcfs_debug_msg(& msgdata___0, "MDC blocks %llu/%llu objects %llu/%llu\n", osfs->os_bavail, osfs->os_blocks, osfs->os_ffree, osfs->os_files); } else { } if ((sbi->ll_flags & 2048) != 0) { flags = flags | 1U; } else { } rc = obd_statfs_rqset(sbi->ll_dt_exp, & obd_osfs, max_age, flags); if (rc != 0) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___1.msg_fn = "ll_statfs_internal"; msgdata___1.msg_line = 1508; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_statfs fails: rc = %d\n", rc); } else { } return (rc); } else { } tmp___2 = cfs_cdebug_show(4U, 128U); if (tmp___2 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___2.msg_fn = "ll_statfs_internal"; msgdata___2.msg_line = 1514; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 4; libcfs_debug_msg(& msgdata___2, "OSC blocks %llu/%llu objects %llu/%llu\n", obd_osfs.os_bavail, obd_osfs.os_blocks, obd_osfs.os_ffree, obd_osfs.os_files); } else { } osfs->os_bsize = obd_osfs.os_bsize; osfs->os_blocks = obd_osfs.os_blocks; osfs->os_bfree = obd_osfs.os_bfree; osfs->os_bavail = obd_osfs.os_bavail; if (obd_osfs.os_ffree < osfs->os_ffree) { osfs->os_files = (osfs->os_files - osfs->os_ffree) + obd_osfs.os_ffree; osfs->os_ffree = obd_osfs.os_ffree; } else { } return (rc); } } int ll_statfs(struct dentry *de , struct kstatfs *sfs ) { struct super_block *sb ; struct obd_statfs osfs ; int rc ; struct libcfs_debug_msg_data msgdata ; u64 tmp ; int tmp___0 ; __u64 tmp___1 ; { sb = de->d_sb; tmp___0 = cfs_cdebug_show(2097152U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_statfs"; msgdata.msg_line = 1539; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; tmp = get_jiffies_64(); libcfs_debug_msg(& msgdata, "VFS Op: at %llu jiffies\n", tmp); } else { } ll_stats_ops_tally(((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi, 27, 1); tmp___1 = cfs_time_shift_64(-1); rc = ll_statfs_internal(sb, & osfs, tmp___1, 0U); if (rc != 0) { return (rc); } else { } statfs_unpack(sfs, & osfs); if (0) { goto ldv_70280; sfs->f_bsize = sfs->f_bsize << 1; osfs.os_blocks = osfs.os_blocks >> 1; osfs.os_bfree = osfs.os_bfree >> 1; osfs.os_bavail = osfs.os_bavail >> 1; ldv_70280: ; } else { } sfs->f_blocks = osfs.os_blocks; sfs->f_bfree = osfs.os_bfree; sfs->f_bavail = osfs.os_bavail; sfs->f_fsid = (((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi)->ll_fsid; return (0); } } void ll_inode_size_lock(struct inode *inode ) { struct ll_inode_info *lli ; struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect(((int )inode->i_mode & 61440) == 16384, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data.msg_fn = "ll_inode_size_lock"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1576; __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 *)"!(((inode->i_mode) & 00170000) == 0040000)"); lbug_with_loc(& __msg_data); } else { } lli = ll_i2info(inode); mutex_lock_nested(& lli->u.f.f_size_mutex, 0U); return; } } void ll_inode_size_unlock(struct inode *inode ) { struct ll_inode_info *lli ; { lli = ll_i2info(inode); mutex_unlock(& lli->u.f.f_size_mutex); return; } } void ll_update_inode(struct inode *inode , struct lustre_md *md ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct mdt_body *body ; struct lov_stripe_md *lsm ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; __u64 tmp___2 ; struct libcfs_debug_msg_data msgdata ; int tmp___3 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___4 ; int _min1 ; int _min2 ; int tmp___5 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___6 ; long tmp___7 ; int tmp___8 ; struct libcfs_debug_msg_data __msg_data___2 ; __u64 tmp___9 ; long tmp___10 ; struct lustre_handle lockh ; ldlm_mode_t mode ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___11 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___12 ; struct obd_export *tmp___13 ; int tmp___14 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___15 ; struct libcfs_debug_msg_data __msg_data___4 ; long tmp___16 ; { tmp = ll_i2info(inode); lli = tmp; body = md->body; lsm = md->lsm; tmp___0 = ll_i2sbi(inode); sbi = tmp___0; tmp___1 = ldv__builtin_expect((long )(((unsigned long )lsm != (unsigned long )((struct lov_stripe_md *)0)) ^ ((body->valid & 131072ULL) != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data.msg_fn = "ll_update_inode"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1597; __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 *)"(lsm != ((void *)0)) == ((body->valid & (0x00020000ULL)) != 0)"); lbug_with_loc(& __msg_data); } else { } if ((unsigned long )lsm != (unsigned long )((struct lov_stripe_md *)0)) { if (! lli->lli_has_smd && (sbi->ll_flags & 131072) == 0) { cl_file_inode_init(inode, md); } else { } lli->u.f.f_maxbytes = lsm->lsm_maxbytes; if ((long )lli->u.f.f_maxbytes < 0L) { lli->u.f.f_maxbytes = 9223372036854775807ULL; } else { } } else { } if ((sbi->ll_flags & 64) != 0) { if ((body->valid & 1099511627776ULL) != 0ULL) { ll_update_remote_perm(inode, md->remote_perm); } else { } } else if ((body->valid & 549755813888ULL) != 0ULL) { spin_lock(& lli->lli_lock); if ((unsigned long )lli->lli_posix_acl != (unsigned long )((struct posix_acl *)0)) { posix_acl_release(lli->lli_posix_acl); } else { } lli->lli_posix_acl = md->posix_acl; spin_unlock(& lli->lli_lock); } else { } tmp___2 = cl_fid_build_ino((struct lu_fid const *)(& body->fid1), sbi->ll_flags & 8192); inode->i_ino = (unsigned long )tmp___2; inode->i_generation = cl_fid_build_gen((struct lu_fid const *)(& body->fid1)); if ((body->valid & 2ULL) != 0ULL) { if (body->atime > (long long )inode->i_atime.tv_sec) { inode->i_atime.tv_sec = (__kernel_time_t )body->atime; } else { } lli->lli_lvb.lvb_atime = body->atime; } else { } if ((body->valid & 4ULL) != 0ULL) { if (body->mtime > (long long )inode->i_mtime.tv_sec) { tmp___3 = cfs_cdebug_show(2U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_update_inode"; msgdata.msg_line = 1634; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; libcfs_debug_msg(& msgdata, "setting ino %lu mtime from %lu to %llu\n", inode->i_ino, inode->i_mtime.tv_sec, body->mtime); } else { } inode->i_mtime.tv_sec = (__kernel_time_t )body->mtime; } else { } lli->lli_lvb.lvb_mtime = body->mtime; } else { } if ((body->valid & 8ULL) != 0ULL) { if (body->ctime > (long long )inode->i_ctime.tv_sec) { inode->i_ctime.tv_sec = (__kernel_time_t )body->ctime; } else { } lli->lli_lvb.lvb_ctime = body->ctime; } else { } if ((body->valid & 128ULL) != 0ULL) { inode->i_mode = ((unsigned int )inode->i_mode & 61440U) | ((unsigned int )((umode_t )body->mode) & 4095U); } else { } if ((body->valid & 256ULL) != 0ULL) { inode->i_mode = ((unsigned int )inode->i_mode & 4095U) | ((unsigned int )((umode_t )body->mode) & 61440U); } else { } tmp___4 = ldv__builtin_expect((unsigned int )inode->i_mode == 0U, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___0.msg_fn = "ll_update_inode"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 1648; __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 *)"inode->i_mode != 0"); lbug_with_loc(& __msg_data___0); } else { } if (((int )inode->i_mode & 61440) == 32768) { _min1 = 23; _min2 = 22; inode->i_blkbits = (unsigned int )(_min1 < _min2 ? _min1 : _min2); } else { inode->i_blkbits = (unsigned int )(inode->i_sb)->s_blocksize_bits; } if ((body->valid & 512ULL) != 0ULL) { inode->i_uid = make_kuid(& init_user_ns, body->uid); } else { } if ((body->valid & 1024ULL) != 0ULL) { inode->i_gid = make_kgid(& init_user_ns, body->gid); } else { } if ((body->valid & 2048ULL) != 0ULL) { tmp___5 = ll_ext_to_inode_flags((int )body->flags); inode->i_flags = (unsigned int )tmp___5; } else { } if ((body->valid & 8192ULL) != 0ULL) { set_nlink(inode, body->nlink); } else { } if ((body->valid & 65536ULL) != 0ULL) { inode->i_rdev = old_decode_dev((int )((u16 )body->rdev)); } else { } if ((int )body->valid & 1) { tmp___8 = fid_is_sane((struct lu_fid const *)(& lli->lli_fid)); if (tmp___8 != 0) { tmp___6 = lu_fid_eq((struct lu_fid const *)(& lli->lli_fid), (struct lu_fid const *)(& body->fid1)); tmp___7 = ldv__builtin_expect(tmp___6 == 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___1.msg_fn = "ll_update_inode"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 1672; __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: Trying to change FID [%#llx:0x%x:0x%x] to the [%#llx:0x%x:0x%x], inode %lu/%u(%p)\n", (char *)"lu_fid_eq(&lli->lli_fid, &body->fid1)", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, body->fid1.f_seq, body->fid1.f_oid, body->fid1.f_ver, inode->i_ino, inode->i_generation, inode); lbug_with_loc(& __msg_data___1); } else { } } else { lli->lli_fid = body->fid1; } } else { } tmp___9 = fid_seq((struct lu_fid const *)(& lli->lli_fid)); tmp___10 = ldv__builtin_expect(tmp___9 == 0ULL, 0L); if (tmp___10 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___2.msg_fn = "ll_update_inode"; __msg_data___2.msg_subsys = 128; __msg_data___2.msg_line = 1677; __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 *)"fid_seq(&lli->lli_fid) != 0"); lbug_with_loc(& __msg_data___2); } else { } if ((body->valid & 16ULL) != 0ULL) { tmp___13 = ll_i2mdexp(inode); tmp___14 = exp_connect_som(tmp___13); if (tmp___14 != 0 && ((int )inode->i_mode & 61440) == 32768) { mode = ll_take_md_lock(inode, 2ULL, & lockh, 17179869184ULL, 30); if ((unsigned int )mode != 0U) { if ((lli->lli_flags & 14U) != 0U) { tmp___11 = cfs_cdebug_show(131072U, 128U); if (tmp___11 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___0.msg_fn = "ll_update_inode"; msgdata___0.msg_line = 1698; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "ino %lu flags %u still has size authority! do not trust the size got from MDS\n", inode->i_ino, lli->lli_flags); } else { } } else { i_size_write(inode, (loff_t )body->size); spin_lock(& lli->lli_lock); lli->lli_flags = lli->lli_flags | 1U; spin_unlock(& lli->lli_lock); } ldlm_lock_decref(& lockh, (__u32 )mode); } else { } } else { i_size_write(inode, (loff_t )body->size); tmp___12 = cfs_cdebug_show(2097152U, 128U); if (tmp___12 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___1.msg_fn = "ll_update_inode"; msgdata___1.msg_line = 1715; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 2097152; libcfs_debug_msg(& msgdata___1, "inode=%lu, updating i_size %llu\n", inode->i_ino, body->size); } else { } } if ((body->valid & 32ULL) != 0ULL) { inode->i_blocks = (blkcnt_t )body->blocks; } else { } } else { } if ((body->valid & 2199023255552ULL) != 0ULL) { tmp___15 = ldv__builtin_expect((unsigned long )md->mds_capa == (unsigned long )((struct obd_capa *)0), 0L); if (tmp___15 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___3.msg_fn = "ll_update_inode"; __msg_data___3.msg_subsys = 128; __msg_data___3.msg_line = 1723; __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 *)"md->mds_capa"); lbug_with_loc(& __msg_data___3); } else { } ll_add_capa(inode, md->mds_capa); } else { } if ((body->valid & 4398046511104ULL) != 0ULL) { tmp___16 = ldv__builtin_expect((unsigned long )md->oss_capa == (unsigned long )((struct obd_capa *)0), 0L); if (tmp___16 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___4.msg_fn = "ll_update_inode"; __msg_data___4.msg_subsys = 128; __msg_data___4.msg_line = 1727; __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 *)"md->oss_capa"); lbug_with_loc(& __msg_data___4); } else { } ll_add_capa(inode, md->oss_capa); } else { } if ((body->valid & 34359738368ULL) != 0ULL) { if ((int )body->t_state & 1) { lli->lli_flags = lli->lli_flags | 32U; } else { } } else { } return; } } void ll_read_inode2(struct inode *inode , void *opaque ) { struct lustre_md *md ; struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___2 ; { md = (struct lustre_md *)opaque; tmp = ll_i2info(inode); lli = tmp; tmp___0 = cfs_cdebug_show(2097152U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_read_inode2"; msgdata.msg_line = 1743; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=[%#llx:0x%x:0x%x](%p)\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, inode); } else { } tmp___1 = ldv__builtin_expect((long )lli->lli_has_smd, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data.msg_fn = "ll_read_inode2"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1745; __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 *)"!lli->lli_has_smd"); lbug_with_loc(& __msg_data); } else { } inode->i_mtime.tv_sec = 0L; inode->i_atime.tv_sec = 0L; inode->i_ctime.tv_sec = 0L; inode->i_rdev = 0U; ll_update_inode(inode, md); if (((int )inode->i_mode & 61440) == 32768) { tmp___2 = ll_i2sbi(inode); sbi = tmp___2; inode->i_op = (struct inode_operations const *)(& ll_file_inode_operations); inode->i_fop = (struct file_operations const *)sbi->ll_fop; (inode->i_mapping)->a_ops = & ll_aops; } else if (((int )inode->i_mode & 61440) == 16384) { inode->i_op = & ll_dir_inode_operations; inode->i_fop = & ll_dir_operations; } else if (((int )inode->i_mode & 61440) == 40960) { inode->i_op = (struct inode_operations const *)(& ll_fast_symlink_inode_operations); } else { inode->i_op = & ll_special_inode_operations; init_special_inode(inode, (int )inode->i_mode, inode->i_rdev); } return; } } void ll_delete_inode(struct inode *inode ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; { tmp = ll_i2info(inode); lli = tmp; if (((int )inode->i_mode & 61440) == 32768 && (unsigned long )lli->lli_clob != (unsigned long )((struct cl_object *)0)) { cl_sync_file_range(inode, 0LL, -1LL, 2, 1); } else { } truncate_inode_pages_final(& inode->i_data); if (inode->i_data.nrpages != 0UL) { spin_lock_irq(& inode->i_data.tree_lock); spin_unlock_irq(& inode->i_data.tree_lock); tmp___0 = ldv__builtin_expect(inode->i_data.nrpages != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data.msg_fn = "ll_delete_inode"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1797; __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: inode=%lu/%u(%p) nrpages=%lu, see http://jira.whamcloud.com/browse/LU-118\n", (char *)"inode->i_data.nrpages == 0", inode->i_ino, inode->i_generation, inode, inode->i_data.nrpages); lbug_with_loc(& __msg_data); } else { } } else { } ll_clear_inode(inode); clear_inode(inode); return; } } int ll_iocontrol(struct inode *inode , struct file *file , unsigned int cmd , unsigned long arg ) { struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct ptlrpc_request *req ; int rc ; int flags ; struct mdt_body *body ; struct md_op_data *op_data ; long tmp___0 ; bool tmp___1 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; long ret ; int __x___0 ; void *tmp___3 ; int __ret_pu ; int __pu_val ; struct lov_stripe_md *lsm ; struct obd_info oinfo ; struct md_op_data *op_data___0 ; int __ret_gu ; register unsigned long __val_gu ; long tmp___4 ; bool tmp___5 ; int tmp___6 ; bool tmp___7 ; int tmp___8 ; struct libcfs_debug_msg_data __msg_data ; int tmp___9 ; long tmp___10 ; void *tmp___11 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___12 ; int tmp___13 ; int tmp___14 ; int tmp___15 ; long tmp___16 ; struct obd_capa *tmp___17 ; struct ll_inode_info *tmp___18 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___19 ; 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 ; { tmp = ll_i2sbi(inode); sbi = tmp; req = (struct ptlrpc_request *)0; flags = 0; switch (cmd) { case 2148034049U: op_data = ll_prep_md_op_data((struct md_op_data *)0, inode, (struct inode *)0, (char const *)0, 0, 0, 16U, (void *)0); tmp___1 = IS_ERR((void const *)op_data); if ((int )tmp___1) { tmp___0 = PTR_ERR((void const *)op_data); return ((int )tmp___0); } else { } op_data->op_valid = 2048ULL; rc = md_getattr___0(sbi->ll_md_exp, op_data, & req); ll_finish_md_op_data(op_data); if (rc != 0) { tmp___2 = cfs_cdebug_show(131072U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_iocontrol"; msgdata.msg_line = 1827; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "failure %d inode %lu\n", rc, inode->i_ino); } else { } __x___0 = rc; ret = (long )(__x___0 < 0 ? - __x___0 : __x___0); return ((int )(- ((unsigned int )ret))); } else { } tmp___3 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp___3; flags = (int )body->flags; ptlrpc_req_finished(req); __might_fault("/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c", 1837); __pu_val = flags; switch (4UL) { case 1UL: __asm__ volatile ("call __put_user_1": "=a" (__ret_pu): "0" (__pu_val), "c" ((int *)arg): "ebx"); goto ldv_70354; case 2UL: __asm__ volatile ("call __put_user_2": "=a" (__ret_pu): "0" (__pu_val), "c" ((int *)arg): "ebx"); goto ldv_70354; case 4UL: __asm__ volatile ("call __put_user_4": "=a" (__ret_pu): "0" (__pu_val), "c" ((int *)arg): "ebx"); goto ldv_70354; case 8UL: __asm__ volatile ("call __put_user_8": "=a" (__ret_pu): "0" (__pu_val), "c" ((int *)arg): "ebx"); goto ldv_70354; default: __asm__ volatile ("call __put_user_X": "=a" (__ret_pu): "0" (__pu_val), "c" ((int *)arg): "ebx"); goto ldv_70354; } ldv_70354: ; return (__ret_pu); case 1074292226U: 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; __might_fault("/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c", 1844); __asm__ volatile ("call __get_user_%P3": "=a" (__ret_gu), "=r" (__val_gu): "0" ((int *)arg), "i" (4UL)); flags = (int )__val_gu; if (__ret_gu != 0) { return (-14); } else { } op_data___0 = ll_prep_md_op_data((struct md_op_data *)0, inode, (struct inode *)0, (char const *)0, 0, 0, 16U, (void *)0); tmp___5 = IS_ERR((void const *)op_data___0); if ((int )tmp___5) { tmp___4 = PTR_ERR((void const *)op_data___0); return ((int )tmp___4); } else { } ((struct ll_iattr *)(& op_data___0->op_attr))->ia_attr_flags = (unsigned int )flags; op_data___0->op_attr.ia_valid = op_data___0->op_attr.ia_valid | 1024U; rc = md_setattr___0(sbi->ll_md_exp, op_data___0, (void *)0, 0, (void *)0, 0, & req, (struct md_open_data **)0); ll_finish_md_op_data(op_data___0); ptlrpc_req_finished(req); if (rc != 0) { return (rc); } else { } tmp___6 = ll_ext_to_inode_flags(flags); inode->i_flags = (unsigned int )tmp___6; lsm = ccc_inode_lsm_get(inode); tmp___7 = lsm_has_objects(lsm); if (tmp___7) { tmp___8 = 0; } else { tmp___8 = 1; } if (tmp___8) { ccc_inode_lsm_put(inode, lsm); return (0); } else { } tmp___9 = preempt_count(); tmp___10 = ldv__builtin_expect(((unsigned long )tmp___9 & 2096896UL) != 0UL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data.msg_fn = "ll_iocontrol"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1869; __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___11 = ldv_kmem_cache_alloc_189(obdo_cachep, 32848U); oinfo.oi_oa = (struct obdo *)tmp___11; if ((unsigned long )oinfo.oi_oa != (unsigned long )((struct obdo *)0)) { tmp___13 = cfs_fail_check_set___0(3072U, 0U, 0, 0); if (tmp___13 == 0 || obd_alloc_fail_rate == 0U) { tmp___15 = 1; } else { tmp___14 = obd_alloc_fail((void const *)oinfo.oi_oa, "(oinfo.oi_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c", 1869); if (tmp___14 == 0) { tmp___15 = 1; } else { kmem_cache_free(obdo_cachep, (void *)oinfo.oi_oa); oinfo.oi_oa = (struct obdo *)0; tmp___15 = 0; } } } else { tmp___15 = 0; } tmp___16 = ldv__builtin_expect((long )tmp___15, 1L); if (tmp___16 != 0L) { lprocfs_counter_add(obd_memory, 0, 208L); tmp___12 = cfs_cdebug_show(16U, 128U); if (tmp___12 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___0.msg_fn = "ll_iocontrol"; msgdata___0.msg_line = 1869; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; libcfs_debug_msg(& msgdata___0, "slab-alloced \'(oinfo.oi_oa)\': %d at %p.\n", 208, oinfo.oi_oa); } else { } } else { } if ((unsigned long )oinfo.oi_oa == (unsigned long )((struct obdo *)0)) { ccc_inode_lsm_put(inode, lsm); return (-12); } else { } oinfo.oi_md = lsm; (oinfo.oi_oa)->o_oi = lsm->lsm_wire.lw_object_oi; (oinfo.oi_oa)->o_flags = (__u32 )flags; (oinfo.oi_oa)->o_valid = 16779265ULL; tmp___17 = ll_mdscapa_get(inode); oinfo.oi_capa = (void *)tmp___17; tmp___18 = ll_i2info(inode); obdo_set_parent_fid(oinfo.oi_oa, (struct lu_fid const *)(& tmp___18->lli_fid)); rc = obd_setattr_rqset(sbi->ll_dt_exp, & oinfo, (struct obd_trans_info *)0); capa_put((struct obd_capa *)oinfo.oi_capa); tmp___19 = ldv__builtin_expect((unsigned long )oinfo.oi_oa == (unsigned long )((struct obdo *)0), 0L); if (tmp___19 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___0.msg_fn = "ll_iocontrol"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 1883; __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 *)"((oinfo.oi_oa))"); lbug_with_loc(& __msg_data___0); } else { } lprocfs_counter_sub(obd_memory, 0, 208L); tmp___20 = cfs_cdebug_show(16U, 128U); if (tmp___20 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___1.msg_fn = "ll_iocontrol"; msgdata___1.msg_line = 1883; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; libcfs_debug_msg(& msgdata___1, "slab-freed \'((oinfo.oi_oa))\': %d at %p.\n", 208, oinfo.oi_oa); } else { } memset((void *)oinfo.oi_oa, 90, 208UL); kmem_cache_free(obdo_cachep, (void *)oinfo.oi_oa); oinfo.oi_oa = (struct obdo *)3735928559L; ccc_inode_lsm_put(inode, lsm); if ((rc != 0 && rc != -1) && rc != -13) { tmp___21 = cfs_cdebug_show(131072U, 128U); if (tmp___21 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___2.msg_fn = "ll_iocontrol"; msgdata___2.msg_line = 1887; msgdata___2.msg_cdls = & cdls___0; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "osc_setattr_async fails: rc = %d\n", rc); } else { } } else { } return (rc); default: ; return (-38); } return (0); } } int ll_flush_ctx(struct inode *inode ) { struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct task_struct *tmp___1 ; uid_t tmp___2 ; int tmp___3 ; { tmp = ll_i2sbi(inode); sbi = tmp; tmp___3 = cfs_cdebug_show(134217728U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_flush_ctx"; msgdata.msg_line = 1903; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 134217728; tmp___0 = debug_lockdep_rcu_enabled(); tmp___1 = get_current(); tmp___2 = from_kuid(& init_user_ns, (tmp___1->cred)->uid); libcfs_debug_msg(& msgdata, "flush context for user %d\n", tmp___2); } else { } obd_set_info_async___0((struct lu_env const *)0, sbi->ll_md_exp, 10U, (void *)"flush_ctx", 0U, (void *)0, (struct ptlrpc_request_set *)0); obd_set_info_async___0((struct lu_env const *)0, sbi->ll_dt_exp, 10U, (void *)"flush_ctx", 0U, (void *)0, (struct ptlrpc_request_set *)0); return (0); } } void ll_umount_begin(struct super_block *sb ) { struct ll_sb_info *sbi ; struct obd_device *obd ; struct obd_ioctl_data *ioc_data ; struct libcfs_debug_msg_data msgdata ; int tmp ; int tmp___0 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___2 ; void *tmp___3 ; { sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; tmp___0 = cfs_cdebug_show(2097152U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_umount_begin"; msgdata.msg_line = 1922; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; tmp = atomic_read((atomic_t const *)(& sb->s_active)); libcfs_debug_msg(& msgdata, "VFS Op: superblock %p count %d active %d\n", sb, sb->s_count, tmp); } else { } obd = class_exp2obd(sbi->ll_md_exp); if ((unsigned long )obd == (unsigned long )((struct obd_device *)0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___0.msg_fn = "ll_umount_begin"; msgdata___0.msg_line = 1927; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "Invalid MDC connection handle %#llx\n", (sbi->ll_md_exp)->exp_handle.h_cookie); } else { } return; } else { } obd->obd_force = 1U; obd = class_exp2obd(sbi->ll_dt_exp); if ((unsigned long )obd == (unsigned long )((struct obd_device *)0)) { tmp___2 = cfs_cdebug_show(131072U, 128U); if (tmp___2 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___1.msg_fn = "ll_umount_begin"; msgdata___1.msg_line = 1935; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "Invalid LOV connection handle %#llx\n", (sbi->ll_dt_exp)->exp_handle.h_cookie); } else { } return; } else { } obd->obd_force = 1U; tmp___3 = kzalloc(576UL, 80U); ioc_data = (struct obd_ioctl_data *)tmp___3; if ((unsigned long )ioc_data != (unsigned long )((struct obd_ioctl_data *)0)) { obd_iocontrol___0(3221776405U, sbi->ll_md_exp, 576, (void *)ioc_data, (void *)0); obd_iocontrol___0(3221776405U, sbi->ll_dt_exp, 576, (void *)ioc_data, (void *)0); kfree((void const *)ioc_data); } else { } schedule(); return; } } int ll_remount_fs(struct super_block *sb , int *flags , char *data ) { struct ll_sb_info *sbi ; char *profilenm ; int err ; __u32 read_only ; 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 ; { sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; profilenm = (((struct lustre_sb_info *)sb->s_fs_info)->lsi_lmd)->lmd_profile; if ((int )((unsigned long )*flags ^ sb->s_flags) & 1) { read_only = (__u32 )*flags & 1U; err = obd_set_info_async___0((struct lu_env const *)0, sbi->ll_md_exp, 10U, (void *)"read-only", 4U, (void *)(& read_only), (struct ptlrpc_request_set *)0); if (err != 0) { tmp = cfs_cdebug_show(33555456U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_remount_fs"; msgdata.msg_line = 1974; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 33555456; libcfs_debug_msg(& msgdata, "Failed to remount %s %s (%d)\n", profilenm, read_only != 0U ? (char *)"read-only" : (char *)"read-write", err); } else { } return (err); } else { } if (read_only != 0U) { sb->s_flags = sb->s_flags | 1UL; } else { sb->s_flags = sb->s_flags & 0xfffffffffffffffeUL; } if ((sbi->ll_flags & 65536) != 0) { tmp___0 = cfs_cdebug_show(33555456U, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata___0.msg_fn = "ll_remount_fs"; msgdata___0.msg_line = 1985; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 33555456; libcfs_debug_msg(& msgdata___0, "Remounted %s %s\n", profilenm, read_only != 0U ? (char *)"read-only" : (char *)"read-write"); } else { } } else { } } else { } return (0); } } int ll_prep_inode(struct inode **inode , struct ptlrpc_request *req , struct super_block *sb , struct lookup_intent *it ) { struct ll_sb_info *sbi ; struct lustre_md md ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct ll_sb_info *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 ; __u64 tmp___4 ; long tmp___6 ; bool tmp___7 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___8 ; bool tmp___9 ; struct lustre_handle lockh ; struct ldlm_lock *lock ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___10 ; struct cl_object_conf conf ; bool tmp___11 ; struct task_struct *tmp___12 ; { sbi = (struct ll_sb_info *)0; tmp = ldv__builtin_expect((long )((unsigned long )*inode == (unsigned long )((struct inode *)0) && (unsigned long )sb == (unsigned long )((struct super_block *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data.msg_fn = "ll_prep_inode"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1997; __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 *)"*inode || sb"); lbug_with_loc(& __msg_data); } else { } if ((unsigned long )sb != (unsigned long )((struct super_block *)0)) { sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; } else { tmp___0 = ll_i2sbi(*inode); sbi = tmp___0; } rc = md_get_lustre_md(sbi->ll_md_exp, req, sbi->ll_dt_exp, sbi->ll_md_exp, & md); if (rc != 0) { return (rc); } else { } if ((unsigned long )*inode != (unsigned long )((struct inode *)0)) { ll_update_inode(*inode, & md); } else { tmp___1 = ldv__builtin_expect((unsigned long )sb == (unsigned long )((struct super_block *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___0.msg_fn = "ll_prep_inode"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 2007; __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 *)"sb != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } tmp___2 = fid_is_sane((struct lu_fid const *)(& (md.body)->fid1)); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___1.msg_fn = "ll_prep_inode"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 2013; __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 *)"fid_is_sane(&md.body->fid1)"); lbug_with_loc(& __msg_data___1); } else { } tmp___4 = cl_fid_build_ino((struct lu_fid const *)(& (md.body)->fid1), sbi->ll_flags & 8192); *inode = ll_iget(sb, (ino_t )tmp___4, & md); if ((unsigned long )*inode == (unsigned long )((struct inode *)0)) { goto _L; } else { tmp___9 = IS_ERR((void const *)*inode); if ((int )tmp___9) { _L: /* CIL Label */ if ((unsigned long )md.posix_acl != (unsigned long )((struct posix_acl *)0)) { posix_acl_release(md.posix_acl); md.posix_acl = (struct posix_acl *)0; } else { } tmp___7 = IS_ERR((void const *)*inode); if ((int )tmp___7) { tmp___6 = PTR_ERR((void const *)*inode); rc = (int )tmp___6; } else { rc = -12; } *inode = (struct inode *)0; tmp___8 = cfs_cdebug_show(131072U, 128U); if (tmp___8 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_prep_inode"; msgdata.msg_line = 2027; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "new_inode -fatal: rc %d\n", rc); } else { } goto out; } else { } } } if ((unsigned long )it != (unsigned long )((struct lookup_intent *)0) && it->d.lustre.it_lock_mode != 0) { lockh.cookie = it->d.lustre.it_lock_handle; lock = ldlm_handle2lock((struct lustre_handle const *)(& lockh)); tmp___10 = ldv__builtin_expect((unsigned long )lock == (unsigned long )((struct ldlm_lock *)0), 0L); if (tmp___10 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data___2.msg_fn = "ll_prep_inode"; __msg_data___2.msg_subsys = 128; __msg_data___2.msg_line = 2046; __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 != ((void *)0)"); lbug_with_loc(& __msg_data___2); } else { } tmp___11 = ldlm_has_layout(lock); if ((int )tmp___11) { memset((void *)(& conf), 0, 40UL); conf.coc_opc = 0; conf.coc_inode = *inode; conf.coc_lock = lock; conf.u.coc_md = & md; ll_layout_conf(*inode, (struct cl_object_conf const *)(& conf)); } else { } tmp___12 = get_current(); lu_ref_del(& lock->l_reference, "handle", (void const *)tmp___12); ldlm_lock_put(lock); } else { } out: ; if ((unsigned long )md.lsm != (unsigned long )((struct lov_stripe_md *)0)) { obd_free_memmd___0(sbi->ll_dt_exp, & md.lsm); } else { } md_free_lustre_md(sbi->ll_md_exp, & md); return (rc); } } int ll_obd_statfs(struct inode *inode , void *arg ) { struct ll_sb_info *sbi ; struct obd_export *exp ; char *buf ; struct obd_ioctl_data *data ; __u32 type ; __u32 flags ; int len ; int rc ; { sbi = (struct ll_sb_info *)0; buf = (char *)0; data = (struct obd_ioctl_data *)0; len = 0; if ((unsigned long )inode == (unsigned long )((struct inode *)0)) { rc = -22; goto out_statfs; } else { } sbi = ll_i2sbi(inode); if ((unsigned long )sbi == (unsigned long )((struct ll_sb_info *)0)) { rc = -22; goto out_statfs; } else { } rc = obd_ioctl_getdata(& buf, & len, arg); if (rc != 0) { goto out_statfs; } else { } data = (struct obd_ioctl_data *)buf; if ((((unsigned long )data->ioc_inlbuf1 == (unsigned long )((char *)0) || (unsigned long )data->ioc_inlbuf2 == (unsigned long )((char *)0)) || (unsigned long )data->ioc_pbuf1 == (unsigned long )((char *)0)) || (unsigned long )data->ioc_pbuf2 == (unsigned long )((char *)0)) { rc = -22; goto out_statfs; } else { } if (((data->ioc_inllen1 != 4U || data->ioc_inllen2 != 4U) || data->ioc_plen1 != 144U) || data->ioc_plen2 != 40U) { rc = -22; goto out_statfs; } else { } memcpy((void *)(& type), (void const *)data->ioc_inlbuf1, 4UL); if ((int )type & 1) { exp = sbi->ll_md_exp; } else if ((type & 2U) != 0U) { exp = sbi->ll_dt_exp; } else { rc = -19; goto out_statfs; } flags = (type & 4U) != 0U; rc = obd_iocontrol___0(3221776036U, exp, len, (void *)buf, (void *)(& flags)); if (rc != 0) { } else { } out_statfs: ; if ((unsigned long )buf != (unsigned long )((char *)0)) { obd_ioctl_freedata(buf, len); } else { } return (rc); } } int ll_process_config(struct lustre_cfg *lcfg ) { char *ptr ; void *sb ; struct lprocfs_static_vars lvars ; unsigned long x ; int rc ; char *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; { rc = 0; lprocfs_llite_init_vars(& lvars); tmp = lustre_cfg_string(lcfg, 0); ptr = strrchr((char const *)tmp, 45); if ((unsigned long )ptr == (unsigned long )((char *)0)) { return (-22); } else { ptr = ptr + 1; if ((int )((signed char )*ptr) == 0) { return (-22); } else { } } rc = kstrtoul((char const *)ptr, 16U, & x); if (rc != 0) { return (-22); } else { } sb = (void *)x; tmp___0 = ldv__builtin_expect((((struct lustre_sb_info *)((struct super_block *)sb)->s_fs_info)->lsi_lmd)->lmd_magic != 3182214403U, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data.msg_fn = "ll_process_config"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 2146; __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 *)"((struct lustre_sb_info *)(((struct super_block *)sb)->s_fs_info))->lsi_lmd->lmd_magic == 0xbdacbd03"); lbug_with_loc(& __msg_data); } else { } rc = class_process_proc_param((char *)"llite.", lvars.obd_vars, lcfg, sb); if (rc > 0) { rc = 0; } else { } return (rc); } } struct md_op_data *ll_prep_md_op_data(struct md_op_data *op_data , struct inode *i1 , struct inode *i2 , char const *name , int namelen , int mode , __u32 opc , void *data ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; void *tmp___0 ; struct ll_sb_info *tmp___1 ; void *tmp___2 ; void *tmp___3 ; struct lu_fid *tmp___4 ; struct lu_fid *tmp___5 ; unsigned long tmp___6 ; int tmp___7 ; struct task_struct *tmp___8 ; int tmp___9 ; struct task_struct *tmp___10 ; bool tmp___11 ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___12 ; int tmp___13 ; int tmp___14 ; long tmp___15 ; struct ll_inode_info *tmp___16 ; int tmp___17 ; struct ll_inode_info *tmp___18 ; { tmp = ldv__builtin_expect((unsigned long )i1 == (unsigned long )((struct inode *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data.msg_fn = "ll_prep_md_op_data"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 2163; __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 *)"i1 != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ll_i2sbi(i1); if ((unsigned int )namelen > tmp___1->ll_namelen) { tmp___0 = ERR_PTR(-36L); return ((struct md_op_data *)tmp___0); } else { } if ((unsigned long )op_data == (unsigned long )((struct md_op_data *)0)) { tmp___2 = kzalloc(328UL, 80U); op_data = (struct md_op_data *)tmp___2; } else { } if ((unsigned long )op_data == (unsigned long )((struct md_op_data *)0)) { tmp___3 = ERR_PTR(-12L); return ((struct md_op_data *)tmp___3); } else { } ll_i2gids((__u32 *)(& op_data->op_suppgids), i1, i2); tmp___4 = ll_inode2fid(i1); op_data->op_fid1 = *tmp___4; op_data->op_capa1 = ll_mdscapa_get(i1); if ((unsigned long )i2 != (unsigned long )((struct inode *)0)) { tmp___5 = ll_inode2fid(i2); op_data->op_fid2 = *tmp___5; op_data->op_capa2 = ll_mdscapa_get(i2); } else { fid_zero(& op_data->op_fid2); op_data->op_capa2 = (struct obd_capa *)0; } op_data->op_name = name; op_data->op_namelen = namelen; op_data->op_mode = (__u32 )mode; tmp___6 = get_seconds(); op_data->op_mod_time = (s64 )tmp___6; tmp___7 = debug_lockdep_rcu_enabled(); tmp___8 = get_current(); op_data->op_fsuid = from_kuid(& init_user_ns, (tmp___8->cred)->fsuid); tmp___9 = debug_lockdep_rcu_enabled(); tmp___10 = get_current(); op_data->op_fsgid = from_kgid(& init_user_ns, (tmp___10->cred)->fsgid); op_data->op_cap = cfs_curproc_cap_pack(); op_data->op_bias = 0; op_data->op_cli_flags = 0U; if (opc == 8U && (unsigned long )name != (unsigned long )((char const *)0)) { tmp___11 = filename_is_volatile(name, namelen, (int *)0); if ((int )tmp___11) { op_data->op_bias = (enum mds_op_bias )((unsigned int )op_data->op_bias | 1024U); } else { } } else { } op_data->op_opc = opc; op_data->op_mds = 0U; op_data->op_data = data; if ((opc == 8U && (unsigned long )i1 == (unsigned long )i2) && ((int )i2->i_mode & 61440) == 32768) { tmp___16 = ll_i2info(i2); if (tmp___16->lli_has_smd) { tmp___17 = 0; } else { tmp___17 = 1; } if (tmp___17) { tmp___12 = ll_i2info(i2); lli = tmp___12; spin_lock(& lli->lli_lock); if (! lli->lli_has_smd) { tmp___13 = fid_is_zero((struct lu_fid const *)(& lli->lli_pfid)); if (tmp___13 == 0) { tmp___14 = 1; } else { tmp___14 = 0; } } else { tmp___14 = 0; } tmp___15 = ldv__builtin_expect((long )tmp___14, 1L); if (tmp___15 != 0L) { op_data->op_fid1 = lli->lli_pfid; } else { } spin_unlock(& lli->lli_lock); } else { } } else { } tmp___18 = ll_i2info(i1); if ((tmp___18->lli_flags & 16U) != 0U) { op_data->op_bias = (enum mds_op_bias )((unsigned int )op_data->op_bias | 512U); } else { } return (op_data); } } void ll_finish_md_op_data(struct md_op_data *op_data ) { { capa_put(op_data->op_capa1); capa_put(op_data->op_capa2); kfree((void const *)op_data); return; } } int ll_show_options(struct seq_file *seq , struct dentry *dentry ) { struct ll_sb_info *sbi ; struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((long )((unsigned long )seq == (unsigned long )((struct seq_file *)0) || (unsigned long )dentry == (unsigned long )((struct dentry *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; __msg_data.msg_fn = "ll_show_options"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 2234; __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 *)"(seq != ((void *)0)) && (dentry != ((void *)0))"); lbug_with_loc(& __msg_data); } else { } sbi = ((struct lustre_sb_info *)(dentry->d_sb)->s_fs_info)->lsi_llsbi; if (sbi->ll_flags & 1) { seq_puts(seq, ",nolock"); } else { } if ((sbi->ll_flags & 4) != 0) { seq_puts(seq, ",flock"); } else { } if ((sbi->ll_flags & 512) != 0) { seq_puts(seq, ",localflock"); } else { } if ((sbi->ll_flags & 8) != 0) { seq_puts(seq, ",user_xattr"); } else { } if ((sbi->ll_flags & 2048) != 0) { seq_puts(seq, ",lazystatfs"); } else { } if ((sbi->ll_flags & 262144) != 0) { seq_puts(seq, ",user_fid2path"); } else { } return (0); } } int ll_get_obd_name(struct inode *inode , unsigned int cmd , unsigned long arg ) { struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct obd_device *obd ; size_t tmp___0 ; unsigned long tmp___1 ; { tmp = ll_i2sbi(inode); sbi = tmp; if (cmd == 3221776003U) { obd = class_exp2obd(sbi->ll_dt_exp); } else if (cmd == 2155898499U) { obd = class_exp2obd(sbi->ll_md_exp); } else { return (-22); } if ((unsigned long )obd == (unsigned long )((struct obd_device *)0)) { return (-2); } else { } tmp___0 = strlen((char const *)(& obd->obd_name)); tmp___1 = copy_to_user((void *)arg, (void const *)(& obd->obd_name), tmp___0 + 1UL); if (tmp___1 != 0UL) { return (-14); } else { } return (0); } } char *ll_get_fsname(struct super_block *sb , char *buf , int buflen ) { char fsname_static[64U] ; struct lustre_sb_info *lsi ; char *ptr ; int len ; size_t tmp ; int tmp___0 ; long tmp___1 ; { lsi = (struct lustre_sb_info *)sb->s_fs_info; if ((unsigned long )buf == (unsigned long )((char *)0)) { buf = (char *)(& fsname_static); buflen = 64; } else { } tmp = strlen((char const *)(lsi->lsi_lmd)->lmd_profile); len = (int )tmp; ptr = strrchr((char const *)(lsi->lsi_lmd)->lmd_profile, 45); if ((unsigned long )ptr != (unsigned long )((char *)0)) { tmp___0 = strcmp((char const *)ptr, "-client"); if (tmp___0 == 0) { len = len + -7; } else { } } else { } tmp___1 = ldv__builtin_expect(len >= buflen, 0L); if (tmp___1 != 0L) { len = buflen + -1; } else { } strncpy(buf, (char const *)(lsi->lsi_lmd)->lmd_profile, (__kernel_size_t )len); *(buf + (unsigned long )len) = 0; return (buf); } } void ll_dirty_page_discard_warn(struct page *page , int ioret ) { char *buf ; char *path ; struct dentry *dentry ; struct ccc_object *obj ; struct ccc_object *tmp ; unsigned long tmp___0 ; struct libcfs_debug_msg_data msgdata ; char *tmp___3 ; bool tmp___4 ; int tmp___5 ; char *tmp___6 ; int tmp___7 ; { path = (char *)0; dentry = (struct dentry *)0; tmp = cl_inode2ccc((page->__annonCompField36.mapping)->host); obj = tmp; tmp___0 = ldv___get_free_pages_190(32U, 0U); buf = (char *)tmp___0; if ((unsigned long )buf != (unsigned long )((char *)0)) { dentry = d_find_alias((page->__annonCompField36.mapping)->host); if ((unsigned long )dentry != (unsigned long )((struct dentry *)0)) { path = dentry_path_raw(dentry, buf, 4096); } else { } } else { } tmp___7 = cfs_cdebug_show(1024U, 128U); if (tmp___7 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_lib.c"; msgdata.msg_fn = "ll_dirty_page_discard_warn"; msgdata.msg_line = 2335; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 1024; if ((unsigned long )path != (unsigned long )((char *)0)) { tmp___4 = IS_ERR((void const *)path); if (tmp___4) { tmp___5 = 0; } else { tmp___5 = 1; } if (tmp___5) { tmp___3 = path; } else { tmp___3 = (char *)""; } } else { tmp___3 = (char *)""; } tmp___6 = ll_get_fsname(((page->__annonCompField36.mapping)->host)->i_sb, (char *)0, 0); libcfs_debug_msg(& msgdata, "%s: dirty page discard: %s/fid: [%#llx:0x%x:0x%x]/%s may get corrupted (rc %d)\n", tmp___6, (((struct lustre_sb_info *)(((page->__annonCompField36.mapping)->host)->i_sb)->s_fs_info)->lsi_lmd)->lmd_dev, obj->cob_header.coh_lu.loh_fid.f_seq, obj->cob_header.coh_lu.loh_fid.f_oid, obj->cob_header.coh_lu.loh_fid.f_ver, tmp___3, ioret); } else { } if ((unsigned long )dentry != (unsigned long )((struct dentry *)0)) { dput(dentry); } else { } if ((unsigned long )buf != (unsigned long )((char *)0)) { free_pages((unsigned long )buf, 0U); } else { } return; } } int ldv_pskb_expand_head_177(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_179(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_181(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_182(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_183(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_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); } } int ldv_pskb_expand_head_185(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_186(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_187(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_189(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); } } unsigned long ldv___get_free_pages_190(gfp_t flags , unsigned int ldv_func_arg2 ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(4096UL * (1 << ldv_func_arg2)); return ((unsigned long )tmp); } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static void *ERR_PTR(long error ) ; __inline static bool IS_ERR(void const *ptr ) ; __inline static void *ERR_CAST(void const *ptr ) { { return ((void *)ptr); } } __inline static void spin_lock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; struct super_block *lustre_export_operations_group0 ; int ldv_state_variable_54 ; struct dentry *lustre_export_operations_group2 ; struct fid *lustre_export_operations_group1 ; void ldv_initialize_export_operations_54(void) ; extern struct dentry *d_obtain_alias(struct inode * ) ; extern int is_bad_inode(struct inode * ) ; extern struct inode *ilookup5(struct super_block * , unsigned long , int (*)(struct inode * , void * ) , void * ) ; struct sk_buff *ldv_skb_clone_218(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_226(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_220(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_216(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_224(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 ) ; struct sk_buff *ldv___netdev_alloc_skb_221(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , 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 ) ; __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); } } __u32 get_uuid2int(char const *name , int len ) { __u32 key0 ; __u32 key1 ; __u32 key ; char const *tmp ; int tmp___0 ; { key0 = 312737325U; key1 = 934013177U; goto ldv_68270; ldv_68269: tmp = name; name = name + 1; key = ((__u32 )((int )*tmp * 7152373) ^ key0) + key1; if ((int )key < 0) { key = key - 2147483647U; } else { } key1 = key0; key0 = key; ldv_68270: tmp___0 = len; len = len - 1; if (tmp___0 != 0) { goto ldv_68269; } else { } return (key0 << 1); } } void get_uuid2fsid(char const *name , int len , __kernel_fsid_t *fsid ) { __u64 key ; __u64 key0 ; __u64 key1 ; char const *tmp ; int tmp___0 ; { key = 0ULL; key0 = 312737325ULL; key1 = 934013177ULL; goto ldv_68281; ldv_68280: tmp = name; name = name + 1; key = ((__u64 )((int )*tmp * 7152373) ^ key0) + key1; if ((long )key < 0L) { key = key - 9223372036854775807ULL; } else { } key1 = key0; key0 = key; ldv_68281: tmp___0 = len; len = len - 1; if (tmp___0 != 0) { goto ldv_68280; } else { } fsid->val[0] = (int )key; fsid->val[1] = (int )(key >> 32); return; } } static int ll_nfs_test_inode(struct inode *inode , void *opaque ) { struct ll_inode_info *tmp ; int tmp___0 ; { tmp = ll_i2info(inode); tmp___0 = lu_fid_eq((struct lu_fid const *)(& tmp->lli_fid), (struct lu_fid const *)opaque); return (tmp___0); } } struct inode *search_inode_for_lustre(struct super_block *sb , struct lu_fid const *fid ) { struct ll_sb_info *sbi ; struct ptlrpc_request *req ; struct inode *inode ; int eadatalen ; unsigned long hash ; int tmp ; __u64 tmp___0 ; struct md_op_data *op_data ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___5 ; void *tmp___6 ; void *tmp___7 ; { sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; req = (struct ptlrpc_request *)0; inode = (struct inode *)0; eadatalen = 0; tmp = ll_need_32bit_api(sbi); tmp___0 = cl_fid_build_ino(fid, tmp); hash = (unsigned long )tmp___0; tmp___1 = cfs_cdebug_show(64U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_nfs.c"; msgdata.msg_fn = "search_inode_for_lustre"; msgdata.msg_line = 97; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "searching inode for:(%lu,[%#llx:0x%x:0x%x])\n", hash, fid->f_seq, fid->f_oid, fid->f_ver); } else { } inode = ilookup5(sb, hash, & ll_nfs_test_inode, (void *)fid); if ((unsigned long )inode != (unsigned long )((struct inode *)0)) { return (inode); } else { } rc = ll_get_default_mdsize(sbi, & eadatalen); if (rc != 0) { tmp___2 = ERR_PTR((long )rc); return ((struct inode *)tmp___2); } else { } tmp___3 = kzalloc(328UL, 80U); op_data = (struct md_op_data *)tmp___3; if ((unsigned long )op_data == (unsigned long )((struct md_op_data *)0)) { tmp___4 = ERR_PTR(-12L); return ((struct inode *)tmp___4); } else { } op_data->op_fid1 = *fid; op_data->op_mode = (__u32 )eadatalen; op_data->op_valid = 131072ULL; rc = md_getattr___0(sbi->ll_md_exp, op_data, & req); kfree((void const *)op_data); if (rc != 0) { tmp___5 = cfs_cdebug_show(131072U, 128U); if (tmp___5 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_nfs.c"; msgdata___0.msg_fn = "search_inode_for_lustre"; msgdata___0.msg_line = 122; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "can\'t get object attrs, fid [%#llx:0x%x:0x%x], rc %d\n", fid->f_seq, fid->f_oid, fid->f_ver, rc); } else { } tmp___6 = ERR_PTR((long )rc); return ((struct inode *)tmp___6); } else { } rc = ll_prep_inode(& inode, req, sb, (struct lookup_intent *)0); ptlrpc_req_finished(req); if (rc != 0) { tmp___7 = ERR_PTR((long )rc); return ((struct inode *)tmp___7); } else { } return (inode); } } static struct dentry *ll_iget_for_nfs(struct super_block *sb , struct lu_fid *fid , struct lu_fid *parent ) { struct inode *inode ; struct dentry *result ; struct libcfs_debug_msg_data msgdata ; int tmp ; void *tmp___0 ; int tmp___1 ; void *tmp___2 ; bool tmp___3 ; void *tmp___4 ; int tmp___5 ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___6 ; struct ll_inode_info *tmp___7 ; int tmp___8 ; bool tmp___9 ; { tmp = cfs_cdebug_show(64U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_nfs.c"; msgdata.msg_fn = "ll_iget_for_nfs"; msgdata.msg_line = 144; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "Get dentry for fid: [%#llx:0x%x:0x%x]\n", fid->f_seq, fid->f_oid, fid->f_ver); } else { } tmp___1 = fid_is_sane((struct lu_fid const *)fid); if (tmp___1 == 0) { tmp___0 = ERR_PTR(-116L); return ((struct dentry *)tmp___0); } else { } inode = search_inode_for_lustre(sb, (struct lu_fid const *)fid); tmp___3 = IS_ERR((void const *)inode); if ((int )tmp___3) { tmp___2 = ERR_CAST((void const *)inode); return ((struct dentry *)tmp___2); } else { } tmp___5 = is_bad_inode(inode); if (tmp___5 != 0) { iput(inode); tmp___4 = ERR_PTR(-116L); return ((struct dentry *)tmp___4); } else { } if (((int )inode->i_mode & 61440) == 32768) { tmp___7 = ll_i2info(inode); if (tmp___7->lli_has_smd) { tmp___8 = 0; } else { tmp___8 = 1; } if (tmp___8) { if ((unsigned long )parent != (unsigned long )((struct lu_fid *)0)) { tmp___6 = ll_i2info(inode); lli = tmp___6; spin_lock(& lli->lli_lock); lli->lli_pfid = *parent; spin_unlock(& lli->lli_lock); } else { } } else { } } else { } result = d_obtain_alias(inode); tmp___9 = IS_ERR((void const *)result); if ((int )tmp___9) { iput(inode); return (result); } else { } return (result); } } static int ll_encode_fh(struct inode *inode , __u32 *fh , int *plen , struct inode *parent ) { struct lustre_nfs_fid *nfs_fid ; struct libcfs_debug_msg_data msgdata ; struct lu_fid *tmp ; struct lu_fid *tmp___0 ; struct lu_fid *tmp___1 ; int tmp___2 ; struct lu_fid *tmp___3 ; struct lu_fid *tmp___4 ; { nfs_fid = (struct lustre_nfs_fid *)fh; tmp___2 = cfs_cdebug_show(64U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_nfs.c"; msgdata.msg_fn = "ll_encode_fh"; msgdata.msg_line = 198; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; tmp = ll_inode2fid(inode); tmp___0 = ll_inode2fid(inode); tmp___1 = ll_inode2fid(inode); libcfs_debug_msg(& msgdata, "encoding for (%lu,[%#llx:0x%x:0x%x]) maxlen=%d minlen=%d\n", inode->i_ino, tmp___1->f_seq, tmp___0->f_oid, tmp->f_ver, *plen, 32); } else { } if ((unsigned int )*plen <= 7U) { return (255); } else { } tmp___3 = ll_inode2fid(inode); nfs_fid->lnf_child = *tmp___3; tmp___4 = ll_inode2fid(parent); nfs_fid->lnf_parent = *tmp___4; *plen = 8; return (151); } } static int ll_nfs_get_name_filldir(struct dir_context *ctx , char const *name , int namelen , loff_t hash , u64 ino , unsigned int type ) { struct lu_dirent *lde ; void *tmp ; struct ll_getname_data *lgd ; struct dir_context const *__mptr ; struct lu_fid fid ; int tmp___0 ; { tmp = __container_of((void *)name, 32UL); lde = (struct lu_dirent *)tmp; __mptr = (struct dir_context const *)ctx; lgd = (struct ll_getname_data *)__mptr; fid_le_to_cpu(& fid, (struct lu_fid const *)(& lde->lde_fid)); tmp___0 = lu_fid_eq((struct lu_fid const *)(& fid), (struct lu_fid const *)(& lgd->lgd_fid)); if (tmp___0 != 0) { memcpy((void *)lgd->lgd_name, (void const *)name, (size_t )namelen); *(lgd->lgd_name + (unsigned long )namelen) = 0; lgd->lgd_found = 1; } else { } return (lgd->lgd_found); } } static int ll_get_name(struct dentry *dentry , char *name , struct dentry *child ) { struct inode *dir ; struct inode *tmp ; int rc ; struct ll_getname_data lgd ; struct inode *tmp___0 ; struct ll_inode_info *tmp___1 ; { tmp = d_inode((struct dentry const *)dentry); dir = tmp; tmp___0 = d_inode((struct dentry const *)child); tmp___1 = ll_i2info(tmp___0); lgd.ctx.actor = & ll_nfs_get_name_filldir; lgd.ctx.pos = 0LL; lgd.lgd_name = name; lgd.lgd_fid = tmp___1->lli_fid; lgd.lgd_found = 0; if ((unsigned long )dir == (unsigned long )((struct inode *)0) || ((int )dir->i_mode & 61440) != 16384) { rc = -20; goto out; } else { } if ((unsigned long )dir->i_fop == (unsigned long )((struct file_operations const *)0)) { rc = -22; goto out; } else { } mutex_lock_nested(& dir->i_mutex, 0U); rc = ll_dir_read(dir, & lgd.ctx); mutex_unlock(& dir->i_mutex); if (rc == 0 && lgd.lgd_found == 0) { rc = -2; } else { } out: ; return (rc); } } static struct dentry *ll_fh_to_dentry(struct super_block *sb , struct fid *fid , int fh_len , int fh_type ) { struct lustre_nfs_fid *nfs_fid ; void *tmp ; struct dentry *tmp___0 ; { nfs_fid = (struct lustre_nfs_fid *)fid; if (fh_type != 151) { tmp = ERR_PTR(-71L); return ((struct dentry *)tmp); } else { } tmp___0 = ll_iget_for_nfs(sb, & nfs_fid->lnf_child, & nfs_fid->lnf_parent); return (tmp___0); } } static struct dentry *ll_fh_to_parent(struct super_block *sb , struct fid *fid , int fh_len , int fh_type ) { struct lustre_nfs_fid *nfs_fid ; void *tmp ; struct dentry *tmp___0 ; { nfs_fid = (struct lustre_nfs_fid *)fid; if (fh_type != 151) { tmp = ERR_PTR(-71L); return ((struct dentry *)tmp); } else { } tmp___0 = ll_iget_for_nfs(sb, & nfs_fid->lnf_parent, (struct lu_fid *)0); return (tmp___0); } } static struct dentry *ll_get_parent(struct dentry *dchild ) { struct ptlrpc_request *req ; struct inode *dir ; struct inode *tmp ; struct ll_sb_info *sbi ; struct dentry *result ; struct mdt_body *body ; char dotdot[3U] ; struct md_op_data *op_data ; int rc ; int lmmsize ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; struct lu_fid *tmp___1 ; struct lu_fid *tmp___2 ; struct lu_fid *tmp___3 ; int tmp___4 ; void *tmp___5 ; size_t tmp___6 ; bool tmp___7 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___8 ; void *tmp___9 ; void *tmp___10 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___11 ; struct libcfs_debug_msg_data msgdata___1 ; struct lu_fid *tmp___12 ; struct lu_fid *tmp___13 ; struct lu_fid *tmp___14 ; int tmp___15 ; { req = (struct ptlrpc_request *)0; tmp = d_inode((struct dentry const *)dchild); dir = tmp; result = (struct dentry *)0; dotdot[0] = '.'; dotdot[1] = '.'; dotdot[2] = '\000'; tmp___0 = ldv__builtin_expect((long )((unsigned long )dir == (unsigned long )((struct inode *)0) || ((int )dir->i_mode & 61440) != 16384), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_nfs.c"; __msg_data.msg_fn = "ll_get_parent"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 294; __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 *)"dir && (((dir->i_mode) & 00170000) == 0040000)"); lbug_with_loc(& __msg_data); } else { } sbi = ((struct lustre_sb_info *)(dir->i_sb)->s_fs_info)->lsi_llsbi; tmp___4 = cfs_cdebug_show(64U, 128U); if (tmp___4 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_nfs.c"; msgdata.msg_fn = "ll_get_parent"; msgdata.msg_line = 299; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; tmp___1 = ll_inode2fid(dir); tmp___2 = ll_inode2fid(dir); tmp___3 = ll_inode2fid(dir); libcfs_debug_msg(& msgdata, "getting parent for (%lu,[%#llx:0x%x:0x%x])\n", dir->i_ino, tmp___3->f_seq, tmp___2->f_oid, tmp___1->f_ver); } else { } rc = ll_get_default_mdsize(sbi, & lmmsize); if (rc != 0) { tmp___5 = ERR_PTR((long )rc); return ((struct dentry *)tmp___5); } else { } tmp___6 = strlen((char const *)(& dotdot)); op_data = ll_prep_md_op_data((struct md_op_data *)0, dir, (struct inode *)0, (char const *)(& dotdot), (int )tmp___6, lmmsize, 16U, (void *)0); tmp___7 = IS_ERR((void const *)op_data); if ((int )tmp___7) { return ((struct dentry *)op_data); } else { } rc = md_getattr_name___0(sbi->ll_md_exp, op_data, & req); ll_finish_md_op_data(op_data); if (rc != 0) { tmp___8 = cfs_cdebug_show(131072U, 128U); if (tmp___8 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_nfs.c"; msgdata___0.msg_fn = "ll_get_parent"; msgdata___0.msg_line = 314; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "failure %d inode %lu get parent\n", rc, dir->i_ino); } else { } tmp___9 = ERR_PTR((long )rc); return ((struct dentry *)tmp___9); } else { } tmp___10 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp___10; tmp___11 = ldv__builtin_expect((body->valid & 1ULL) == 0ULL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_nfs.c"; __msg_data___0.msg_fn = "ll_get_parent"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 318; __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->valid & (0x00000001ULL)"); lbug_with_loc(& __msg_data___0); } else { } tmp___15 = cfs_cdebug_show(64U, 128U); if (tmp___15 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_nfs.c"; msgdata___1.msg_fn = "ll_get_parent"; msgdata___1.msg_line = 321; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 64; tmp___12 = ll_inode2fid(dir); tmp___13 = ll_inode2fid(dir); tmp___14 = ll_inode2fid(dir); libcfs_debug_msg(& msgdata___1, "parent for [%#llx:0x%x:0x%x] is [%#llx:0x%x:0x%x]\n", tmp___14->f_seq, tmp___13->f_oid, tmp___12->f_ver, body->fid1.f_seq, body->fid1.f_oid, body->fid1.f_ver); } else { } result = ll_iget_for_nfs(dir->i_sb, & body->fid1, (struct lu_fid *)0); ptlrpc_req_finished(req); return (result); } } struct export_operations lustre_export_operations = {& ll_encode_fh, & ll_fh_to_dentry, & ll_fh_to_parent, & ll_get_name, & ll_get_parent, 0, 0, 0, 0}; void ldv_initialize_export_operations_54(void) { void *tmp ; void *tmp___0 ; void *tmp___1 ; { tmp = ldv_init_zalloc(2112UL); lustre_export_operations_group0 = (struct super_block *)tmp; tmp___0 = ldv_init_zalloc(20UL); lustre_export_operations_group1 = (struct fid *)tmp___0; tmp___1 = ldv_init_zalloc(320UL); lustre_export_operations_group2 = (struct dentry *)tmp___1; return; } } void ldv_main_exported_54(void) { int ldvarg350 ; __u32 *ldvarg347 ; void *tmp ; int ldvarg351 ; int ldvarg348 ; struct inode *ldvarg345 ; void *tmp___0 ; char *ldvarg353 ; void *tmp___1 ; struct inode *ldvarg344 ; void *tmp___2 ; struct dentry *ldvarg352 ; void *tmp___3 ; int *ldvarg346 ; void *tmp___4 ; int ldvarg349 ; int tmp___5 ; { tmp = ldv_init_zalloc(4UL); ldvarg347 = (__u32 *)tmp; tmp___0 = ldv_init_zalloc(1000UL); ldvarg345 = (struct inode *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg353 = (char *)tmp___1; tmp___2 = ldv_init_zalloc(1000UL); ldvarg344 = (struct inode *)tmp___2; tmp___3 = ldv_init_zalloc(320UL); ldvarg352 = (struct dentry *)tmp___3; tmp___4 = ldv_init_zalloc(4UL); ldvarg346 = (int *)tmp___4; ldv_memset((void *)(& ldvarg350), 0, 4UL); ldv_memset((void *)(& ldvarg351), 0, 4UL); ldv_memset((void *)(& ldvarg348), 0, 4UL); ldv_memset((void *)(& ldvarg349), 0, 4UL); tmp___5 = __VERIFIER_nondet_int(); switch (tmp___5) { case 0: ; if (ldv_state_variable_54 == 1) { ll_get_name(lustre_export_operations_group2, ldvarg353, ldvarg352); ldv_state_variable_54 = 1; } else { } goto ldv_68397; case 1: ; if (ldv_state_variable_54 == 1) { ll_fh_to_parent(lustre_export_operations_group0, lustre_export_operations_group1, ldvarg351, ldvarg350); ldv_state_variable_54 = 1; } else { } goto ldv_68397; case 2: ; if (ldv_state_variable_54 == 1) { ll_fh_to_dentry(lustre_export_operations_group0, lustre_export_operations_group1, ldvarg349, ldvarg348); ldv_state_variable_54 = 1; } else { } goto ldv_68397; case 3: ; if (ldv_state_variable_54 == 1) { ll_get_parent(lustre_export_operations_group2); ldv_state_variable_54 = 1; } else { } goto ldv_68397; case 4: ; if (ldv_state_variable_54 == 1) { ll_encode_fh(ldvarg345, ldvarg347, ldvarg346, ldvarg344); ldv_state_variable_54 = 1; } else { } goto ldv_68397; default: ldv_stop(); } ldv_68397: ; return; } } int ldv_pskb_expand_head_216(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_218(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_220(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_221(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_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); } } int ldv_pskb_expand_head_224(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_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(); } } struct sk_buff *ldv_skb_clone_226(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 ) ; extern void dump_stack(void) ; __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_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 ) ; extern int mutex_trylock(struct mutex * ) ; __inline static void SetPageError(struct page *page ) { { set_bit(1L, (unsigned long volatile *)(& page->flags)); return; } } __inline static int PageWriteback(struct page const *page ) { int tmp ; { tmp = constant_test_bit(13L, (unsigned long const volatile *)(& page->flags)); return (tmp); } } extern int redirty_page_for_writepage(struct writeback_control * , struct page * ) ; extern struct page *pagecache_get_page(struct address_space * , unsigned long , int , gfp_t ) ; __inline static struct page *grab_cache_page_nowait(struct address_space *mapping , unsigned long index ) { gfp_t tmp ; struct page *tmp___0 ; { tmp = mapping_gfp_mask(mapping); tmp___0 = pagecache_get_page(mapping, index, 54, tmp); return (tmp___0); } } struct sk_buff *ldv_skb_clone_255(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_263(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_257(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_253(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_261(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_262(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_258(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_259(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , 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 ) ; __inline static struct lu_ref_link *lu_ref_add(struct lu_ref *ref , char const *scope , void const *source ) { { return ((struct lu_ref_link *)0); } } __inline static struct lu_fid const *lu_object_fid(struct lu_object const *o ) { { return ((struct lu_fid const *)(& (o->lo_header)->loh_fid)); } } extern struct cl_page *cl_page_find(struct lu_env const * , struct cl_object * , unsigned long , struct page * , enum cl_page_type ) ; extern void cl_page_get(struct cl_page * ) ; extern void cl_page_put(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 void cl_page_assume(struct lu_env const * , struct cl_io * , struct cl_page * ) ; extern void cl_page_unassume(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 int cl_page_is_owned(struct cl_page const * , struct cl_io const * ) ; extern int cl_page_flush(struct lu_env const * , struct cl_io * , struct cl_page * ) ; extern void cl_page_delete(struct lu_env const * , struct cl_page * ) ; extern int cl_page_is_under_lock(struct lu_env const * , struct cl_io * , struct cl_page * ) ; extern loff_t cl_offset(struct cl_object const * , unsigned long ) ; extern int cl_io_iter_init(struct lu_env const * , struct cl_io * ) ; extern int cl_io_lock(struct lu_env const * , struct cl_io * ) ; extern int cl_io_start(struct lu_env const * , struct cl_io * ) ; extern int cl_io_read_page(struct lu_env const * , struct cl_io * , struct cl_page * ) ; extern int cl_io_prepare_write(struct lu_env const * , struct cl_io * , struct cl_page * , unsigned int , unsigned int ) ; extern int cl_io_commit_write(struct lu_env const * , struct cl_io * , struct cl_page * , unsigned int , unsigned int ) ; extern void cl_page_list_add(struct cl_page_list * , struct cl_page * ) ; __inline static struct ccc_page *cl2ccc_page(struct cl_page_slice const *slice ) { struct cl_page_slice const *__mptr ; { __mptr = slice; return ((struct ccc_page *)__mptr); } } void ll_ra_read_in(struct file *f , struct ll_ra_read *rar ) ; void ll_ra_read_ex(struct file *f , struct ll_ra_read *rar ) ; struct ll_ra_read *ll_ra_read_get(struct file *f ) ; int ll_prepare_write(struct file *file , struct page *vmpage , unsigned int from , unsigned int to ) ; int ll_commit_write(struct file *file , struct page *vmpage , unsigned int from , unsigned int to ) ; int ll_writepage(struct page *vmpage , struct writeback_control *wbc ) ; int ll_writepages(struct address_space *mapping , struct writeback_control *wbc ) ; int ll_readpage(struct file *file , struct page *vmpage ) ; int ll_readahead(struct lu_env const *env , struct cl_io *io , struct ll_readahead_state *ras , struct address_space *mapping , struct cl_page_list *queue , int flags ) ; struct lu_device_type vvp_device_type ; void ras_update(struct ll_sb_info *sbi , struct inode *inode , struct ll_readahead_state *ras , unsigned long index , unsigned int hit ) ; void ll_ra_count_put(struct ll_sb_info *sbi , unsigned long len ) ; void ll_ra_stats_inc(struct address_space *mapping , enum ra_stat which ) ; struct obd_capa *cl_capa_lookup(struct inode *inode , enum cl_req_type crt ) ; static void ll_cl_fini(struct ll_cl_context *lcc ) { struct lu_env *env ; struct cl_io *io ; struct cl_page *page ; struct libcfs_debug_msg_data __msg_data ; struct task_struct *tmp ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; { env = lcc->lcc_env; io = lcc->lcc_io; page = lcc->lcc_page; tmp = get_current(); tmp___0 = ldv__builtin_expect((unsigned long )lcc->lcc_cookie != (unsigned long )((void *)tmp), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data.msg_fn = "ll_cl_fini"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 72; __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 *)"lcc->lcc_cookie == get_current()"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv__builtin_expect((unsigned long )env == (unsigned long )((struct lu_env *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data___0.msg_fn = "ll_cl_fini"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 73; __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 *)"env != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } if ((unsigned long )page != (unsigned long )((struct cl_page *)0)) { lu_ref_del(& page->cp_reference, "cl_io", (void const *)io); cl_page_put((struct lu_env const *)env, page); } else { } cl_env_put(env, & lcc->lcc_refcheck); return; } } static struct ll_cl_context *ll_cl_init(struct file *file , struct page *vmpage , int create ) { struct ll_cl_context *lcc ; struct lu_env *env ; struct cl_io *io ; struct cl_object *clob ; struct ccc_io *cio ; int refcheck ; int result ; struct ll_inode_info *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; void *tmp___1 ; bool tmp___2 ; struct vvp_thread_info *tmp___3 ; struct task_struct *tmp___4 ; struct inode *inode ; loff_t pos ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; struct task_struct *tmp___5 ; int tmp___6 ; struct libcfs_debug_msg_data msgdata___0 ; void *tmp___7 ; int tmp___8 ; struct cl_page *page ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___9 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___10 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___11 ; long tmp___12 ; bool tmp___13 ; int tmp___14 ; void *tmp___15 ; struct libcfs_debug_msg_data msgdata___1 ; struct lu_fid const *tmp___16 ; struct lu_fid const *tmp___17 ; struct lu_fid const *tmp___18 ; int tmp___19 ; { result = 0; tmp = ll_i2info((vmpage->__annonCompField36.mapping)->host); clob = tmp->lli_clob; tmp___0 = ldv__builtin_expect((unsigned long )clob == (unsigned long )((struct cl_object *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data.msg_fn = "ll_cl_init"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 100; __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 *)"clob != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } env = cl_env_get(& refcheck); tmp___2 = IS_ERR((void const *)env); if ((int )tmp___2) { tmp___1 = ERR_CAST((void const *)env); return ((struct ll_cl_context *)tmp___1); } else { } tmp___3 = vvp_env_info((struct lu_env const *)env); lcc = & tmp___3->vti_io_ctx; memset((void *)lcc, 0, 40UL); lcc->lcc_env = env; lcc->lcc_refcheck = refcheck; tmp___4 = get_current(); lcc->lcc_cookie = (void *)tmp___4; cio = ccc_env_io((struct lu_env const *)env); io = cio->cui_cl.cis_io; if ((unsigned long )io == (unsigned long )((struct cl_io *)0) && create != 0) { inode = (vmpage->__annonCompField36.mapping)->host; tmp___8 = mutex_trylock(& inode->i_mutex); if (tmp___8 != 0) { mutex_unlock(& inode->i_mutex); tmp___6 = cfs_cdebug_show(131072U, 128U); if (tmp___6 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata.msg_fn = "ll_cl_init"; msgdata.msg_line = 125; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; tmp___5 = get_current(); libcfs_debug_msg(& msgdata, "Proc %s is dirtying page w/o inode lock, this will break truncate\n", (char *)(& tmp___5->comm)); } else { } dump_stack(); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata___0.msg_fn = "ll_cl_init"; msgdata___0.msg_subsys = 128; msgdata___0.msg_line = 127; 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); tmp___7 = ERR_PTR(-5L); return ((struct ll_cl_context *)tmp___7); } else { } io = ccc_env_thread_io((struct lu_env const *)env); ll_io_init(io, (struct file const *)file, 1); io->ci_lockreq = 2; pos = (loff_t )(vmpage->__annonCompField42.__annonCompField37.index << 12); result = cl_io_rw_init((struct lu_env const *)env, io, 1, pos, 4096UL); if (result == 0) { cio->cui_fd = (struct ll_file_data *)file->private_data; cio->cui_iter = (struct iov_iter *)0; result = cl_io_iter_init((struct lu_env const *)env, io); if (result == 0) { result = cl_io_lock((struct lu_env const *)env, io); if (result == 0) { result = cl_io_start((struct lu_env const *)env, io); } else { } } else { } } else { result = io->ci_result; } } else { } lcc->lcc_io = io; if ((unsigned long )io == (unsigned long )((struct cl_io *)0)) { result = -5; } else { } if (result == 0) { tmp___9 = ldv__builtin_expect((unsigned long )io == (unsigned long )((struct cl_io *)0), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data___0.msg_fn = "ll_cl_init"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 171; __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 { } tmp___10 = ldv__builtin_expect((unsigned int )io->ci_state != 4U, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data___1.msg_fn = "ll_cl_init"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 172; __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 *)"io->ci_state == CIS_IO_GOING"); lbug_with_loc(& __msg_data___1); } else { } tmp___11 = ldv__builtin_expect((unsigned long )((void *)cio->cui_fd) != (unsigned long )file->private_data, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data___2.msg_fn = "ll_cl_init"; __msg_data___2.msg_subsys = 128; __msg_data___2.msg_line = 173; __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 *)"cio->cui_fd == ((file)->private_data)"); lbug_with_loc(& __msg_data___2); } else { } page = cl_page_find((struct lu_env const *)env, clob, vmpage->__annonCompField42.__annonCompField37.index, vmpage, 1); tmp___13 = IS_ERR((void const *)page); if (tmp___13) { tmp___14 = 0; } else { tmp___14 = 1; } if (tmp___14) { lcc->lcc_page = page; lu_ref_add(& page->cp_reference, "cl_io", (void const *)io); result = 0; } else { tmp___12 = PTR_ERR((void const *)page); result = (int )tmp___12; } } else { } if (result != 0) { ll_cl_fini(lcc); tmp___15 = ERR_PTR((long )result); lcc = (struct ll_cl_context *)tmp___15; } else { } tmp___19 = cfs_cdebug_show(2097152U, 128U); if (tmp___19 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata___1.msg_fn = "ll_cl_init"; msgdata___1.msg_line = 190; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 2097152; tmp___16 = lu_object_fid((struct lu_object const *)(& clob->co_lu)); tmp___17 = lu_object_fid((struct lu_object const *)(& clob->co_lu)); tmp___18 = lu_object_fid((struct lu_object const *)(& clob->co_lu)); libcfs_debug_msg(& msgdata___1, "%lu@[%#llx:0x%x:0x%x] -> %d %p %p\n", vmpage->__annonCompField42.__annonCompField37.index, tmp___18->f_seq, tmp___17->f_oid, tmp___16->f_ver, result, env, io); } else { } return (lcc); } } static struct ll_cl_context *ll_cl_get(void) { struct ll_cl_context *lcc ; struct lu_env *env ; int refcheck ; struct libcfs_debug_msg_data __msg_data ; bool tmp ; long tmp___0 ; struct vvp_thread_info *tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___1 ; struct task_struct *tmp___3 ; long tmp___4 ; { env = cl_env_get(& refcheck); tmp = IS_ERR((void const *)env); tmp___0 = ldv__builtin_expect((long )tmp, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data.msg_fn = "ll_cl_get"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 201; __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 *)"!IS_ERR(env)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = vvp_env_info((struct lu_env const *)env); lcc = & tmp___1->vti_io_ctx; tmp___2 = ldv__builtin_expect((unsigned long )lcc->lcc_env != (unsigned long )env, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data___0.msg_fn = "ll_cl_get"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 203; __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 *)"env == lcc->lcc_env"); lbug_with_loc(& __msg_data___0); } else { } tmp___3 = get_current(); tmp___4 = ldv__builtin_expect((unsigned long )((void *)tmp___3) != (unsigned long )lcc->lcc_cookie, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data___1.msg_fn = "ll_cl_get"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 204; __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 *)"get_current() == lcc->lcc_cookie"); lbug_with_loc(& __msg_data___1); } else { } cl_env_put(env, & refcheck); return (lcc); } } int ll_prepare_write(struct file *file , struct page *vmpage , unsigned int from , unsigned int to ) { struct ll_cl_context *lcc ; int result ; struct lu_env *env ; struct cl_io *io ; struct cl_page *page ; struct task_struct *tmp ; long tmp___0 ; bool tmp___1 ; int tmp___2 ; { lcc = ll_cl_init(file, vmpage, 1); tmp___1 = IS_ERR((void const *)lcc); if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { env = lcc->lcc_env; io = lcc->lcc_io; page = lcc->lcc_page; cl_page_assume((struct lu_env const *)env, io, page); result = cl_io_prepare_write((struct lu_env const *)env, io, page, from, to); if (result == 0) { cl_page_get(page); tmp = get_current(); lu_ref_add(& page->cp_reference, "prepare_write", (void const *)tmp); } else { cl_page_unassume((struct lu_env const *)env, io, page); ll_cl_fini(lcc); } } else { tmp___0 = PTR_ERR((void const *)lcc); result = (int )tmp___0; } return (result); } } int ll_commit_write(struct file *file , struct page *vmpage , unsigned int from , unsigned int to ) { struct ll_cl_context *lcc ; struct lu_env *env ; struct cl_io *io ; struct cl_page *page ; int result ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; int tmp___2 ; struct task_struct *tmp___3 ; { result = 0; lcc = ll_cl_get(); env = lcc->lcc_env; page = lcc->lcc_page; io = lcc->lcc_io; tmp = cl_page_is_owned((struct cl_page const *)page, (struct cl_io const *)io); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data.msg_fn = "ll_commit_write"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 264; __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_page_is_owned(page, io)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv__builtin_expect(from > to, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data___0.msg_fn = "ll_commit_write"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 265; __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 *)"from <= to"); lbug_with_loc(& __msg_data___0); } else { } if (from != to) { result = cl_io_commit_write((struct lu_env const *)env, io, page, from, to); } else { } tmp___2 = cl_page_is_owned((struct cl_page const *)page, (struct cl_io const *)io); if (tmp___2 != 0) { cl_page_unassume((struct lu_env const *)env, io, page); } else { } tmp___3 = get_current(); lu_ref_del(& page->cp_reference, "prepare_write", (void const *)tmp___3); cl_page_put((struct lu_env const *)env, page); ll_cl_fini(lcc); return (result); } } struct obd_capa *cl_capa_lookup(struct inode *inode , enum cl_req_type crt ) { __u64 opc ; struct obd_capa *tmp ; { opc = (unsigned int )crt == 1U ? 32ULL : 96ULL; tmp = ll_osscapa_get(inode, opc); return (tmp); } } static void ll_ra_stats_inc_sbi(struct ll_sb_info *sbi , enum ra_stat which ) ; static unsigned long ll_ra_count_get(struct ll_sb_info *sbi , struct ra_io_arg *ria , unsigned long pages ) { struct ll_ra_info *ra ; long ret ; unsigned long _min1 ; int tmp ; unsigned long _min2 ; long __min1 ; long __min2 ; long beyond_rpc ; int tmp___0 ; { ra = & sbi->ll_ra_info; tmp = atomic_read((atomic_t const *)(& ra->ra_cur_pages)); _min1 = ra->ra_max_pages - (unsigned long )tmp; _min2 = pages; ret = (long )(_min1 < _min2 ? _min1 : _min2); if (ret < 0L) { ret = 0L; goto out; } else { __min1 = 1024L; __min2 = (long )pages; if ((__min1 < __min2 ? __min1 : __min2) > ret) { ret = 0L; goto out; } else { } } if (ria->ria_pages == 0UL) { beyond_rpc = (long )(ria->ria_start + (unsigned long )ret) & 1023L; if (beyond_rpc < ret) { ret = ret - beyond_rpc; } else { } } else { } tmp___0 = atomic_add_return((int )ret, & ra->ra_cur_pages); if ((unsigned long )tmp___0 > ra->ra_max_pages) { atomic_sub((int )ret, & ra->ra_cur_pages); ret = 0L; } else { } out: ; return ((unsigned long )ret); } } void ll_ra_count_put(struct ll_sb_info *sbi , unsigned long len ) { struct ll_ra_info *ra ; { ra = & sbi->ll_ra_info; atomic_sub((int )len, & ra->ra_cur_pages); return; } } static void ll_ra_stats_inc_sbi(struct ll_sb_info *sbi , enum ra_stat which ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((unsigned int )which > 11U, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data.msg_fn = "ll_ra_stats_inc_sbi"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 359; __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: which: %u\n", (char *)"which >= 0 && which < _NR_RA_STAT", (unsigned int )which); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add(sbi->ll_ra_stats, (int )which, 1L); return; } } void ll_ra_stats_inc(struct address_space *mapping , enum ra_stat which ) { struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; { tmp = ll_i2sbi(mapping->host); sbi = tmp; ll_ra_stats_inc_sbi(sbi, which); return; } } static int index_in_window(unsigned long index , unsigned long point , unsigned long before , unsigned long after ) { unsigned long start ; unsigned long end ; { start = point - before; end = point + after; if (start > point) { start = 0UL; } else { } if (end < point) { end = 0xffffffffffffffffUL; } else { } return (start <= index && index <= end); } } static struct ll_readahead_state *ll_ras_get(struct file *f ) { struct ll_file_data *fd ; { fd = (struct ll_file_data *)f->private_data; return (& fd->fd_ras); } } void ll_ra_read_in(struct file *f , struct ll_ra_read *rar ) { struct ll_readahead_state *ras ; { ras = ll_ras_get(f); spin_lock(& ras->ras_lock); ras->ras_requests = ras->ras_requests + 1UL; ras->ras_request_index = 0UL; ras->ras_consecutive_requests = ras->ras_consecutive_requests + 1UL; rar->lrr_reader = get_current(); list_add(& rar->lrr_linkage, & ras->ras_read_beads); spin_unlock(& ras->ras_lock); return; } } void ll_ra_read_ex(struct file *f , struct ll_ra_read *rar ) { struct ll_readahead_state *ras ; { ras = ll_ras_get(f); spin_lock(& ras->ras_lock); list_del_init(& rar->lrr_linkage); spin_unlock(& ras->ras_lock); return; } } static struct ll_ra_read *ll_ra_read_get_locked(struct ll_readahead_state *ras ) { struct ll_ra_read *scan ; struct list_head const *__mptr ; struct task_struct *tmp ; struct list_head const *__mptr___0 ; { __mptr = (struct list_head const *)ras->ras_read_beads.next; scan = (struct ll_ra_read *)__mptr + 0xffffffffffffffe8UL; goto ldv_68330; ldv_68329: tmp = get_current(); if ((unsigned long )scan->lrr_reader == (unsigned long )tmp) { return (scan); } else { } __mptr___0 = (struct list_head const *)scan->lrr_linkage.next; scan = (struct ll_ra_read *)__mptr___0 + 0xffffffffffffffe8UL; ldv_68330: ; if ((unsigned long )(& scan->lrr_linkage) != (unsigned long )(& ras->ras_read_beads)) { goto ldv_68329; } else { } return ((struct ll_ra_read *)0); } } struct ll_ra_read *ll_ra_read_get(struct file *f ) { struct ll_readahead_state *ras ; struct ll_ra_read *bead ; { ras = ll_ras_get(f); spin_lock(& ras->ras_lock); bead = ll_ra_read_get_locked(ras); spin_unlock(& ras->ras_lock); return (bead); } } static int cl_read_ahead_page(struct lu_env const *env , struct cl_io *io , struct cl_page_list *queue , struct cl_page *page , struct page *vmpage ) { struct ccc_page *cp ; int rc ; struct task_struct *tmp ; struct cl_page_slice const *tmp___0 ; int tmp___1 ; struct task_struct *tmp___2 ; { rc = 0; cl_page_assume(env, io, page); tmp = get_current(); lu_ref_add(& page->cp_reference, "ra", (void const *)tmp); tmp___0 = cl_page_at((struct cl_page const *)page, (struct lu_device_type const *)(& vvp_device_type)); cp = cl2ccc_page(tmp___0); if (cp->cpg_defer_uptodate == 0) { tmp___1 = PageUptodate(vmpage); if (tmp___1 == 0) { rc = cl_page_is_under_lock(env, io, page); if (rc == -16) { cp->cpg_defer_uptodate = 1; cp->cpg_ra_used = 0; cl_page_list_add(queue, page); rc = 1; } else { cl_page_delete(env, page); rc = -37; } } else { cl_page_unassume(env, io, page); } } else { cl_page_unassume(env, io, page); } tmp___2 = get_current(); lu_ref_del(& page->cp_reference, "ra", (void const *)tmp___2); cl_page_put(env, page); return (rc); } } static int ll_read_ahead_page(struct lu_env const *env , struct cl_io *io , struct cl_page_list *queue , unsigned long index , struct address_space *mapping ) { struct page *vmpage ; struct cl_object *clob ; struct ll_inode_info *tmp ; struct cl_page *page ; enum ra_stat which ; int rc ; char const *msg ; bool tmp___0 ; int tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; { tmp = ll_i2info(mapping->host); clob = tmp->lli_clob; which = 12; rc = 0; msg = (char const *)0; vmpage = grab_cache_page_nowait(mapping, index); if ((unsigned long )vmpage != (unsigned long )((struct page *)0)) { if ((unsigned long )vmpage->__annonCompField36.mapping == (unsigned long )mapping) { page = cl_page_find(env, clob, vmpage->__annonCompField42.__annonCompField37.index, vmpage, 1); tmp___0 = IS_ERR((void const *)page); if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { rc = cl_read_ahead_page(env, io, queue, page, vmpage); if (rc == -37) { which = 5; msg = "lock match failed"; } else { } } else { which = 4; msg = "cl_page_find failed"; } } else { which = 11; msg = "g_c_p_n returned invalid page"; } if (rc != 1) { unlock_page(vmpage); } else { } put_page(vmpage); } else { which = 4; msg = "g_c_p_n failed"; } if ((unsigned long )msg != (unsigned long )((char const *)0)) { ll_ra_stats_inc(mapping, which); tmp___2 = cfs_cdebug_show(4194304U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata.msg_fn = "ll_read_ahead_page"; msgdata.msg_line = 534; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "%s\n", msg); } else { } } else { } return (rc); } } __inline static int stride_io_mode(struct ll_readahead_state *ras ) { { return (ras->ras_consecutive_stride_requests > 1UL); } } static unsigned long stride_pg_count(unsigned long st_off , unsigned long st_len , unsigned long st_pgs , unsigned long off , unsigned long length ) { __u64 start ; __u64 end ; unsigned long start_left ; unsigned long end_left ; unsigned long pg_count ; uint32_t __base ; uint32_t __rem ; uint32_t __base___0 ; uint32_t __rem___0 ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; { start = off > st_off ? (__u64 )(off - st_off) : 0ULL; end = off + length > st_off ? (__u64 )((off + length) - st_off) : 0ULL; start_left = 0UL; end_left = 0UL; if ((st_len == 0UL || length == 0UL) || end == 0ULL) { return (length); } else { } __base = (uint32_t )st_len; __rem = (uint32_t )(start % (__u64 )__base); start = start / (__u64 )__base; start_left = (unsigned long )__rem; if (start_left < st_pgs) { start_left = st_pgs - start_left; } else { start_left = 0UL; } __base___0 = (uint32_t )st_len; __rem___0 = (uint32_t )(end % (__u64 )__base___0); end = end / (__u64 )__base___0; end_left = (unsigned long )__rem___0; if (end_left > st_pgs) { end_left = st_pgs; } else { } tmp = cfs_cdebug_show(4194304U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata.msg_fn = "stride_pg_count"; msgdata.msg_line = 602; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "start %llu, end %llu start_left %lu end_left %lu \n", start, end, start_left, end_left); } else { } if (start == end) { pg_count = (start_left - st_pgs) + end_left; } else { pg_count = (unsigned long )((((end - start) - 1ULL) * (unsigned long long )st_pgs + (unsigned long long )start_left) + (unsigned long long )end_left); } tmp___0 = cfs_cdebug_show(4194304U, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata___0.msg_fn = "stride_pg_count"; msgdata___0.msg_line = 610; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 4194304; libcfs_debug_msg(& msgdata___0, "st_off %lu, st_len %lu st_pgs %lu off %lu length %lu pgcount %lu\n", st_off, st_len, st_pgs, off, length, pg_count); } else { } return (pg_count); } } static int ria_page_count(struct ra_io_arg *ria ) { __u64 length ; unsigned long tmp ; { length = ria->ria_end >= ria->ria_start ? (__u64 )((ria->ria_end - ria->ria_start) + 1UL) : 0ULL; tmp = stride_pg_count(ria->ria_stoff, ria->ria_length, ria->ria_pages, ria->ria_start, (unsigned long )length); return ((int )tmp); } } static int ras_inside_ra_window(unsigned long idx , struct ra_io_arg *ria ) { { return ((ria->ria_length == 0UL || ria->ria_length == ria->ria_pages) || (ria->ria_stoff <= idx && (idx - ria->ria_stoff) % ria->ria_length < ria->ria_pages)); } } static int ll_read_ahead_pages(struct lu_env const *env , struct cl_io *io , struct cl_page_list *queue , struct ra_io_arg *ria , unsigned long *reserved_pages , struct address_space *mapping , unsigned long *ra_end ) { int rc ; int count ; int stride_ria ; unsigned long page_idx ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; unsigned long offset ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; int tmp___3 ; { count = 0; tmp = ldv__builtin_expect((unsigned long )ria == (unsigned long )((struct ra_io_arg *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data.msg_fn = "ll_read_ahead_pages"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 647; __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 *)"ria != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = cfs_cdebug_show(4194304U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata.msg_fn = "ll_read_ahead_pages"; msgdata.msg_line = 648; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "rs %lu re %lu ro %lu rl %lu rp %lu\n", ria->ria_start, ria->ria_end, ria->ria_stoff, ria->ria_length, ria->ria_pages); } else { } stride_ria = ria->ria_length > ria->ria_pages && ria->ria_pages != 0UL; page_idx = ria->ria_start; goto ldv_68415; ldv_68414: tmp___3 = ras_inside_ra_window(page_idx, ria); if (tmp___3 != 0) { rc = ll_read_ahead_page(env, io, queue, page_idx, mapping); if (rc == 1) { *reserved_pages = *reserved_pages - 1UL; count = count + 1; } else if (rc == -37) { goto ldv_68409; } else { } } else if (stride_ria != 0) { tmp___1 = ldv__builtin_expect(ria->ria_stoff >= page_idx, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data___0.msg_fn = "ll_read_ahead_pages"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 673; __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: Invalid page_idx %lu rs %lu re %lu ro %lu rl %lu rp %lu\n", (char *)"page_idx > ria->ria_stoff", page_idx, ria->ria_start, ria->ria_end, ria->ria_stoff, ria->ria_length, ria->ria_pages); lbug_with_loc(& __msg_data___0); } else { } offset = page_idx - ria->ria_stoff; offset = offset % ria->ria_length; if (ria->ria_pages < offset) { page_idx = (ria->ria_length - offset) + page_idx; tmp___2 = cfs_cdebug_show(4194304U, 128U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata___0.msg_fn = "ll_read_ahead_pages"; msgdata___0.msg_line = 679; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 4194304; libcfs_debug_msg(& msgdata___0, "i %lu skip %lu \n", page_idx, ria->ria_length - offset); } else { } goto ldv_68413; } else { } } else { } ldv_68413: page_idx = page_idx + 1UL; ldv_68415: ; if (ria->ria_end >= page_idx && *reserved_pages != 0UL) { goto ldv_68414; } else { } ldv_68409: *ra_end = page_idx; return (count); } } int ll_readahead(struct lu_env const *env , struct cl_io *io , struct ll_readahead_state *ras , struct address_space *mapping , struct cl_page_list *queue , int flags ) { struct vvp_io *vio ; struct vvp_io *tmp ; struct vvp_thread_info *vti ; struct vvp_thread_info *tmp___0 ; struct cl_attr *attr ; struct cl_attr *tmp___1 ; unsigned long start ; unsigned long end ; unsigned long reserved ; unsigned long ra_end ; unsigned long len ; struct inode *inode ; struct ll_ra_read *bead ; struct ra_io_arg *ria ; struct ll_inode_info *lli ; struct cl_object *clob ; int ret ; __u64 kms ; unsigned long rpc_boundary ; unsigned long _min1 ; unsigned long _min2 ; unsigned long _max1 ; unsigned long _max2 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; int tmp___3 ; int tmp___4 ; struct ll_sb_info *tmp___5 ; struct libcfs_debug_msg_data msgdata___0 ; struct ll_sb_info *tmp___6 ; struct ll_sb_info *tmp___7 ; int tmp___8 ; int tmp___9 ; struct libcfs_debug_msg_data __msg_data ; long tmp___10 ; struct ll_sb_info *tmp___11 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___12 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___13 ; int tmp___14 ; { tmp = vvp_env_io(env); vio = tmp; tmp___0 = vvp_env_info(env); vti = tmp___0; tmp___1 = ccc_env_thread_attr(env); attr = tmp___1; start = 0UL; end = 0UL; ria = & vti->vti_ria; ret = 0; inode = mapping->host; lli = ll_i2info(inode); clob = lli->lli_clob; memset((void *)ria, 0, 40UL); cl_object_attr_lock(clob); ret = cl_object_attr_get(env, clob, attr); cl_object_attr_unlock(clob); if (ret != 0) { return (ret); } else { } kms = (__u64 )attr->cat_kms; if (kms == 0ULL) { ll_ra_stats_inc(mapping, 7); return (0); } else { } spin_lock(& ras->ras_lock); if (vio->cui_ra_window_set != 0) { bead = & vio->cui_bead; } else { bead = (struct ll_ra_read *)0; } if ((unsigned long )bead != (unsigned long )((struct ll_ra_read *)0) && ras->ras_window_start + ras->ras_window_len < bead->lrr_start + bead->lrr_count) { ras->ras_window_len = (bead->lrr_start + bead->lrr_count) - ras->ras_window_start; } else { } if (ras->ras_window_len != 0UL) { start = ras->ras_next_readahead; end = (ras->ras_window_start + ras->ras_window_len) - 1UL; } else { } if (end != 0UL) { rpc_boundary = (end + 1UL) & 0xfffffffffffffc00UL; if (rpc_boundary != 0UL) { rpc_boundary = rpc_boundary - 1UL; } else { } if (rpc_boundary > start) { end = rpc_boundary; } else { } _min1 = end; _min2 = (unsigned long )((kms - 1ULL) >> 12); end = _min1 < _min2 ? _min1 : _min2; _max1 = end; _max2 = end + 1UL; ras->ras_next_readahead = _max1 > _max2 ? _max1 : _max2; tmp___2 = cfs_cdebug_show(4194304U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata.msg_fn = "ll_readahead"; msgdata.msg_line = 764; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "lrp %lu cr %lu cp %lu ws %lu wl %lu nra %lu r %lu ri %lucsr %lu sf %lu sp %lu sl %lu \n", ras->ras_last_readpage, ras->ras_consecutive_requests, ras->ras_consecutive_pages, ras->ras_window_start, ras->ras_window_len, ras->ras_next_readahead, ras->ras_requests, ras->ras_request_index, ras->ras_consecutive_stride_requests, ras->ras_stride_offset, ras->ras_stride_pages, ras->ras_stride_length); } else { } } else { } ria->ria_start = start; ria->ria_end = end; tmp___3 = stride_io_mode(ras); if (tmp___3 != 0) { ria->ria_stoff = ras->ras_stride_offset; ria->ria_length = ras->ras_stride_length; ria->ria_pages = ras->ras_stride_pages; } else { } spin_unlock(& ras->ras_lock); if (end == 0UL) { ll_ra_stats_inc(mapping, 8); return (0); } else { } tmp___4 = ria_page_count(ria); len = (unsigned long )tmp___4; if (len == 0UL) { return (0); } else { } tmp___5 = ll_i2sbi(inode); reserved = ll_ra_count_get(tmp___5, ria, len); if (reserved < len) { ll_ra_stats_inc(mapping, 10); } else { } tmp___9 = cfs_cdebug_show(4194304U, 128U); if (tmp___9 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata___0.msg_fn = "ll_readahead"; msgdata___0.msg_line = 790; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 4194304; tmp___6 = ll_i2sbi(inode); tmp___7 = ll_i2sbi(inode); tmp___8 = atomic_read((atomic_t const *)(& tmp___7->ll_ra_info.ra_cur_pages)); libcfs_debug_msg(& msgdata___0, "reserved page %lu ra_cur %d ra_max %lu\n", reserved, tmp___8, tmp___6->ll_ra_info.ra_max_pages); } else { } ret = ll_read_ahead_pages(env, io, queue, ria, & reserved, mapping, & ra_end); tmp___10 = ldv__builtin_expect(0L, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data.msg_fn = "ll_readahead"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 795; __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: reserved %lu\n", (char *)"reserved >= 0", reserved); lbug_with_loc(& __msg_data); } else { } if (reserved != 0UL) { tmp___11 = ll_i2sbi(inode); ll_ra_count_put(tmp___11, reserved); } else { } if (end + 1UL == ra_end && kms >> 12 == (unsigned long long )ra_end) { ll_ra_stats_inc(mapping, 9); } else { } tmp___12 = cfs_cdebug_show(4194304U, 128U); if (tmp___12 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata___1.msg_fn = "ll_readahead"; msgdata___1.msg_line = 808; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 4194304; libcfs_debug_msg(& msgdata___1, "ra_end %lu end %lu stride end %lu \n", ra_end, end, ria->ria_end); } else { } if (end + 1UL != ra_end) { spin_lock(& ras->ras_lock); if (ras->ras_next_readahead > ra_end) { tmp___14 = index_in_window(ra_end, ras->ras_window_start, 0UL, ras->ras_window_len); if (tmp___14 != 0) { ras->ras_next_readahead = ra_end; tmp___13 = cfs_cdebug_show(4194304U, 128U); if (tmp___13 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata___2.msg_fn = "ll_readahead"; msgdata___2.msg_line = 816; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 4194304; libcfs_debug_msg(& msgdata___2, "lrp %lu cr %lu cp %lu ws %lu wl %lu nra %lu r %lu ri %lucsr %lu sf %lu sp %lu sl %lu \n", ras->ras_last_readpage, ras->ras_consecutive_requests, ras->ras_consecutive_pages, ras->ras_window_start, ras->ras_window_len, ras->ras_next_readahead, ras->ras_requests, ras->ras_request_index, ras->ras_consecutive_stride_requests, ras->ras_stride_offset, ras->ras_stride_pages, ras->ras_stride_length); } else { } } else { } } else { } spin_unlock(& ras->ras_lock); } else { } return (ret); } } static void ras_set_start(struct inode *inode , struct ll_readahead_state *ras , unsigned long index ) { { ras->ras_window_start = index & 0xffffffffffffff00UL; return; } } static void ras_reset(struct inode *inode , struct ll_readahead_state *ras , unsigned long index ) { unsigned long _max1 ; unsigned long _max2 ; struct libcfs_debug_msg_data msgdata ; int tmp ; { ras->ras_last_readpage = index; ras->ras_consecutive_requests = 0UL; ras->ras_consecutive_pages = 0UL; ras->ras_window_len = 0UL; ras_set_start(inode, ras, index); _max1 = ras->ras_window_start; _max2 = index; ras->ras_next_readahead = _max1 > _max2 ? _max1 : _max2; tmp = cfs_cdebug_show(4194304U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata.msg_fn = "ras_reset"; msgdata.msg_line = 841; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "lrp %lu cr %lu cp %lu ws %lu wl %lu nra %lu r %lu ri %lucsr %lu sf %lu sp %lu sl %lu \n", ras->ras_last_readpage, ras->ras_consecutive_requests, ras->ras_consecutive_pages, ras->ras_window_start, ras->ras_window_len, ras->ras_next_readahead, ras->ras_requests, ras->ras_request_index, ras->ras_consecutive_stride_requests, ras->ras_stride_offset, ras->ras_stride_pages, ras->ras_stride_length); } else { } return; } } static void ras_stride_reset(struct ll_readahead_state *ras ) { struct libcfs_debug_msg_data msgdata ; int tmp ; { ras->ras_consecutive_stride_requests = 0UL; ras->ras_stride_length = 0UL; ras->ras_stride_pages = 0UL; tmp = cfs_cdebug_show(4194304U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata.msg_fn = "ras_stride_reset"; msgdata.msg_line = 850; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "lrp %lu cr %lu cp %lu ws %lu wl %lu nra %lu r %lu ri %lucsr %lu sf %lu sp %lu sl %lu \n", ras->ras_last_readpage, ras->ras_consecutive_requests, ras->ras_consecutive_pages, ras->ras_window_start, ras->ras_window_len, ras->ras_next_readahead, ras->ras_requests, ras->ras_request_index, ras->ras_consecutive_stride_requests, ras->ras_stride_offset, ras->ras_stride_pages, ras->ras_stride_length); } else { } return; } } void ll_readahead_init(struct inode *inode , struct ll_readahead_state *ras ) { struct lock_class_key __key ; { spinlock_check(& ras->ras_lock); __raw_spin_lock_init(& ras->ras_lock.__annonCompField18.rlock, "&(&ras->ras_lock)->rlock", & __key); ras_reset(inode, ras, 0UL); ras->ras_requests = 0UL; INIT_LIST_HEAD(& ras->ras_read_beads); return; } } static int index_in_stride_window(struct ll_readahead_state *ras , unsigned long index ) { unsigned long stride_gap ; { if ((ras->ras_stride_length == 0UL || ras->ras_stride_pages == 0UL) || ras->ras_stride_pages == ras->ras_stride_length) { return (0); } else { } stride_gap = (index - ras->ras_last_readpage) - 1UL; if (stride_gap == 0UL) { return (ras->ras_consecutive_pages + 1UL <= ras->ras_stride_pages); } else { } return (ras->ras_stride_length - ras->ras_stride_pages == stride_gap && ras->ras_consecutive_pages == ras->ras_stride_pages); } } static void ras_update_stride_detector(struct ll_readahead_state *ras , unsigned long index ) { unsigned long stride_gap ; int 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 ; { stride_gap = (index - ras->ras_last_readpage) - 1UL; tmp = stride_io_mode(ras); if (tmp == 0 && (stride_gap != 0UL || ras->ras_consecutive_stride_requests == 0UL)) { ras->ras_stride_pages = ras->ras_consecutive_pages; ras->ras_stride_length = ras->ras_consecutive_pages + stride_gap; } else { } tmp___0 = ldv__builtin_expect(ras->ras_request_index != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data.msg_fn = "ras_update_stride_detector"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 895; __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 *)"ras->ras_request_index == 0"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv__builtin_expect(ras->ras_consecutive_stride_requests != 0UL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data___0.msg_fn = "ras_update_stride_detector"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 896; __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 *)"ras->ras_consecutive_stride_requests == 0"); lbug_with_loc(& __msg_data___0); } else { } if (ras->ras_last_readpage >= index) { ras_stride_reset(ras); return; } else { } ras->ras_stride_pages = ras->ras_consecutive_pages; ras->ras_stride_length = ras->ras_consecutive_pages + stride_gap; tmp___2 = cfs_cdebug_show(4194304U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata.msg_fn = "ras_update_stride_detector"; msgdata.msg_line = 907; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "lrp %lu cr %lu cp %lu ws %lu wl %lu nra %lu r %lu ri %lucsr %lu sf %lu sp %lu sl %lu \n", ras->ras_last_readpage, ras->ras_consecutive_requests, ras->ras_consecutive_pages, ras->ras_window_start, ras->ras_window_len, ras->ras_next_readahead, ras->ras_requests, ras->ras_request_index, ras->ras_consecutive_stride_requests, ras->ras_stride_offset, ras->ras_stride_pages, ras->ras_stride_length); } else { } return; } } static unsigned long stride_page_count(struct ll_readahead_state *ras , unsigned long len ) { unsigned long tmp ; { tmp = stride_pg_count(ras->ras_stride_offset, ras->ras_stride_length, ras->ras_stride_pages, ras->ras_stride_offset, len); return (tmp); } } static void ras_stride_increase_window(struct ll_readahead_state *ras , struct ll_ra_info *ra , unsigned long inc_len ) { unsigned long left ; unsigned long step ; unsigned long window_len ; unsigned long stride_len ; 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 ; unsigned long tmp___2 ; struct libcfs_debug_msg_data msgdata ; int tmp___3 ; { tmp = ldv__builtin_expect(ras->ras_stride_length == 0UL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data.msg_fn = "ras_stride_increase_window"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 928; __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 *)"ras->ras_stride_length > 0"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect(ras->ras_window_start + ras->ras_window_len < ras->ras_stride_offset, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data___0.msg_fn = "ras_stride_increase_window"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 932; __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: window_start %lu, window_len %lu stride_offset %lu\n", (char *)"ras->ras_window_start + ras->ras_window_len >= ras->ras_stride_offset", ras->ras_window_start, ras->ras_window_len, ras->ras_stride_offset); lbug_with_loc(& __msg_data___0); } else { } stride_len = (ras->ras_window_start + ras->ras_window_len) - ras->ras_stride_offset; left = stride_len % ras->ras_stride_length; window_len = ras->ras_window_len - left; if (ras->ras_stride_pages > left) { left = left + inc_len; } else { left = ras->ras_stride_pages + inc_len; } tmp___1 = ldv__builtin_expect(ras->ras_stride_pages == 0UL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data___1.msg_fn = "ras_stride_increase_window"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 945; __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 *)"ras->ras_stride_pages != 0"); lbug_with_loc(& __msg_data___1); } else { } step = left / ras->ras_stride_pages; left = left % ras->ras_stride_pages; window_len = (ras->ras_stride_length * step + left) + window_len; tmp___2 = stride_page_count(ras, window_len); if (tmp___2 <= ra->ra_max_pages_per_file) { ras->ras_window_len = window_len; } else { } tmp___3 = cfs_cdebug_show(4194304U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata.msg_fn = "ras_stride_increase_window"; msgdata.msg_line = 955; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "lrp %lu cr %lu cp %lu ws %lu wl %lu nra %lu r %lu ri %lucsr %lu sf %lu sp %lu sl %lu \n", ras->ras_last_readpage, ras->ras_consecutive_requests, ras->ras_consecutive_pages, ras->ras_window_start, ras->ras_window_len, ras->ras_next_readahead, ras->ras_requests, ras->ras_request_index, ras->ras_consecutive_stride_requests, ras->ras_stride_offset, ras->ras_stride_pages, ras->ras_stride_length); } else { } return; } } static void ras_increase_window(struct inode *inode , struct ll_readahead_state *ras , struct ll_ra_info *ra ) { unsigned long _min1 ; unsigned long _min2 ; int tmp ; { tmp = stride_io_mode(ras); if (tmp != 0) { ras_stride_increase_window(ras, ra, 256UL); } else { _min1 = ras->ras_window_len + 256UL; _min2 = ra->ra_max_pages_per_file; ras->ras_window_len = _min1 < _min2 ? _min1 : _min2; } return; } } void ras_update(struct ll_sb_info *sbi , struct inode *inode , struct ll_readahead_state *ras , unsigned long index , unsigned int hit ) { struct ll_ra_info *ra ; int zero ; int stride_detect ; int ra_miss ; int tmp ; int tmp___0 ; __u64 kms_pages ; loff_t tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; unsigned long _min1 ; unsigned long _min2 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; int tmp___4 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; int tmp___6 ; int tmp___7 ; int tmp___8 ; int tmp___9 ; unsigned long _max1 ; unsigned long _max2 ; unsigned long _max1___0 ; unsigned long _max2___0 ; int tmp___10 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___11 ; unsigned long _max1___1 ; unsigned long _max2___1 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___12 ; { ra = & sbi->ll_ra_info; zero = 0; stride_detect = 0; ra_miss = 0; spin_lock(& ras->ras_lock); ll_ra_stats_inc_sbi(sbi, hit == 0U); tmp___0 = index_in_window(index, ras->ras_last_readpage, 8UL, 8UL); if (tmp___0 == 0) { zero = 1; ll_ra_stats_inc_sbi(sbi, 2); } else if ((hit == 0U && ras->ras_window_len != 0UL) && ras->ras_next_readahead > index) { tmp = index_in_window(index, ras->ras_window_start, 0UL, ras->ras_window_len); if (tmp != 0) { ra_miss = 1; ll_ra_stats_inc_sbi(sbi, 3); } else { } } else { } if (ras->ras_requests == 2UL && ras->ras_request_index == 0UL) { tmp___1 = i_size_read((struct inode const *)inode); kms_pages = ((unsigned long long )tmp___1 + 4095ULL) >> 12; tmp___2 = cfs_cdebug_show(4194304U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata.msg_fn = "ras_update"; msgdata.msg_line = 1014; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "kmsp %llu mwp %lu mp %lu\n", kms_pages, ra->ra_max_read_ahead_whole_pages, ra->ra_max_pages_per_file); } else { } if (kms_pages != 0ULL && (unsigned long long )ra->ra_max_read_ahead_whole_pages >= kms_pages) { ras->ras_window_start = 0UL; ras->ras_last_readpage = 0UL; ras->ras_next_readahead = 0UL; _min1 = ra->ra_max_pages_per_file; _min2 = ra->ra_max_read_ahead_whole_pages; ras->ras_window_len = _min1 < _min2 ? _min1 : _min2; goto out_unlock; } else { } } else { } if (zero != 0) { tmp___4 = index_in_stride_window(ras, index); if (tmp___4 == 0) { if (ras->ras_consecutive_stride_requests == 0UL && ras->ras_request_index == 0UL) { ras_update_stride_detector(ras, index); ras->ras_consecutive_stride_requests = ras->ras_consecutive_stride_requests + 1UL; } else { ras_stride_reset(ras); } ras_reset(inode, ras, index); ras->ras_consecutive_pages = ras->ras_consecutive_pages + 1UL; goto out_unlock; } else { ras->ras_consecutive_pages = 0UL; ras->ras_consecutive_requests = 0UL; ras->ras_consecutive_stride_requests = ras->ras_consecutive_stride_requests + 1UL; if (ras->ras_consecutive_stride_requests > 1UL) { stride_detect = 1; } else { } tmp___3 = cfs_cdebug_show(4194304U, 128U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata___0.msg_fn = "ras_update"; msgdata___0.msg_line = 1044; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 4194304; libcfs_debug_msg(& msgdata___0, "lrp %lu cr %lu cp %lu ws %lu wl %lu nra %lu r %lu ri %lucsr %lu sf %lu sp %lu sl %lu \n", ras->ras_last_readpage, ras->ras_consecutive_requests, ras->ras_consecutive_pages, ras->ras_window_start, ras->ras_window_len, ras->ras_next_readahead, ras->ras_requests, ras->ras_request_index, ras->ras_consecutive_stride_requests, ras->ras_stride_offset, ras->ras_stride_pages, ras->ras_stride_length); } else { } } } else if (ra_miss != 0) { tmp___6 = index_in_stride_window(ras, index); if (tmp___6 != 0) { tmp___7 = stride_io_mode(ras); if (tmp___7 != 0) { if (ras->ras_last_readpage + 1UL != index) { ras->ras_consecutive_pages = 0UL; } else { } ras_reset(inode, ras, index); tmp___5 = cfs_cdebug_show(4194304U, 128U); if (tmp___5 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata___1.msg_fn = "ras_update"; msgdata___1.msg_line = 1056; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 4194304; libcfs_debug_msg(& msgdata___1, "lrp %lu cr %lu cp %lu ws %lu wl %lu nra %lu r %lu ri %lucsr %lu sf %lu sp %lu sl %lu \n", ras->ras_last_readpage, ras->ras_consecutive_requests, ras->ras_consecutive_pages, ras->ras_window_start, ras->ras_window_len, ras->ras_next_readahead, ras->ras_requests, ras->ras_request_index, ras->ras_consecutive_stride_requests, ras->ras_stride_offset, ras->ras_stride_pages, ras->ras_stride_length); } else { } } else { ras_reset(inode, ras, index); ras->ras_consecutive_pages = ras->ras_consecutive_pages + 1UL; ras_stride_reset(ras); goto out_unlock; } } else { ras_reset(inode, ras, index); ras->ras_consecutive_pages = ras->ras_consecutive_pages + 1UL; ras_stride_reset(ras); goto out_unlock; } } else { tmp___9 = stride_io_mode(ras); if (tmp___9 != 0) { tmp___8 = index_in_stride_window(ras, index); if (tmp___8 == 0) { ras_stride_reset(ras); ras->ras_window_len = 0UL; ras->ras_next_readahead = index; } else { } } else { } } ras->ras_consecutive_pages = ras->ras_consecutive_pages + 1UL; ras->ras_last_readpage = index; ras_set_start(inode, ras, index); tmp___10 = stride_io_mode(ras); if (tmp___10 != 0) { _max1 = index; _max2 = ras->ras_next_readahead; ras->ras_next_readahead = _max1 > _max2 ? _max1 : _max2; } else { _max1___0 = ras->ras_window_start; _max2___0 = ras->ras_next_readahead; ras->ras_next_readahead = _max1___0 > _max2___0 ? _max1___0 : _max2___0; } tmp___11 = cfs_cdebug_show(4194304U, 128U); if (tmp___11 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata___2.msg_fn = "ras_update"; msgdata___2.msg_line = 1089; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 4194304; libcfs_debug_msg(& msgdata___2, "lrp %lu cr %lu cp %lu ws %lu wl %lu nra %lu r %lu ri %lucsr %lu sf %lu sp %lu sl %lu \n", ras->ras_last_readpage, ras->ras_consecutive_requests, ras->ras_consecutive_pages, ras->ras_window_start, ras->ras_window_len, ras->ras_next_readahead, ras->ras_requests, ras->ras_request_index, ras->ras_consecutive_stride_requests, ras->ras_stride_offset, ras->ras_stride_pages, ras->ras_stride_length); } else { } if (ras->ras_window_len == 0UL && ras->ras_consecutive_pages == 4UL) { ras->ras_window_len = 256UL; goto out_unlock; } else { } if (ras->ras_consecutive_stride_requests == 2UL && stride_detect != 0) { _max1___1 = index; _max2___1 = ras->ras_next_readahead; ras->ras_next_readahead = _max1___1 > _max2___1 ? _max1___1 : _max2___1; ras->ras_stride_offset = index; ras->ras_window_len = 256UL; } else { } if ((ras->ras_consecutive_requests > 1UL || stride_detect != 0) && ras->ras_request_index == 0UL) { ras_increase_window(inode, ras, ra); } else { } out_unlock: tmp___12 = cfs_cdebug_show(4194304U, 128U); if (tmp___12 != 0) { msgdata___3.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; msgdata___3.msg_fn = "ras_update"; msgdata___3.msg_line = 1116; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 4194304; libcfs_debug_msg(& msgdata___3, "lrp %lu cr %lu cp %lu ws %lu wl %lu nra %lu r %lu ri %lucsr %lu sf %lu sp %lu sl %lu \n", ras->ras_last_readpage, ras->ras_consecutive_requests, ras->ras_consecutive_pages, ras->ras_window_start, ras->ras_window_len, ras->ras_next_readahead, ras->ras_requests, ras->ras_request_index, ras->ras_consecutive_stride_requests, ras->ras_stride_offset, ras->ras_stride_pages, ras->ras_stride_length); } else { } ras->ras_request_index = ras->ras_request_index + 1UL; spin_unlock(& ras->ras_lock); return; } } int ll_writepage(struct page *vmpage , struct writeback_control *wbc ) { struct inode *inode ; struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct lu_env *env ; struct cl_io *io ; struct cl_page *page ; struct cl_object *clob ; struct cl_env_nest nest ; bool redirtied ; bool unlocked ; int result ; 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 ; struct obd_export *tmp___4 ; long tmp___5 ; long tmp___6 ; bool tmp___7 ; struct ll_inode_info *tmp___8 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___9 ; struct task_struct *tmp___10 ; int tmp___11 ; struct task_struct *tmp___12 ; long tmp___13 ; bool tmp___14 ; int tmp___15 ; loff_t offset ; loff_t tmp___16 ; { inode = (vmpage->__annonCompField36.mapping)->host; tmp = ll_i2info(inode); lli = tmp; redirtied = 0; unlocked = 0; tmp___0 = PageLocked((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data.msg_fn = "ll_writepage"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1135; __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 *)"PageLocked(vmpage)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = PageWriteback((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data___0.msg_fn = "ll_writepage"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 1136; __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 *)"!PageWriteback(vmpage)"); lbug_with_loc(& __msg_data___0); } else { } tmp___4 = ll_i2dtexp(inode); tmp___5 = ldv__builtin_expect((unsigned long )tmp___4 == (unsigned long )((struct obd_export *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data___1.msg_fn = "ll_writepage"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 1138; __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 *)"ll_i2dtexp(inode) != ((void *)0)"); lbug_with_loc(& __msg_data___1); } else { } env = cl_env_nested_get(& nest); tmp___7 = IS_ERR((void const *)env); if ((int )tmp___7) { tmp___6 = PTR_ERR((void const *)env); result = (int )tmp___6; goto out; } else { } tmp___8 = ll_i2info(inode); clob = tmp___8->lli_clob; tmp___9 = ldv__builtin_expect((unsigned long )clob == (unsigned long )((struct cl_object *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data___2.msg_fn = "ll_writepage"; __msg_data___2.msg_subsys = 128; __msg_data___2.msg_line = 1147; __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 *)"clob != ((void *)0)"); lbug_with_loc(& __msg_data___2); } else { } io = ccc_env_thread_io((struct lu_env const *)env); io->ci_obj = clob; io->ci_ignore_layout = 1U; result = cl_io_init((struct lu_env const *)env, io, 5, clob); if (result == 0) { page = cl_page_find((struct lu_env const *)env, clob, vmpage->__annonCompField42.__annonCompField37.index, vmpage, 1); tmp___14 = IS_ERR((void const *)page); if (tmp___14) { tmp___15 = 0; } else { tmp___15 = 1; } if (tmp___15) { tmp___10 = get_current(); lu_ref_add(& page->cp_reference, "writepage", (void const *)tmp___10); cl_page_assume((struct lu_env const *)env, io, page); result = cl_page_flush((struct lu_env const *)env, io, page); if (result != 0) { tmp___11 = PageError((struct page const *)vmpage); if (tmp___11 == 0) { redirty_page_for_writepage(wbc, vmpage); result = 0; redirtied = 1; } else { } } else { } cl_page_disown((struct lu_env const *)env, io, page); unlocked = 1; tmp___12 = get_current(); lu_ref_del(& page->cp_reference, "writepage", (void const *)tmp___12); cl_page_put((struct lu_env const *)env, page); } else { tmp___13 = PTR_ERR((void const *)page); result = (int )tmp___13; } } else { } cl_io_fini((struct lu_env const *)env, io); if ((int )redirtied && (unsigned int )wbc->sync_mode == 1U) { tmp___16 = cl_offset((struct cl_object const *)clob, vmpage->__annonCompField42.__annonCompField37.index); offset = tmp___16; result = cl_sync_file_range(inode, offset, (loff_t )((unsigned long long )offset + 4095ULL), 1, 1); if (result > 0) { wbc->nr_to_write = wbc->nr_to_write - (long )(result + -1); result = 0; } else { } } else { } cl_env_nested_put(& nest, env); goto out; out: ; if (result < 0) { if (lli->u.f.f_async_rc == 0) { lli->u.f.f_async_rc = result; } else { } SetPageError(vmpage); if (! unlocked) { unlock_page(vmpage); } else { } } else { } return (result); } } int ll_writepages(struct address_space *mapping , struct writeback_control *wbc ) { struct inode *inode ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; loff_t start ; loff_t end ; enum cl_fsync_mode mode ; int range_whole ; int result ; int ignore_layout ; { inode = mapping->host; tmp = ll_i2sbi(inode); sbi = tmp; range_whole = 0; ignore_layout = 0; if ((unsigned int )*((unsigned char *)wbc + 36UL) != 0U) { start = (loff_t )(mapping->writeback_index << 12); end = -1LL; } else { start = wbc->range_start; end = wbc->range_end; if (end == 9223372036854775807LL) { end = -1LL; range_whole = start == 0LL; } else { } } mode = 0; if ((unsigned int )wbc->sync_mode == 1U) { mode = 1; } else { } if ((unsigned int )*((unsigned char *)sbi + 316UL) != 0U) { ignore_layout = 1; } else { } result = cl_sync_file_range(inode, start, end, mode, ignore_layout); if (result > 0) { wbc->nr_to_write = wbc->nr_to_write - (long )result; result = 0; } else { } if ((unsigned int )*((unsigned char *)wbc + 36UL) != 0U || (range_whole != 0 && wbc->nr_to_write > 0L)) { if (end == -1LL) { end = i_size_read((struct inode const *)inode); } else { } mapping->writeback_index = (unsigned long )((end >> 12) + 1LL); } else { } return (result); } } int ll_readpage(struct file *file , struct page *vmpage ) { struct ll_cl_context *lcc ; int result ; struct lu_env *env ; struct cl_io *io ; struct cl_page *page ; struct libcfs_debug_msg_data __msg_data ; long tmp ; int tmp___0 ; long tmp___1 ; long tmp___2 ; bool tmp___3 ; int tmp___4 ; { lcc = ll_cl_init(file, vmpage, 0); tmp___3 = IS_ERR((void const *)lcc); if (tmp___3) { tmp___4 = 0; } else { tmp___4 = 1; } if (tmp___4) { env = lcc->lcc_env; io = lcc->lcc_io; page = lcc->lcc_page; tmp = ldv__builtin_expect((unsigned int )page->cp_type != 1U, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw.c"; __msg_data.msg_fn = "ll_readpage"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1274; __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_type == CPT_CACHEABLE"); lbug_with_loc(& __msg_data); } else { } tmp___0 = PageUptodate(vmpage); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 1L); if (tmp___1 != 0L) { cl_page_assume((struct lu_env const *)env, io, page); result = cl_io_read_page((struct lu_env const *)env, io, page); } else { unlock_page(vmpage); result = 0; } ll_cl_fini(lcc); } else { unlock_page(vmpage); tmp___2 = PTR_ERR((void const *)lcc); result = (int )tmp___2; } return (result); } } int ldv_pskb_expand_head_253(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_255(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_257(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_258(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_259(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_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); } } int ldv_pskb_expand_head_261(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_262(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_263(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 int hlist_empty(struct hlist_head const *h ) { { return ((unsigned long )h->first == (unsigned long )((struct hlist_node */* const */)0)); } } __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 spin_lock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; extern int in_group_p(kgid_t ) ; void *ldv_kmem_cache_alloc_302(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; struct dentry *ll_dir_inode_operations_group1 ; int ldv_state_variable_52 ; struct dentry *ll_dir_inode_operations_group2 ; struct dentry *ll_special_inode_operations_group1 ; struct inode *ll_dir_inode_operations_group0 ; int ldv_state_variable_53 ; struct inode *ll_special_inode_operations_group0 ; void ldv_initialize_inode_operations_53(void) ; void ldv_initialize_inode_operations_52(void) ; __inline static u16 old_encode_dev(dev_t dev ) { { return (((int )((u16 )(dev >> 20)) << 8U) | (int )((u16 )dev)); } } extern void d_instantiate(struct dentry * , struct inode * ) ; extern void d_rehash(struct dentry * ) ; __inline static void d_add(struct dentry *entry , struct inode *inode ) { { d_instantiate(entry, inode); d_rehash(entry); return; } } extern void d_move(struct dentry * , struct dentry * ) ; __inline static struct dentry *dget_dlock(struct dentry *dentry ) { { if ((unsigned long )dentry != (unsigned long )((struct dentry *)0)) { dentry->d_lockref.__annonCompField59.__annonCompField58.count = dentry->d_lockref.__annonCompField59.__annonCompField58.count + 1; } else { } return (dentry); } } __inline static bool d_really_is_negative(struct dentry const *dentry ) { { return ((unsigned long )dentry->d_inode == (unsigned long )((struct inode */* const */)0)); } } __inline static bool d_really_is_positive(struct dentry const *dentry ) { { return ((unsigned long )dentry->d_inode != (unsigned long )((struct inode */* const */)0)); } } extern int finish_open(struct file * , struct dentry * , int (*)(struct inode * , struct file * ) , int * ) ; extern int finish_no_open(struct file * , struct dentry * ) ; extern void make_bad_inode(struct inode * ) ; extern struct inode *iget5_locked(struct super_block * , unsigned long , int (*)(struct inode * , void * ) , int (*)(struct inode * , void * ) , void * ) ; extern void unlock_new_inode(struct inode * ) ; extern void truncate_inode_pages(struct address_space * , loff_t ) ; struct sk_buff *ldv_skb_clone_292(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_300(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_294(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_290(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_298(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_299(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_295(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_296(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_297(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __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_res_name_eq(struct lu_fid const *fid , struct ldlm_res_id const *res ) { __u64 tmp ; __u64 tmp___0 ; int tmp___1 ; { tmp = fid_seq(fid); if (res->name[0] == tmp) { tmp___0 = fid_ver_oid(fid); if (res->name[1] == tmp___0) { tmp___1 = 1; } else { tmp___1 = 0; } } else { tmp___1 = 0; } return (tmp___1); } } extern struct req_msg_field RMF_LOGCOOKIES ; extern struct req_msg_field RMF_CAPA2 ; extern char *ldlm_it2str(int ) ; __inline static int exp_connect_umask(struct obd_export *exp ) { __u64 tmp ; { tmp = exp_connect_flags(exp); return ((tmp & 4398046511104ULL) != 0ULL); } } __inline static int obd_destroy(struct lu_env const *env , struct obd_export *exp , struct obdo *obdo , struct lov_stripe_md *ea , struct obd_trans_info *oti , struct obd_export *md_exp , void *capa ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "obd_destroy"; msgdata.msg_line = 776; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_destroy: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "obd_destroy"; msgdata___0.msg_line = 776; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_destroy: 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_destroy == (unsigned long )((int (*)(struct lu_env const * , struct obd_export * , struct obdo * , struct lov_stripe_md * , struct obd_trans_info * , struct obd_export * , void * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "obd_destroy"; msgdata___1.msg_line = 776; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_destroy: 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 + 24U; 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_destroy"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 777; __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_destroy))(env, exp, obdo, ea, oti, md_exp, capa); return (rc); } } __inline static int md_create___0(struct obd_export *exp , struct md_op_data *op_data , void const *data , int datalen , int mode , __u32 uid , __u32 gid , cfs_cap_t cap_effective , __u64 rdev , struct ptlrpc_request **request ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_create"; msgdata.msg_line = 1501; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_create: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_create"; msgdata___0.msg_line = 1501; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_create: 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_md_ops)->m_create == (unsigned long )((int (*)(struct obd_export * , struct md_op_data * , void const * , int , int , __u32 , __u32 , cfs_cap_t , __u64 , struct ptlrpc_request ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_create"; msgdata___1.msg_line = 1501; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_create: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 4U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_create"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1502; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_create))(exp, op_data, data, datalen, mode, uid, gid, cap_effective, rdev, request); return (rc); } } __inline static int md_link(struct obd_export *exp , struct md_op_data *op_data , struct ptlrpc_request **request ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_link"; msgdata.msg_line = 1572; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_link: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_link"; msgdata___0.msg_line = 1572; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_link: 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_md_ops)->m_link == (unsigned long )((int (*)(struct obd_export * , struct md_op_data * , struct ptlrpc_request ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_link"; msgdata___1.msg_line = 1572; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_link: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 10U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_link"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1573; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_link))(exp, op_data, request); return (rc); } } __inline static int md_rename(struct obd_export *exp , struct md_op_data *op_data , char const *old , int oldlen , char const *new , int newlen , struct ptlrpc_request **request ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_rename"; msgdata.msg_line = 1584; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_rename: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_rename"; msgdata___0.msg_line = 1584; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_rename: 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_md_ops)->m_rename == (unsigned long )((int (*)(struct obd_export * , struct md_op_data * , char const * , int , char const * , int , struct ptlrpc_request ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_rename"; msgdata___1.msg_line = 1584; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_rename: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 11U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_rename"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1585; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_rename))(exp, op_data, old, oldlen, new, newlen, request); return (rc); } } __inline static int md_unlink(struct obd_export *exp , struct md_op_data *op_data , struct ptlrpc_request **request ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_unlink"; msgdata.msg_line = 1646; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_unlink: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_unlink"; msgdata___0.msg_line = 1646; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_unlink: 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_md_ops)->m_unlink == (unsigned long )((int (*)(struct obd_export * , struct md_op_data * , struct ptlrpc_request ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_unlink"; msgdata___1.msg_line = 1646; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_unlink: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 16U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_unlink"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1647; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_unlink))(exp, op_data, request); return (rc); } } __inline static int md_unpack_capa(struct obd_export *exp , struct ptlrpc_request *req , struct req_msg_field const *field , struct obd_capa **oc ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_unpack_capa"; msgdata.msg_line = 1793; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_unpack_capa: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_unpack_capa"; msgdata___0.msg_line = 1793; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_unpack_capa: 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_md_ops)->m_unpack_capa == (unsigned long )((int (*)(struct obd_export * , struct ptlrpc_request * , struct req_msg_field const * , struct obd_capa ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_unpack_capa"; msgdata___1.msg_line = 1793; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_unpack_capa: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 28U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_unpack_capa"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1794; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_unpack_capa))(exp, req, field, oc); return (rc); } } __inline static int md_revalidate_lock(struct obd_export *exp , struct lookup_intent *it , struct lu_fid *fid , __u64 *bits ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_revalidate_lock"; msgdata.msg_line = 1817; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_revalidate_lock: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_revalidate_lock"; msgdata___0.msg_line = 1817; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_revalidate_lock: 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_md_ops)->m_revalidate_lock == (unsigned long )((int (*)(struct obd_export * , struct lookup_intent * , struct lu_fid * , __u64 * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_revalidate_lock"; msgdata___1.msg_line = 1817; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_revalidate_lock: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 31U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_revalidate_lock"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1818; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_revalidate_lock))(exp, it, fid, bits); return (rc); } } __u32 ll_i2suppgid(struct inode *i ) ; struct dentry *ll_splice_alias(struct inode *inode , struct dentry *de ) ; int ll_rmdir_entry(struct inode *dir , char *name , int namelen ) ; __inline static int ll_statahead_enter(struct inode *dir , struct dentry **dentryp , int only_unplug ) { int ret ; int tmp ; { ret = d_need_statahead(dir, *dentryp); if (ret <= 0) { return (ret); } else { } tmp = do_statahead_enter(dir, dentryp, only_unplug); return (tmp); } } __inline static void ll_lock_dcache___0(struct inode *inode ) { { spin_lock(& inode->i_lock); return; } } __inline static void ll_unlock_dcache___0(struct inode *inode ) { { spin_unlock(& inode->i_lock); return; } } __inline static void d_lustre_invalidate___1(struct dentry *dentry , int nested ) { struct libcfs_debug_msg_data msgdata ; unsigned int tmp ; struct inode *tmp___0 ; int tmp___1 ; unsigned int tmp___2 ; { tmp___1 = cfs_cdebug_show(8192U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/llite_internal.h"; msgdata.msg_fn = "d_lustre_invalidate"; msgdata.msg_line = 1464; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 8192; tmp = d_count((struct dentry const *)dentry); tmp___0 = d_inode((struct dentry const *)dentry); libcfs_debug_msg(& msgdata, "invalidate dentry %pd (%p) parent %p inode %p refc %d\n", dentry, dentry, dentry->d_parent, tmp___0, tmp); } else { } ldv_spin_lock(); __d_lustre_invalidate(dentry); tmp___2 = d_count((struct dentry const *)dentry); if (tmp___2 == 0U) { __d_drop(dentry); } else { } spin_unlock(& dentry->d_lockref.__annonCompField59.__annonCompField58.lock); return; } } __inline static void d_lustre_revalidate(struct dentry *dentry ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { spin_lock(& dentry->d_lockref.__annonCompField59.__annonCompField58.lock); tmp = ldv__builtin_expect((unsigned long )((struct ll_dentry_data *)dentry->d_fsdata) == (unsigned long )((struct ll_dentry_data *)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/llite/llite_internal.h"; __msg_data.msg_fn = "d_lustre_revalidate"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1477; __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 *)"((struct ll_dentry_data*)((dentry)->d_fsdata)) != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } ((struct ll_dentry_data *)dentry->d_fsdata)->lld_invalid = 0U; spin_unlock(& dentry->d_lockref.__annonCompField59.__annonCompField58.lock); return; } } static int ll_create_it(struct inode *dir , struct dentry *dentry , int mode , struct lookup_intent *it ) ; static int ll_test_inode(struct inode *inode , void *opaque ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct lustre_md *md ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; long tmp___1 ; int tmp___2 ; { tmp = ll_i2info(inode); lli = tmp; md = (struct lustre_md *)opaque; tmp___1 = ldv__builtin_expect(((md->body)->valid & 1ULL) == 0ULL, 0L); if (tmp___1 != 0L) { tmp___0 = cfs_cdebug_show(131072U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_test_inode"; msgdata.msg_line = 64; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "MDS body missing FID\n"); } else { } return (0); } else { } tmp___2 = lu_fid_eq((struct lu_fid const *)(& lli->lli_fid), (struct lu_fid const *)(& (md->body)->fid1)); if (tmp___2 == 0) { return (0); } else { } return (1); } } static int ll_set_inode(struct inode *inode , void *opaque ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct mdt_body *body ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; long tmp___1 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; long tmp___3 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___4 ; long tmp___5 ; { tmp = ll_i2info(inode); lli = tmp; body = ((struct lustre_md *)opaque)->body; tmp___1 = ldv__builtin_expect((body->valid & 1ULL) == 0ULL, 0L); if (tmp___1 != 0L) { tmp___0 = cfs_cdebug_show(131072U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_set_inode"; msgdata.msg_line = 80; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "MDS body missing FID\n"); } else { } return (-22); } else { } lli->lli_fid = body->fid1; tmp___3 = ldv__builtin_expect((body->valid & 256ULL) == 0ULL, 0L); if (tmp___3 != 0L) { tmp___2 = cfs_cdebug_show(131072U, 128U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___0.msg_fn = "ll_set_inode"; msgdata___0.msg_line = 88; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "Can not initialize inode [%#llx:0x%x:0x%x] without object type: valid = %#llx\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, body->valid); } else { } return (-22); } else { } inode->i_mode = ((unsigned int )inode->i_mode & 4095U) | ((unsigned int )((umode_t )body->mode) & 61440U); tmp___5 = ldv__builtin_expect((unsigned int )inode->i_mode == 0U, 0L); if (tmp___5 != 0L) { tmp___4 = cfs_cdebug_show(131072U, 128U); if (tmp___4 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___1.msg_fn = "ll_set_inode"; msgdata___1.msg_line = 94; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "Invalid inode [%#llx:0x%x:0x%x] type\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver); } else { } return (-22); } else { } ll_lli_init(lli); return (0); } } struct inode *ll_iget(struct super_block *sb , ino_t hash , struct lustre_md *md ) { struct inode *inode ; struct libcfs_debug_msg_data __msg_data ; long tmp ; int rc ; struct libcfs_debug_msg_data msgdata ; struct lu_fid *tmp___0 ; struct lu_fid *tmp___1 ; struct lu_fid *tmp___2 ; char *tmp___3 ; int tmp___4 ; struct ll_inode_info *tmp___5 ; void *tmp___6 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___7 ; { tmp = ldv__builtin_expect(hash == 0UL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; __msg_data.msg_fn = "ll_iget"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 113; __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 *)"hash != 0"); lbug_with_loc(& __msg_data); } else { } inode = iget5_locked(sb, hash, & ll_test_inode, & ll_set_inode, (void *)md); if ((unsigned long )inode != (unsigned long )((struct inode *)0)) { if ((inode->i_state & 8UL) != 0UL) { rc = 0; ll_read_inode2(inode, (void *)md); if (((int )inode->i_mode & 61440) == 32768) { tmp___5 = ll_i2info(inode); if ((unsigned long )tmp___5->lli_clob == (unsigned long )((struct cl_object *)0)) { tmp___4 = cfs_cdebug_show(2U, 128U); if (tmp___4 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_iget"; msgdata.msg_line = 126; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; tmp___0 = ll_inode2fid(inode); tmp___1 = ll_inode2fid(inode); tmp___2 = ll_inode2fid(inode); tmp___3 = ll_get_fsname(sb, (char *)0, 0); libcfs_debug_msg(& msgdata, "%s: apply lsm %p to inode [%#llx:0x%x:0x%x].\n", tmp___3, md->lsm, tmp___2->f_seq, tmp___1->f_oid, tmp___0->f_ver); } else { } rc = cl_file_inode_init(inode, md); } else { } } else { } if (rc != 0) { make_bad_inode(inode); unlock_new_inode(inode); iput(inode); tmp___6 = ERR_PTR((long )rc); inode = (struct inode *)tmp___6; } else { unlock_new_inode(inode); } } else if ((inode->i_state & 96UL) == 0UL) { ll_update_inode(inode, md); } else { } tmp___7 = cfs_cdebug_show(2097152U, 128U); if (tmp___7 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___0.msg_fn = "ll_iget"; msgdata___0.msg_line = 139; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 2097152; libcfs_debug_msg(& msgdata___0, "got inode: %p for [%#llx:0x%x:0x%x]\n", inode, (md->body)->fid1.f_seq, (md->body)->fid1.f_oid, (md->body)->fid1.f_ver); } else { } } else { } return (inode); } } static void ll_invalidate_negative_children(struct inode *dir ) { struct dentry *dentry ; struct dentry *tmp_subdir ; struct hlist_node *p ; struct hlist_node *____ptr ; struct hlist_node const *__mptr ; struct dentry *tmp ; struct dentry *child ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; bool tmp___0 ; struct list_head const *__mptr___2 ; int tmp___1 ; struct hlist_node *____ptr___0 ; struct hlist_node const *__mptr___3 ; struct dentry *tmp___2 ; { ll_lock_dcache___0(dir); p = (struct hlist_node *)0; ____ptr = dir->__annonCompField67.i_dentry.first; if ((unsigned long )____ptr != (unsigned long )((struct hlist_node *)0)) { __mptr = (struct hlist_node const *)____ptr; tmp = (struct dentry *)__mptr + 0xfffffffffffffed0UL; } else { tmp = (struct dentry *)0; } dentry = tmp; goto ldv_68464; ldv_68463: spin_lock(& dentry->d_lockref.__annonCompField59.__annonCompField58.lock); tmp___1 = list_empty((struct list_head const *)(& dentry->d_subdirs)); if (tmp___1 == 0) { __mptr___0 = (struct list_head const *)dentry->d_subdirs.next; child = (struct dentry *)__mptr___0 + 0xfffffffffffffef0UL; __mptr___1 = (struct list_head const *)child->d_child.next; tmp_subdir = (struct dentry *)__mptr___1 + 0xfffffffffffffef0UL; goto ldv_68461; ldv_68460: tmp___0 = d_really_is_negative((struct dentry const *)child); if ((int )tmp___0) { d_lustre_invalidate___1(child, 1); } else { } child = tmp_subdir; __mptr___2 = (struct list_head const *)tmp_subdir->d_child.next; tmp_subdir = (struct dentry *)__mptr___2 + 0xfffffffffffffef0UL; ldv_68461: ; if ((unsigned long )(& child->d_child) != (unsigned long )(& dentry->d_subdirs)) { goto ldv_68460; } else { } } else { } spin_unlock(& dentry->d_lockref.__annonCompField59.__annonCompField58.lock); ____ptr___0 = dentry->d_u.d_alias.next; if ((unsigned long )____ptr___0 != (unsigned long )((struct hlist_node *)0)) { __mptr___3 = (struct hlist_node const *)____ptr___0; tmp___2 = (struct dentry *)__mptr___3 + 0xfffffffffffffed0UL; } else { tmp___2 = (struct dentry *)0; } dentry = tmp___2; ldv_68464: ; if ((unsigned long )dentry != (unsigned long )((struct dentry *)0)) { goto ldv_68463; } else { } ll_unlock_dcache___0(dir); return; } } int ll_md_blocking_ast(struct ldlm_lock *lock , struct ldlm_lock_desc *desc , void *data , int flag ) { struct lustre_handle lockh ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct inode *inode ; struct inode *tmp___0 ; __u64 bits ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___2 ; struct cfs_debug_limit_state _ldlm_cdls ; struct libcfs_debug_msg_data msgdata___0 ; struct lu_fid *tmp___3 ; struct lu_fid *tmp___4 ; struct lu_fid *tmp___5 ; struct libcfs_debug_msg_data msgdata___1 ; struct lu_fid *tmp___6 ; int tmp___7 ; fmode_t fmode ; struct cfs_debug_limit_state _ldlm_cdls___0 ; struct libcfs_debug_msg_data msgdata___2 ; struct libcfs_debug_msg_data msgdata___3 ; struct cl_object_conf conf ; struct libcfs_debug_msg_data msgdata___4 ; struct lu_fid *tmp___8 ; struct lu_fid *tmp___9 ; struct lu_fid *tmp___10 ; int tmp___11 ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___12 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___13 ; bool tmp___14 ; int tmp___15 ; struct libcfs_debug_msg_data msgdata___6 ; { switch (flag) { case 1: ldlm_lock2handle((struct ldlm_lock const *)lock, & lockh); rc = ldlm_cli_cancel(& lockh, 1); if (rc < 0) { tmp = cfs_cdebug_show(2U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_md_blocking_ast"; msgdata.msg_line = 178; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; libcfs_debug_msg(& msgdata, "ldlm_cli_cancel: rc = %d\n", rc); } else { } return (rc); } else { } goto ldv_68477; case 2: tmp___0 = ll_inode_from_resource_lock(lock); inode = tmp___0; bits = lock->l_policy_data.l_inodebits.bits; tmp___1 = ldv__builtin_expect((unsigned long )lock->l_ast_data != (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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; __msg_data.msg_fn = "ll_md_blocking_ast"; __msg_data.msg_subsys = 128; __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 *)"lock->l_ast_data == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } if ((unsigned long )inode == (unsigned long )((struct inode *)0)) { goto ldv_68477; } else { } tmp___2 = ldv__builtin_expect((lock->l_flags & 549755813888ULL) == 0ULL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; __msg_data___0.msg_fn = "ll_md_blocking_ast"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 194; __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_flags & 0x0000008000000000ULL"); lbug_with_loc(& __msg_data___0); } else { } tmp___6 = ll_inode2fid(inode); tmp___7 = fid_res_name_eq((struct lu_fid const *)tmp___6, (struct ldlm_res_id const *)(& (lock->l_resource)->lr_name)); if (tmp___7 == 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___0.msg_fn = "ll_md_blocking_ast"; msgdata___0.msg_subsys = 128; msgdata___0.msg_line = 199; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = & _ldlm_cdls; msgdata___0.msg_mask = 131072; tmp___3 = ll_inode2fid(inode); tmp___4 = ll_inode2fid(inode); tmp___5 = ll_inode2fid(inode); _ldlm_lock_debug(lock, & msgdata___0, "### data mismatch with object [%#llx:0x%x:0x%x](%p)", tmp___5->f_seq, tmp___4->f_oid, tmp___3->f_ver, inode); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___1.msg_fn = "ll_md_blocking_ast"; msgdata___1.msg_subsys = 128; msgdata___1.msg_line = 200; 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); } else { } if ((bits & 32ULL) != 0ULL) { ll_xattr_cache_destroy(inode); bits = bits & 0xffffffffffffffdfULL; } else { } if ((bits & 4ULL) != 0ULL) { ll_have_md_lock(inode, & bits, lock->l_req_mode); } else { } if ((bits & 4ULL) != 0ULL) { switch ((unsigned int )lock->l_req_mode) { case 8U: fmode = 2U; goto ldv_68488; case 4U: fmode = 32U; goto ldv_68488; case 16U: fmode = 1U; goto ldv_68488; default: 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___2.msg_fn = "ll_md_blocking_ast"; msgdata___2.msg_subsys = 128; msgdata___2.msg_line = 227; msgdata___2.msg_mask = 0; msgdata___2.msg_cdls = & _ldlm_cdls___0; msgdata___2.msg_mask = 131072; _ldlm_lock_debug(lock, & msgdata___2, "### bad lock mode for OPEN lock"); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___3.msg_fn = "ll_md_blocking_ast"; msgdata___3.msg_subsys = 128; msgdata___3.msg_line = 228; 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); } ldv_68488: ll_md_real_close(inode, fmode); } else { } if ((bits & 27ULL) != 0ULL) { ll_have_md_lock(inode, & bits, 0); } else { } if ((bits & 8ULL) != 0ULL) { conf.coc_lu.loc_flags = 0; conf.u.coc_md = 0; conf.coc_inode = inode; conf.coc_lock = 0; conf.coc_opc = 1; rc = ll_layout_conf(inode, (struct cl_object_conf const *)(& conf)); if (rc < 0) { tmp___11 = cfs_cdebug_show(2U, 128U); if (tmp___11 != 0) { msgdata___4.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___4.msg_fn = "ll_md_blocking_ast"; msgdata___4.msg_line = 248; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 2; tmp___8 = ll_inode2fid(inode); tmp___9 = ll_inode2fid(inode); tmp___10 = ll_inode2fid(inode); libcfs_debug_msg(& msgdata___4, "cannot invalidate layout of [%#llx:0x%x:0x%x]: rc = %d\n", tmp___10->f_seq, tmp___9->f_oid, tmp___8->f_ver, rc); } else { } } else { } } else { } if ((bits & 2ULL) != 0ULL) { tmp___12 = ll_i2info(inode); lli = tmp___12; spin_lock(& lli->lli_lock); lli->lli_flags = lli->lli_flags & 4294967294U; spin_unlock(& lli->lli_lock); } else { } if ((bits & 2ULL) != 0ULL && ((int )inode->i_mode & 61440) == 16384) { tmp___13 = cfs_cdebug_show(2U, 128U); if (tmp___13 != 0) { msgdata___5.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___5.msg_fn = "ll_md_blocking_ast"; msgdata___5.msg_line = 261; msgdata___5.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___5.msg_mask = 2; libcfs_debug_msg(& msgdata___5, "invalidating inode %lu\n", inode->i_ino); } else { } truncate_inode_pages(inode->i_mapping, 0LL); ll_invalidate_negative_children(inode); } else { } if ((bits & 17ULL) != 0ULL && (unsigned long )(inode->i_sb)->s_root != (unsigned long )((struct dentry *)0)) { tmp___14 = is_root_inode(inode); if (tmp___14) { tmp___15 = 0; } else { tmp___15 = 1; } if (tmp___15) { ll_invalidate_aliases(inode); } else { } } else { } iput(inode); goto ldv_68477; default: 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___6.msg_fn = "ll_md_blocking_ast"; msgdata___6.msg_subsys = 128; msgdata___6.msg_line = 275; msgdata___6.msg_mask = 0; msgdata___6.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___6.msg_mask = 262144; lbug_with_loc(& msgdata___6); } ldv_68477: ; return (0); } } __u32 ll_i2suppgid(struct inode *i ) { gid_t tmp ; int tmp___0 ; { tmp___0 = in_group_p(i->i_gid); if (tmp___0 != 0) { tmp = from_kgid(& init_user_ns, i->i_gid); return (tmp); } else { return (4294967295U); } } } void ll_i2gids(__u32 *suppgids , struct inode *i1 , struct inode *i2 ) { 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 )i1 == (unsigned long )((struct inode *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; __msg_data.msg_fn = "ll_i2gids"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 299; __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 *)"i1 != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect((unsigned long )suppgids == (unsigned long )((__u32 *)0U), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; __msg_data___0.msg_fn = "ll_i2gids"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 300; __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 *)"suppgids != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } *suppgids = ll_i2suppgid(i1); if ((unsigned long )i2 != (unsigned long )((struct inode *)0)) { *(suppgids + 1UL) = ll_i2suppgid(i2); } else { *(suppgids + 1UL) = 4294967295U; } return; } } static struct dentry *ll_find_alias(struct inode *inode , struct dentry *dentry ) { struct dentry *alias ; struct dentry *discon_alias ; struct dentry *invalid_alias ; struct hlist_node *p ; int tmp ; struct hlist_node *____ptr ; struct hlist_node const *__mptr ; struct dentry *tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; int tmp___2 ; struct hlist_node *____ptr___0 ; struct hlist_node const *__mptr___0 ; struct dentry *tmp___3 ; { tmp = hlist_empty((struct hlist_head const *)(& inode->__annonCompField67.i_dentry)); if (tmp != 0) { return ((struct dentry *)0); } else { } invalid_alias = (struct dentry *)0; discon_alias = invalid_alias; ll_lock_dcache___0(inode); p = (struct hlist_node *)0; ____ptr = inode->__annonCompField67.i_dentry.first; if ((unsigned long )____ptr != (unsigned long )((struct hlist_node *)0)) { __mptr = (struct hlist_node const *)____ptr; tmp___0 = (struct dentry *)__mptr + 0xfffffffffffffed0UL; } else { tmp___0 = (struct dentry *)0; } alias = tmp___0; goto ldv_68532; ldv_68531: tmp___1 = ldv__builtin_expect((unsigned long )alias == (unsigned long )dentry, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; __msg_data.msg_fn = "ll_find_alias"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 346; __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 *)"alias != dentry"); lbug_with_loc(& __msg_data); } else { } spin_lock(& alias->d_lockref.__annonCompField59.__annonCompField58.lock); if ((alias->d_flags & 32U) != 0U) { discon_alias = alias; } else if (((unsigned long )alias->d_parent == (unsigned long )dentry->d_parent && alias->d_name.__annonCompField61.__annonCompField60.hash == dentry->d_name.__annonCompField61.__annonCompField60.hash) && alias->d_name.__annonCompField61.__annonCompField60.len == dentry->d_name.__annonCompField61.__annonCompField60.len) { tmp___2 = memcmp((void const *)alias->d_name.name, (void const *)dentry->d_name.name, (size_t )dentry->d_name.__annonCompField61.__annonCompField60.len); if (tmp___2 == 0) { invalid_alias = alias; } else { } } else { } spin_unlock(& alias->d_lockref.__annonCompField59.__annonCompField58.lock); if ((unsigned long )invalid_alias != (unsigned long )((struct dentry *)0)) { goto ldv_68530; } else { } ____ptr___0 = alias->d_u.d_alias.next; if ((unsigned long )____ptr___0 != (unsigned long )((struct hlist_node *)0)) { __mptr___0 = (struct hlist_node const *)____ptr___0; tmp___3 = (struct dentry *)__mptr___0 + 0xfffffffffffffed0UL; } else { tmp___3 = (struct dentry *)0; } alias = tmp___3; ldv_68532: ; if ((unsigned long )alias != (unsigned long )((struct dentry *)0)) { goto ldv_68531; } else { } ldv_68530: alias = (unsigned long )invalid_alias != (unsigned long )((struct dentry *)0) ? (unsigned long )invalid_alias != (unsigned long )((struct dentry *)0) : discon_alias; if ((unsigned long )alias != (unsigned long )((struct dentry *)0)) { spin_lock(& alias->d_lockref.__annonCompField59.__annonCompField58.lock); dget_dlock(alias); spin_unlock(& alias->d_lockref.__annonCompField59.__annonCompField58.lock); } else { } ll_unlock_dcache___0(inode); return (alias); } } struct dentry *ll_splice_alias(struct inode *inode , struct dentry *de ) { struct dentry *new ; int rc ; void *tmp ; struct libcfs_debug_msg_data msgdata ; unsigned int tmp___0 ; struct inode *tmp___1 ; int tmp___2 ; void *tmp___3 ; struct libcfs_debug_msg_data msgdata___0 ; unsigned int tmp___4 ; struct inode *tmp___5 ; int tmp___6 ; { if ((unsigned long )inode != (unsigned long )((struct inode *)0)) { new = ll_find_alias(inode, de); if ((unsigned long )new != (unsigned long )((struct dentry *)0)) { rc = ll_d_init(new); if (rc < 0) { dput(new); tmp = ERR_PTR((long )rc); return ((struct dentry *)tmp); } else { } d_move(new, de); iput(inode); tmp___2 = cfs_cdebug_show(8192U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_splice_alias"; msgdata.msg_line = 395; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 8192; tmp___0 = d_count((struct dentry const *)new); tmp___1 = d_inode((struct dentry const *)new); libcfs_debug_msg(& msgdata, "Reuse dentry %p inode %p refc %d flags %#x\n", new, tmp___1, tmp___0, new->d_flags); } else { } return (new); } else { } } else { } rc = ll_d_init(de); if (rc < 0) { tmp___3 = ERR_PTR((long )rc); return ((struct dentry *)tmp___3); } else { } d_add(de, inode); tmp___6 = cfs_cdebug_show(8192U, 128U); if (tmp___6 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___0.msg_fn = "ll_splice_alias"; msgdata___0.msg_line = 404; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 8192; tmp___4 = d_count((struct dentry const *)de); tmp___5 = d_inode((struct dentry const *)de); libcfs_debug_msg(& msgdata___0, "Add dentry %p inode %p refc %d flags %#x\n", de, tmp___5, tmp___4, de->d_flags); } else { } return (de); } } static int ll_lookup_it_finish(struct ptlrpc_request *request , struct lookup_intent *it , struct inode *parent , struct dentry **de ) { struct inode *inode ; __u64 bits ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct ll_sb_info *tmp___0 ; int tmp___1 ; struct dentry *alias ; long tmp___2 ; bool tmp___3 ; struct libcfs_debug_msg_data __msg_data ; struct inode *tmp___4 ; long tmp___5 ; int tmp___6 ; int tmp___7 ; int tmp___8 ; struct lookup_intent parent_it ; struct ll_inode_info *tmp___9 ; struct obd_export *tmp___10 ; int tmp___11 ; int tmp___12 ; int tmp___13 ; { inode = (struct inode *)0; bits = 0ULL; tmp = cfs_cdebug_show(8192U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_lookup_it_finish"; msgdata.msg_line = 419; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 8192; libcfs_debug_msg(& msgdata, "it %p it_disposition %x\n", it, it->d.lustre.it_disposition); } else { } tmp___1 = it_disposition(it, 4); if (tmp___1 == 0) { rc = ll_prep_inode(& inode, request, (*de)->d_sb, it); if (rc != 0) { return (rc); } else { } tmp___0 = ll_i2sbi(parent); ll_set_lock_data(tmp___0->ll_md_exp, inode, it, & bits); } else { } tmp___8 = d_unhashed((struct dentry const *)*de); if (tmp___8 != 0) { alias = ll_splice_alias(inode, *de); tmp___3 = IS_ERR((void const *)alias); if ((int )tmp___3) { tmp___2 = PTR_ERR((void const *)alias); return ((int )tmp___2); } else { } *de = alias; } else { tmp___6 = it_disposition(it, 4); if (tmp___6 == 0) { tmp___7 = it_disposition(it, 16); if (tmp___7 == 0) { tmp___4 = d_inode((struct dentry const *)*de); tmp___5 = ldv__builtin_expect((unsigned long )tmp___4 != (unsigned long )((struct inode *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; __msg_data.msg_fn = "ll_lookup_it_finish"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 451; __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_inode(*de) == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } d_instantiate(*de, inode); } else { } } else { } } tmp___13 = it_disposition(it, 4); if (tmp___13 == 0) { if ((int )bits & 1) { d_lustre_revalidate(*de); } else { } } else { tmp___12 = it_disposition(it, 16); if (tmp___12 == 0) { parent_it.it_op = 8; parent_it.it_create_mode = 0; parent_it.it_flags = 0ULL; parent_it.d.lustre.it_disposition = 0; parent_it.d.lustre.it_status = 0; parent_it.d.lustre.it_lock_handle = 0ULL; parent_it.d.lustre.it_lock_bits = 0ULL; parent_it.d.lustre.it_lock_mode = 0; parent_it.d.lustre.it_remote_lock_mode = 0; parent_it.d.lustre.it_remote_lock_handle = 0ULL; parent_it.d.lustre.it_data = 0; parent_it.d.lustre.it_lock_set = (unsigned char)0; tmp___9 = ll_i2info(parent); tmp___10 = ll_i2mdexp(parent); tmp___11 = md_revalidate_lock(tmp___10, & parent_it, & tmp___9->lli_fid, (__u64 *)0ULL); if (tmp___11 != 0) { d_lustre_revalidate(*de); ll_intent_release(& parent_it); } else { } } else { } } return (0); } } static struct dentry *ll_lookup_it(struct inode *parent , struct dentry *dentry , struct lookup_intent *it , int lookup_flags ) { struct lookup_intent lookup_it ; struct dentry *save ; struct dentry *retval ; struct ptlrpc_request *req ; struct inode *inode ; struct md_op_data *op_data ; __u32 opc ; int rc ; void *tmp ; struct ll_sb_info *tmp___0 ; struct libcfs_debug_msg_data msgdata ; char *tmp___1 ; char *tmp___2 ; int tmp___3 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; char *tmp___4 ; char *tmp___5 ; int tmp___6 ; bool tmp___7 ; bool tmp___8 ; int tmp___9 ; struct obd_export *tmp___10 ; int tmp___11 ; struct obd_export *tmp___12 ; void *tmp___13 ; void *tmp___14 ; { lookup_it.it_op = 16; lookup_it.it_create_mode = 0; lookup_it.it_flags = 0ULL; lookup_it.d.lustre.it_disposition = 0; lookup_it.d.lustre.it_status = 0; lookup_it.d.lustre.it_lock_handle = 0ULL; lookup_it.d.lustre.it_lock_bits = 0ULL; lookup_it.d.lustre.it_lock_mode = 0; lookup_it.d.lustre.it_remote_lock_mode = 0; lookup_it.d.lustre.it_remote_lock_handle = 0ULL; lookup_it.d.lustre.it_data = 0; lookup_it.d.lustre.it_lock_set = (unsigned char)0; save = dentry; req = (struct ptlrpc_request *)0; tmp___0 = ll_i2sbi(parent); if (dentry->d_name.__annonCompField61.__annonCompField60.len > tmp___0->ll_namelen) { tmp = ERR_PTR(-36L); return ((struct dentry *)tmp); } else { } tmp___3 = cfs_cdebug_show(2097152U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_lookup_it"; msgdata.msg_line = 495; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; if ((unsigned long )it != (unsigned long )((struct lookup_intent *)0)) { tmp___1 = ldlm_it2str(it->it_op); tmp___2 = tmp___1; } else { tmp___2 = (char *)"0"; } libcfs_debug_msg(& msgdata, "VFS Op:name=%pd,dir=%lu/%u(%p),intent=%s\n", dentry, parent->i_ino, parent->i_generation, parent, tmp___2); } else { } tmp___7 = d_mountpoint((struct dentry const *)dentry); if ((int )tmp___7) { tmp___6 = cfs_cdebug_show(131072U, 128U); if (tmp___6 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___0.msg_fn = "ll_lookup_it"; msgdata___0.msg_line = 498; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; if ((unsigned long )it != (unsigned long )((struct lookup_intent *)0)) { tmp___4 = ldlm_it2str(it->it_op); tmp___5 = tmp___4; } else { tmp___5 = (char *)"0"; } libcfs_debug_msg(& msgdata___0, "Tell Peter, lookup on mtpt, it %s\n", tmp___5); } else { } } else { } if ((unsigned long )it == (unsigned long )((struct lookup_intent *)0) || it->it_op == 128) { it = & lookup_it; } else { } if (it->it_op == 8) { rc = ll_statahead_enter(parent, & dentry, 0); if (rc == 1) { if ((unsigned long )dentry == (unsigned long )save) { retval = (struct dentry *)0; } else { retval = dentry; } goto out; } else { } } else { } if ((it->it_op & 2) != 0) { opc = 8U; } else { opc = 16U; } op_data = ll_prep_md_op_data((struct md_op_data *)0, parent, (struct inode *)0, (char const *)dentry->d_name.name, (int )dentry->d_name.__annonCompField61.__annonCompField60.len, lookup_flags, opc, (void *)0); tmp___8 = IS_ERR((void const *)op_data); if ((int )tmp___8) { return ((struct dentry *)op_data); } else { } if (((parent->i_sb)->s_flags & 65536UL) == 0UL) { tmp___9 = current_umask(); it->it_create_mode = it->it_create_mode & ~ tmp___9; } else { tmp___10 = ll_i2mdexp(parent); tmp___11 = exp_connect_umask(tmp___10); if (tmp___11 == 0) { tmp___9 = current_umask(); it->it_create_mode = it->it_create_mode & ~ tmp___9; } else { } } tmp___12 = ll_i2mdexp(parent); rc = md_intent_lock(tmp___12, op_data, (void *)0, 0, it, lookup_flags, & req, & ll_md_blocking_ast, 0ULL); ll_finish_md_op_data(op_data); if (rc < 0) { tmp___13 = ERR_PTR((long )rc); retval = (struct dentry *)tmp___13; goto out; } else { } rc = ll_lookup_it_finish(req, it, parent, & dentry); if (rc != 0) { ll_intent_release(it); tmp___14 = ERR_PTR((long )rc); retval = (struct dentry *)tmp___14; goto out; } else { } inode = d_inode((struct dentry const *)dentry); if (((it->it_op & 1 && (unsigned long )inode != (unsigned long )((struct inode *)0)) && ((int )inode->i_mode & 61440) != 32768) && ((int )inode->i_mode & 61440) != 16384) { ll_release_openhandle(inode, it); } else { } ll_lookup_finish_locks(it, inode); if ((unsigned long )dentry == (unsigned long )save) { retval = (struct dentry *)0; } else { retval = dentry; } goto out; out: ; if ((unsigned long )req != (unsigned long )((struct ptlrpc_request *)0)) { ptlrpc_req_finished(req); } else { } if (it->it_op == 8 && ((unsigned long )retval == (unsigned long )((struct dentry *)0) || (unsigned long )retval == (unsigned long )dentry)) { ll_statahead_mark(parent, dentry); } else { } return (retval); } } static struct dentry *ll_lookup_nd(struct inode *parent , struct dentry *dentry , unsigned int flags ) { struct lookup_intent *itp ; struct lookup_intent it ; struct dentry *de ; struct libcfs_debug_msg_data msgdata ; int tmp ; { it.it_op = 8; it.it_create_mode = 0; it.it_flags = 0ULL; it.d.lustre.it_disposition = 0; it.d.lustre.it_status = 0; it.d.lustre.it_lock_handle = 0ULL; it.d.lustre.it_lock_bits = 0ULL; it.d.lustre.it_lock_mode = 0; it.d.lustre.it_remote_lock_mode = 0; it.d.lustre.it_remote_lock_handle = 0ULL; it.d.lustre.it_data = 0; it.d.lustre.it_lock_set = (unsigned char)0; tmp = cfs_cdebug_show(2097152U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_lookup_nd"; msgdata.msg_line = 573; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:name=%pd,dir=%lu/%u(%p),flags=%u\n", dentry, parent->i_ino, parent->i_generation, parent, flags); } else { } if ((flags & 512U) != 0U && (flags & 256U) == 0U) { return ((struct dentry *)0); } else { } if ((flags & 784U) != 0U) { itp = (struct lookup_intent *)0; } else { itp = & it; } de = ll_lookup_it(parent, dentry, itp, 0); if ((unsigned long )itp != (unsigned long )((struct lookup_intent *)0)) { ll_intent_release(itp); } else { } return (de); } } static int ll_atomic_open(struct inode *dir , struct dentry *dentry , struct file *file , unsigned int open_flags , umode_t mode , int *opened ) { struct lookup_intent *it ; struct dentry *de ; long long lookup_flags ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp ; void *tmp___0 ; long tmp___1 ; bool tmp___2 ; int tmp___3 ; int tmp___4 ; struct inode *tmp___5 ; bool tmp___6 ; int tmp___7 ; { lookup_flags = 256LL; rc = 0; tmp = cfs_cdebug_show(2097152U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_atomic_open"; msgdata.msg_line = 607; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:name=%pd,dir=%lu/%u(%p),file %p,open_flags %x,mode %x opened %d\n", dentry, dir->i_ino, dir->i_generation, dir, file, open_flags, (int )mode, *opened); } else { } tmp___0 = kzalloc(72UL, 80U); it = (struct lookup_intent *)tmp___0; if ((unsigned long )it == (unsigned long )((struct lookup_intent *)0)) { return (-12); } else { } it->it_op = 1; if ((open_flags & 64U) != 0U) { it->it_op = it->it_op | 2; lookup_flags = lookup_flags | 512LL; } else { } it->it_create_mode = ((int )mode & 4095) | 32768; it->it_flags = (__u64 )((open_flags & 4294967292U) | (((open_flags + 1U) & 3U) | (open_flags & 67108864U))); de = ll_lookup_it(dir, dentry, it, (int )lookup_flags); tmp___2 = IS_ERR((void const *)de); if ((int )tmp___2) { tmp___1 = PTR_ERR((void const *)de); rc = (int )tmp___1; } else if ((unsigned long )de != (unsigned long )((struct dentry *)0)) { dentry = de; } else { } if (rc == 0) { tmp___3 = it_disposition(it, 16); if (tmp___3 != 0) { rc = ll_create_it(dir, dentry, (int )mode, it); if (rc != 0) { if ((unsigned long )de != (unsigned long )((struct dentry *)0)) { dput(de); } else { } goto out_release; } else { } *opened = *opened | 1; } else { } tmp___6 = d_really_is_positive((struct dentry const *)dentry); if ((int )tmp___6) { tmp___7 = it_disposition(it, 32); if (tmp___7 != 0) { tmp___5 = d_inode((struct dentry const *)dentry); if (((int )tmp___5->i_mode & 61440) == 4096) { tmp___4 = it_disposition(it, 8388608); if (tmp___4 != 0) { ptlrpc_req_finished((struct ptlrpc_request *)it->d.lustre.it_data); } else { } rc = finish_no_open(file, de); } else { file->private_data = (void *)it; rc = finish_open(file, dentry, (int (*)(struct inode * , struct file * ))0, opened); if ((unsigned long )de != (unsigned long )((struct dentry *)0)) { dput(de); } else { } } } else { rc = finish_no_open(file, de); } } else { rc = finish_no_open(file, de); } } else { } out_release: ll_intent_release(it); kfree((void const *)it); return (rc); } } static struct inode *ll_create_node(struct inode *dir , struct lookup_intent *it ) { struct inode *inode ; struct ptlrpc_request *request ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; 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 ; void *tmp___3 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___4 ; long tmp___5 ; struct libcfs_debug_msg_data msgdata ; int tmp___6 ; { inode = (struct inode *)0; request = (struct ptlrpc_request *)0; tmp = ll_i2sbi(dir); sbi = tmp; tmp___0 = ldv__builtin_expect((long )((unsigned long )it == (unsigned long )((struct lookup_intent *)0) || it->d.lustre.it_disposition == 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; __msg_data.msg_fn = "ll_create_node"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 682; __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 *)"it && it->d.lustre.it_disposition"); lbug_with_loc(& __msg_data); } else { } tmp___1 = it_disposition(it, 16777216); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; __msg_data___0.msg_fn = "ll_create_node"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 684; __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 *)"it_disposition(it, 0x01000000)"); lbug_with_loc(& __msg_data___0); } else { } request = (struct ptlrpc_request *)it->d.lustre.it_data; it_clear_disposition(it, 16777216); rc = ll_prep_inode(& inode, request, dir->i_sb, it); if (rc != 0) { tmp___3 = ERR_PTR((long )rc); inode = (struct inode *)tmp___3; goto out; } else { } tmp___4 = hlist_empty((struct hlist_head const *)(& inode->__annonCompField67.i_dentry)); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; __msg_data___1.msg_fn = "ll_create_node"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 693; __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 *)"hlist_empty(&inode->i_dentry)"); lbug_with_loc(& __msg_data___1); } else { } tmp___6 = cfs_cdebug_show(65536U, 128U); if (tmp___6 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_create_node"; msgdata.msg_line = 699; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 65536; libcfs_debug_msg(& msgdata, "setting l_ast_data to inode %p (%lu/%u)\n", inode, inode->i_ino, inode->i_generation); } else { } ll_set_lock_data(sbi->ll_md_exp, inode, it, (__u64 *)0ULL); out: ptlrpc_req_finished(request); return (inode); } } static int ll_create_it(struct inode *dir , struct dentry *dentry , int mode , struct lookup_intent *it ) { struct inode *inode ; int rc ; struct libcfs_debug_msg_data msgdata ; char *tmp ; char *tmp___0 ; int tmp___1 ; long tmp___2 ; bool tmp___3 ; { rc = 0; tmp___1 = cfs_cdebug_show(2097152U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_create_it"; msgdata.msg_line = 728; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; if ((unsigned long )it != (unsigned long )((struct lookup_intent *)0)) { tmp = ldlm_it2str(it->it_op); tmp___0 = tmp; } else { tmp___0 = (char *)"0"; } libcfs_debug_msg(& msgdata, "VFS Op:name=%pd,dir=%lu/%u(%p),intent=%s\n", dentry, dir->i_ino, dir->i_generation, dir, tmp___0); } else { } rc = it_open_error(16, it); if (rc != 0) { return (rc); } else { } inode = ll_create_node(dir, it); tmp___3 = IS_ERR((void const *)inode); if ((int )tmp___3) { tmp___2 = PTR_ERR((void const *)inode); return ((int )tmp___2); } else { } d_instantiate(dentry, inode); return (0); } } static void ll_update_times(struct ptlrpc_request *request , struct inode *inode ) { struct mdt_body *body ; void *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; { tmp = req_capsule_server_get(& request->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp; tmp___0 = ldv__builtin_expect((unsigned long )body == (unsigned long )((struct mdt_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; __msg_data.msg_fn = "ll_update_times"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 748; __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 { } if ((body->valid & 4ULL) != 0ULL && body->mtime > (long long )inode->i_mtime.tv_sec) { tmp___1 = cfs_cdebug_show(2U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_update_times"; msgdata.msg_line = 752; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; libcfs_debug_msg(& msgdata, "setting ino %lu mtime from %lu to %llu\n", inode->i_ino, inode->i_mtime.tv_sec, body->mtime); } else { } inode->i_mtime.tv_sec = (__kernel_time_t )body->mtime; } else { } if ((body->valid & 8ULL) != 0ULL && body->ctime > (long long )inode->i_ctime.tv_sec) { inode->i_ctime.tv_sec = (__kernel_time_t )body->ctime; } else { } return; } } static int ll_new_node(struct inode *dir , struct dentry *dentry , char const *tgt , int mode , int rdev , __u32 opc ) { struct ptlrpc_request *request ; struct md_op_data *op_data ; struct inode *inode ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; int tgt_len ; int err ; size_t tmp___0 ; long tmp___1 ; long tmp___2 ; bool tmp___3 ; cfs_cap_t tmp___4 ; int tmp___5 ; struct task_struct *tmp___6 ; gid_t tmp___7 ; int tmp___8 ; struct task_struct *tmp___9 ; uid_t tmp___10 ; { request = (struct ptlrpc_request *)0; inode = (struct inode *)0; tmp = ll_i2sbi(dir); sbi = tmp; tgt_len = 0; tmp___1 = ldv__builtin_expect((unsigned long )tgt != (unsigned long )((char const *)0), 0L); if (tmp___1 != 0L) { tmp___0 = strlen(tgt); tgt_len = (int )((unsigned int )tmp___0 + 1U); } else { } op_data = ll_prep_md_op_data((struct md_op_data *)0, dir, (struct inode *)0, (char const *)dentry->d_name.name, (int )dentry->d_name.__annonCompField61.__annonCompField60.len, 0, opc, (void *)0); tmp___3 = IS_ERR((void const *)op_data); if ((int )tmp___3) { tmp___2 = PTR_ERR((void const *)op_data); err = (int )tmp___2; goto err_exit; } else { } tmp___4 = cfs_curproc_cap_pack(); tmp___5 = debug_lockdep_rcu_enabled(); tmp___6 = get_current(); tmp___7 = from_kgid(& init_user_ns, (tmp___6->cred)->fsgid); tmp___8 = debug_lockdep_rcu_enabled(); tmp___9 = get_current(); tmp___10 = from_kuid(& init_user_ns, (tmp___9->cred)->fsuid); err = md_create___0(sbi->ll_md_exp, op_data, (void const *)tgt, tgt_len, mode, tmp___10, tmp___7, tmp___4, (__u64 )rdev, & request); ll_finish_md_op_data(op_data); if (err != 0) { goto err_exit; } else { } ll_update_times(request, dir); err = ll_prep_inode(& inode, request, dir->i_sb, (struct lookup_intent *)0); if (err != 0) { goto err_exit; } else { } d_instantiate(dentry, inode); err_exit: ptlrpc_req_finished(request); return (err); } } static int ll_mknod(struct inode *dir , struct dentry *dchild , umode_t mode , dev_t rdev ) { int err ; struct libcfs_debug_msg_data msgdata ; u16 tmp ; int tmp___0 ; int tmp___1 ; struct obd_export *tmp___2 ; int tmp___3 ; u16 tmp___4 ; struct ll_sb_info *tmp___5 ; { tmp___0 = cfs_cdebug_show(2097152U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_mknod"; msgdata.msg_line = 811; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; tmp = old_encode_dev(rdev); libcfs_debug_msg(& msgdata, "VFS Op:name=%pd,dir=%lu/%u(%p) mode %o dev %x\n", dchild, dir->i_ino, dir->i_generation, dir, (int )mode, (int )tmp); } else { } if (((dir->i_sb)->s_flags & 65536UL) == 0UL) { tmp___1 = current_umask(); mode = (umode_t )(~ ((int )((short )tmp___1)) & (int )((short )mode)); } else { tmp___2 = ll_i2mdexp(dir); tmp___3 = exp_connect_umask(tmp___2); if (tmp___3 == 0) { tmp___1 = current_umask(); mode = (umode_t )(~ ((int )((short )tmp___1)) & (int )((short )mode)); } else { } } switch ((int )mode & 61440) { case 0: mode = (umode_t )((unsigned int )mode | 32768U); case 32768: ; case 8192: ; case 24576: ; case 4096: ; case 49152: tmp___4 = old_encode_dev(rdev); err = ll_new_node(dir, dchild, (char const *)0, (int )mode, (int )tmp___4, 4U); goto ldv_68666; case 16384: err = -1; goto ldv_68666; default: err = -22; } ldv_68666: ; if (err == 0) { tmp___5 = ll_i2sbi(dir); ll_stats_ops_tally(tmp___5, 25, 1); } else { } return (err); } } static int ll_create_nd(struct inode *dir , struct dentry *dentry , umode_t mode , bool want_excl ) { int rc ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct ll_sb_info *tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; int tmp___2 ; { tmp = cfs_cdebug_show(2097152U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_create_nd"; msgdata.msg_line = 851; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:name=%pd,dir=%lu/%u(%p),flags=%u, excl=%d\n", dentry, dir->i_ino, dir->i_generation, dir, (int )mode, (int )want_excl); } else { } rc = ll_mknod(dir, dentry, (int )mode, 0U); tmp___0 = ll_i2sbi(dir); ll_stats_ops_tally(tmp___0, 19, 1); tmp___2 = cfs_cdebug_show(2097152U, 128U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___0.msg_fn = "ll_create_nd"; msgdata___0.msg_line = 858; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 2097152; tmp___1 = d_unhashed((struct dentry const *)dentry); libcfs_debug_msg(& msgdata___0, "VFS Op:name=%pd, unhashed %d\n", dentry, tmp___1); } else { } return (rc); } } __inline static void ll_get_child_fid(struct dentry *child , struct lu_fid *fid ) { struct inode *tmp ; struct lu_fid *tmp___0 ; bool tmp___1 ; { tmp___1 = d_really_is_positive((struct dentry const *)child); if ((int )tmp___1) { tmp = d_inode((struct dentry const *)child); tmp___0 = ll_inode2fid(tmp); *fid = *tmp___0; } else { } return; } } int ll_rmdir_entry(struct inode *dir , char *name , int namelen ) { struct ptlrpc_request *request ; struct md_op_data *op_data ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp ; size_t tmp___0 ; long tmp___1 ; bool tmp___2 ; struct ll_sb_info *tmp___3 ; struct ll_sb_info *tmp___4 ; { request = (struct ptlrpc_request *)0; tmp = cfs_cdebug_show(2097152U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_rmdir_entry"; msgdata.msg_line = 879; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:name=%.*s,dir=%lu/%u(%p)\n", namelen, name, dir->i_ino, dir->i_generation, dir); } else { } tmp___0 = strlen((char const *)name); op_data = ll_prep_md_op_data((struct md_op_data *)0, dir, (struct inode *)0, (char const *)name, (int )tmp___0, 16384, 16U, (void *)0); tmp___2 = IS_ERR((void const *)op_data); if ((int )tmp___2) { tmp___1 = PTR_ERR((void const *)op_data); return ((int )tmp___1); } else { } op_data->op_cli_flags = op_data->op_cli_flags | 2U; tmp___3 = ll_i2sbi(dir); rc = md_unlink(tmp___3->ll_md_exp, op_data, & request); ll_finish_md_op_data(op_data); if (rc == 0) { ll_update_times(request, dir); tmp___4 = ll_i2sbi(dir); ll_stats_ops_tally(tmp___4, 24, 1); } else { } ptlrpc_req_finished(request); return (rc); } } int ll_objects_destroy(struct ptlrpc_request *request , struct inode *dir ) { struct mdt_body *body ; struct lov_mds_md_v1 *eadata ; struct lov_stripe_md *lsm ; struct obd_trans_info oti ; struct obdo *oa ; struct obd_capa *oc ; int rc ; void *tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; void *tmp___1 ; struct libcfs_debug_msg_data __msg_data ; long tmp___2 ; struct obd_export *tmp___3 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___4 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___5 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___6 ; long tmp___7 ; void *tmp___8 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___9 ; int tmp___10 ; int tmp___11 ; int tmp___12 ; long tmp___13 ; void *tmp___14 ; struct obd_export *tmp___15 ; struct obd_export *tmp___16 ; struct obd_export *tmp___17 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; __u64 tmp___18 ; __u64 tmp___19 ; int tmp___20 ; struct obd_export *tmp___21 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___22 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___23 ; { lsm = (struct lov_stripe_md *)0; oti.oti_transno = 0ULL; oti.oti_xid = 0ULL; oti.oti_ack_locks[0].lock.cookie = 0ULL; oti.oti_ack_locks[0].mode = 0U; oti.oti_ack_locks[1].lock.cookie = 0ULL; oti.oti_ack_locks[1].mode = 0U; oti.oti_ack_locks[2].lock.cookie = 0ULL; oti.oti_ack_locks[2].mode = 0U; oti.oti_ack_locks[3].lock.cookie = 0ULL; oti.oti_ack_locks[3].mode = 0U; oti.oti_handle = 0; oti.oti_onecookie.lgc_lgl.lgl_oi.__annonCompField108.oi.oi_id = 0ULL; oti.oti_onecookie.lgc_lgl.lgl_oi.__annonCompField108.oi.oi_seq = 0ULL; oti.oti_onecookie.lgc_lgl.lgl_ogen = 0U; oti.oti_onecookie.lgc_subsys = 0U; oti.oti_onecookie.lgc_index = 0U; oti.oti_onecookie.lgc_padding = 0U; oti.oti_logcookies = 0; oti.oti_numcookies = 0; oti.oti_sync_write = (unsigned char)0; oti.oti_thread = 0; oti.oti_conn_cnt = 0U; oti.oti_pre_version = 0ULL; oti.oti_jobid = 0; oti.oti_ost_uuid = 0; oc = (struct obd_capa *)0; tmp = req_capsule_server_get(& request->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp; if ((body->valid & 131072ULL) == 0ULL) { return (0); } else { } if (body->eadatasize == 0U) { tmp___0 = cfs_cdebug_show(131072U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_objects_destroy"; msgdata.msg_line = 913; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "OBD_MD_FLEASIZE set but eadatasize zero\n"); } else { } rc = -71; goto out; } else { } tmp___1 = req_capsule_server_sized_get(& request->rq_pill, (struct req_msg_field const *)(& RMF_MDT_MD), (int )body->eadatasize); eadata = (struct lov_mds_md_v1 *)tmp___1; tmp___2 = ldv__builtin_expect((unsigned long )eadata == (unsigned long )((struct lov_mds_md_v1 *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; __msg_data.msg_fn = "ll_objects_destroy"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 924; __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 *)"eadata != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___3 = ll_i2dtexp(dir); rc = obd_unpackmd___0(tmp___3, & lsm, eadata, (int )body->eadatasize); if (rc < 0) { tmp___4 = cfs_cdebug_show(131072U, 128U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___0.msg_fn = "ll_objects_destroy"; msgdata___0.msg_line = 928; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_unpackmd: %d\n", rc); } else { } goto out; } else { } tmp___5 = ldv__builtin_expect((unsigned int )rc <= 143U, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; __msg_data___0.msg_fn = "ll_objects_destroy"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 931; __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 >= sizeof(*lsm)"); lbug_with_loc(& __msg_data___0); } else { } tmp___6 = preempt_count(); tmp___7 = ldv__builtin_expect(((unsigned long )tmp___6 & 2096896UL) != 0UL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; __msg_data___1.msg_fn = "ll_objects_destroy"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 933; __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___8 = ldv_kmem_cache_alloc_302(obdo_cachep, 32848U); oa = (struct obdo *)tmp___8; if ((unsigned long )oa != (unsigned long )((struct obdo *)0)) { tmp___10 = cfs_fail_check_set(3072U, 0U, 0, 0); if (tmp___10 == 0 || obd_alloc_fail_rate == 0U) { tmp___12 = 1; } else { tmp___11 = 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c", 933); if (tmp___11 == 0) { tmp___12 = 1; } else { kmem_cache_free(obdo_cachep, (void *)oa); oa = (struct obdo *)0; tmp___12 = 0; } } } else { tmp___12 = 0; } tmp___13 = ldv__builtin_expect((long )tmp___12, 1L); if (tmp___13 != 0L) { lprocfs_counter_add(obd_memory, 0, 208L); tmp___9 = cfs_cdebug_show(16U, 128U); if (tmp___9 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___1.msg_fn = "ll_objects_destroy"; msgdata___1.msg_line = 933; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; libcfs_debug_msg(& msgdata___1, "slab-alloced \'(oa)\': %d at %p.\n", 208, oa); } else { } } else { } if ((unsigned long )oa == (unsigned long )((struct obdo *)0)) { rc = -12; goto out_free_memmd; } else { } oa->o_oi = lsm->lsm_wire.lw_object_oi; oa->o_mode = body->mode & 61440U; oa->o_valid = 16777473ULL; if ((body->valid & 8388608ULL) != 0ULL) { oa->o_valid = oa->o_valid | 8388608ULL; tmp___14 = req_capsule_server_sized_get(& request->rq_pill, (struct req_msg_field const *)(& RMF_LOGCOOKIES), (int )((unsigned int )lsm->lsm_wire.lw_stripe_count * 32U)); oti.oti_logcookies = (struct llog_cookie *)tmp___14; if ((unsigned long )oti.oti_logcookies == (unsigned long )((struct llog_cookie *)0)) { oa->o_valid = oa->o_valid & 0xffffffffff7fffffULL; body->valid = body->valid & 0xffffffffff7fffffULL; } else { } } else { } if ((body->valid & 4398046511104ULL) != 0ULL) { tmp___15 = ll_i2mdexp(dir); rc = md_unpack_capa(tmp___15, request, (struct req_msg_field const *)(& RMF_CAPA2), & oc); if (rc != 0) { goto out_free_memmd; } else { } } else { } tmp___16 = ll_i2mdexp(dir); tmp___17 = ll_i2dtexp(dir); rc = obd_destroy((struct lu_env const *)0, tmp___17, oa, lsm, & oti, tmp___16, (void *)oc); capa_put(oc); if (rc != 0) { tmp___20 = cfs_cdebug_show(131072U, 128U); if (tmp___20 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___2.msg_fn = "ll_objects_destroy"; msgdata___2.msg_line = 967; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; tmp___18 = ostid_id((struct ost_id const *)(& lsm->lsm_wire.lw_object_oi)); tmp___19 = ostid_seq((struct ost_id const *)(& lsm->lsm_wire.lw_object_oi)); libcfs_debug_msg(& msgdata___2, "obd destroy objid %#llx:%llu error %d\n", tmp___19, tmp___18, rc); } else { } } else { } out_free_memmd: tmp___21 = ll_i2dtexp(dir); obd_free_memmd___0(tmp___21, & lsm); tmp___22 = ldv__builtin_expect((unsigned long )oa == (unsigned long )((struct obdo *)0), 0L); if (tmp___22 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; __msg_data___2.msg_fn = "ll_objects_destroy"; __msg_data___2.msg_subsys = 128; __msg_data___2.msg_line = 970; __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 *)"((oa))"); lbug_with_loc(& __msg_data___2); } else { } lprocfs_counter_sub(obd_memory, 0, 208L); tmp___23 = cfs_cdebug_show(16U, 128U); if (tmp___23 != 0) { msgdata___3.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata___3.msg_fn = "ll_objects_destroy"; msgdata___3.msg_line = 970; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 16; libcfs_debug_msg(& msgdata___3, "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; out: ; return (rc); } } static int ll_unlink(struct inode *dir , struct dentry *dentry ) { struct ptlrpc_request *request ; struct md_op_data *op_data ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp ; long tmp___0 ; bool tmp___1 ; struct ll_sb_info *tmp___2 ; struct ll_sb_info *tmp___3 ; { request = (struct ptlrpc_request *)0; tmp = cfs_cdebug_show(2097152U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_unlink"; msgdata.msg_line = 986; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:name=%pd,dir=%lu/%u(%p)\n", dentry, dir->i_ino, dir->i_generation, dir); } else { } op_data = ll_prep_md_op_data((struct md_op_data *)0, dir, (struct inode *)0, (char const *)dentry->d_name.name, (int )dentry->d_name.__annonCompField61.__annonCompField60.len, 0, 16U, (void *)0); tmp___1 = IS_ERR((void const *)op_data); if ((int )tmp___1) { tmp___0 = PTR_ERR((void const *)op_data); return ((int )tmp___0); } else { } ll_get_child_fid(dentry, & op_data->op_fid3); op_data->op_fid2 = op_data->op_fid3; tmp___2 = ll_i2sbi(dir); rc = md_unlink(tmp___2->ll_md_exp, op_data, & request); ll_finish_md_op_data(op_data); if (rc != 0) { goto out; } else { } ll_update_times(request, dir); tmp___3 = ll_i2sbi(dir); ll_stats_ops_tally(tmp___3, 21, 1); rc = ll_objects_destroy(request, dir); out: ptlrpc_req_finished(request); return (rc); } } static int ll_mkdir(struct inode *dir , struct dentry *dentry , umode_t mode ) { int err ; struct libcfs_debug_msg_data msgdata ; int tmp ; int tmp___0 ; struct obd_export *tmp___1 ; int tmp___2 ; struct ll_sb_info *tmp___3 ; { tmp = cfs_cdebug_show(2097152U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_mkdir"; msgdata.msg_line = 1016; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:name=%pd,dir=%lu/%u(%p)\n", dentry, dir->i_ino, dir->i_generation, dir); } else { } if (((dir->i_sb)->s_flags & 65536UL) == 0UL) { tmp___0 = current_umask(); mode = (umode_t )(~ ((int )((short )tmp___0)) & (int )((short )mode)); } else { tmp___1 = ll_i2mdexp(dir); tmp___2 = exp_connect_umask(tmp___1); if (tmp___2 == 0) { tmp___0 = current_umask(); mode = (umode_t )(~ ((int )((short )tmp___0)) & (int )((short )mode)); } else { } } mode = (umode_t )(((int )((short )mode) & 1023) | 16384); err = ll_new_node(dir, dentry, (char const *)0, (int )mode, 0, 1U); if (err == 0) { tmp___3 = ll_i2sbi(dir); ll_stats_ops_tally(tmp___3, 23, 1); } else { } return (err); } } static int ll_rmdir(struct inode *dir , struct dentry *dentry ) { struct ptlrpc_request *request ; struct md_op_data *op_data ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp ; long tmp___0 ; bool tmp___1 ; struct ll_sb_info *tmp___2 ; struct ll_sb_info *tmp___3 ; { request = (struct ptlrpc_request *)0; tmp = cfs_cdebug_show(2097152U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_rmdir"; msgdata.msg_line = 1036; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:name=%pd,dir=%lu/%u(%p)\n", dentry, dir->i_ino, dir->i_generation, dir); } else { } op_data = ll_prep_md_op_data((struct md_op_data *)0, dir, (struct inode *)0, (char const *)dentry->d_name.name, (int )dentry->d_name.__annonCompField61.__annonCompField60.len, 16384, 16U, (void *)0); tmp___1 = IS_ERR((void const *)op_data); if ((int )tmp___1) { tmp___0 = PTR_ERR((void const *)op_data); return ((int )tmp___0); } else { } ll_get_child_fid(dentry, & op_data->op_fid3); op_data->op_fid2 = op_data->op_fid3; tmp___2 = ll_i2sbi(dir); rc = md_unlink(tmp___2->ll_md_exp, op_data, & request); ll_finish_md_op_data(op_data); if (rc == 0) { ll_update_times(request, dir); tmp___3 = ll_i2sbi(dir); ll_stats_ops_tally(tmp___3, 24, 1); } else { } ptlrpc_req_finished(request); return (rc); } } static int ll_symlink(struct inode *dir , struct dentry *dentry , char const *oldname ) { int err ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct ll_sb_info *tmp___0 ; { tmp = cfs_cdebug_show(2097152U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_symlink"; msgdata.msg_line = 1065; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:name=%pd,dir=%lu/%u(%p),target=%.*s\n", dentry, dir->i_ino, dir->i_generation, dir, 3000, oldname); } else { } err = ll_new_node(dir, dentry, oldname, 41471, 0, 2U); if (err == 0) { tmp___0 = ll_i2sbi(dir); ll_stats_ops_tally(tmp___0, 22, 1); } else { } return (err); } } static int ll_link(struct dentry *old_dentry , struct inode *dir , struct dentry *new_dentry ) { struct inode *src ; struct inode *tmp ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___0 ; struct ptlrpc_request *request ; struct md_op_data *op_data ; int err ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; long tmp___2 ; bool tmp___3 ; { tmp = d_inode((struct dentry const *)old_dentry); src = tmp; tmp___0 = ll_i2sbi(dir); sbi = tmp___0; request = (struct ptlrpc_request *)0; tmp___1 = cfs_cdebug_show(2097152U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_link"; msgdata.msg_line = 1088; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op: inode=%lu/%u(%p), dir=%lu/%u(%p), target=%pd\n", src->i_ino, src->i_generation, src, dir->i_ino, dir->i_generation, dir, new_dentry); } else { } op_data = ll_prep_md_op_data((struct md_op_data *)0, src, dir, (char const *)new_dentry->d_name.name, (int )new_dentry->d_name.__annonCompField61.__annonCompField60.len, 0, 16U, (void *)0); tmp___3 = IS_ERR((void const *)op_data); if ((int )tmp___3) { tmp___2 = PTR_ERR((void const *)op_data); return ((int )tmp___2); } else { } err = md_link(sbi->ll_md_exp, op_data, & request); ll_finish_md_op_data(op_data); if (err != 0) { goto out; } else { } ll_update_times(request, dir); ll_stats_ops_tally(sbi, 20, 1); out: ptlrpc_req_finished(request); return (err); } } static int ll_rename(struct inode *old_dir , struct dentry *old_dentry , struct inode *new_dir , struct dentry *new_dentry ) { struct ptlrpc_request *request ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct md_op_data *op_data ; int err ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; long tmp___1 ; bool tmp___2 ; { request = (struct ptlrpc_request *)0; tmp = ll_i2sbi(old_dir); sbi = tmp; tmp___0 = cfs_cdebug_show(2097152U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/namei.c"; msgdata.msg_fn = "ll_rename"; msgdata.msg_line = 1119; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:oldname=%pd,src_dir=%lu/%u(%p),newname=%pd,tgt_dir=%lu/%u(%p)\n", old_dentry, old_dir->i_ino, old_dir->i_generation, old_dir, new_dentry, new_dir->i_ino, new_dir->i_generation, new_dir); } else { } op_data = ll_prep_md_op_data((struct md_op_data *)0, old_dir, new_dir, (char const *)0, 0, 0, 16U, (void *)0); tmp___2 = IS_ERR((void const *)op_data); if ((int )tmp___2) { tmp___1 = PTR_ERR((void const *)op_data); return ((int )tmp___1); } else { } ll_get_child_fid(old_dentry, & op_data->op_fid3); ll_get_child_fid(new_dentry, & op_data->op_fid4); err = md_rename(sbi->ll_md_exp, op_data, (char const *)old_dentry->d_name.name, (int )old_dentry->d_name.__annonCompField61.__annonCompField60.len, (char const *)new_dentry->d_name.name, (int )new_dentry->d_name.__annonCompField61.__annonCompField60.len, & request); ll_finish_md_op_data(op_data); if (err == 0) { ll_update_times(request, old_dir); ll_update_times(request, new_dir); ll_stats_ops_tally(sbi, 26, 1); err = ll_objects_destroy(request, old_dir); } else { } ptlrpc_req_finished(request); if (err == 0) { d_move(old_dentry, new_dentry); } else { } return (err); } } struct inode_operations const ll_dir_inode_operations = {& ll_lookup_nd, 0, & ll_inode_permission, & ll_get_acl, 0, 0, & ll_create_nd, & ll_link, & ll_unlink, & ll_symlink, & ll_mkdir, & ll_rmdir, & ll_mknod, & ll_rename, 0, & ll_setattr, & ll_getattr, & ll_setxattr, & ll_getxattr, & ll_listxattr, & ll_removexattr, 0, 0, & ll_atomic_open, 0, 0}; struct inode_operations const ll_special_inode_operations = {0, 0, & ll_inode_permission, & ll_get_acl, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, & ll_setattr, & ll_getattr, & ll_setxattr, & ll_getxattr, & ll_listxattr, & ll_removexattr, 0, 0, 0, 0, 0}; void ldv_initialize_inode_operations_53(void) { void *tmp ; void *tmp___0 ; void *tmp___1 ; { tmp = ldv_init_zalloc(1000UL); ll_dir_inode_operations_group0 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(320UL); ll_dir_inode_operations_group1 = (struct dentry *)tmp___0; tmp___1 = ldv_init_zalloc(320UL); ll_dir_inode_operations_group2 = (struct dentry *)tmp___1; return; } } void ldv_initialize_inode_operations_52(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); ll_special_inode_operations_group0 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(320UL); ll_special_inode_operations_group1 = (struct dentry *)tmp___0; return; } } void ldv_main_exported_52(void) { size_t ldvarg274 ; int ldvarg273 ; size_t ldvarg279 ; char *ldvarg283 ; void *tmp ; int ldvarg277 ; void *ldvarg280 ; void *tmp___0 ; void *ldvarg275 ; void *tmp___1 ; struct iattr *ldvarg271 ; void *tmp___2 ; int ldvarg278 ; char *ldvarg281 ; void *tmp___3 ; char *ldvarg276 ; void *tmp___4 ; struct kstat *ldvarg270 ; void *tmp___5 ; struct vfsmount *ldvarg269 ; void *tmp___6 ; size_t ldvarg282 ; char *ldvarg272 ; void *tmp___7 ; int tmp___8 ; { tmp = ldv_init_zalloc(1UL); ldvarg283 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg280 = tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg275 = tmp___1; tmp___2 = ldv_init_zalloc(80UL); ldvarg271 = (struct iattr *)tmp___2; tmp___3 = ldv_init_zalloc(1UL); ldvarg281 = (char *)tmp___3; tmp___4 = ldv_init_zalloc(1UL); ldvarg276 = (char *)tmp___4; tmp___5 = ldv_init_zalloc(104UL); ldvarg270 = (struct kstat *)tmp___5; tmp___6 = ldv_init_zalloc(24UL); ldvarg269 = (struct vfsmount *)tmp___6; tmp___7 = ldv_init_zalloc(1UL); ldvarg272 = (char *)tmp___7; ldv_memset((void *)(& ldvarg274), 0, 8UL); ldv_memset((void *)(& ldvarg273), 0, 4UL); ldv_memset((void *)(& ldvarg279), 0, 8UL); ldv_memset((void *)(& ldvarg277), 0, 4UL); ldv_memset((void *)(& ldvarg278), 0, 4UL); ldv_memset((void *)(& ldvarg282), 0, 8UL); tmp___8 = __VERIFIER_nondet_int(); switch (tmp___8) { case 0: ; if (ldv_state_variable_52 == 1) { ll_listxattr(ll_special_inode_operations_group1, ldvarg283, ldvarg282); ldv_state_variable_52 = 1; } else { } goto ldv_68807; case 1: ; if (ldv_state_variable_52 == 1) { ll_getxattr(ll_special_inode_operations_group1, (char const *)ldvarg281, ldvarg280, ldvarg279); ldv_state_variable_52 = 1; } else { } goto ldv_68807; case 2: ; if (ldv_state_variable_52 == 1) { ll_inode_permission(ll_special_inode_operations_group0, ldvarg278); ldv_state_variable_52 = 1; } else { } goto ldv_68807; case 3: ; if (ldv_state_variable_52 == 1) { ll_setxattr(ll_special_inode_operations_group1, (char const *)ldvarg276, (void const *)ldvarg275, ldvarg274, ldvarg277); ldv_state_variable_52 = 1; } else { } goto ldv_68807; case 4: ; if (ldv_state_variable_52 == 1) { ll_get_acl(ll_special_inode_operations_group0, ldvarg273); ldv_state_variable_52 = 1; } else { } goto ldv_68807; case 5: ; if (ldv_state_variable_52 == 1) { ll_removexattr(ll_special_inode_operations_group1, (char const *)ldvarg272); ldv_state_variable_52 = 1; } else { } goto ldv_68807; case 6: ; if (ldv_state_variable_52 == 1) { ll_setattr(ll_special_inode_operations_group1, ldvarg271); ldv_state_variable_52 = 1; } else { } goto ldv_68807; case 7: ; if (ldv_state_variable_52 == 1) { ll_getattr(ldvarg269, ll_special_inode_operations_group1, ldvarg270); ldv_state_variable_52 = 1; } else { } goto ldv_68807; default: ldv_stop(); } ldv_68807: ; return; } } void ldv_main_exported_53(void) { struct kstat *ldvarg158 ; void *tmp ; int *ldvarg160 ; void *tmp___0 ; unsigned int ldvarg161 ; struct file *ldvarg162 ; umode_t ldvarg169 ; struct iattr *ldvarg159 ; void *tmp___2 ; umode_t ldvarg163 ; void *ldvarg171 ; void *tmp___3 ; size_t ldvarg182 ; size_t ldvarg170 ; char *ldvarg180 ; void *tmp___4 ; void *ldvarg179 ; void *tmp___5 ; int ldvarg173 ; dev_t ldvarg176 ; struct inode *ldvarg164 ; void *tmp___6 ; char *ldvarg183 ; void *tmp___7 ; int ldvarg167 ; char *ldvarg166 ; void *tmp___8 ; char *ldvarg165 ; void *tmp___9 ; bool ldvarg168 ; int ldvarg174 ; umode_t ldvarg181 ; umode_t ldvarg177 ; char *ldvarg172 ; void *tmp___10 ; struct vfsmount *ldvarg157 ; void *tmp___11 ; size_t ldvarg178 ; unsigned int ldvarg175 ; int tmp___12 ; { tmp = ldv_init_zalloc(104UL); ldvarg158 = (struct kstat *)tmp; tmp___0 = ldv_init_zalloc(4UL); ldvarg160 = (int *)tmp___0; ldvarg162 = ldv_malloc(sizeof(struct file)); tmp___2 = ldv_init_zalloc(80UL); ldvarg159 = (struct iattr *)tmp___2; tmp___3 = ldv_init_zalloc(1UL); ldvarg171 = tmp___3; tmp___4 = ldv_init_zalloc(1UL); ldvarg180 = (char *)tmp___4; tmp___5 = ldv_init_zalloc(1UL); ldvarg179 = tmp___5; tmp___6 = ldv_init_zalloc(1000UL); ldvarg164 = (struct inode *)tmp___6; tmp___7 = ldv_init_zalloc(1UL); ldvarg183 = (char *)tmp___7; tmp___8 = ldv_init_zalloc(1UL); ldvarg166 = (char *)tmp___8; tmp___9 = ldv_init_zalloc(1UL); ldvarg165 = (char *)tmp___9; tmp___10 = ldv_init_zalloc(1UL); ldvarg172 = (char *)tmp___10; tmp___11 = ldv_init_zalloc(24UL); ldvarg157 = (struct vfsmount *)tmp___11; ldv_memset((void *)(& ldvarg161), 0, 4UL); ldv_memset((void *)(& ldvarg169), 0, 2UL); ldv_memset((void *)(& ldvarg163), 0, 2UL); ldv_memset((void *)(& ldvarg182), 0, 8UL); ldv_memset((void *)(& ldvarg170), 0, 8UL); ldv_memset((void *)(& ldvarg173), 0, 4UL); ldv_memset((void *)(& ldvarg176), 0, 4UL); ldv_memset((void *)(& ldvarg167), 0, 4UL); ldv_memset((void *)(& ldvarg168), 0, 1UL); ldv_memset((void *)(& ldvarg174), 0, 4UL); ldv_memset((void *)(& ldvarg181), 0, 2UL); ldv_memset((void *)(& ldvarg177), 0, 2UL); ldv_memset((void *)(& ldvarg178), 0, 8UL); ldv_memset((void *)(& ldvarg175), 0, 4UL); tmp___12 = __VERIFIER_nondet_int(); switch (tmp___12) { case 0: ; if (ldv_state_variable_53 == 1) { ll_listxattr(ll_dir_inode_operations_group2, ldvarg183, ldvarg182); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 1: ; if (ldv_state_variable_53 == 1) { ll_mkdir(ll_dir_inode_operations_group0, ll_dir_inode_operations_group2, (int )ldvarg181); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 2: ; if (ldv_state_variable_53 == 1) { ll_getxattr(ll_dir_inode_operations_group2, (char const *)ldvarg180, ldvarg179, ldvarg178); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 3: ; if (ldv_state_variable_53 == 1) { ll_mknod(ll_dir_inode_operations_group0, ll_dir_inode_operations_group2, (int )ldvarg177, ldvarg176); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 4: ; if (ldv_state_variable_53 == 1) { ll_lookup_nd(ll_dir_inode_operations_group0, ll_dir_inode_operations_group2, ldvarg175); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 5: ; if (ldv_state_variable_53 == 1) { ll_inode_permission(ll_dir_inode_operations_group0, ldvarg174); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 6: ; if (ldv_state_variable_53 == 1) { ll_setxattr(ll_dir_inode_operations_group2, (char const *)ldvarg172, (void const *)ldvarg171, ldvarg170, ldvarg173); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 7: ; if (ldv_state_variable_53 == 1) { ll_link(ll_dir_inode_operations_group2, ll_dir_inode_operations_group0, ll_dir_inode_operations_group1); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 8: ; if (ldv_state_variable_53 == 1) { ll_create_nd(ll_dir_inode_operations_group0, ll_dir_inode_operations_group2, (int )ldvarg169, (int )ldvarg168); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 9: ; if (ldv_state_variable_53 == 1) { ll_get_acl(ll_dir_inode_operations_group0, ldvarg167); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 10: ; if (ldv_state_variable_53 == 1) { ll_removexattr(ll_dir_inode_operations_group2, (char const *)ldvarg166); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 11: ; if (ldv_state_variable_53 == 1) { ll_symlink(ll_dir_inode_operations_group0, ll_dir_inode_operations_group2, (char const *)ldvarg165); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 12: ; if (ldv_state_variable_53 == 1) { ll_rmdir(ll_dir_inode_operations_group0, ll_dir_inode_operations_group2); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 13: ; if (ldv_state_variable_53 == 1) { ll_rename(ll_dir_inode_operations_group0, ll_dir_inode_operations_group2, ldvarg164, ll_dir_inode_operations_group1); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 14: ; if (ldv_state_variable_53 == 1) { ll_unlink(ll_dir_inode_operations_group0, ll_dir_inode_operations_group2); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 15: ; if (ldv_state_variable_53 == 1) { ll_atomic_open(ll_dir_inode_operations_group0, ll_dir_inode_operations_group2, ldvarg162, ldvarg161, (int )ldvarg163, ldvarg160); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 16: ; if (ldv_state_variable_53 == 1) { ll_setattr(ll_dir_inode_operations_group2, ldvarg159); ldv_state_variable_53 = 1; } else { } goto ldv_68847; case 17: ; if (ldv_state_variable_53 == 1) { ll_getattr(ldvarg157, ll_dir_inode_operations_group2, ldvarg158); ldv_state_variable_53 = 1; } else { } goto ldv_68847; default: ldv_stop(); } ldv_68847: ; return; } } int ldv_pskb_expand_head_290(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_292(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_294(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_295(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_296(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_297(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_298(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_299(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_300(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_302(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); } } __inline static long ldv__builtin_expect(long exp , long c ) ; extern __kernel_size_t strnlen(char const * , __kernel_size_t ) ; __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 *kzalloc(size_t size , gfp_t flags ) ; int ldv_state_variable_51 ; struct dentry *ll_fast_symlink_inode_operations_group1 ; struct inode *ll_fast_symlink_inode_operations_group0 ; void ldv_initialize_inode_operations_51(void) ; extern int generic_readlink(struct dentry * , char * , int ) ; struct sk_buff *ldv_skb_clone_330(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_338(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_332(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_328(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_336(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_337(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_333(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_334(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_335(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; static int ll_readlink_internal(struct inode *inode , struct ptlrpc_request **request , char **symname ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___0 ; int rc ; int symlen ; loff_t tmp___1 ; struct mdt_body *body ; struct md_op_data *op_data ; int print_limit ; int __min1 ; int __min2 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; long tmp___3 ; bool tmp___4 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___5 ; void *tmp___6 ; struct libcfs_debug_msg_data __msg_data ; long tmp___7 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___8 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___9 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___10 ; void *tmp___11 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___12 ; __kernel_size_t tmp___13 ; void *tmp___14 ; { tmp = ll_i2info(inode); lli = tmp; tmp___0 = ll_i2sbi(inode); sbi = tmp___0; tmp___1 = i_size_read((struct inode const *)inode); symlen = (int )((unsigned int )tmp___1 + 1U); *request = (struct ptlrpc_request *)0; if ((unsigned long )lli->u.f.f_symlink_name != (unsigned long )((char *)0)) { __min1 = 3968; __min2 = symlen; print_limit = __min1 < __min2 ? __min1 : __min2; *symname = lli->u.f.f_symlink_name; tmp___2 = cfs_cdebug_show(2U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/symlink.c"; msgdata.msg_fn = "ll_readlink_internal"; msgdata.msg_line = 65; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; libcfs_debug_msg(& msgdata, "using cached symlink %s%.*s, len = %d\n", print_limit < symlen ? (char *)"..." : (char *)"", print_limit, *symname + ((unsigned long )symlen - (unsigned long )print_limit), symlen); } else { } return (0); } else { } op_data = ll_prep_md_op_data((struct md_op_data *)0, inode, (struct inode *)0, (char const *)0, 0, symlen, 16U, (void *)0); tmp___4 = IS_ERR((void const *)op_data); if ((int )tmp___4) { tmp___3 = PTR_ERR((void const *)op_data); return ((int )tmp___3); } else { } op_data->op_valid = 262144ULL; rc = md_getattr___0(sbi->ll_md_exp, op_data, request); ll_finish_md_op_data(op_data); if (rc != 0) { if (rc != -2) { tmp___5 = cfs_cdebug_show(131072U, 128U); if (tmp___5 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/symlink.c"; msgdata___0.msg_fn = "ll_readlink_internal"; msgdata___0.msg_line = 79; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "inode %lu: rc = %d\n", inode->i_ino, rc); } else { } } else { } goto failed; } else { } tmp___6 = req_capsule_server_get(& (*request)->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp___6; tmp___7 = ldv__builtin_expect((unsigned long )body == (unsigned long )((struct mdt_body *)0), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/symlink.c"; __msg_data.msg_fn = "ll_readlink_internal"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 84; __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)"); lbug_with_loc(& __msg_data); } else { } if ((body->valid & 262144ULL) == 0ULL) { tmp___8 = cfs_cdebug_show(131072U, 128U); if (tmp___8 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/symlink.c"; msgdata___1.msg_fn = "ll_readlink_internal"; msgdata___1.msg_line = 86; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "OBD_MD_LINKNAME not set on reply\n"); } else { } rc = -71; goto failed; } else { } tmp___9 = ldv__builtin_expect(symlen == 0, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/symlink.c"; __msg_data___0.msg_fn = "ll_readlink_internal"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 91; __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 *)"symlen != 0"); lbug_with_loc(& __msg_data___0); } else { } if (body->eadatasize != (__u32 )symlen) { tmp___10 = cfs_cdebug_show(131072U, 128U); if (tmp___10 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/symlink.c"; msgdata___2.msg_fn = "ll_readlink_internal"; msgdata___2.msg_line = 94; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "inode %lu: symlink length %d not expected %d\n", inode->i_ino, body->eadatasize - 1U, symlen + -1); } else { } rc = -71; goto failed; } else { } tmp___11 = req_capsule_server_get(& (*request)->rq_pill, (struct req_msg_field const *)(& RMF_MDT_MD)); *symname = (char *)tmp___11; if ((unsigned long )*symname == (unsigned long )((char *)0)) { goto _L; } else { tmp___13 = strnlen((char const *)*symname, (__kernel_size_t )symlen); if (tmp___13 != (__kernel_size_t )(symlen + -1)) { _L: /* CIL Label */ tmp___12 = cfs_cdebug_show(131072U, 128U); if (tmp___12 != 0) { msgdata___3.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/symlink.c"; msgdata___3.msg_fn = "ll_readlink_internal"; msgdata___3.msg_line = 104; msgdata___3.msg_cdls = & cdls___2; msgdata___3.msg_mask = 131072; libcfs_debug_msg(& msgdata___3, "inode %lu: symlink not NULL terminated string of length %d\n", inode->i_ino, symlen + -1); } else { } rc = -71; goto failed; } else { } } tmp___14 = kzalloc((size_t )symlen, 80U); lli->u.f.f_symlink_name = (char *)tmp___14; if ((unsigned long )lli->u.f.f_symlink_name != (unsigned long )((char *)0)) { memcpy((void *)lli->u.f.f_symlink_name, (void const *)*symname, (size_t )symlen); *symname = lli->u.f.f_symlink_name; } else { } return (0); failed: ; return (rc); } } static char const *ll_follow_link(struct dentry *dentry , void **cookie ) { struct inode *inode ; struct inode *tmp ; struct ptlrpc_request *request ; int rc ; char *symname ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; void *tmp___1 ; { tmp = d_inode((struct dentry const *)dentry); inode = tmp; request = (struct ptlrpc_request *)0; symname = (char *)0; tmp___0 = cfs_cdebug_show(2097152U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/symlink.c"; msgdata.msg_fn = "ll_follow_link"; msgdata.msg_line = 128; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op\n"); } else { } ll_inode_size_lock(inode); rc = ll_readlink_internal(inode, & request, & symname); ll_inode_size_unlock(inode); if (rc != 0) { ptlrpc_req_finished(request); tmp___1 = ERR_PTR((long )rc); return ((char const *)tmp___1); } else { } *cookie = (void *)request; return ((char const *)symname); } } static void ll_put_link(struct inode *unused , void *cookie ) { { ptlrpc_req_finished((struct ptlrpc_request *)cookie); return; } } struct inode_operations ll_fast_symlink_inode_operations = {0, & ll_follow_link, & ll_inode_permission, 0, & generic_readlink, & ll_put_link, 0, 0, 0, 0, 0, 0, 0, 0, 0, & ll_setattr, & ll_getattr, & ll_setxattr, & ll_getxattr, & ll_listxattr, & ll_removexattr, 0, 0, 0, 0, 0}; extern int ldv_release_51(void) ; extern int ldv_probe_51(void) ; void ldv_initialize_inode_operations_51(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); ll_fast_symlink_inode_operations_group0 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(320UL); ll_fast_symlink_inode_operations_group1 = (struct dentry *)tmp___0; return; } } void ldv_main_exported_51(void) { char *ldvarg232 ; void *tmp ; struct kstat *ldvarg222 ; void *tmp___0 ; struct vfsmount *ldvarg221 ; void *tmp___1 ; size_t ldvarg226 ; char *ldvarg228 ; void *tmp___2 ; void *ldvarg227 ; void *tmp___3 ; void *ldvarg234 ; void *tmp___4 ; int ldvarg229 ; char *ldvarg235 ; void *tmp___5 ; struct iattr *ldvarg223 ; void *tmp___6 ; void *ldvarg224 ; void *tmp___7 ; void **ldvarg236 ; void *tmp___8 ; size_t ldvarg233 ; char *ldvarg238 ; void *tmp___9 ; int ldvarg231 ; char *ldvarg225 ; void *tmp___10 ; int ldvarg230 ; size_t ldvarg237 ; int tmp___11 ; { tmp = ldv_init_zalloc(1UL); ldvarg232 = (char *)tmp; tmp___0 = ldv_init_zalloc(104UL); ldvarg222 = (struct kstat *)tmp___0; tmp___1 = ldv_init_zalloc(24UL); ldvarg221 = (struct vfsmount *)tmp___1; tmp___2 = ldv_init_zalloc(1UL); ldvarg228 = (char *)tmp___2; tmp___3 = ldv_init_zalloc(1UL); ldvarg227 = tmp___3; tmp___4 = ldv_init_zalloc(1UL); ldvarg234 = tmp___4; tmp___5 = ldv_init_zalloc(1UL); ldvarg235 = (char *)tmp___5; tmp___6 = ldv_init_zalloc(80UL); ldvarg223 = (struct iattr *)tmp___6; tmp___7 = ldv_init_zalloc(1UL); ldvarg224 = tmp___7; tmp___8 = ldv_init_zalloc(8UL); ldvarg236 = (void **)tmp___8; tmp___9 = ldv_init_zalloc(1UL); ldvarg238 = (char *)tmp___9; tmp___10 = ldv_init_zalloc(1UL); ldvarg225 = (char *)tmp___10; ldv_memset((void *)(& ldvarg226), 0, 8UL); ldv_memset((void *)(& ldvarg229), 0, 4UL); ldv_memset((void *)(& ldvarg233), 0, 8UL); ldv_memset((void *)(& ldvarg231), 0, 4UL); ldv_memset((void *)(& ldvarg230), 0, 4UL); ldv_memset((void *)(& ldvarg237), 0, 8UL); tmp___11 = __VERIFIER_nondet_int(); switch (tmp___11) { case 0: ; if (ldv_state_variable_51 == 1) { ll_listxattr(ll_fast_symlink_inode_operations_group1, ldvarg238, ldvarg237); ldv_state_variable_51 = 1; } else { } if (ldv_state_variable_51 == 2) { ll_listxattr(ll_fast_symlink_inode_operations_group1, ldvarg238, ldvarg237); ldv_state_variable_51 = 2; } else { } goto ldv_68221; case 1: ; if (ldv_state_variable_51 == 1) { ll_follow_link(ll_fast_symlink_inode_operations_group1, ldvarg236); ldv_state_variable_51 = 1; } else { } if (ldv_state_variable_51 == 2) { ll_follow_link(ll_fast_symlink_inode_operations_group1, ldvarg236); ldv_state_variable_51 = 2; } else { } goto ldv_68221; case 2: ; if (ldv_state_variable_51 == 1) { ll_getxattr(ll_fast_symlink_inode_operations_group1, (char const *)ldvarg235, ldvarg234, ldvarg233); ldv_state_variable_51 = 1; } else { } if (ldv_state_variable_51 == 2) { ll_getxattr(ll_fast_symlink_inode_operations_group1, (char const *)ldvarg235, ldvarg234, ldvarg233); ldv_state_variable_51 = 2; } else { } goto ldv_68221; case 3: ; if (ldv_state_variable_51 == 2) { generic_readlink(ll_fast_symlink_inode_operations_group1, ldvarg232, ldvarg231); ldv_state_variable_51 = 2; } else { } goto ldv_68221; case 4: ; if (ldv_state_variable_51 == 1) { ll_inode_permission(ll_fast_symlink_inode_operations_group0, ldvarg230); ldv_state_variable_51 = 1; } else { } if (ldv_state_variable_51 == 2) { ll_inode_permission(ll_fast_symlink_inode_operations_group0, ldvarg230); ldv_state_variable_51 = 2; } else { } goto ldv_68221; case 5: ; if (ldv_state_variable_51 == 1) { ll_setxattr(ll_fast_symlink_inode_operations_group1, (char const *)ldvarg228, (void const *)ldvarg227, ldvarg226, ldvarg229); ldv_state_variable_51 = 1; } else { } if (ldv_state_variable_51 == 2) { ll_setxattr(ll_fast_symlink_inode_operations_group1, (char const *)ldvarg228, (void const *)ldvarg227, ldvarg226, ldvarg229); ldv_state_variable_51 = 2; } else { } goto ldv_68221; case 6: ; if (ldv_state_variable_51 == 1) { ll_removexattr(ll_fast_symlink_inode_operations_group1, (char const *)ldvarg225); ldv_state_variable_51 = 1; } else { } if (ldv_state_variable_51 == 2) { ll_removexattr(ll_fast_symlink_inode_operations_group1, (char const *)ldvarg225); ldv_state_variable_51 = 2; } else { } goto ldv_68221; case 7: ; if (ldv_state_variable_51 == 1) { ll_put_link(ll_fast_symlink_inode_operations_group0, ldvarg224); ldv_state_variable_51 = 1; } else { } if (ldv_state_variable_51 == 2) { ll_put_link(ll_fast_symlink_inode_operations_group0, ldvarg224); ldv_state_variable_51 = 2; } else { } goto ldv_68221; case 8: ; if (ldv_state_variable_51 == 1) { ll_setattr(ll_fast_symlink_inode_operations_group1, ldvarg223); ldv_state_variable_51 = 1; } else { } if (ldv_state_variable_51 == 2) { ll_setattr(ll_fast_symlink_inode_operations_group1, ldvarg223); ldv_state_variable_51 = 2; } else { } goto ldv_68221; case 9: ; if (ldv_state_variable_51 == 1) { ll_getattr(ldvarg221, ll_fast_symlink_inode_operations_group1, ldvarg222); ldv_state_variable_51 = 1; } else { } if (ldv_state_variable_51 == 2) { ll_getattr(ldvarg221, ll_fast_symlink_inode_operations_group1, ldvarg222); ldv_state_variable_51 = 2; } else { } goto ldv_68221; case 10: ; if (ldv_state_variable_51 == 2) { ldv_release_51(); ldv_state_variable_51 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_68221; case 11: ; if (ldv_state_variable_51 == 1) { ldv_probe_51(); ldv_state_variable_51 = 2; ref_cnt = ref_cnt + 1; } else { } goto ldv_68221; default: ldv_stop(); } ldv_68221: ; return; } } int ldv_pskb_expand_head_328(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_330(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_332(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_333(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_334(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_335(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_336(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_337(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_338(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 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_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 void spin_lock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; extern int down_write_trylock(struct rw_semaphore * ) ; struct vm_fault *ll_file_vm_ops_group1 ; int ldv_state_variable_50 ; struct vm_area_struct *ll_file_vm_ops_group0 ; void ldv_initialize_vm_operations_struct_50(void) ; __inline static int PageDirty(struct page const *page ) { int tmp ; { tmp = constant_test_bit(4L, (unsigned long const volatile *)(& page->flags)); return (tmp); } } extern void unmap_mapping_range(struct address_space * , loff_t const , loff_t const , int ) ; extern struct vm_area_struct *find_vma(struct mm_struct * , unsigned long ) ; __inline static int mapping_mapped(struct address_space *mapping ) { { return ((unsigned long )mapping->i_mmap.rb_node != (unsigned long )((struct rb_node *)0)); } } extern int generic_file_mmap(struct file * , struct vm_area_struct * ) ; struct sk_buff *ldv_skb_clone_367(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_375(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_369(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_365(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_373(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_374(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_370(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_371(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_372(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct inode *ccc_object_inode(struct cl_object const *obj ) ; int ll_teardown_mmaps(struct address_space *mapping , __u64 first , __u64 last ) ; void policy_from_vma(ldlm_policy_data_t *policy , struct vm_area_struct *vma , unsigned long addr , size_t count ) ; struct vm_area_struct *our_vma(struct mm_struct *mm , unsigned long addr , size_t count ) ; static struct vm_operations_struct const ll_file_vm_ops ; void policy_from_vma(ldlm_policy_data_t *policy , struct vm_area_struct *vma , unsigned long addr , size_t count ) { { policy->l_extent.start = ((unsigned long long )(addr - vma->vm_start) & 0xfffffffffffff000ULL) + (unsigned long long )(vma->vm_pgoff << 12); policy->l_extent.end = ((policy->l_extent.start + (unsigned long long )count) - 1ULL) | 4095ULL; return; } } struct vm_area_struct *our_vma(struct mm_struct *mm , unsigned long addr , size_t count ) { struct vm_area_struct *vma ; struct vm_area_struct *ret ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; { ret = (struct vm_area_struct *)0; tmp = down_write_trylock(& mm->mmap_sem); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; __msg_data.msg_fn = "our_vma"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 72; __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 *)"!down_write_trylock(&mm->mmap_sem)"); lbug_with_loc(& __msg_data); } else { } vma = find_vma(mm, addr); goto ldv_68167; ldv_68166: ; if (((unsigned long )vma->vm_ops != (unsigned long )((struct vm_operations_struct const *)0) && (unsigned long )vma->vm_ops == (unsigned long )(& ll_file_vm_ops)) && (vma->vm_flags & 8UL) != 0UL) { ret = vma; goto ldv_68165; } else { } vma = vma->vm_next; ldv_68167: ; if ((unsigned long )vma != (unsigned long )((struct vm_area_struct *)0) && vma->vm_start < addr + count) { goto ldv_68166; } else { } ldv_68165: ; return (ret); } } static struct cl_io *ll_fault_io_init(struct vm_area_struct *vma , struct lu_env **env_ret , struct cl_env_nest *nest , unsigned long index , unsigned long *ra_flags ) { struct file *file ; struct inode *inode ; struct inode *tmp ; struct cl_io *io ; struct cl_fault_io *fio ; struct lu_env *env ; int rc ; void *tmp___0 ; int tmp___1 ; void *tmp___2 ; bool tmp___3 ; struct ll_inode_info *tmp___4 ; struct libcfs_debug_msg_data __msg_data ; long tmp___5 ; struct libcfs_debug_msg_data msgdata ; int tmp___6 ; struct ccc_io *cio ; struct ccc_io *tmp___7 ; struct ll_file_data *fd ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___8 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___9 ; void *tmp___10 ; { file = vma->vm_file; tmp = file_inode((struct file const *)file); inode = tmp; *env_ret = (struct lu_env *)0; tmp___1 = ll_file_nolock((struct file const *)file); if (tmp___1 != 0) { tmp___0 = ERR_PTR(-95L); return ((struct cl_io *)tmp___0); } else { } env = cl_env_nested_get(nest); tmp___3 = IS_ERR((void const *)env); if ((int )tmp___3) { tmp___2 = ERR_PTR(-22L); return ((struct cl_io *)tmp___2); } else { } *env_ret = env; io = ccc_env_thread_io((struct lu_env const *)env); tmp___4 = ll_i2info(inode); io->ci_obj = tmp___4->lli_clob; tmp___5 = ldv__builtin_expect((unsigned long )io->ci_obj == (unsigned long )((struct cl_object *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; __msg_data.msg_fn = "ll_fault_io_init"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 128; __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 *)"io->ci_obj != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } fio = & io->u.ci_fault; fio->ft_index = index; fio->ft_executable = (int )vma->vm_flags & 4; if ((unsigned long )ra_flags != (unsigned long )((unsigned long *)0UL)) { *ra_flags = vma->vm_flags & 98304UL; } else { } vma->vm_flags = vma->vm_flags & 0xffffffffffff7fffUL; vma->vm_flags = vma->vm_flags | 65536UL; tmp___6 = cfs_cdebug_show(8388608U, 128U); if (tmp___6 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; msgdata.msg_fn = "ll_fault_io_init"; msgdata.msg_line = 145; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 8388608; libcfs_debug_msg(& msgdata, "vm_flags: %lx (%lu %d)\n", vma->vm_flags, fio->ft_index, fio->ft_executable); } else { } rc = cl_io_init((struct lu_env const *)env, io, 3, io->ci_obj); if (rc == 0) { tmp___7 = ccc_env_io((struct lu_env const *)env); cio = tmp___7; fd = (struct ll_file_data *)file->private_data; tmp___8 = ldv__builtin_expect((unsigned long )cio->cui_cl.cis_io != (unsigned long )io, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; __msg_data___0.msg_fn = "ll_fault_io_init"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 152; __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 *)"cio->cui_cl.cis_io == io"); lbug_with_loc(& __msg_data___0); } else { } io->ci_lockreq = 0; cio->cui_fd = fd; } else { tmp___9 = ldv__builtin_expect(rc >= 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; __msg_data___1.msg_fn = "ll_fault_io_init"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 159; __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 { } cl_io_fini((struct lu_env const *)env, io); cl_env_nested_put(nest, env); tmp___10 = ERR_PTR((long )rc); io = (struct cl_io *)tmp___10; } return (io); } } static int ll_page_mkwrite0(struct vm_area_struct *vma , struct page *vmpage , bool *retry ) { struct lu_env *env ; struct cl_io *io ; struct vvp_io *vio ; struct cl_env_nest nest ; int result ; sigset_t set ; struct inode *inode ; struct ll_inode_info *lli ; struct libcfs_debug_msg_data __msg_data ; long tmp ; long tmp___0 ; bool tmp___1 ; struct inode *inode___0 ; struct inode *tmp___2 ; struct ll_inode_info *lli___0 ; struct ll_inode_info *tmp___3 ; struct libcfs_debug_msg_data msgdata ; int tmp___4 ; int tmp___5 ; struct libcfs_debug_msg_data msgdata___0 ; struct task_struct *tmp___6 ; int tmp___7 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___8 ; int tmp___9 ; long tmp___10 ; { tmp = ldv__builtin_expect((unsigned long )vmpage == (unsigned long )((struct 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; __msg_data.msg_fn = "ll_page_mkwrite0"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 181; __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 *)"vmpage != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } io = ll_fault_io_init(vma, & env, & nest, vmpage->__annonCompField42.__annonCompField37.index, (unsigned long *)0UL); tmp___1 = IS_ERR((void const *)io); if ((int )tmp___1) { tmp___0 = PTR_ERR((void const *)io); result = (int )tmp___0; goto out; } else { } result = io->ci_result; if (result < 0) { goto out_io; } else { } io->u.ci_fault.ft_mkwrite = 1; io->u.ci_fault.ft_writable = 1; vio = vvp_env_io((struct lu_env const *)env); vio->u.fault.ft_vma = vma; vio->u.fault.ft_vmpage = vmpage; set = cfs_block_sigsinv(16640UL); inode = ccc_object_inode((struct cl_object const *)io->ci_obj); lli = ll_i2info(inode); down_read(& lli->u.f.f_trunc_sem); result = cl_io_loop((struct lu_env const *)env, io); up_read(& lli->u.f.f_trunc_sem); cfs_restore_sigs(set); if (result == 0) { tmp___2 = file_inode((struct file const *)vma->vm_file); inode___0 = tmp___2; tmp___3 = ll_i2info(inode___0); lli___0 = tmp___3; lock_page(vmpage); if ((unsigned long )vmpage->__annonCompField36.mapping == (unsigned long )((struct address_space *)0)) { unlock_page(vmpage); if (result == 0) { result = -61; } else { } } else { tmp___5 = PageDirty((struct page const *)vmpage); if (tmp___5 == 0) { unlock_page(vmpage); tmp___4 = cfs_cdebug_show(8388608U, 128U); if (tmp___4 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; msgdata.msg_fn = "ll_page_mkwrite0"; msgdata.msg_line = 238; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 8388608; libcfs_debug_msg(& msgdata, "Race on page_mkwrite %p/%lu, page has been written out, retry.\n", vmpage, vmpage->__annonCompField42.__annonCompField37.index); } else { } *retry = 1; result = -11; } else { } } if (result == 0) { spin_lock(& lli___0->lli_lock); lli___0->lli_flags = lli___0->lli_flags | 16U; spin_unlock(& lli___0->lli_lock); } else { } } else { } out_io: cl_io_fini((struct lu_env const *)env, io); cl_env_nested_put(& nest, env); out: tmp___7 = cfs_cdebug_show(8388608U, 128U); if (tmp___7 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; msgdata___0.msg_fn = "ll_page_mkwrite0"; msgdata___0.msg_line = 255; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 8388608; tmp___6 = get_current(); libcfs_debug_msg(& msgdata___0, "%s mkwrite with %d\n", (char *)(& tmp___6->comm), result); } else { } if (result == 0) { tmp___8 = PageLocked((struct page const *)vmpage); 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___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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; __msg_data___0.msg_fn = "ll_page_mkwrite0"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 256; __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 *)"(!(result == 0) || (PageLocked(vmpage)))"); lbug_with_loc(& __msg_data___0); } else { } return (result); } } __inline static int to_fault_error(int result ) { { switch (result) { case 0: result = 512; goto ldv_68214; case -14: result = 256; goto ldv_68214; case -12: result = 1; goto ldv_68214; default: result = 2; goto ldv_68214; } ldv_68214: ; return (result); } } static int ll_fault0(struct vm_area_struct *vma , struct vm_fault *vmf ) { struct lu_env *env ; struct cl_io *io ; struct vvp_io *vio ; struct page *vmpage ; unsigned long ra_flags ; struct cl_env_nest nest ; int result ; int fault_ret ; long tmp ; int tmp___0 ; bool tmp___1 ; int tmp___2 ; struct libcfs_debug_msg_data msgdata ; struct task_struct *tmp___3 ; int tmp___4 ; { vio = (struct vvp_io *)0; fault_ret = 0; io = ll_fault_io_init(vma, & env, & nest, vmf->pgoff, & ra_flags); tmp___1 = IS_ERR((void const *)io); if ((int )tmp___1) { tmp = PTR_ERR((void const *)io); tmp___0 = to_fault_error((int )tmp); return (tmp___0); } else { } result = io->ci_result; if (result == 0) { vio = vvp_env_io((struct lu_env const *)env); vio->u.fault.ft_vma = vma; vio->u.fault.ft_vmpage = (struct page *)0; vio->u.fault.fault.ft_vmf = vmf; vio->u.fault.fault.ft_flags = 0U; vio->u.fault.fault.ft_flags_valid = 0; result = cl_io_loop((struct lu_env const *)env, io); if ((int )vio->u.fault.fault.ft_flags_valid) { fault_ret = (int )vio->u.fault.fault.ft_flags; } else { } vmpage = vio->u.fault.ft_vmpage; if (result != 0 && (unsigned long )vmpage != (unsigned long )((struct page *)0)) { put_page(vmpage); vmf->page = (struct page *)0; } else { } } else { } cl_io_fini((struct lu_env const *)env, io); cl_env_nested_put(& nest, env); vma->vm_flags = vma->vm_flags | ra_flags; if (result != 0 && (fault_ret & 1024) == 0) { tmp___2 = to_fault_error(result); fault_ret = tmp___2 | fault_ret; } else { } tmp___4 = cfs_cdebug_show(8388608U, 128U); if (tmp___4 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; msgdata.msg_fn = "ll_fault0"; msgdata.msg_line = 338; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 8388608; tmp___3 = get_current(); libcfs_debug_msg(& msgdata, "%s fault %d/%d\n", (char *)(& tmp___3->comm), fault_ret, result); } else { } return (fault_ret); } } static int ll_fault(struct vm_area_struct *vma , struct vm_fault *vmf ) { int count ; bool printed ; int result ; sigset_t set ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct page *vmpage ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; struct task_struct *tmp___0 ; int tmp___1 ; long tmp___2 ; { count = 0; printed = 0; set = cfs_block_sigsinv(16640UL); restart: result = ll_fault0(vma, vmf); tmp = ldv__builtin_expect((result & 512) != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; __msg_data.msg_fn = "ll_fault"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 356; __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 *)"!(result & 0x0200)"); lbug_with_loc(& __msg_data); } else { } if (result == 0) { vmpage = vmf->page; lock_page(vmpage); tmp___2 = ldv__builtin_expect((unsigned long )vmpage->__annonCompField36.mapping == (unsigned long )((struct address_space *)0), 0L); if (tmp___2 != 0L) { unlock_page(vmpage); put_page(vmpage); vmf->page = (struct page *)0; if (! printed) { count = count + 1; if (count > 16) { tmp___1 = cfs_cdebug_show(1024U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; msgdata.msg_fn = "ll_fault"; msgdata.msg_line = 369; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; tmp___0 = get_current(); libcfs_debug_msg(& msgdata, "the page is under heavy contention, maybe your app(%s) needs revising :-)\n", (char *)(& tmp___0->comm)); } else { } printed = 1; } else { } } else { } goto restart; } else { } result = 512; } else { } cfs_restore_sigs(set); return (result); } } static int ll_page_mkwrite(struct vm_area_struct *vma , struct vm_fault *vmf ) { int count ; bool printed ; bool retry ; int result ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; struct inode *tmp ; struct task_struct *tmp___0 ; int tmp___1 ; struct libcfs_debug_msg_data __msg_data ; int tmp___2 ; long tmp___3 ; { count = 0; printed = 0; ldv_68257: retry = 0; result = ll_page_mkwrite0(vma, vmf->page, & retry); if (! printed) { count = count + 1; if (count > 16) { tmp___1 = cfs_cdebug_show(1024U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; msgdata.msg_fn = "ll_page_mkwrite"; msgdata.msg_line = 396; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; tmp = file_inode((struct file const *)vma->vm_file); tmp___0 = get_current(); libcfs_debug_msg(& msgdata, "app(%s): the page %lu of file %lu is under heavy contention.\n", (char *)(& tmp___0->comm), vmf->pgoff, tmp->i_ino); } else { } printed = 1; } else { } } else { } if ((int )retry) { goto ldv_68257; } else { } switch (result) { case 0: tmp___2 = PageLocked((struct page const *)vmf->page); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; __msg_data.msg_fn = "ll_page_mkwrite"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 403; __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 *)"PageLocked(vmf->page)"); lbug_with_loc(& __msg_data); } else { } result = 512; goto ldv_68261; case -61: ; case -14: result = 256; goto ldv_68261; case -12: result = 1; goto ldv_68261; case -11: result = 1024; goto ldv_68261; default: result = 2; goto ldv_68261; } ldv_68261: ; return (result); } } static void ll_vm_open(struct vm_area_struct *vma ) { struct inode *inode ; struct inode *tmp ; struct ccc_object *vob ; struct ccc_object *tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___2 ; long tmp___3 ; { tmp = file_inode((struct file const *)vma->vm_file); inode = tmp; tmp___0 = cl_inode2ccc(inode); vob = tmp___0; tmp___1 = ldv__builtin_expect((unsigned long )vma->vm_file == (unsigned long )((struct file *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; __msg_data.msg_fn = "ll_vm_open"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 433; __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 *)"vma->vm_file"); lbug_with_loc(& __msg_data); } else { } tmp___2 = atomic_read((atomic_t const *)(& vob->cob_mmap_cnt)); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; __msg_data___0.msg_fn = "ll_vm_open"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 434; __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(&vob->cob_mmap_cnt) >= 0"); lbug_with_loc(& __msg_data___0); } else { } atomic_inc(& vob->cob_mmap_cnt); return; } } static void ll_vm_close(struct vm_area_struct *vma ) { struct inode *inode ; struct inode *tmp ; struct ccc_object *vob ; struct ccc_object *tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___2 ; long tmp___3 ; { tmp = file_inode((struct file const *)vma->vm_file); inode = tmp; tmp___0 = cl_inode2ccc(inode); vob = tmp___0; tmp___1 = ldv__builtin_expect((unsigned long )vma->vm_file == (unsigned long )((struct file *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; __msg_data.msg_fn = "ll_vm_close"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 446; __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 *)"vma->vm_file"); lbug_with_loc(& __msg_data); } else { } atomic_dec(& vob->cob_mmap_cnt); tmp___2 = atomic_read((atomic_t const *)(& vob->cob_mmap_cnt)); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; __msg_data___0.msg_fn = "ll_vm_close"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 448; __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(&vob->cob_mmap_cnt) >= 0"); lbug_with_loc(& __msg_data___0); } else { } return; } } int ll_teardown_mmaps(struct address_space *mapping , __u64 first , __u64 last ) { int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; int tmp___0 ; { rc = -2; tmp = ldv__builtin_expect(last <= first, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_mmap.c"; __msg_data.msg_fn = "ll_teardown_mmaps"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 457; __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: last %llu first %llu\n", (char *)"last > first", last, first); lbug_with_loc(& __msg_data); } else { } tmp___0 = mapping_mapped(mapping); if (tmp___0 != 0) { rc = 0; unmap_mapping_range(mapping, (loff_t const )(first + 4095ULL), (loff_t const )((last - first) + 1ULL), 0); } else { } return (rc); } } static struct vm_operations_struct const ll_file_vm_ops = {& ll_vm_open, & ll_vm_close, & ll_fault, 0, & ll_page_mkwrite, 0, 0, 0, 0, 0, 0}; int ll_file_mmap(struct file *file , struct vm_area_struct *vma ) { struct inode *inode ; struct inode *tmp ; int rc ; int tmp___0 ; struct ll_sb_info *tmp___1 ; { tmp = file_inode((struct file const *)file); inode = tmp; tmp___0 = ll_file_nolock((struct file const *)file); if (tmp___0 != 0) { return (-95); } else { } tmp___1 = ll_i2sbi(inode); ll_stats_ops_tally(tmp___1, 11, 1); rc = generic_file_mmap(file, vma); if (rc == 0) { vma->vm_ops = & ll_file_vm_ops; (*((vma->vm_ops)->open))(vma); rc = ll_glimpse_size(inode); } else { } return (rc); } } void ldv_initialize_vm_operations_struct_50(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(56UL); ll_file_vm_ops_group1 = (struct vm_fault *)tmp; tmp___0 = ldv_init_zalloc(184UL); ll_file_vm_ops_group0 = (struct vm_area_struct *)tmp___0; return; } } void ldv_main_exported_50(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_state_variable_50 == 1) { ll_fault(ll_file_vm_ops_group0, ll_file_vm_ops_group1); ldv_state_variable_50 = 1; } else { } if (ldv_state_variable_50 == 2) { ll_fault(ll_file_vm_ops_group0, ll_file_vm_ops_group1); ldv_state_variable_50 = 2; } else { } goto ldv_68305; case 1: ; if (ldv_state_variable_50 == 1) { ll_vm_open(ll_file_vm_ops_group0); ldv_state_variable_50 = 2; ref_cnt = ref_cnt + 1; } else { } goto ldv_68305; case 2: ; if (ldv_state_variable_50 == 2) { ll_page_mkwrite(ll_file_vm_ops_group0, ll_file_vm_ops_group1); ldv_state_variable_50 = 2; } else { } goto ldv_68305; case 3: ; if (ldv_state_variable_50 == 2) { ll_vm_close(ll_file_vm_ops_group0); ldv_state_variable_50 = 1; } else { } goto ldv_68305; default: ldv_stop(); } ldv_68305: ; return; } } int ldv_pskb_expand_head_365(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_367(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_369(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_370(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_371(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_372(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_373(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_374(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_375(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 ) ; extern void *memmove(void * , void const * , size_t ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; __inline static void spin_lock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; extern bool selinux_is_enabled(void) ; extern bool inode_owner_or_capable(struct inode const * ) ; struct sk_buff *ldv_skb_clone_404(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_412(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_406(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_402(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_410(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_411(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_407(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_408(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_409(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static int obd_free_diskmd(struct obd_export *exp , struct lov_mds_md_v1 **disk_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 )disk_tgt == (unsigned long )((struct lov_mds_md_v1 **)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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_free_diskmd"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 699; __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 *)"disk_tgt"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect((unsigned long )*disk_tgt == (unsigned long )((struct lov_mds_md_v1 *)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/llite/../include/linux/../obd_class.h"; __msg_data___0.msg_fn = "obd_free_diskmd"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 700; __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 *)"*disk_tgt"); lbug_with_loc(& __msg_data___0); } else { } tmp___1 = obd_packmd(exp, disk_tgt, (struct lov_stripe_md *)0); return (tmp___1); } } __inline static int md_setxattr(struct obd_export *exp , struct lu_fid const *fid , struct obd_capa *oc , u64 valid , char const *name , char const *input , int input_size , int output_size , int flags , __u32 suppgid , struct ptlrpc_request **request ) { 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 ; int tmp___3 ; { if ((unsigned long )exp == (unsigned long )((struct obd_export *)0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_setxattr"; msgdata.msg_line = 1678; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_setxattr: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_setxattr"; msgdata___0.msg_line = 1678; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_setxattr: 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_md_ops)->m_setxattr == (unsigned long )((int (*)(struct obd_export * , struct lu_fid const * , struct obd_capa * , u64 , char const * , char const * , int , int , int , __u32 , struct ptlrpc_request ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_setxattr"; msgdata___1.msg_line = 1678; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_setxattr: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 17U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_setxattr"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1679; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } tmp___3 = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_setxattr))(exp, fid, oc, valid, name, input, input_size, output_size, flags, suppgid, request); return (tmp___3); } } extern int posix_acl_to_xattr(struct user_namespace * , struct posix_acl const * , void * , size_t ) ; extern ext_acl_xattr_header *lustre_posix_acl_xattr_2ext(posix_acl_xattr_header * , int ) ; extern int lustre_posix_acl_xattr_filter(posix_acl_xattr_header * , size_t , posix_acl_xattr_header ** ) ; extern void lustre_posix_acl_xattr_free(posix_acl_xattr_header * , int ) ; extern void lustre_ext_acl_xattr_free(ext_acl_xattr_header * ) ; extern ext_acl_xattr_header *lustre_acl_xattr_merge2ext(posix_acl_xattr_header * , int , ext_acl_xattr_header * ) ; int ll_xattr_cache_get(struct inode *inode , char const *name , char *buffer , size_t size , __u64 valid ) ; u64 rce_ops2valid(int ops ) ; struct rmtacl_ctl_entry *rct_search(struct rmtacl_ctl_table *rct , pid_t key ) ; void ee_free(struct eacl_entry *ee ) ; int ee_add(struct eacl_table *et , pid_t key , struct lu_fid *fid , int type , ext_acl_xattr_header *header ) ; struct eacl_entry *et_search_del(struct eacl_table *et , pid_t key , struct lu_fid *fid , int type ) ; static int get_xattr_type(char const *name ) { int tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; { tmp = strcmp(name, "system.posix_acl_access"); if (tmp == 0) { return (4); } else { } tmp___0 = strcmp(name, "system.posix_acl_default"); if (tmp___0 == 0) { return (5); } else { } tmp___1 = strncmp(name, "user.", 5UL); if (tmp___1 == 0) { return (1); } else { } tmp___2 = strncmp(name, "trusted.", 8UL); if (tmp___2 == 0) { return (2); } else { } tmp___3 = strncmp(name, "security.", 9UL); if (tmp___3 == 0) { return (3); } else { } tmp___4 = strncmp(name, "lustre.", 7UL); if (tmp___4 == 0) { return (6); } else { } return (7); } } static int xattr_type_filter(struct ll_sb_info *sbi , int xattr_type ) { bool tmp ; int tmp___0 ; { if ((xattr_type == 4 || xattr_type == 5) && (sbi->ll_flags & 16) == 0) { return (-95); } else { } if (xattr_type == 1 && (sbi->ll_flags & 8) == 0) { return (-95); } else { } if (xattr_type == 2) { tmp = capable(21); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return (-1); } else { } } else { } if (xattr_type == 7) { return (-95); } else { } return (0); } } static int ll_setxattr_common(struct inode *inode , char const *name , void const *value , size_t size , int flags , __u64 valid ) { struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct ptlrpc_request *req ; int xattr_type ; int rc ; struct obd_capa *oc ; struct rmtacl_ctl_entry *rce ; posix_acl_xattr_header *new_value ; ext_acl_xattr_header *acl ; char const *pv ; bool tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; bool tmp___5 ; int tmp___6 ; int tmp___7 ; struct task_struct *tmp___8 ; struct eacl_entry *ee ; struct lu_fid *tmp___9 ; struct task_struct *tmp___10 ; struct libcfs_debug_msg_data __msg_data ; long tmp___11 ; long tmp___12 ; bool tmp___13 ; int tmp___14 ; long tmp___15 ; u64 tmp___16 ; __u32 tmp___17 ; struct lu_fid *tmp___18 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___19 ; { tmp = ll_i2sbi(inode); sbi = tmp; req = (struct ptlrpc_request *)0; rce = (struct rmtacl_ctl_entry *)0; new_value = (posix_acl_xattr_header *)0; acl = (ext_acl_xattr_header *)0; pv = (char const *)value; xattr_type = get_xattr_type(name); rc = xattr_type_filter(sbi, xattr_type); if (rc != 0) { return (rc); } else { } if (xattr_type == 4 || xattr_type == 5) { tmp___0 = inode_owner_or_capable((struct inode const *)inode); if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { return (-1); } else { } } else { } if (xattr_type == 2) { tmp___2 = strcmp(name, "trusted.lov"); if (tmp___2 == 0) { return (0); } else { goto _L; } } else _L: /* CIL Label */ if (xattr_type == 6) { tmp___3 = strcmp(name, "lustre.lov"); if (tmp___3 == 0) { return (0); } else { } } else { } if (xattr_type == 3) { tmp___4 = strcmp(name, "security.capability"); if (tmp___4 == 0) { return (0); } else { } } else { } if (xattr_type == 3) { tmp___5 = selinux_is_enabled(); if (tmp___5) { tmp___6 = 0; } else { tmp___6 = 1; } if (tmp___6) { tmp___7 = strcmp(name, "security.selinux"); if (tmp___7 == 0) { return (-95); } else { } } else { } } else { } if ((sbi->ll_flags & 64) != 0 && (xattr_type == 4 || xattr_type == 5)) { tmp___8 = get_current(); rce = rct_search(& sbi->ll_rct, tmp___8->pid); if ((unsigned long )rce == (unsigned long )((struct rmtacl_ctl_entry *)0) || (rce->rce_ops != 1 && rce->rce_ops != 3)) { return (-95); } else { } if (rce->rce_ops == 1) { tmp___9 = ll_inode2fid(inode); tmp___10 = get_current(); ee = et_search_del(& sbi->ll_et, tmp___10->pid, tmp___9, xattr_type); tmp___11 = ldv__builtin_expect((unsigned long )ee == (unsigned long )((struct eacl_entry *)0), 0L); if (tmp___11 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; __msg_data.msg_fn = "ll_setxattr_common"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 162; __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 *)"ee != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } if ((valid & 68719476736ULL) != 0ULL) { acl = lustre_acl_xattr_merge2ext((posix_acl_xattr_header *)value, (int )size, ee->ee_acl); tmp___13 = IS_ERR((void const *)acl); if ((int )tmp___13) { ee_free(ee); tmp___12 = PTR_ERR((void const *)acl); return ((int )tmp___12); } else { } size = (unsigned long )acl->a_count * 12UL + 4UL; pv = (char const *)acl; } else { } ee_free(ee); } else if (rce->rce_ops == 3) { tmp___14 = lustre_posix_acl_xattr_filter((posix_acl_xattr_header *)value, size, & new_value); size = (size_t )tmp___14; tmp___15 = ldv__builtin_expect(0L, 0L); if (tmp___15 != 0L) { return ((int )size); } else { } pv = (char const *)new_value; } else { return (-95); } tmp___16 = rce_ops2valid(rce->rce_ops); valid = tmp___16 | valid; } else { } oc = ll_mdscapa_get(inode); tmp___17 = ll_i2suppgid(inode); tmp___18 = ll_inode2fid(inode); rc = md_setxattr(sbi->ll_md_exp, (struct lu_fid const *)tmp___18, oc, valid, name, pv, (int )size, 0, flags, tmp___17, & req); capa_put(oc); if ((unsigned long )new_value != (unsigned long )((posix_acl_xattr_header *)0)) { lustre_posix_acl_xattr_free(new_value, (int )size); } else { } if ((unsigned long )acl != (unsigned long )((ext_acl_xattr_header *)0)) { lustre_ext_acl_xattr_free(acl); } else { } if (rc != 0) { if (rc == -95 && xattr_type == 1) { tmp___19 = cfs_cdebug_show(33554432U, 128U); if (tmp___19 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; msgdata.msg_fn = "ll_setxattr_common"; msgdata.msg_line = 204; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 33554432; libcfs_debug_msg(& msgdata, "Disabling user_xattr feature because it is not supported on the server\n"); } else { } sbi->ll_flags = sbi->ll_flags & -9; } else { } return (rc); } else { } ptlrpc_req_finished(req); return (0); } } int ll_setxattr(struct dentry *dentry , char const *name , void const *value , size_t size , int flags ) { struct inode *inode ; struct inode *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 ; struct ll_sb_info *tmp___3 ; struct lov_user_md_v1 *lump ; int rc ; int flags___0 ; int lum_size ; int tmp___4 ; int tmp___5 ; int tmp___6 ; int tmp___7 ; int tmp___8 ; int tmp___9 ; int tmp___10 ; { tmp = d_inode((struct dentry const *)dentry); inode = tmp; tmp___0 = ldv__builtin_expect((unsigned long )inode == (unsigned long )((struct inode *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; __msg_data.msg_fn = "ll_setxattr"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 219; __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 *)"inode"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv__builtin_expect((unsigned long )name == (unsigned long )((char const *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; __msg_data___0.msg_fn = "ll_setxattr"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 220; __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 *)"name"); lbug_with_loc(& __msg_data___0); } else { } tmp___2 = cfs_cdebug_show(2097152U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; msgdata.msg_fn = "ll_setxattr"; msgdata.msg_line = 223; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p), xattr %s\n", inode->i_ino, inode->i_generation, inode, name); } else { } tmp___3 = ll_i2sbi(inode); ll_stats_ops_tally(tmp___3, 29, 1); tmp___6 = strncmp(name, "trusted.", 8UL); if (tmp___6 == 0) { tmp___7 = strcmp(name + 8U, "lov"); if (tmp___7 == 0) { goto _L; } else { goto _L___1; } } else { _L___1: /* CIL Label */ tmp___8 = strncmp(name, "lustre.", 7UL); if (tmp___8 == 0) { tmp___9 = strcmp(name + 7U, "lov"); if (tmp___9 == 0) { _L: /* CIL Label */ lump = (struct lov_user_md_v1 *)value; rc = 0; if (size != 0UL && size <= 31UL) { return (-22); } else { } if ((unsigned long )lump != (unsigned long )((struct lov_user_md_v1 *)0) && (unsigned int )lump->__annonCompField109.lmm_stripe_offset == 0U) { lump->__annonCompField109.lmm_stripe_offset = 65535U; } else { } if ((unsigned long )lump != (unsigned long )((struct lov_user_md_v1 *)0) && ((int )inode->i_mode & 61440) == 32768) { flags___0 = 2; lum_size = lump->lmm_magic == 198249424U ? 32 : 48; rc = ll_lov_setstripe_ea_info(inode, dentry, flags___0, lump, lum_size); rc = 0; } else if (((int )inode->i_mode & 61440) == 16384) { rc = ll_dir_setstripe(inode, lump, 0); } else { } return (rc); } else { goto _L___0; } } else { _L___0: /* CIL Label */ tmp___4 = strcmp(name, "trusted.lma"); if (tmp___4 == 0) { return (0); } else { tmp___5 = strcmp(name, "trusted.link"); if (tmp___5 == 0) { return (0); } else { } } } } tmp___10 = ll_setxattr_common(inode, name, value, size, flags, 68719476736ULL); return (tmp___10); } } int ll_removexattr(struct dentry *dentry , char const *name ) { struct inode *inode ; struct inode *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 ; struct ll_sb_info *tmp___3 ; int tmp___4 ; { tmp = d_inode((struct dentry const *)dentry); inode = tmp; tmp___0 = ldv__builtin_expect((unsigned long )inode == (unsigned long )((struct inode *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; __msg_data.msg_fn = "ll_removexattr"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 272; __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 *)"inode"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv__builtin_expect((unsigned long )name == (unsigned long )((char const *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; __msg_data___0.msg_fn = "ll_removexattr"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 273; __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 *)"name"); lbug_with_loc(& __msg_data___0); } else { } tmp___2 = cfs_cdebug_show(2097152U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; msgdata.msg_fn = "ll_removexattr"; msgdata.msg_line = 276; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p), xattr %s\n", inode->i_ino, inode->i_generation, inode, name); } else { } tmp___3 = ll_i2sbi(inode); ll_stats_ops_tally(tmp___3, 33, 1); tmp___4 = ll_setxattr_common(inode, name, (void const *)0, 0UL, 0, 274877906944ULL); return (tmp___4); } } static int ll_getxattr_common(struct inode *inode , char const *name , void *buffer , size_t size , __u64 valid ) { struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct ptlrpc_request *req ; struct mdt_body *body ; int xattr_type ; int rc ; void *xdata ; struct obd_capa *oc ; struct rmtacl_ctl_entry *rce ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; int tmp___2 ; bool tmp___3 ; int tmp___4 ; int tmp___5 ; struct task_struct *tmp___6 ; struct posix_acl *acl ; u64 tmp___7 ; unsigned long long tmp___8 ; struct lu_fid *tmp___9 ; void *tmp___10 ; struct libcfs_debug_msg_data __msg_data ; long tmp___11 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___12 ; ext_acl_xattr_header *acl___0 ; long tmp___13 ; bool tmp___14 ; struct lu_fid *tmp___15 ; struct task_struct *tmp___16 ; long tmp___17 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; char *tmp___18 ; int tmp___19 ; { tmp = ll_i2sbi(inode); sbi = tmp; req = (struct ptlrpc_request *)0; rce = (struct rmtacl_ctl_entry *)0; tmp___0 = ll_i2info(inode); lli = tmp___0; tmp___1 = cfs_cdebug_show(2097152U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; msgdata.msg_fn = "ll_getxattr_common"; msgdata.msg_line = 297; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p)\n", inode->i_ino, inode->i_generation, inode); } else { } if ((unsigned long )name == (unsigned long )((char const *)0)) { xattr_type = 7; goto do_getxattr; } else { } xattr_type = get_xattr_type(name); rc = xattr_type_filter(sbi, xattr_type); if (rc != 0) { return (rc); } else { } if (xattr_type == 3) { tmp___2 = strcmp(name, "security.capability"); if (tmp___2 == 0) { return (-61); } else { } } else { } if (xattr_type == 3) { tmp___3 = selinux_is_enabled(); if (tmp___3) { tmp___4 = 0; } else { tmp___4 = 1; } if (tmp___4) { tmp___5 = strcmp(name, "security.selinux"); if (tmp___5 == 0) { return (-95); } else { } } else { } } else { } if ((sbi->ll_flags & 64) != 0 && (xattr_type == 4 || xattr_type == 5)) { tmp___6 = get_current(); rce = rct_search(& sbi->ll_rct, tmp___6->pid); if ((unsigned long )rce == (unsigned long )((struct rmtacl_ctl_entry *)0) || (((rce->rce_ops != 1 && rce->rce_ops != 2) && rce->rce_ops != 3) && rce->rce_ops != 4)) { return (-95); } else { } } else { } if (xattr_type == 4 && (sbi->ll_flags & 64) == 0) { spin_lock(& lli->lli_lock); acl = posix_acl_dup(lli->lli_posix_acl); spin_unlock(& lli->lli_lock); if ((unsigned long )acl == (unsigned long )((struct posix_acl *)0)) { return (-61); } else { } rc = posix_acl_to_xattr(& init_user_ns, (struct posix_acl const *)acl, buffer, size); posix_acl_release(acl); return (rc); } else { } if (xattr_type == 5 && ((int )inode->i_mode & 61440) != 16384) { return (-61); } else { } do_getxattr: ; if ((unsigned int )*((unsigned char *)sbi + 316UL) != 0U && xattr_type != 4) { rc = ll_xattr_cache_get(inode, name, (char *)buffer, size, valid); if (rc == -11) { goto getxattr_nocache; } else { } if (rc < 0) { goto out_xattr; } else { } if ((unsigned long )lli->lli_posix_acl != (unsigned long )((struct posix_acl *)0) && (valid & 137438953472ULL) != 0ULL) { if (size == 0UL) { rc = (int )((unsigned int )rc + 24U); } else if (size - (size_t )rc > 23UL) { memcpy(buffer + (unsigned long )rc, (void const *)"system.posix_acl_access", 24UL); rc = (int )((unsigned int )rc + 24U); } else { rc = -34; goto out_xattr; } } else { } } else { getxattr_nocache: oc = ll_mdscapa_get(inode); if ((unsigned long )rce != (unsigned long )((struct rmtacl_ctl_entry *)0)) { tmp___7 = rce_ops2valid(rce->rce_ops); tmp___8 = tmp___7; } else { tmp___8 = 0ULL; } tmp___9 = ll_inode2fid(inode); rc = md_getxattr(sbi->ll_md_exp, (struct lu_fid const *)tmp___9, oc, tmp___8 | valid, name, (char const *)0, 0, (int )size, 0, & req); capa_put(oc); if (rc < 0) { goto out_xattr; } else { } tmp___10 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp___10; tmp___11 = ldv__builtin_expect((unsigned long )body == (unsigned long )((struct mdt_body *)0), 0L); if (tmp___11 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; __msg_data.msg_fn = "ll_getxattr_common"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 393; __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 { } if (size == 0UL) { rc = (int )body->eadatasize; goto out; } else { } if ((size_t )body->eadatasize > size) { tmp___12 = cfs_cdebug_show(131072U, 128U); if (tmp___12 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; msgdata___0.msg_fn = "ll_getxattr_common"; msgdata___0.msg_line = 403; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "server bug: replied size %u > %u\n", body->eadatasize, (int )size); } else { } rc = -34; goto out; } else { } if (body->eadatasize == 0U) { rc = -61; goto out; } else { } xdata = req_capsule_server_sized_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_EADATA), (int )body->eadatasize); if ((unsigned long )xdata == (unsigned long )((void *)0)) { rc = -14; goto out; } else { } memcpy(buffer, (void const *)xdata, (size_t )body->eadatasize); rc = (int )body->eadatasize; } if ((unsigned long )rce != (unsigned long )((struct rmtacl_ctl_entry *)0) && rce->rce_ops == 1) { acl___0 = lustre_posix_acl_xattr_2ext((posix_acl_xattr_header *)buffer, rc); tmp___14 = IS_ERR((void const *)acl___0); if ((int )tmp___14) { tmp___13 = PTR_ERR((void const *)acl___0); rc = (int )tmp___13; goto out; } else { } tmp___15 = ll_inode2fid(inode); tmp___16 = get_current(); rc = ee_add(& sbi->ll_et, tmp___16->pid, tmp___15, xattr_type, acl___0); tmp___17 = ldv__builtin_expect(rc < 0, 0L); if (tmp___17 != 0L) { lustre_ext_acl_xattr_free(acl___0); goto out; } else { } } else { } out_xattr: ; if (rc == -95 && xattr_type == 1) { tmp___19 = cfs_cdebug_show(33554432U, 128U); if (tmp___19 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; msgdata___1.msg_fn = "ll_getxattr_common"; msgdata___1.msg_line = 449; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 33554432; tmp___18 = ll_get_fsname(inode->i_sb, (char *)0, 0); libcfs_debug_msg(& msgdata___1, "%s: disabling user_xattr feature because it is not supported on the server: rc = %d\n", tmp___18, rc); } else { } sbi->ll_flags = sbi->ll_flags & -9; } else { } out: ptlrpc_req_finished(req); return (rc); } } ssize_t ll_getxattr(struct dentry *dentry , char const *name , void *buffer , size_t size ) { struct inode *inode ; struct inode *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 ; struct ll_sb_info *tmp___3 ; struct lov_stripe_md *lsm ; struct lov_user_md_v1 *lump ; struct lov_mds_md_v1 *lmm ; struct ptlrpc_request *request ; int rc ; int lmmsize ; struct obd_export *tmp___4 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___5 ; struct obd_export *tmp___6 ; int tmp___7 ; int tmp___8 ; int tmp___9 ; int tmp___10 ; int tmp___11 ; { tmp = d_inode((struct dentry const *)dentry); inode = tmp; tmp___0 = ldv__builtin_expect((unsigned long )inode == (unsigned long )((struct inode *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; __msg_data.msg_fn = "ll_getxattr"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 462; __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 *)"inode"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv__builtin_expect((unsigned long )name == (unsigned long )((char const *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; __msg_data___0.msg_fn = "ll_getxattr"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 463; __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 *)"name"); lbug_with_loc(& __msg_data___0); } else { } tmp___2 = cfs_cdebug_show(2097152U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; msgdata.msg_fn = "ll_getxattr"; msgdata.msg_line = 466; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p), xattr %s\n", inode->i_ino, inode->i_generation, inode, name); } else { } tmp___3 = ll_i2sbi(inode); ll_stats_ops_tally(tmp___3, 30, 1); tmp___7 = strncmp(name, "trusted.", 8UL); if (tmp___7 == 0) { tmp___8 = strcmp(name + 8U, "lov"); if (tmp___8 == 0) { goto _L; } else { goto _L___0; } } else { _L___0: /* CIL Label */ tmp___9 = strncmp(name, "lustre.", 7UL); if (tmp___9 == 0) { tmp___10 = strcmp(name + 7U, "lov"); if (tmp___10 == 0) { _L: /* CIL Label */ lmm = (struct lov_mds_md_v1 *)0; request = (struct ptlrpc_request *)0; rc = 0; lmmsize = 0; if (((int )inode->i_mode & 61440) != 32768 && ((int )inode->i_mode & 61440) != 16384) { return (-61L); } else { } if (size == 0UL && ((int )inode->i_mode & 61440) == 16384) { rc = 32; goto out; } else { } lsm = ccc_inode_lsm_get(inode); if ((unsigned long )lsm == (unsigned long )((struct lov_stripe_md *)0)) { if (((int )inode->i_mode & 61440) == 16384) { rc = ll_dir_getstripe(inode, & lmm, & lmmsize, & request); } else { rc = -61; } } else { tmp___4 = ll_i2dtexp(inode); rc = obd_packmd(tmp___4, & lmm, lsm); lmmsize = rc; } ccc_inode_lsm_put(inode, lsm); if (rc < 0) { goto out; } else { } if (size == 0UL) { rc = lmmsize; goto out; } else { } if ((size_t )lmmsize > size) { tmp___5 = cfs_cdebug_show(131072U, 128U); if (tmp___5 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; msgdata___0.msg_fn = "ll_getxattr"; msgdata___0.msg_line = 522; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "server bug: replied size %d > %d for %pd (%s)\n", lmmsize, (int )size, dentry, name); } else { } rc = -34; goto out; } else { } lump = (struct lov_user_md_v1 *)buffer; memcpy((void *)lump, (void const *)lmm, (size_t )lmmsize); lump->__annonCompField109.lmm_layout_gen = 0U; rc = lmmsize; out: ; if ((unsigned long )request != (unsigned long )((struct ptlrpc_request *)0)) { ptlrpc_req_finished(request); } else if ((unsigned long )lmm != (unsigned long )((struct lov_mds_md_v1 *)0)) { tmp___6 = ll_i2dtexp(inode); obd_free_diskmd(tmp___6, & lmm); } else { } return ((ssize_t )rc); } else { } } else { } } tmp___11 = ll_getxattr_common(inode, name, buffer, size, 68719476736ULL); return ((ssize_t )tmp___11); } } ssize_t ll_listxattr(struct dentry *dentry , char *buffer , size_t size ) { struct inode *inode ; struct inode *tmp ; int rc ; int rc2 ; struct lov_mds_md_v1 *lmm ; struct ptlrpc_request *request ; int lmmsize ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; struct ll_sb_info *tmp___2 ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___3 ; char *xattr_name ; int xlen ; int rem ; __kernel_size_t tmp___4 ; int tmp___5 ; int tmp___6 ; struct ll_inode_info *tmp___7 ; int tmp___8 ; int prefix_len ; size_t name_len ; size_t total_len ; { tmp = d_inode((struct dentry const *)dentry); inode = tmp; rc = 0; rc2 = 0; lmm = (struct lov_mds_md_v1 *)0; request = (struct ptlrpc_request *)0; tmp___0 = ldv__builtin_expect((unsigned long )inode == (unsigned long )((struct inode *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; __msg_data.msg_fn = "ll_listxattr"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 554; __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 *)"inode"); lbug_with_loc(& __msg_data); } else { } tmp___1 = cfs_cdebug_show(2097152U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr.c"; msgdata.msg_fn = "ll_listxattr"; msgdata.msg_line = 557; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p)\n", inode->i_ino, inode->i_generation, inode); } else { } tmp___2 = ll_i2sbi(inode); ll_stats_ops_tally(tmp___2, 32, 1); rc = ll_getxattr_common(inode, (char const *)0, (void *)buffer, size, 137438953472ULL); if (rc < 0) { goto out; } else { } if ((unsigned long )buffer != (unsigned long )((char *)0)) { tmp___3 = ll_i2sbi(inode); sbi = tmp___3; xattr_name = buffer; rem = rc; goto ldv_68271; ldv_68272: tmp___4 = strnlen((char const *)xattr_name, (__kernel_size_t )(rem + -1)); xlen = (int )((unsigned int )tmp___4 + 1U); rem = rem - xlen; tmp___5 = get_xattr_type((char const *)xattr_name); tmp___6 = xattr_type_filter(sbi, tmp___5); if (tmp___6 == 0) { xattr_name = xattr_name + (unsigned long )xlen; goto ldv_68271; } else { } memmove((void *)xattr_name, (void const *)xattr_name + (unsigned long )xlen, (size_t )rem); rc = rc - xlen; ldv_68271: ; if (rem > 0) { goto ldv_68272; } else { } } else { } if (((int )inode->i_mode & 61440) == 32768) { tmp___7 = ll_i2info(inode); if (tmp___7->lli_has_smd) { tmp___8 = 0; } else { tmp___8 = 1; } if (tmp___8) { rc2 = -1; } else { } } else if (((int )inode->i_mode & 61440) == 16384) { rc2 = ll_dir_getstripe(inode, & lmm, & lmmsize, & request); } else { } if (rc2 < 0) { rc2 = 0; goto out; } else if (((int )inode->i_mode & 61440) == 32768 || ((int )inode->i_mode & 61440) == 16384) { prefix_len = 7; name_len = 3UL; total_len = ((unsigned long )prefix_len + name_len) + 1UL; if ((unsigned long )rc + total_len > size && (unsigned long )buffer != (unsigned long )((char *)0)) { ptlrpc_req_finished(request); return (-34L); } else { } if ((unsigned long )buffer != (unsigned long )((char *)0)) { buffer = buffer + (unsigned long )rc; memcpy((void *)buffer, (void const *)"lustre.", (size_t )prefix_len); memcpy((void *)buffer + (unsigned long )prefix_len, (void const *)"lov", name_len); *(buffer + ((unsigned long )prefix_len + name_len)) = 0; } else { } rc2 = (int )total_len; } else { } out: ptlrpc_req_finished(request); rc = rc + rc2; return ((ssize_t )rc); } } int ldv_pskb_expand_head_402(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_404(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_406(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_407(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_408(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_409(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_410(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_411(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_412(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 ) ; extern void *memchr(void const * , int , __kernel_size_t ) ; extern char *kstrdup(char const * , gfp_t ) ; extern void *kmemdup(void const * , size_t , gfp_t ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; extern void downgrade_write(struct rw_semaphore * ) ; void *ldv_kmem_cache_alloc_451(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_441(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_449(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_443(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_439(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_447(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_448(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_444(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_445(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_446(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; extern int lu_kmem_init(struct lu_kmem_descr * ) ; extern void lu_kmem_fini(struct lu_kmem_descr * ) ; extern struct req_msg_field RMF_EAVALS ; extern struct req_msg_field RMF_EAVALS_LENS ; __inline static int it_to_lock_mode(struct lookup_intent *it ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { if ((it->it_op & 2) != 0) { return (8); } else if ((it->it_op & 1053) != 0) { return (16); } else if ((it->it_op & 128) != 0) { return (4); } else if ((it->it_op & 8192) != 0) { return (2); } else { } tmp = ldv__builtin_expect(1L, 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/llite/../include/linux/../obd.h"; __msg_data.msg_fn = "it_to_lock_mode"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1027; __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: Invalid it_op: %d\n", (char *)"0", it->it_op); lbug_with_loc(& __msg_data); } else { } return (-22); } } int ll_xattr_init(void) ; void ll_xattr_fini(void) ; static struct kmem_cache *xattr_kmem ; static struct lu_kmem_descr xattr_caches[2U] = { {& xattr_kmem, "xattr_kmem", 40UL}, {(struct kmem_cache **)0, 0, 0UL}}; int ll_xattr_init(void) { int tmp ; { tmp = lu_kmem_init((struct lu_kmem_descr *)(& xattr_caches)); return (tmp); } } void ll_xattr_fini(void) { { lu_kmem_fini((struct lu_kmem_descr *)(& xattr_caches)); return; } } static void ll_xattr_cache_init(struct ll_inode_info *lli ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((unsigned long )lli == (unsigned long )((struct ll_inode_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; __msg_data.msg_fn = "ll_xattr_cache_init"; __msg_data.msg_subsys = 128; __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 *)"lli != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } INIT_LIST_HEAD(& lli->lli_xattrs); lli->lli_flags = lli->lli_flags | 64U; return; } } static int ll_xattr_cache_find(struct list_head *cache , char const *xattr_name , struct ll_xattr_entry **xattr ) { struct ll_xattr_entry *entry ; struct list_head const *__mptr ; struct libcfs_debug_msg_data msgdata ; int tmp ; int tmp___0 ; struct list_head const *__mptr___0 ; { __mptr = (struct list_head const *)cache->next; entry = (struct ll_xattr_entry *)__mptr; goto ldv_68187; ldv_68186: ; if ((unsigned long )xattr_name == (unsigned long )((char const *)0)) { goto _L; } else { tmp___0 = strcmp(xattr_name, (char const *)entry->xe_name); if (tmp___0 == 0) { _L: /* CIL Label */ *xattr = entry; tmp = cfs_cdebug_show(32U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata.msg_fn = "ll_xattr_cache_find"; msgdata.msg_line = 92; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "find: [%s]=%.*s\n", entry->xe_name, entry->xe_vallen, entry->xe_value); } else { } return (0); } else { } } __mptr___0 = (struct list_head const *)entry->xe_list.next; entry = (struct ll_xattr_entry *)__mptr___0; ldv_68187: ; if ((unsigned long )(& entry->xe_list) != (unsigned long )cache) { goto ldv_68186; } else { } return (-61); } } static int ll_xattr_cache_add(struct list_head *cache , char const *xattr_name , char const *xattr_val , unsigned int xattr_val_len ) { struct ll_xattr_entry *xattr ; struct libcfs_debug_msg_data msgdata ; int tmp ; int tmp___0 ; struct libcfs_debug_msg_data __msg_data ; int tmp___1 ; long tmp___2 ; void *tmp___3 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___4 ; int tmp___5 ; int tmp___6 ; int tmp___7 ; long tmp___8 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___9 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___10 ; void *tmp___11 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___12 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___13 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___14 ; { tmp___0 = ll_xattr_cache_find(cache, xattr_name, & xattr); if (tmp___0 == 0) { tmp = cfs_cdebug_show(32U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata.msg_fn = "ll_xattr_cache_add"; msgdata.msg_line = 119; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "duplicate xattr: [%s]\n", xattr_name); } else { } return (-71); } else { } tmp___1 = preempt_count(); tmp___2 = ldv__builtin_expect(((unsigned long )tmp___1 & 2096896UL) != 0UL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; __msg_data.msg_fn = "ll_xattr_cache_add"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 123; __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___3 = ldv_kmem_cache_alloc_451(xattr_kmem, 32848U); xattr = (struct ll_xattr_entry *)tmp___3; if ((unsigned long )xattr != (unsigned long )((struct ll_xattr_entry *)0)) { tmp___5 = cfs_fail_check_set(3072U, 0U, 0, 0); if (tmp___5 == 0 || obd_alloc_fail_rate == 0U) { tmp___7 = 1; } else { tmp___6 = obd_alloc_fail((void const *)xattr, "xattr", "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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c", 123); if (tmp___6 == 0) { tmp___7 = 1; } else { kmem_cache_free(xattr_kmem, (void *)xattr); xattr = (struct ll_xattr_entry *)0; tmp___7 = 0; } } } else { tmp___7 = 0; } tmp___8 = ldv__builtin_expect((long )tmp___7, 1L); if (tmp___8 != 0L) { lprocfs_counter_add(obd_memory, 0, 40L); tmp___4 = cfs_cdebug_show(16U, 128U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata___0.msg_fn = "ll_xattr_cache_add"; msgdata___0.msg_line = 123; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; libcfs_debug_msg(& msgdata___0, "slab-alloced \'xattr\': %d at %p.\n", 40, xattr); } else { } } else { } if ((unsigned long )xattr == (unsigned long )((struct ll_xattr_entry *)0)) { tmp___9 = cfs_cdebug_show(32U, 128U); if (tmp___9 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata___1.msg_fn = "ll_xattr_cache_add"; msgdata___1.msg_line = 125; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 32; libcfs_debug_msg(& msgdata___1, "failed to allocate xattr\n"); } else { } return (-12); } else { } xattr->xe_name = kstrdup(xattr_name, 80U); if ((unsigned long )xattr->xe_name == (unsigned long )((char *)0)) { tmp___10 = cfs_cdebug_show(32U, 128U); if (tmp___10 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata___2.msg_fn = "ll_xattr_cache_add"; msgdata___2.msg_line = 132; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 32; libcfs_debug_msg(& msgdata___2, "failed to alloc xattr name %u\n", xattr->xe_namelen); } else { } goto err_name; } else { } tmp___11 = kmemdup((void const *)xattr_val, (size_t )xattr_val_len, 80U); xattr->xe_value = (char *)tmp___11; if ((unsigned long )xattr->xe_value == (unsigned long )((char *)0)) { goto err_value; } else { } xattr->xe_vallen = xattr_val_len; list_add(& xattr->xe_list, cache); tmp___12 = cfs_cdebug_show(32U, 128U); if (tmp___12 != 0) { msgdata___3.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata___3.msg_fn = "ll_xattr_cache_add"; msgdata___3.msg_line = 143; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 32; libcfs_debug_msg(& msgdata___3, "set: [%s]=%.*s\n", xattr_name, xattr_val_len, xattr_val); } else { } return (0); err_value: kfree((void const *)xattr->xe_name); err_name: tmp___13 = ldv__builtin_expect((unsigned long )xattr == (unsigned long )((struct ll_xattr_entry *)0), 0L); if (tmp___13 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; __msg_data___0.msg_fn = "ll_xattr_cache_add"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 149; __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 *)"(xattr)"); lbug_with_loc(& __msg_data___0); } else { } lprocfs_counter_sub(obd_memory, 0, 40L); tmp___14 = cfs_cdebug_show(16U, 128U); if (tmp___14 != 0) { msgdata___4.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata___4.msg_fn = "ll_xattr_cache_add"; msgdata___4.msg_line = 149; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 16; libcfs_debug_msg(& msgdata___4, "slab-freed \'(xattr)\': %d at %p.\n", 40, xattr); } else { } memset((void *)xattr, 90, 40UL); kmem_cache_free(xattr_kmem, (void *)xattr); xattr = (struct ll_xattr_entry *)3735928559L; return (-12); } } static int ll_xattr_cache_del(struct list_head *cache , char const *xattr_name ) { struct ll_xattr_entry *xattr ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; int tmp___2 ; { tmp = cfs_cdebug_show(32U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata.msg_fn = "ll_xattr_cache_del"; msgdata.msg_line = 169; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "del xattr: %s\n", xattr_name); } else { } tmp___2 = ll_xattr_cache_find(cache, xattr_name, & xattr); if (tmp___2 == 0) { list_del(& xattr->xe_list); kfree((void const *)xattr->xe_name); kfree((void const *)xattr->xe_value); tmp___0 = ldv__builtin_expect((unsigned long )xattr == (unsigned long )((struct ll_xattr_entry *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; __msg_data.msg_fn = "ll_xattr_cache_del"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 175; __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 *)"(xattr)"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 40L); tmp___1 = cfs_cdebug_show(16U, 128U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata___0.msg_fn = "ll_xattr_cache_del"; msgdata___0.msg_line = 175; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; libcfs_debug_msg(& msgdata___0, "slab-freed \'(xattr)\': %d at %p.\n", 40, xattr); } else { } memset((void *)xattr, 90, 40UL); kmem_cache_free(xattr_kmem, (void *)xattr); xattr = (struct ll_xattr_entry *)3735928559L; return (0); } else { } return (-61); } } static int ll_xattr_cache_list(struct list_head *cache , char *xld_buffer , int xld_size ) { struct ll_xattr_entry *xattr ; struct ll_xattr_entry *tmp ; int xld_tail ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct list_head const *__mptr___1 ; { xld_tail = 0; __mptr = (struct list_head const *)cache->next; xattr = (struct ll_xattr_entry *)__mptr; __mptr___0 = (struct list_head const *)xattr->xe_list.next; tmp = (struct ll_xattr_entry *)__mptr___0; goto ldv_68235; ldv_68234: tmp___0 = cfs_cdebug_show(32U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata.msg_fn = "ll_xattr_cache_list"; msgdata.msg_line = 204; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "list: buffer=%p[%d] name=%s\n", xld_buffer, xld_tail, xattr->xe_name); } else { } if ((unsigned long )xld_buffer != (unsigned long )((char *)0)) { xld_size = (int )((unsigned int )xld_size - xattr->xe_namelen); if (xld_size < 0) { goto ldv_68233; } else { } memcpy((void *)xld_buffer + (unsigned long )xld_tail, (void const *)xattr->xe_name, (size_t )xattr->xe_namelen); } else { } xld_tail = (int )(xattr->xe_namelen + (unsigned int )xld_tail); xattr = tmp; __mptr___1 = (struct list_head const *)tmp->xe_list.next; tmp = (struct ll_xattr_entry *)__mptr___1; ldv_68235: ; if ((unsigned long )(& xattr->xe_list) != (unsigned long )cache) { goto ldv_68234; } else { } ldv_68233: ; if (xld_size < 0) { return (-34); } else { } return (xld_tail); } } static int ll_xattr_cache_valid(struct ll_inode_info *lli ) { { return ((lli->lli_flags & 64U) != 0U); } } static int ll_xattr_cache_destroy_locked(struct ll_inode_info *lli ) { int tmp ; int tmp___0 ; { tmp = ll_xattr_cache_valid(lli); if (tmp == 0) { return (0); } else { } goto ldv_68243; ldv_68242: ; ldv_68243: tmp___0 = ll_xattr_cache_del(& lli->lli_xattrs, (char const *)0); if (tmp___0 == 0) { goto ldv_68242; } else { } lli->lli_flags = lli->lli_flags & 4294967231U; return (0); } } int ll_xattr_cache_destroy(struct inode *inode ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; int rc ; { tmp = ll_i2info(inode); lli = tmp; down_write(& lli->lli_xattrs_list_rwsem); rc = ll_xattr_cache_destroy_locked(lli); up_write(& lli->lli_xattrs_list_rwsem); return (rc); } } static int ll_xattr_find_get_lock(struct inode *inode , struct lookup_intent *oit , struct ptlrpc_request **req ) { ldlm_mode_t mode ; struct lustre_handle lockh ; struct md_op_data *op_data ; struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ldlm_enqueue_info einfo ; int tmp___0 ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___1 ; struct obd_export *exp ; int rc ; int tmp___2 ; long tmp___3 ; bool tmp___4 ; struct libcfs_debug_msg_data msgdata ; struct lu_fid *tmp___5 ; struct lu_fid *tmp___6 ; struct lu_fid *tmp___7 ; int tmp___8 ; { lockh.cookie = 0ULL; tmp = ll_i2info(inode); lli = tmp; tmp___0 = it_to_lock_mode(oit); einfo.ei_type = 13U; einfo.ei_mode = (unsigned int )tmp___0; einfo.ei_cb_bl = (void *)(& ll_md_blocking_ast); einfo.ei_cb_cp = (void *)(& ldlm_completion_ast); einfo.ei_cb_gl = 0; einfo.ei_cbdata = 0; tmp___1 = ll_i2sbi(inode); sbi = tmp___1; exp = sbi->ll_md_exp; mutex_lock_nested(& lli->lli_xattrs_enq_lock, 0U); tmp___2 = ll_xattr_cache_valid(lli); if (tmp___2 != 0) { mode = ll_take_md_lock(inode, 32ULL, & lockh, 0ULL, 4); if ((unsigned int )mode != 0U) { oit->d.lustre.it_lock_handle = lockh.cookie; oit->d.lustre.it_lock_mode = (int )mode; goto out; } else { } } else { } op_data = ll_prep_md_op_data((struct md_op_data *)0, inode, (struct inode *)0, (char const *)0, 0, 0, 16U, (void *)0); tmp___4 = IS_ERR((void const *)op_data); if ((int )tmp___4) { mutex_unlock(& lli->lli_xattrs_enq_lock); tmp___3 = PTR_ERR((void const *)op_data); return ((int )tmp___3); } else { } op_data->op_valid = 206158430208ULL; rc = md_enqueue___0(exp, & einfo, oit, op_data, & lockh, (void *)0, 0, (struct ptlrpc_request **)0, 0ULL); ll_finish_md_op_data(op_data); if (rc < 0) { tmp___8 = cfs_cdebug_show(32U, 128U); if (tmp___8 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata.msg_fn = "ll_xattr_find_get_lock"; msgdata.msg_line = 328; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; tmp___5 = ll_inode2fid(inode); tmp___6 = ll_inode2fid(inode); tmp___7 = ll_inode2fid(inode); libcfs_debug_msg(& msgdata, "md_intent_lock failed with %d for fid [%#llx:0x%x:0x%x]\n", rc, tmp___7->f_seq, tmp___6->f_oid, tmp___5->f_ver); } else { } mutex_unlock(& lli->lli_xattrs_enq_lock); return (rc); } else { } *req = (struct ptlrpc_request *)oit->d.lustre.it_data; out: down_write(& lli->lli_xattrs_list_rwsem); mutex_unlock(& lli->lli_xattrs_enq_lock); return (0); } } static int ll_xattr_cache_refill(struct inode *inode , struct lookup_intent *oit ) { struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; struct ptlrpc_request *req ; char const *xdata ; char const *xval ; char const *xtail ; char const *xvtail ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___0 ; struct mdt_body *body ; __u32 *xsizes ; int rc ; int i ; int tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; long tmp___3 ; struct libcfs_debug_msg_data msgdata___0 ; struct lu_fid *tmp___4 ; struct lu_fid *tmp___5 ; struct lu_fid *tmp___6 ; int tmp___7 ; void *tmp___8 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___9 ; void *tmp___10 ; void *tmp___11 ; void *tmp___12 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___13 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___14 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___15 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___16 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___6 ; int tmp___17 ; struct libcfs_debug_msg_data msgdata___7 ; int tmp___18 ; int tmp___19 ; int tmp___20 ; void *tmp___21 ; size_t tmp___22 ; struct cfs_debug_limit_state cdls___3 ; struct libcfs_debug_msg_data msgdata___8 ; int tmp___23 ; { tmp = ll_i2sbi(inode); sbi = tmp; req = (struct ptlrpc_request *)0; tmp___0 = ll_i2info(inode); lli = tmp___0; rc = 0; rc = ll_xattr_find_get_lock(inode, oit, & req); if (rc != 0) { goto out_no_unlock; } else { } tmp___1 = ll_xattr_cache_valid(lli); if (tmp___1 != 0) { ll_stats_ops_tally(sbi, 31, 1); rc = 0; goto out_maybe_drop; } else { } tmp___3 = ldv__builtin_expect((unsigned long )req == (unsigned long )((struct ptlrpc_request *)0), 0L); if (tmp___3 != 0L) { tmp___2 = cfs_cdebug_show(32U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata.msg_fn = "ll_xattr_cache_refill"; msgdata.msg_line = 377; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32; libcfs_debug_msg(& msgdata, "cancelled by a parallel getxattr\n"); } else { } rc = -5; goto out_maybe_drop; } else { } if (oit->d.lustre.it_status < 0) { tmp___7 = cfs_cdebug_show(32U, 128U); if (tmp___7 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata___0.msg_fn = "ll_xattr_cache_refill"; msgdata___0.msg_line = 384; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32; tmp___4 = ll_inode2fid(inode); tmp___5 = ll_inode2fid(inode); tmp___6 = ll_inode2fid(inode); libcfs_debug_msg(& msgdata___0, "getxattr intent returned %d for fid [%#llx:0x%x:0x%x]\n", oit->d.lustre.it_status, tmp___6->f_seq, tmp___5->f_oid, tmp___4->f_ver); } else { } rc = oit->d.lustre.it_status; if (rc == -34) { rc = -11; } else { } goto out_destroy; } else { } tmp___8 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp___8; if ((unsigned long )body == (unsigned long )((struct mdt_body *)0)) { tmp___9 = cfs_cdebug_show(131072U, 128U); if (tmp___9 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata___1.msg_fn = "ll_xattr_cache_refill"; msgdata___1.msg_line = 394; msgdata___1.msg_cdls = & cdls; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "no MDT BODY in the refill xattr reply\n"); } else { } rc = -71; goto out_destroy; } else { } tmp___10 = req_capsule_server_sized_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_EADATA), (int )body->eadatasize); xdata = (char const *)tmp___10; tmp___11 = req_capsule_server_sized_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_EAVALS), (int )body->aclsize); xval = (char const *)tmp___11; tmp___12 = req_capsule_server_sized_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_EAVALS_LENS), (int )(body->max_mdsize * 4U)); xsizes = (__u32 *)tmp___12; if (((unsigned long )xdata == (unsigned long )((char const *)0) || (unsigned long )xval == (unsigned long )((char const *)0)) || (unsigned long )xsizes == (unsigned long )((__u32 *)0U)) { tmp___13 = cfs_cdebug_show(131072U, 128U); if (tmp___13 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata___2.msg_fn = "ll_xattr_cache_refill"; msgdata___2.msg_line = 406; msgdata___2.msg_cdls = & cdls___0; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "wrong setxattr reply\n"); } else { } rc = -71; goto out_destroy; } else { } xtail = xdata + (unsigned long )body->eadatasize; xvtail = xval + (unsigned long )body->aclsize; tmp___14 = cfs_cdebug_show(32U, 128U); if (tmp___14 != 0) { msgdata___3.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata___3.msg_fn = "ll_xattr_cache_refill"; msgdata___3.msg_line = 414; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 32; libcfs_debug_msg(& msgdata___3, "caching: xdata=%p xtail=%p\n", xdata, xtail); } else { } ll_xattr_cache_init(lli); i = 0; goto ldv_68299; ldv_68298: tmp___15 = cfs_cdebug_show(32U, 128U); if (tmp___15 != 0) { msgdata___4.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata___4.msg_fn = "ll_xattr_cache_refill"; msgdata___4.msg_line = 419; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 32; libcfs_debug_msg(& msgdata___4, "caching [%s]=%.*s\n", xdata, *xsizes, xval); } else { } tmp___21 = memchr((void const *)xdata, 0, (__kernel_size_t )((long )xtail - (long )xdata)); if ((unsigned long )tmp___21 == (unsigned long )((void *)0)) { tmp___16 = cfs_cdebug_show(131072U, 128U); if (tmp___16 != 0) { msgdata___5.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata___5.msg_fn = "ll_xattr_cache_refill"; msgdata___5.msg_line = 422; msgdata___5.msg_cdls = & cdls___1; msgdata___5.msg_mask = 131072; libcfs_debug_msg(& msgdata___5, "xattr protocol violation (names are broken)\n"); } else { } rc = -71; } else if ((unsigned long )(xval + (unsigned long )*xsizes) > (unsigned long )xvtail) { tmp___17 = cfs_cdebug_show(131072U, 128U); if (tmp___17 != 0) { msgdata___6.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata___6.msg_fn = "ll_xattr_cache_refill"; msgdata___6.msg_line = 425; msgdata___6.msg_cdls = & cdls___2; msgdata___6.msg_mask = 131072; libcfs_debug_msg(& msgdata___6, "xattr protocol violation (vals are broken)\n"); } else { } rc = -71; } else { tmp___20 = cfs_fail_check_set(5125U, 0U, 0, 0); if (tmp___20 != 0) { rc = -12; } else { tmp___19 = strcmp(xdata, "system.posix_acl_access"); if (tmp___19 == 0) { tmp___18 = cfs_cdebug_show(32U, 128U); if (tmp___18 != 0) { msgdata___7.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata___7.msg_fn = "ll_xattr_cache_refill"; msgdata___7.msg_line = 432; msgdata___7.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___7.msg_mask = 32; libcfs_debug_msg(& msgdata___7, "not caching %s\n", (char *)"system.posix_acl_access"); } else { } rc = 0; } else { rc = ll_xattr_cache_add(& lli->lli_xattrs, xdata, xval, *xsizes); } } } if (rc < 0) { ll_xattr_cache_destroy_locked(lli); goto out_destroy; } else { } tmp___22 = strlen(xdata); xdata = xdata + (tmp___22 + 1UL); xval = xval + (unsigned long )*xsizes; xsizes = xsizes + 1; i = i + 1; ldv_68299: ; if ((__u32 )i < body->max_mdsize) { goto ldv_68298; } else { } if ((unsigned long )xdata != (unsigned long )xtail || (unsigned long )xval != (unsigned long )xvtail) { tmp___23 = cfs_cdebug_show(131072U, 128U); if (tmp___23 != 0) { msgdata___8.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; msgdata___8.msg_fn = "ll_xattr_cache_refill"; msgdata___8.msg_line = 448; msgdata___8.msg_cdls = & cdls___3; msgdata___8.msg_mask = 131072; libcfs_debug_msg(& msgdata___8, "a hole in xattr data\n"); } else { } } else { } ll_set_lock_data(sbi->ll_md_exp, inode, oit, (__u64 *)0ULL); goto out_maybe_drop; out_maybe_drop: ll_intent_drop_lock(oit); if (rc != 0) { up_write(& lli->lli_xattrs_list_rwsem); } else { } out_no_unlock: ptlrpc_req_finished(req); return (rc); out_destroy: up_write(& lli->lli_xattrs_list_rwsem); ldlm_lock_decref_and_cancel((struct lustre_handle *)(& oit->d.lustre.it_lock_handle), (__u32 )oit->d.lustre.it_lock_mode); goto out_no_unlock; } } int ll_xattr_cache_get(struct inode *inode , char const *name , char *buffer , size_t size , __u64 valid ) { struct lookup_intent oit ; struct ll_inode_info *lli ; struct ll_inode_info *tmp ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct ll_sb_info *tmp___1 ; int tmp___2 ; struct ll_xattr_entry *xattr ; { oit.it_op = 128; oit.it_create_mode = 0; oit.it_flags = 0ULL; oit.d.lustre.it_disposition = 0; oit.d.lustre.it_status = 0; oit.d.lustre.it_lock_handle = 0ULL; oit.d.lustre.it_lock_bits = 0ULL; oit.d.lustre.it_lock_mode = 0; oit.d.lustre.it_remote_lock_mode = 0; oit.d.lustre.it_remote_lock_handle = 0ULL; oit.d.lustre.it_data = 0; oit.d.lustre.it_lock_set = (unsigned char)0; tmp = ll_i2info(inode); lli = tmp; rc = 0; tmp___0 = ldv__builtin_expect((long )(((valid & 68719476736ULL) == 0ULL) ^ ((valid & 137438953472ULL) != 0ULL)), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/xattr_cache.c"; __msg_data.msg_fn = "ll_xattr_cache_get"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 500; __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 *)"!!(valid & (0x0000001000000000ULL)) ^ !!(valid & (0x0000002000000000ULL))"); lbug_with_loc(& __msg_data); } else { } down_read(& lli->lli_xattrs_list_rwsem); tmp___2 = ll_xattr_cache_valid(lli); if (tmp___2 == 0) { up_read(& lli->lli_xattrs_list_rwsem); rc = ll_xattr_cache_refill(inode, & oit); if (rc != 0) { return (rc); } else { } downgrade_write(& lli->lli_xattrs_list_rwsem); } else { tmp___1 = ll_i2sbi(inode); ll_stats_ops_tally(tmp___1, 31, 1); } if ((valid & 68719476736ULL) != 0ULL) { rc = ll_xattr_cache_find(& lli->lli_xattrs, name, & xattr); if (rc == 0) { rc = (int )xattr->xe_vallen; if (size != 0UL) { if ((size_t )xattr->xe_vallen <= size) { memcpy((void *)buffer, (void const *)xattr->xe_value, (size_t )xattr->xe_vallen); } else { rc = -34; } } else { } } else { } } else if ((valid & 137438953472ULL) != 0ULL) { rc = ll_xattr_cache_list(& lli->lli_xattrs, size != 0UL ? buffer : (char *)0, (int )size); } else { } goto out; out: up_read(& lli->lli_xattrs_list_rwsem); return (rc); } } int ldv_pskb_expand_head_439(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_441(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_443(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_444(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_445(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_446(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_447(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_448(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_449(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_451(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 xattr_kmem return (tmp); } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static void INIT_HLIST_NODE(struct hlist_node *h ) { { h->next = (struct hlist_node *)0; h->pprev = (struct hlist_node **)0; return; } } __inline static int hlist_unhashed(struct hlist_node const *h ) { { return ((unsigned long )h->pprev == (unsigned long )((struct hlist_node **/* const */)0)); } } __inline static void __hlist_del(struct hlist_node *n ) { struct hlist_node *next ; struct hlist_node **pprev ; { next = n->next; pprev = n->pprev; *pprev = next; if ((unsigned long )next != (unsigned long )((struct hlist_node *)0)) { next->pprev = pprev; } else { } return; } } __inline static void hlist_del(struct hlist_node *n ) { { __hlist_del(n); n->next = (struct hlist_node *)-2401263026317557504L; n->pprev = (struct hlist_node **)-2401263026316508672L; return; } } __inline static void hlist_add_head(struct hlist_node *n , struct hlist_head *h ) { struct hlist_node *first ; { first = h->first; n->next = first; if ((unsigned long )first != (unsigned long )((struct hlist_node *)0)) { first->pprev = & n->next; } else { } h->first = n; n->pprev = & h->first; return; } } __inline static void spin_lock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; void *ldv_kmem_cache_alloc_489(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; void *ldv_kmem_cache_alloc_490(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_479(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_487(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_481(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_477(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_485(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_486(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_482(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_483(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_484(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; extern void lustre_swab_mdt_remote_perm(struct mdt_remote_perm * ) ; extern void *req_capsule_server_swab_get(struct req_capsule * , struct req_msg_field const * , void * ) ; extern struct req_msg_field RMF_ACL ; __inline static int md_get_remote_perm(struct obd_export *exp , struct lu_fid const *fid , struct obd_capa *oc , __u32 suppgid , struct ptlrpc_request **request ) { 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 ; int tmp___3 ; { if ((unsigned long )exp == (unsigned long )((struct obd_export *)0)) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_get_remote_perm"; msgdata.msg_line = 1769; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_get_remote_perm: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_get_remote_perm"; msgdata___0.msg_line = 1769; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_get_remote_perm: 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_md_ops)->m_get_remote_perm == (unsigned long )((int (*)(struct obd_export * , struct lu_fid const * , struct obd_capa * , __u32 , struct ptlrpc_request ** ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_get_remote_perm"; msgdata___1.msg_line = 1769; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_get_remote_perm: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 29U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_get_remote_perm"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1770; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } tmp___3 = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_get_remote_perm))(exp, fid, oc, suppgid, request); return (tmp___3); } } struct kmem_cache *ll_remote_perm_cachep ; struct kmem_cache *ll_rmtperm_hash_cachep ; struct kmem_cache *ll_remote_perm_cachep = (struct kmem_cache *)0; struct kmem_cache *ll_rmtperm_hash_cachep = (struct kmem_cache *)0; __inline static struct ll_remote_perm *alloc_ll_remote_perm(void) { struct ll_remote_perm *lrp ; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c"; __msg_data.msg_fn = "alloc_ll_remote_perm"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 64; __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)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_489(ll_remote_perm_cachep, 32976U); lrp = (struct ll_remote_perm *)tmp___1; if ((unsigned long )lrp != (unsigned long )((struct ll_remote_perm *)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 *)lrp, "lrp", "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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c", 64); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(ll_remote_perm_cachep, (void *)lrp); lrp = (struct ll_remote_perm *)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, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c"; msgdata.msg_fn = "alloc_ll_remote_perm"; msgdata.msg_line = 64; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'lrp\': %d at %p.\n", 40, lrp); } else { } } else { } if ((unsigned long )lrp != (unsigned long )((struct ll_remote_perm *)0)) { INIT_HLIST_NODE(& lrp->lrp_list); } else { } return (lrp); } } __inline static void free_ll_remote_perm(struct ll_remote_perm *lrp ) { int tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; { if ((unsigned long )lrp == (unsigned long )((struct ll_remote_perm *)0)) { return; } else { } tmp = hlist_unhashed((struct hlist_node const *)(& lrp->lrp_list)); if (tmp == 0) { hlist_del(& lrp->lrp_list); } else { } tmp___0 = ldv__builtin_expect((unsigned long )lrp == (unsigned long )((struct ll_remote_perm *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c"; __msg_data.msg_fn = "free_ll_remote_perm"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 77; __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 *)"lrp"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 40L); tmp___1 = cfs_cdebug_show(16U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c"; msgdata.msg_fn = "free_ll_remote_perm"; msgdata.msg_line = 77; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'lrp\': %d at %p.\n", 40, lrp); } else { } memset((void *)lrp, 90, 40UL); kmem_cache_free(ll_remote_perm_cachep, (void *)lrp); lrp = (struct ll_remote_perm *)3735928559L; return; } } static struct hlist_head *alloc_rmtperm_hash(void) { struct hlist_head *hash ; int i ; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c"; __msg_data.msg_fn = "alloc_rmtperm_hash"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 87; __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_490(ll_rmtperm_hash_cachep, 32960U); hash = (struct hlist_head *)tmp___1; if ((unsigned long )hash != (unsigned long )((struct hlist_head *)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 *)hash, "hash", "slab-", 128UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c", 87); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(ll_rmtperm_hash_cachep, (void *)hash); hash = (struct hlist_head *)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, 128L); tmp___2 = cfs_cdebug_show(16U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c"; msgdata.msg_fn = "alloc_rmtperm_hash"; msgdata.msg_line = 87; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'hash\': %d at %p.\n", 128, hash); } else { } } else { } if ((unsigned long )hash == (unsigned long )((struct hlist_head *)0)) { return ((struct hlist_head *)0); } else { } i = 0; goto ldv_68232; ldv_68231: (hash + (unsigned long )i)->first = (struct hlist_node *)0; i = i + 1; ldv_68232: ; if (i <= 15) { goto ldv_68231; } else { } return (hash); } } void free_rmtperm_hash(struct hlist_head *hash ) { int i ; struct ll_remote_perm *lrp ; struct hlist_node *next ; struct hlist_node *____ptr ; struct hlist_node const *__mptr ; struct ll_remote_perm *tmp ; struct hlist_node *____ptr___0 ; struct hlist_node const *__mptr___0 ; struct ll_remote_perm *tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; { if ((unsigned long )hash == (unsigned long )((struct hlist_head *)0)) { return; } else { } i = 0; goto ldv_68253; ldv_68252: ____ptr = (hash + (unsigned long )i)->first; if ((unsigned long )____ptr != (unsigned long )((struct hlist_node *)0)) { __mptr = (struct hlist_node const *)____ptr; tmp = (struct ll_remote_perm *)__mptr; } else { tmp = (struct ll_remote_perm *)0; } lrp = tmp; goto ldv_68250; ldv_68249: free_ll_remote_perm(lrp); ____ptr___0 = next; if ((unsigned long )____ptr___0 != (unsigned long )((struct hlist_node *)0)) { __mptr___0 = (struct hlist_node const *)____ptr___0; tmp___0 = (struct ll_remote_perm *)__mptr___0; } else { tmp___0 = (struct ll_remote_perm *)0; } lrp = tmp___0; ldv_68250: ; if ((unsigned long )lrp != (unsigned long )((struct ll_remote_perm *)0)) { next = lrp->lrp_list.next; goto ldv_68249; } else { } i = i + 1; ldv_68253: ; if (i <= 15) { goto ldv_68252; } else { } tmp___1 = ldv__builtin_expect((unsigned long )hash == (unsigned long )((struct hlist_head *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c"; __msg_data.msg_fn = "free_rmtperm_hash"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 111; __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 *)"hash"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 128L); tmp___2 = cfs_cdebug_show(16U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c"; msgdata.msg_fn = "free_rmtperm_hash"; msgdata.msg_line = 111; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'hash\': %d at %p.\n", 128, hash); } else { } memset((void *)hash, 90, 128UL); kmem_cache_free(ll_rmtperm_hash_cachep, (void *)hash); hash = (struct hlist_head *)3735928559L; return; } } __inline static int remote_perm_hashfunc(uid_t uid ) { { return ((int )uid & 15); } } static int do_check_remote_perm(struct ll_inode_info *lli , int mask ) { struct hlist_head *head ; struct ll_remote_perm *lrp ; int found ; int rc ; int tmp ; struct task_struct *tmp___0 ; uid_t tmp___1 ; int tmp___2 ; struct hlist_node *____ptr ; struct hlist_node const *__mptr ; struct ll_remote_perm *tmp___3 ; int tmp___4 ; struct task_struct *tmp___5 ; uid_t tmp___6 ; int tmp___7 ; struct task_struct *tmp___8 ; gid_t tmp___9 ; int tmp___10 ; struct task_struct *tmp___11 ; uid_t tmp___12 ; int tmp___13 ; struct task_struct *tmp___14 ; gid_t tmp___15 ; struct hlist_node *____ptr___0 ; struct hlist_node const *__mptr___0 ; struct ll_remote_perm *tmp___16 ; struct libcfs_debug_msg_data msgdata ; int tmp___17 ; { found = 0; if ((unsigned long )lli->lli_remote_perms == (unsigned long )((struct hlist_head *)0)) { return (-2); } else { } tmp = debug_lockdep_rcu_enabled(); tmp___0 = get_current(); tmp___1 = from_kuid(& init_user_ns, (tmp___0->cred)->uid); tmp___2 = remote_perm_hashfunc(tmp___1); head = lli->lli_remote_perms + (unsigned long )tmp___2; spin_lock(& lli->lli_lock); ____ptr = head->first; if ((unsigned long )____ptr != (unsigned long )((struct hlist_node *)0)) { __mptr = (struct hlist_node const *)____ptr; tmp___3 = (struct ll_remote_perm *)__mptr; } else { tmp___3 = (struct ll_remote_perm *)0; } lrp = tmp___3; goto ldv_68290; ldv_68289: tmp___4 = debug_lockdep_rcu_enabled(); tmp___5 = get_current(); tmp___6 = from_kuid(& init_user_ns, (tmp___5->cred)->uid); if (lrp->lrp_uid != tmp___6) { goto ldv_68281; } else { } tmp___7 = debug_lockdep_rcu_enabled(); tmp___8 = get_current(); tmp___9 = from_kgid(& init_user_ns, (tmp___8->cred)->gid); if (lrp->lrp_gid != tmp___9) { goto ldv_68281; } else { } tmp___10 = debug_lockdep_rcu_enabled(); tmp___11 = get_current(); tmp___12 = from_kuid(& init_user_ns, (tmp___11->cred)->fsuid); if (lrp->lrp_fsuid != tmp___12) { goto ldv_68281; } else { } tmp___13 = debug_lockdep_rcu_enabled(); tmp___14 = get_current(); tmp___15 = from_kgid(& init_user_ns, (tmp___14->cred)->fsgid); if (lrp->lrp_fsgid != tmp___15) { goto ldv_68281; } else { } found = 1; goto ldv_68288; ldv_68281: ____ptr___0 = lrp->lrp_list.next; if ((unsigned long )____ptr___0 != (unsigned long )((struct hlist_node *)0)) { __mptr___0 = (struct hlist_node const *)____ptr___0; tmp___16 = (struct ll_remote_perm *)__mptr___0; } else { tmp___16 = (struct ll_remote_perm *)0; } lrp = tmp___16; ldv_68290: ; if ((unsigned long )lrp != (unsigned long )((struct ll_remote_perm *)0)) { goto ldv_68289; } else { } ldv_68288: ; if (found == 0) { rc = -2; goto out; } else { } tmp___17 = cfs_cdebug_show(134217728U, 128U); if (tmp___17 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c"; msgdata.msg_fn = "do_check_remote_perm"; msgdata.msg_line = 154; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 134217728; libcfs_debug_msg(& msgdata, "found remote perm: %u/%u/%u/%u - %#x\n", lrp->lrp_uid, lrp->lrp_gid, lrp->lrp_fsuid, lrp->lrp_fsgid, lrp->lrp_access_perm); } else { } rc = (lrp->lrp_access_perm & mask) == mask ? 0 : -13; out: spin_unlock(& lli->lli_lock); return (rc); } } int ll_update_remote_perm(struct inode *inode , struct mdt_remote_perm *perm ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ll_remote_perm *lrp ; struct ll_remote_perm *tmp___0 ; struct hlist_head *head ; struct hlist_head *perm_hash ; struct libcfs_debug_msg_data __msg_data ; struct ll_sb_info *tmp___1 ; long tmp___2 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___3 ; int tmp___4 ; struct hlist_node *____ptr ; struct hlist_node const *__mptr ; struct ll_remote_perm *tmp___5 ; struct hlist_node *____ptr___0 ; struct hlist_node const *__mptr___0 ; struct ll_remote_perm *tmp___6 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___7 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___8 ; { tmp = ll_i2info(inode); lli = tmp; lrp = (struct ll_remote_perm *)0; tmp___0 = (struct ll_remote_perm *)0; perm_hash = (struct hlist_head *)0; tmp___1 = ll_i2sbi(inode); tmp___2 = ldv__builtin_expect((tmp___1->ll_flags & 64) == 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c"; __msg_data.msg_fn = "ll_update_remote_perm"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 168; __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 *)"ll_i2sbi(inode)->ll_flags & 0x40"); lbug_with_loc(& __msg_data); } else { } if ((unsigned long )lli->lli_remote_perms == (unsigned long )((struct hlist_head *)0)) { perm_hash = alloc_rmtperm_hash(); if ((unsigned long )perm_hash == (unsigned long )((struct hlist_head *)0)) { tmp___3 = cfs_cdebug_show(131072U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c"; msgdata.msg_fn = "ll_update_remote_perm"; msgdata.msg_line = 188; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "alloc lli_remote_perms failed!\n"); } else { } return (-12); } else { } } else { } spin_lock(& lli->lli_lock); if ((unsigned long )lli->lli_remote_perms == (unsigned long )((struct hlist_head *)0)) { lli->lli_remote_perms = perm_hash; } else { free_rmtperm_hash(perm_hash); } tmp___4 = remote_perm_hashfunc(perm->rp_uid); head = lli->lli_remote_perms + (unsigned long )tmp___4; again: ____ptr = head->first; if ((unsigned long )____ptr != (unsigned long )((struct hlist_node *)0)) { __mptr = (struct hlist_node const *)____ptr; tmp___5 = (struct ll_remote_perm *)__mptr; } else { tmp___5 = (struct ll_remote_perm *)0; } tmp___0 = tmp___5; goto ldv_68319; ldv_68318: ; if (tmp___0->lrp_uid != perm->rp_uid) { goto ldv_68316; } else { } if (tmp___0->lrp_gid != perm->rp_gid) { goto ldv_68316; } else { } if (tmp___0->lrp_fsuid != perm->rp_fsuid) { goto ldv_68316; } else { } if (tmp___0->lrp_fsgid != perm->rp_fsgid) { goto ldv_68316; } else { } free_ll_remote_perm(lrp); lrp = tmp___0; goto ldv_68317; ldv_68316: ____ptr___0 = tmp___0->lrp_list.next; if ((unsigned long )____ptr___0 != (unsigned long )((struct hlist_node *)0)) { __mptr___0 = (struct hlist_node const *)____ptr___0; tmp___6 = (struct ll_remote_perm *)__mptr___0; } else { tmp___6 = (struct ll_remote_perm *)0; } tmp___0 = tmp___6; ldv_68319: ; if ((unsigned long )tmp___0 != (unsigned long )((struct ll_remote_perm *)0)) { goto ldv_68318; } else { } ldv_68317: ; if ((unsigned long )lrp == (unsigned long )((struct ll_remote_perm *)0)) { spin_unlock(& lli->lli_lock); lrp = alloc_ll_remote_perm(); if ((unsigned long )lrp == (unsigned long )((struct ll_remote_perm *)0)) { tmp___7 = cfs_cdebug_show(131072U, 128U); if (tmp___7 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c"; msgdata___0.msg_fn = "ll_update_remote_perm"; msgdata___0.msg_line = 221; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "alloc memory for ll_remote_perm failed!\n"); } else { } return (-12); } else { } spin_lock(& lli->lli_lock); goto again; } else { } lrp->lrp_access_perm = (int )perm->rp_access_perm; if ((unsigned long )lrp != (unsigned long )tmp___0) { lrp->lrp_uid = perm->rp_uid; lrp->lrp_gid = perm->rp_gid; lrp->lrp_fsuid = perm->rp_fsuid; lrp->lrp_fsgid = perm->rp_fsgid; hlist_add_head(& lrp->lrp_list, head); } else { } lli->lli_rmtperm_time = cfs_time_current(); spin_unlock(& lli->lli_lock); tmp___8 = cfs_cdebug_show(134217728U, 128U); if (tmp___8 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c"; msgdata___1.msg_fn = "ll_update_remote_perm"; msgdata___1.msg_line = 241; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 134217728; libcfs_debug_msg(& msgdata___1, "new remote perm@%p: %u/%u/%u/%u - %#x\n", lrp, lrp->lrp_uid, lrp->lrp_gid, lrp->lrp_fsuid, lrp->lrp_fsgid, lrp->lrp_access_perm); } else { } return (0); } } int lustre_check_remote_perm(struct inode *inode , int mask ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___0 ; struct ptlrpc_request *req ; struct mdt_remote_perm *perm ; struct obd_capa *oc ; unsigned long save ; int i ; int rc ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; __u32 tmp___3 ; struct lu_fid *tmp___4 ; void *tmp___5 ; long tmp___6 ; { tmp = ll_i2info(inode); lli = tmp; tmp___0 = ll_i2sbi(inode); sbi = tmp___0; req = (struct ptlrpc_request *)0; i = 0; ldv_68340: save = lli->lli_rmtperm_time; rc = do_check_remote_perm(lli, mask); if (rc == 0 || (rc != -2 && i != 0)) { goto ldv_68335; } 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c", 262, 0); mutex_lock_nested(& lli->lli_rmtperm_mutex, 0U); if (lli->lli_rmtperm_time != save) { rc = do_check_remote_perm(lli, mask); if (rc == 0 || (rc != -2 && i != 0)) { mutex_unlock(& lli->lli_rmtperm_mutex); goto ldv_68335; } else { } } else { } tmp___2 = i; i = i + 1; if (tmp___2 > 5) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c"; msgdata.msg_fn = "lustre_check_remote_perm"; msgdata.msg_line = 275; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "check remote perm falls in dead loop!\n"); } 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/remote_perm.c"; msgdata___0.msg_fn = "lustre_check_remote_perm"; msgdata___0.msg_subsys = 128; msgdata___0.msg_line = 276; 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 { } oc = ll_mdscapa_get(inode); tmp___3 = ll_i2suppgid(inode); tmp___4 = ll_inode2fid(inode); rc = md_get_remote_perm(sbi->ll_md_exp, (struct lu_fid const *)tmp___4, oc, tmp___3, & req); capa_put(oc); if (rc != 0) { mutex_unlock(& lli->lli_rmtperm_mutex); goto ldv_68335; } else { } tmp___5 = req_capsule_server_swab_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_ACL), (void *)(& lustre_swab_mdt_remote_perm)); perm = (struct mdt_remote_perm *)tmp___5; tmp___6 = ldv__builtin_expect((unsigned long )perm == (unsigned long )((struct mdt_remote_perm *)0), 0L); if (tmp___6 != 0L) { mutex_unlock(& lli->lli_rmtperm_mutex); rc = -71; goto ldv_68335; } else { } rc = ll_update_remote_perm(inode, perm); mutex_unlock(& lli->lli_rmtperm_mutex); if (rc == -12) { goto ldv_68335; } else { } ptlrpc_req_finished(req); req = (struct ptlrpc_request *)0; goto ldv_68340; ldv_68335: ptlrpc_req_finished(req); return (rc); } } int ldv_pskb_expand_head_477(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_479(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_481(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_482(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_483(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_484(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_485(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_486(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_487(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_489(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(40UL); return (tmp); } } void *ldv_kmem_cache_alloc_490(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(256UL); return (tmp); } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static void spin_lock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_518(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_526(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_520(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_516(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_524(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_525(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_521(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_522(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_523(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static __u32 rce_hashfunc(uid_t id ) { { return (id & 31U); } } u64 rce_ops2valid(int ops ) { { switch (ops) { case 1: ; return (281474976710656ULL); case 2: ; return (562949953421312ULL); case 3: ; return (1125899906842624ULL); case 4: ; return (2251799813685248ULL); default: ; return (0ULL); } } } static struct rmtacl_ctl_entry *rce_alloc(pid_t key , int ops ) { struct rmtacl_ctl_entry *rce ; void *tmp ; { tmp = kzalloc(24UL, 80U); rce = (struct rmtacl_ctl_entry *)tmp; if ((unsigned long )rce == (unsigned long )((struct rmtacl_ctl_entry *)0)) { return ((struct rmtacl_ctl_entry *)0); } else { } INIT_LIST_HEAD(& rce->rce_list); rce->rce_key = key; rce->rce_ops = ops; return (rce); } } static void rce_free(struct rmtacl_ctl_entry *rce ) { int tmp ; { tmp = list_empty((struct list_head const *)(& rce->rce_list)); if (tmp == 0) { list_del(& rce->rce_list); } else { } kfree((void const *)rce); return; } } static struct rmtacl_ctl_entry *__rct_search(struct rmtacl_ctl_table *rct , pid_t key ) { struct rmtacl_ctl_entry *rce ; struct list_head *head ; __u32 tmp ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; { tmp = rce_hashfunc((uid_t )key); head = (struct list_head *)(& rct->rct_entries) + (unsigned long )tmp; __mptr = (struct list_head const *)head->next; rce = (struct rmtacl_ctl_entry *)__mptr; goto ldv_68182; ldv_68181: ; if (rce->rce_key == key) { return (rce); } else { } __mptr___0 = (struct list_head const *)rce->rce_list.next; rce = (struct rmtacl_ctl_entry *)__mptr___0; ldv_68182: ; if ((unsigned long )(& rce->rce_list) != (unsigned long )head) { goto ldv_68181; } else { } return ((struct rmtacl_ctl_entry *)0); } } struct rmtacl_ctl_entry *rct_search(struct rmtacl_ctl_table *rct , pid_t key ) { struct rmtacl_ctl_entry *rce ; { spin_lock(& rct->rct_lock); rce = __rct_search(rct, key); spin_unlock(& rct->rct_lock); return (rce); } } int rct_add(struct rmtacl_ctl_table *rct , pid_t key , int ops ) { struct rmtacl_ctl_entry *rce ; struct rmtacl_ctl_entry *e ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; long tmp___0 ; __u32 tmp___1 ; { rce = rce_alloc(key, ops); if ((unsigned long )rce == (unsigned long )((struct rmtacl_ctl_entry *)0)) { return (-12); } else { } spin_lock(& rct->rct_lock); e = __rct_search(rct, key); tmp___0 = ldv__builtin_expect((unsigned long )e != (unsigned long )((struct rmtacl_ctl_entry *)0), 0L); if (tmp___0 != 0L) { tmp = cfs_cdebug_show(1024U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_rmtacl.c"; msgdata.msg_fn = "rct_add"; msgdata.msg_line = 135; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "Unexpected stale rmtacl_entry found: [key: %d] [ops: %d]\n", key, ops); } else { } rce_free(e); } else { } tmp___1 = rce_hashfunc((uid_t )key); list_add_tail(& rce->rce_list, (struct list_head *)(& rct->rct_entries) + (unsigned long )tmp___1); spin_unlock(& rct->rct_lock); return (0); } } int rct_del(struct rmtacl_ctl_table *rct , pid_t key ) { struct rmtacl_ctl_entry *rce ; { spin_lock(& rct->rct_lock); rce = __rct_search(rct, key); if ((unsigned long )rce != (unsigned long )((struct rmtacl_ctl_entry *)0)) { rce_free(rce); } else { } spin_unlock(& rct->rct_lock); return ((unsigned long )rce != (unsigned long )((struct rmtacl_ctl_entry *)0) ? 0 : -2); } } void rct_init(struct rmtacl_ctl_table *rct ) { int i ; struct lock_class_key __key ; { spinlock_check(& rct->rct_lock); __raw_spin_lock_init(& rct->rct_lock.__annonCompField18.rlock, "&(&rct->rct_lock)->rlock", & __key); i = 0; goto ldv_68210; ldv_68209: INIT_LIST_HEAD((struct list_head *)(& rct->rct_entries) + (unsigned long )i); i = i + 1; ldv_68210: ; if (i <= 31) { goto ldv_68209; } else { } return; } } void rct_fini(struct rmtacl_ctl_table *rct ) { struct rmtacl_ctl_entry *rce ; int i ; struct list_head const *__mptr ; int tmp ; { spin_lock(& rct->rct_lock); i = 0; goto ldv_68223; ldv_68222: ; goto ldv_68220; ldv_68219: __mptr = (struct list_head const *)rct->rct_entries[i].next; rce = (struct rmtacl_ctl_entry *)__mptr; rce_free(rce); ldv_68220: tmp = list_empty((struct list_head const *)(& rct->rct_entries) + (unsigned long )i); if (tmp == 0) { goto ldv_68219; } else { } i = i + 1; ldv_68223: ; if (i <= 31) { goto ldv_68222; } else { } spin_unlock(& rct->rct_lock); return; } } static struct eacl_entry *ee_alloc(pid_t key , struct lu_fid *fid , int type , ext_acl_xattr_header *header ) { struct eacl_entry *ee ; void *tmp ; { tmp = kzalloc(56UL, 80U); ee = (struct eacl_entry *)tmp; if ((unsigned long )ee == (unsigned long )((struct eacl_entry *)0)) { return ((struct eacl_entry *)0); } else { } INIT_LIST_HEAD(& ee->ee_list); ee->ee_key = key; ee->ee_fid = *fid; ee->ee_type = type; ee->ee_acl = header; return (ee); } } void ee_free(struct eacl_entry *ee ) { int tmp ; { tmp = list_empty((struct list_head const *)(& ee->ee_list)); if (tmp == 0) { list_del(& ee->ee_list); } else { } if ((unsigned long )ee->ee_acl != (unsigned long )((ext_acl_xattr_header *)0)) { lustre_ext_acl_xattr_free(ee->ee_acl); } else { } kfree((void const *)ee); return; } } static struct eacl_entry *__et_search_del(struct eacl_table *et , pid_t key , struct lu_fid *fid , int type ) { struct eacl_entry *ee ; struct list_head *head ; __u32 tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct list_head const *__mptr ; int tmp___1 ; struct list_head const *__mptr___0 ; { tmp = rce_hashfunc((uid_t )key); head = (struct list_head *)(& et->et_entries) + (unsigned long )tmp; tmp___0 = ldv__builtin_expect((unsigned long )fid == (unsigned long )((struct lu_fid *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_rmtacl.c"; __msg_data.msg_fn = "__et_search_del"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 217; __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 *)"fid != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } __mptr = (struct list_head const *)head->next; ee = (struct eacl_entry *)__mptr; goto ldv_68250; ldv_68249: ; if (ee->ee_key == key) { tmp___1 = lu_fid_eq((struct lu_fid const *)(& ee->ee_fid), (struct lu_fid const *)fid); if (tmp___1 != 0 && ee->ee_type == type) { list_del_init(& ee->ee_list); return (ee); } else { } } else { } __mptr___0 = (struct list_head const *)ee->ee_list.next; ee = (struct eacl_entry *)__mptr___0; ldv_68250: ; if ((unsigned long )(& ee->ee_list) != (unsigned long )head) { goto ldv_68249; } else { } return ((struct eacl_entry *)0); } } struct eacl_entry *et_search_del(struct eacl_table *et , pid_t key , struct lu_fid *fid , int type ) { struct eacl_entry *ee ; { spin_lock(& et->et_lock); ee = __et_search_del(et, key, fid, type); spin_unlock(& et->et_lock); return (ee); } } void et_search_free(struct eacl_table *et , pid_t key ) { struct eacl_entry *ee ; struct eacl_entry *next ; struct list_head *head ; __u32 tmp ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; { tmp = rce_hashfunc((uid_t )key); head = (struct list_head *)(& et->et_entries) + (unsigned long )tmp; spin_lock(& et->et_lock); __mptr = (struct list_head const *)head->next; ee = (struct eacl_entry *)__mptr; __mptr___0 = (struct list_head const *)ee->ee_list.next; next = (struct eacl_entry *)__mptr___0; goto ldv_68273; ldv_68272: ; if (ee->ee_key == key) { ee_free(ee); } else { } ee = next; __mptr___1 = (struct list_head const *)next->ee_list.next; next = (struct eacl_entry *)__mptr___1; ldv_68273: ; if ((unsigned long )(& ee->ee_list) != (unsigned long )head) { goto ldv_68272; } else { } spin_unlock(& et->et_lock); return; } } int ee_add(struct eacl_table *et , pid_t key , struct lu_fid *fid , int type , ext_acl_xattr_header *header ) { struct eacl_entry *ee ; struct eacl_entry *e ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; long tmp___0 ; __u32 tmp___1 ; { ee = ee_alloc(key, fid, type, header); if ((unsigned long )ee == (unsigned long )((struct eacl_entry *)0)) { return (-12); } else { } spin_lock(& et->et_lock); e = __et_search_del(et, key, fid, type); tmp___0 = ldv__builtin_expect((unsigned long )e != (unsigned long )((struct eacl_entry *)0), 0L); if (tmp___0 != 0L) { tmp = cfs_cdebug_show(1024U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_rmtacl.c"; msgdata.msg_fn = "ee_add"; msgdata.msg_line = 267; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "Unexpected stale eacl_entry found: [key: %d] [fid: [%#llx:0x%x:0x%x]] [type: %d]\n", key, fid->f_seq, fid->f_oid, fid->f_ver, type); } else { } ee_free(e); } else { } tmp___1 = rce_hashfunc((uid_t )key); list_add_tail(& ee->ee_list, (struct list_head *)(& et->et_entries) + (unsigned long )tmp___1); spin_unlock(& et->et_lock); return (0); } } void et_init(struct eacl_table *et ) { int i ; struct lock_class_key __key ; { spinlock_check(& et->et_lock); __raw_spin_lock_init(& et->et_lock.__annonCompField18.rlock, "&(&et->et_lock)->rlock", & __key); i = 0; goto ldv_68293; ldv_68292: INIT_LIST_HEAD((struct list_head *)(& et->et_entries) + (unsigned long )i); i = i + 1; ldv_68293: ; if (i <= 31) { goto ldv_68292; } else { } return; } } void et_fini(struct eacl_table *et ) { struct eacl_entry *ee ; int i ; struct list_head const *__mptr ; int tmp ; { spin_lock(& et->et_lock); i = 0; goto ldv_68306; ldv_68305: ; goto ldv_68303; ldv_68302: __mptr = (struct list_head const *)et->et_entries[i].next; ee = (struct eacl_entry *)__mptr; ee_free(ee); ldv_68303: tmp = list_empty((struct list_head const *)(& et->et_entries) + (unsigned long )i); if (tmp == 0) { goto ldv_68302; } else { } i = i + 1; ldv_68306: ; if (i <= 31) { goto ldv_68305; } else { } spin_unlock(& et->et_lock); return; } } int ldv_pskb_expand_head_516(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_518(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_520(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_521(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_522(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_523(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_524(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_525(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_526(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 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 ) ; __inline static void spin_lock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; extern void add_wait_queue(wait_queue_head_t * , wait_queue_t * ) ; extern long prepare_to_wait_event(wait_queue_head_t * , wait_queue_t * , int ) ; extern void finish_wait(wait_queue_head_t * , wait_queue_t * ) ; __inline static int timer_pending(struct timer_list const *timer ) { { return ((unsigned long )timer->entry.pprev != (unsigned long )((struct hlist_node **/* const */)0)); } } extern int mod_timer(struct timer_list * , unsigned long ) ; int ldv_mod_timer_565(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) ; void activate_pending_timer_1(struct timer_list *timer , unsigned long data , int pending_flag ) ; struct sk_buff *ldv_skb_clone_555(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_563(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_557(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_553(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_561(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_562(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_558(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_559(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_560(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static unsigned long cfs_time_add(unsigned long t , long d ) { { return (t + (unsigned long )d); } } __inline static int cfs_time_after(unsigned long t1 , unsigned long t2 ) { { return ((long )(t2 - t1) < 0L); } } __inline static int cfs_time_aftereq(unsigned long t1 , unsigned long t2 ) { { return ((long )(t1 - t2) >= 0L); } } __inline static int capa_for_mds(struct lustre_capa *c ) { { return ((c->lc_opc & 4ULL) != 0ULL); } } __inline static int capa_for_oss(struct lustre_capa *c ) { { return ((c->lc_opc & 4ULL) == 0ULL); } } __inline static int thread_is_stopped(struct ptlrpc_thread *thread ) { { return ((int )thread->t_flags & 1); } } __inline static int thread_is_running(struct ptlrpc_thread *thread ) { { return ((thread->t_flags & 8U) != 0U); } } __inline static void thread_set_flags(struct ptlrpc_thread *thread , __u32 flags ) { { thread->t_flags = flags; return; } } __inline static struct lu_fid *capa_fid(struct lustre_capa *capa ) { { return (& capa->lc_fid); } } __inline static __u64 capa_opc(struct lustre_capa *capa ) { { return (capa->lc_opc); } } extern struct list_head capa_list[] ; extern spinlock_t capa_lock ; extern int capa_count[] ; __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 set_capa_expiry(struct obd_capa *ocapa ) { unsigned long expiry ; unsigned long tmp ; unsigned long tmp___0 ; long tmp___1 ; unsigned long tmp___2 ; { tmp = get_seconds(); tmp___0 = cfs_time_sub((unsigned long )ocapa->c_capa.lc_expiry, tmp); expiry = tmp___0; tmp___1 = cfs_time_seconds((int )expiry); tmp___2 = cfs_time_current(); ocapa->c_expiry = cfs_time_add(tmp___2, tmp___1); return; } } __inline static int capa_is_expired(struct obd_capa *ocapa ) { unsigned long tmp ; { tmp = cfs_time_current(); return ((long )(tmp - ocapa->c_expiry) >= 0L); } } __inline static int capa_opc_supported(struct lustre_capa *capa , __u64 opc ) { __u64 tmp ; { tmp = capa_opc(capa); return ((tmp & opc) == opc); } } __inline static int md_renew_capa(struct obd_export *exp , struct obd_capa *ocapa , int (*cb)(struct obd_capa * , struct lustre_capa * ) ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_renew_capa"; msgdata.msg_line = 1780; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_renew_capa: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_renew_capa"; msgdata___0.msg_line = 1780; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_renew_capa: 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_md_ops)->m_renew_capa == (unsigned long )((int (*)(struct obd_export * , struct obd_capa * , int (*)(struct obd_capa * , struct lustre_capa * ) ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_renew_capa"; msgdata___1.msg_line = 1780; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_renew_capa: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 27U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_renew_capa"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1781; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_renew_capa))(exp, ocapa, cb); return (rc); } } struct timer_list ll_capa_timer ; int ll_capa_thread_start(void) ; void ll_capa_thread_stop(void) ; void ll_capa_timer_callback(unsigned long unused ) ; static struct list_head ll_idle_capas = {& ll_idle_capas, & ll_idle_capas}; static struct ptlrpc_thread ll_capa_thread ; static struct list_head *ll_capa_list = (struct list_head *)(& capa_list); static atomic_t ll_capa_debug = {0}; static unsigned long long ll_capa_renewed ; static unsigned long long ll_capa_renewal_noent ; static unsigned long long ll_capa_renewal_failed ; static unsigned long long ll_capa_renewal_retries ; static int ll_update_capa(struct obd_capa *ocapa , struct lustre_capa *capa ) ; __inline static void update_capa_timer(struct obd_capa *ocapa , unsigned long expiry ) { struct libcfs_debug_msg_data msgdata ; int tmp ; { if ((long )(expiry - ll_capa_timer.expires) < 0L) { goto _L; } else { tmp = timer_pending((struct timer_list const *)(& ll_capa_timer)); if (tmp == 0) { _L: /* CIL Label */ ldv_mod_timer_565(& ll_capa_timer, expiry); if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 128U) != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata.msg_fn = "update_capa_timer"; msgdata.msg_subsys = 128; msgdata.msg_line = 79; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 134217728; _debug_capa(& ocapa->c_capa, & msgdata, "ll_capa_timer update: %lu/%lu by", expiry, jiffies); } else { } } else { } } return; } } __inline static unsigned long capa_renewal_time(struct obd_capa *ocapa ) { long tmp ; unsigned long tmp___0 ; { tmp = cfs_time_seconds((int )ocapa->c_capa.lc_timeout); tmp___0 = cfs_time_sub(ocapa->c_expiry, (unsigned long )(tmp / 2L)); return (tmp___0); } } __inline static int capa_is_to_expire(struct obd_capa *ocapa ) { unsigned long tmp ; unsigned long tmp___0 ; { tmp = cfs_time_current(); tmp___0 = capa_renewal_time(ocapa); return ((long )(tmp - tmp___0) >= 0L); } } __inline static int have_expired_capa(void) { struct obd_capa *ocapa ; int expired ; struct list_head const *__mptr ; unsigned long tmp ; struct list_head const *__mptr___0 ; int tmp___0 ; int tmp___1 ; struct libcfs_debug_msg_data msgdata ; { ocapa = (struct obd_capa *)0; expired = 0; spin_lock(& capa_lock); tmp___1 = list_empty((struct list_head const *)ll_capa_list); if (tmp___1 == 0) { __mptr = (struct list_head const *)ll_capa_list->next; ocapa = (struct obd_capa *)__mptr; expired = capa_is_to_expire(ocapa); if (expired == 0) { tmp = capa_renewal_time(ocapa); update_capa_timer(ocapa, tmp); } else { } } else { tmp___0 = list_empty((struct list_head const *)(& ll_idle_capas)); if (tmp___0 == 0) { __mptr___0 = (struct list_head const *)ll_idle_capas.next; ocapa = (struct obd_capa *)__mptr___0; expired = capa_is_expired(ocapa); if (expired == 0) { update_capa_timer(ocapa, ocapa->c_expiry); } else { } } else { } } spin_unlock(& capa_lock); if (expired != 0) { if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 128U) != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata.msg_fn = "have_expired_capa"; msgdata.msg_subsys = 128; msgdata.msg_line = 119; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 134217728; _debug_capa(& ocapa->c_capa, & msgdata, "expired"); } else { } } else { } return (expired); } } static void sort_add_capa(struct obd_capa *ocapa , struct list_head *head ) { struct obd_capa *tmp ; struct list_head *before ; struct list_head const *__mptr ; int tmp___0 ; struct list_head const *__mptr___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; { before = (struct list_head *)0; __mptr = (struct list_head const *)head->prev; tmp = (struct obd_capa *)__mptr; goto ldv_68214; ldv_68213: tmp___0 = cfs_time_aftereq(ocapa->c_expiry, tmp->c_expiry); if (tmp___0 != 0) { before = & tmp->c_list; goto ldv_68212; } else { } __mptr___0 = (struct list_head const *)tmp->c_list.prev; tmp = (struct obd_capa *)__mptr___0; ldv_68214: ; if ((unsigned long )(& tmp->c_list) != (unsigned long )head) { goto ldv_68213; } else { } ldv_68212: tmp___1 = ldv__builtin_expect((unsigned long )(& ocapa->c_list) == (unsigned long )before, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; __msg_data.msg_fn = "sort_add_capa"; __msg_data.msg_subsys = 128; __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 *)"&ocapa->c_list != before"); lbug_with_loc(& __msg_data); } else { } list_add(& ocapa->c_list, (unsigned long )before != (unsigned long )((struct list_head *)0) ? (unsigned long )before != (unsigned long )((struct list_head *)0) : head); return; } } __inline static int obd_capa_open_count(struct obd_capa *oc ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; int tmp___0 ; { tmp = ll_i2info(oc->u.cli.inode); lli = tmp; tmp___0 = atomic_read((atomic_t const *)(& lli->lli_open_count)); return (tmp___0); } } static void ll_delete_capa(struct obd_capa *ocapa ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; int tmp___1 ; int tmp___2 ; struct libcfs_debug_msg_data msgdata ; { tmp = ll_i2info(ocapa->u.cli.inode); lli = tmp; tmp___2 = capa_for_mds(& ocapa->c_capa); if (tmp___2 != 0) { tmp___0 = ldv__builtin_expect((unsigned long )lli->lli_mds_capa != (unsigned long )ocapa, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; __msg_data.msg_fn = "ll_delete_capa"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 152; __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 *)"lli->lli_mds_capa == ocapa"); lbug_with_loc(& __msg_data); } else { } lli->lli_mds_capa = (struct obd_capa *)0; } else { tmp___1 = capa_for_oss(& ocapa->c_capa); if (tmp___1 != 0) { list_del_init(& ocapa->u.cli.lli_list); } else { } } if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 128U) != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata.msg_fn = "ll_delete_capa"; msgdata.msg_subsys = 128; msgdata.msg_line = 158; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 134217728; _debug_capa(& ocapa->c_capa, & msgdata, "free client"); } else { } list_del_init(& ocapa->c_list); capa_count[0] = capa_count[0] - 1; capa_put(ocapa); return; } } static int capa_thread_main(void *unused ) { struct obd_capa *ocapa ; struct obd_capa *tmp ; struct obd_capa *next ; struct inode *inode ; struct l_wait_info lwi ; int rc ; int __ret ; struct l_wait_info *__info ; wait_queue_t __wait ; long __timeout ; sigset_t __blocked ; int __allow_intr ; int tmp___0 ; int tmp___1 ; struct task_struct *tmp___2 ; int 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 ; int tmp___22 ; int tmp___23 ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; __u64 ibits ; struct libcfs_debug_msg_data __msg_data ; long tmp___24 ; int tmp___25 ; struct libcfs_debug_msg_data msgdata ; int tmp___26 ; int tmp___27 ; int tmp___28 ; int tmp___29 ; int tmp___30 ; struct libcfs_debug_msg_data msgdata___0 ; struct obd_export *tmp___31 ; struct libcfs_debug_msg_data msgdata___1 ; struct list_head const *__mptr___1 ; unsigned long tmp___32 ; struct list_head const *__mptr___2 ; struct list_head const *__mptr___3 ; int tmp___33 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___34 ; int tmp___35 ; struct libcfs_debug_msg_data msgdata___3 ; struct list_head const *__mptr___4 ; { inode = (struct inode *)0; lwi.lwi_timeout = 0L; lwi.lwi_interval = 0L; lwi.lwi_allow_intr = 0; lwi.lwi_on_timeout = 0; lwi.lwi_on_signal = 0; lwi.lwi_cb_data = 0; thread_set_flags(& ll_capa_thread, 8U); __wake_up(& ll_capa_thread.t_ctl_waitq, 3U, 1, (void *)0); ldv_68298: __info = & lwi; __timeout = __info->lwi_timeout; __allow_intr = __info->lwi_allow_intr; __ret = 0; tmp___0 = thread_is_running(& ll_capa_thread); if (tmp___0 == 0) { goto ldv_68243; } else { tmp___1 = have_expired_capa(); if (tmp___1 != 0) { goto ldv_68243; } else { } } tmp___2 = get_current(); init_waitqueue_entry(& __wait, tmp___2); add_wait_queue(& ll_capa_thread.t_ctl_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_68267: tmp___3 = thread_is_running(& ll_capa_thread); if (tmp___3 == 0) { goto ldv_68244; } else { tmp___4 = have_expired_capa(); if (tmp___4 != 0) { goto ldv_68244; } 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_68247; case 2UL: tmp___7 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___0), "+m" (tmp___7->state): : "memory", "cc"); goto ldv_68247; case 4UL: tmp___8 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___0), "+m" (tmp___8->state): : "memory", "cc"); goto ldv_68247; case 8UL: tmp___9 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___0), "+m" (tmp___9->state): : "memory", "cc"); goto ldv_68247; default: __xchg_wrong_size(); } ldv_68247: ; 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_68244; } else { tmp___14 = (*(__info->lwi_on_timeout))(__info->lwi_cb_data); if (tmp___14 != 0) { __ret = -110; goto ldv_68244; } 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_68260; case 2UL: tmp___17 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___1), "+m" (tmp___17->state): : "memory", "cc"); goto ldv_68260; case 4UL: tmp___18 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___1), "+m" (tmp___18->state): : "memory", "cc"); goto ldv_68260; case 8UL: tmp___19 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___1), "+m" (tmp___19->state): : "memory", "cc"); goto ldv_68260; default: __xchg_wrong_size(); } ldv_68260: tmp___20 = thread_is_running(& ll_capa_thread); if (tmp___20 == 0) { goto ldv_68244; } else { tmp___21 = have_expired_capa(); if (tmp___21 != 0) { goto ldv_68244; } else { } } tmp___22 = cfs_signal_pending(); if (tmp___22 != 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_68244; } else { } cfs_clear_sigpending(); } else { } goto ldv_68267; ldv_68244: cfs_restore_sigs(__blocked); remove_wait_queue(& ll_capa_thread.t_ctl_waitq, & __wait); ldv_68243: tmp___23 = thread_is_running(& ll_capa_thread); if (tmp___23 == 0) { goto ldv_68269; } else { } next = (struct obd_capa *)0; spin_lock(& capa_lock); __mptr = (struct list_head const *)ll_capa_list->next; ocapa = (struct obd_capa *)__mptr; __mptr___0 = (struct list_head const *)ocapa->c_list.next; tmp = (struct obd_capa *)__mptr___0; goto ldv_68285; ldv_68284: tmp___24 = ldv__builtin_expect(ocapa->c_capa.lc_opc == 128ULL, 0L); if (tmp___24 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; __msg_data.msg_fn = "capa_thread_main"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 195; __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 *)"ocapa->c_capa.lc_opc != CAPA_OPC_OSS_TRUNC"); lbug_with_loc(& __msg_data); } else { } tmp___25 = capa_is_to_expire(ocapa); if (tmp___25 == 0) { next = ocapa; goto ldv_68279; } else { } list_del_init(& ocapa->c_list); ibits = 1ULL; tmp___26 = capa_for_mds(& ocapa->c_capa); if (tmp___26 != 0 && ((int )(ocapa->u.cli.inode)->i_mode & 61440) != 16384) { tmp___27 = obd_capa_open_count(ocapa); if (tmp___27 == 0) { tmp___28 = ll_have_md_lock(ocapa->u.cli.inode, & ibits, 0); if (tmp___28 == 0) { if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 128U) != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata.msg_fn = "capa_thread_main"; msgdata.msg_subsys = 128; msgdata.msg_line = 217; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 134217728; _debug_capa(& ocapa->c_capa, & msgdata, "skip renewal for"); } else { } sort_add_capa(ocapa, & ll_idle_capas); goto ldv_68281; } else { } } else { } } else { } tmp___29 = capa_for_oss(& ocapa->c_capa); if (tmp___29 != 0) { tmp___30 = obd_capa_open_count(ocapa); if (tmp___30 == 0) { sort_add_capa(ocapa, & ll_idle_capas); goto ldv_68281; } else { } } else { } inode = igrab(ocapa->u.cli.inode); if ((unsigned long )inode == (unsigned long )((struct inode *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata___0.msg_fn = "capa_thread_main"; msgdata___0.msg_subsys = 128; msgdata___0.msg_line = 237; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; _debug_capa(& ocapa->c_capa, & msgdata___0, "igrab failed for"); goto ldv_68281; } else { } capa_get(ocapa); ll_capa_renewed = ll_capa_renewed + 1ULL; spin_unlock(& capa_lock); tmp___31 = ll_i2mdexp(inode); rc = md_renew_capa(tmp___31, ocapa, & ll_update_capa); spin_lock(& capa_lock); if (rc != 0) { 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata___1.msg_fn = "capa_thread_main"; msgdata___1.msg_subsys = 128; msgdata___1.msg_line = 249; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 131072; _debug_capa(& ocapa->c_capa, & msgdata___1, "renew failed: %d", rc); ll_capa_renewal_failed = ll_capa_renewal_failed + 1ULL; } else { } ldv_68281: ocapa = tmp; __mptr___1 = (struct list_head const *)tmp->c_list.next; tmp = (struct obd_capa *)__mptr___1; ldv_68285: ; if ((unsigned long )(& ocapa->c_list) != (unsigned long )ll_capa_list) { goto ldv_68284; } else { } ldv_68279: ; if ((unsigned long )next != (unsigned long )((struct obd_capa *)0)) { tmp___32 = capa_renewal_time(next); update_capa_timer(next, tmp___32); } else { } __mptr___2 = (struct list_head const *)ll_idle_capas.next; ocapa = (struct obd_capa *)__mptr___2; __mptr___3 = (struct list_head const *)ocapa->c_list.next; tmp = (struct obd_capa *)__mptr___3; goto ldv_68297; ldv_68296: tmp___33 = capa_is_expired(ocapa); if (tmp___33 == 0) { if ((unsigned long )next == (unsigned long )((struct obd_capa *)0)) { update_capa_timer(ocapa, ocapa->c_expiry); } else { } goto ldv_68292; } else { } tmp___35 = atomic_read((atomic_t const *)(& ocapa->c_refc)); if (tmp___35 > 1) { if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 128U) != 0U) { 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata___2.msg_fn = "capa_thread_main"; msgdata___2.msg_subsys = 128; msgdata___2.msg_line = 269; msgdata___2.msg_mask = 0; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 134217728; tmp___34 = atomic_read((atomic_t const *)(& ocapa->c_refc)); _debug_capa(& ocapa->c_capa, & msgdata___2, "expired(c_refc %d), don\'t release", tmp___34); } else { } list_del_init(& ocapa->c_list); goto ldv_68294; } else { } if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 128U) != 0U) { 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata___3.msg_fn = "capa_thread_main"; msgdata___3.msg_subsys = 128; msgdata___3.msg_line = 276; msgdata___3.msg_mask = 0; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 134217728; _debug_capa(& ocapa->c_capa, & msgdata___3, "release expired"); } else { } ll_delete_capa(ocapa); ldv_68294: ocapa = tmp; __mptr___4 = (struct list_head const *)tmp->c_list.next; tmp = (struct obd_capa *)__mptr___4; ldv_68297: ; if ((unsigned long )(& ocapa->c_list) != (unsigned long )(& ll_idle_capas)) { goto ldv_68296; } else { } ldv_68292: spin_unlock(& capa_lock); goto ldv_68298; ldv_68269: thread_set_flags(& ll_capa_thread, 1U); __wake_up(& ll_capa_thread.t_ctl_waitq, 3U, 1, (void *)0); return (0); } } void ll_capa_timer_callback(unsigned long unused ) { { __wake_up(& ll_capa_thread.t_ctl_waitq, 3U, 1, (void *)0); return; } } int ll_capa_thread_start(void) { struct task_struct *task ; struct lock_class_key __key ; struct task_struct *__k ; struct task_struct *tmp ; bool tmp___0 ; int tmp___1 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; long tmp___2 ; int tmp___3 ; long tmp___4 ; bool tmp___5 ; int tmp___6 ; wait_queue_t __wait ; long __ret ; long __int ; long tmp___7 ; int tmp___8 ; { __init_waitqueue_head(& ll_capa_thread.t_ctl_waitq, "&ll_capa_thread.t_ctl_waitq", & __key); tmp = kthread_create_on_node(& capa_thread_main, (void *)0, -1, "ll_capa"); __k = tmp; tmp___0 = IS_ERR((void const *)__k); if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { wake_up_process(__k); } else { } task = __k; tmp___5 = IS_ERR((void const *)task); if ((int )tmp___5) { tmp___3 = cfs_cdebug_show(131072U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata.msg_fn = "ll_capa_thread_start"; msgdata.msg_line = 302; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; tmp___2 = PTR_ERR((void const *)task); libcfs_debug_msg(& msgdata, "cannot start expired capa thread: rc %ld\n", tmp___2); } else { } tmp___4 = PTR_ERR((void const *)task); return ((int )tmp___4); } 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c", 306, 0); tmp___6 = thread_is_running(& ll_capa_thread); if (tmp___6 != 0) { goto ldv_68312; } else { } __ret = 0L; INIT_LIST_HEAD(& __wait.task_list); __wait.flags = 0U; ldv_68318: tmp___7 = prepare_to_wait_event(& ll_capa_thread.t_ctl_waitq, & __wait, 2); __int = tmp___7; tmp___8 = thread_is_running(& ll_capa_thread); if (tmp___8 != 0) { goto ldv_68317; } else { } schedule(); goto ldv_68318; ldv_68317: finish_wait(& ll_capa_thread.t_ctl_waitq, & __wait); ldv_68312: ; return (0); } } void ll_capa_thread_stop(void) { int tmp ; wait_queue_t __wait ; long __ret ; long __int ; long tmp___0 ; int tmp___1 ; { thread_set_flags(& ll_capa_thread, 2U); __wake_up(& ll_capa_thread.t_ctl_waitq, 3U, 1, (void *)0); __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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c", 316, 0); tmp = thread_is_stopped(& ll_capa_thread); if (tmp != 0) { goto ldv_68323; } else { } __ret = 0L; INIT_LIST_HEAD(& __wait.task_list); __wait.flags = 0U; ldv_68329: tmp___0 = prepare_to_wait_event(& ll_capa_thread.t_ctl_waitq, & __wait, 2); __int = tmp___0; tmp___1 = thread_is_stopped(& ll_capa_thread); if (tmp___1 != 0) { goto ldv_68328; } else { } schedule(); goto ldv_68329; ldv_68328: finish_wait(& ll_capa_thread.t_ctl_waitq, & __wait); ldv_68323: ; return; } } struct obd_capa *ll_osscapa_get(struct inode *inode , __u64 opc ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct obd_capa *ocapa ; int found ; struct ll_sb_info *tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; struct list_head const *__mptr ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; struct list_head const *__mptr___0 ; struct libcfs_debug_msg_data __msg_data___0 ; struct lu_fid *tmp___6 ; struct lu_fid *tmp___7 ; int tmp___8 ; long tmp___9 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___10 ; struct libcfs_debug_msg_data msgdata ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___11 ; int tmp___12 ; { tmp = ll_i2info(inode); lli = tmp; found = 0; tmp___0 = ll_i2sbi(inode); if ((tmp___0->ll_flags & 256) == 0) { return ((struct obd_capa *)0); } else { } tmp___1 = ldv__builtin_expect((long )((opc != 32ULL && opc != 96ULL) && opc != 128ULL), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; __msg_data.msg_fn = "ll_osscapa_get"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 329; __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 *)"opc == CAPA_OPC_OSS_WRITE || opc == (CAPA_OPC_OSS_READ | CAPA_OPC_OSS_WRITE) || opc == CAPA_OPC_OSS_TRUNC"); lbug_with_loc(& __msg_data); } else { } spin_lock(& capa_lock); __mptr = (struct list_head const *)lli->lli_oss_capas.next; ocapa = (struct obd_capa *)__mptr + 0xffffffffffffff10UL; goto ldv_68347; ldv_68346: tmp___2 = capa_is_expired(ocapa); if (tmp___2 != 0) { goto ldv_68344; } else { } if ((opc & 32ULL) != 0ULL) { tmp___5 = capa_opc_supported(& ocapa->c_capa, 32ULL); if (tmp___5 != 0) { found = 1; goto ldv_68345; } else { goto _L___0; } } else _L___0: /* CIL Label */ if ((opc & 64ULL) != 0ULL) { tmp___4 = capa_opc_supported(& ocapa->c_capa, 64ULL); if (tmp___4 != 0) { found = 1; goto ldv_68345; } else { goto _L; } } else _L: /* CIL Label */ if ((opc & 128ULL) != 0ULL) { tmp___3 = capa_opc_supported(& ocapa->c_capa, opc); if (tmp___3 != 0) { found = 1; goto ldv_68345; } else { } } else { } ldv_68344: __mptr___0 = (struct list_head const *)ocapa->u.cli.lli_list.next; ocapa = (struct obd_capa *)__mptr___0 + 0xffffffffffffff10UL; ldv_68347: ; if ((unsigned long )(& ocapa->u.cli.lli_list) != (unsigned long )(& lli->lli_oss_capas)) { goto ldv_68346; } else { } ldv_68345: ; if (found != 0) { tmp___6 = ll_inode2fid(inode); tmp___7 = capa_fid(& ocapa->c_capa); tmp___8 = lu_fid_eq((struct lu_fid const *)tmp___7, (struct lu_fid const *)tmp___6); tmp___9 = ldv__builtin_expect(tmp___8 == 0, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; __msg_data___0.msg_fn = "ll_osscapa_get"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 353; __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 *)"lu_fid_eq(capa_fid(&ocapa->c_capa), ll_inode2fid(inode))"); lbug_with_loc(& __msg_data___0); } else { } tmp___10 = ldv__builtin_expect(ocapa->c_site != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; __msg_data___1.msg_fn = "ll_osscapa_get"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 354; __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 *)"ocapa->c_site == CAPA_SITE_CLIENT"); lbug_with_loc(& __msg_data___1); } else { } capa_get(ocapa); if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 128U) != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata.msg_fn = "ll_osscapa_get"; msgdata.msg_subsys = 128; msgdata.msg_line = 358; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 134217728; _debug_capa(& ocapa->c_capa, & msgdata, "found client"); } else { } } else { ocapa = (struct obd_capa *)0; tmp___12 = atomic_read((atomic_t const *)(& ll_capa_debug)); if (tmp___12 != 0) { tmp___11 = cfs_cdebug_show(131072U, 128U); if (tmp___11 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata___0.msg_fn = "ll_osscapa_get"; msgdata___0.msg_line = 364; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "no capability for [%#llx:0x%x:0x%x] opc %#llx\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, opc); } else { } atomic_set(& ll_capa_debug, 0); } else { } } spin_unlock(& capa_lock); return (ocapa); } } static char const __kstrtab_ll_osscapa_get[15U] = { 'l', 'l', '_', 'o', 's', 's', 'c', 'a', 'p', 'a', '_', 'g', 'e', 't', '\000'}; struct kernel_symbol const __ksymtab_ll_osscapa_get ; struct kernel_symbol const __ksymtab_ll_osscapa_get = {(unsigned long )(& ll_osscapa_get), (char const *)(& __kstrtab_ll_osscapa_get)}; struct obd_capa *ll_mdscapa_get(struct inode *inode ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct obd_capa *ocapa ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct ll_sb_info *tmp___1 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; int tmp___3 ; { tmp = ll_i2info(inode); lli = tmp; tmp___0 = ldv__builtin_expect((unsigned long )inode == (unsigned long )((struct inode *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; __msg_data.msg_fn = "ll_mdscapa_get"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 379; __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 *)"inode != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ll_i2sbi(inode); if ((tmp___1->ll_flags & 128) == 0) { return ((struct obd_capa *)0); } else { } spin_lock(& capa_lock); ocapa = capa_get(lli->lli_mds_capa); spin_unlock(& capa_lock); if ((unsigned long )ocapa == (unsigned long )((struct obd_capa *)0)) { tmp___3 = atomic_read((atomic_t const *)(& ll_capa_debug)); if (tmp___3 != 0) { tmp___2 = cfs_cdebug_show(131072U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata.msg_fn = "ll_mdscapa_get"; msgdata.msg_line = 388; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "no mds capability for [%#llx:0x%x:0x%x]\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver); } else { } atomic_set(& ll_capa_debug, 0); } else { } } else { } return (ocapa); } } static struct obd_capa *do_add_mds_capa(struct inode *inode , struct obd_capa *ocapa ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct obd_capa *old ; struct lustre_capa *capa ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; { tmp = ll_i2info(inode); lli = tmp; old = lli->lli_mds_capa; capa = & ocapa->c_capa; if ((unsigned long )old == (unsigned long )((struct obd_capa *)0)) { ocapa->u.cli.inode = inode; lli->lli_mds_capa = ocapa; capa_count[0] = capa_count[0] + 1; if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 128U) != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata.msg_fn = "do_add_mds_capa"; msgdata.msg_subsys = 128; msgdata.msg_line = 407; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 134217728; _debug_capa(capa, & msgdata, "add MDS"); } else { } } else { spin_lock(& old->c_lock); old->c_capa = *capa; spin_unlock(& old->c_lock); if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 128U) != 0U) { 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata___0.msg_fn = "do_add_mds_capa"; msgdata___0.msg_subsys = 128; msgdata___0.msg_line = 413; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 134217728; _debug_capa(capa, & msgdata___0, "update MDS"); } else { } capa_put(ocapa); ocapa = old; } return (ocapa); } } static struct obd_capa *do_lookup_oss_capa(struct inode *inode , int opc ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct obd_capa *ocapa ; struct list_head const *__mptr ; __u64 tmp___0 ; struct libcfs_debug_msg_data __msg_data ; struct lu_fid *tmp___1 ; struct lu_fid *tmp___2 ; int tmp___3 ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___5 ; struct libcfs_debug_msg_data msgdata ; struct list_head const *__mptr___0 ; { tmp = ll_i2info(inode); lli = tmp; __mptr = (struct list_head const *)lli->lli_oss_capas.next; ocapa = (struct obd_capa *)__mptr + 0xffffffffffffff10UL; goto ldv_68396; ldv_68395: tmp___0 = capa_opc(& ocapa->c_capa); if ((tmp___0 & (__u64 )opc) != (__u64 )opc) { goto ldv_68390; } else { } tmp___1 = ll_inode2fid(inode); tmp___2 = capa_fid(& ocapa->c_capa); tmp___3 = lu_fid_eq((struct lu_fid const *)tmp___2, (struct lu_fid const *)tmp___1); tmp___4 = ldv__builtin_expect(tmp___3 == 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; __msg_data.msg_fn = "do_lookup_oss_capa"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 432; __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 *)"lu_fid_eq(capa_fid(&ocapa->c_capa), ll_inode2fid(inode))"); lbug_with_loc(& __msg_data); } else { } tmp___5 = ldv__builtin_expect(ocapa->c_site != 0, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; __msg_data___0.msg_fn = "do_lookup_oss_capa"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 433; __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 *)"ocapa->c_site == CAPA_SITE_CLIENT"); lbug_with_loc(& __msg_data___0); } else { } if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 128U) != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata.msg_fn = "do_lookup_oss_capa"; msgdata.msg_subsys = 128; msgdata.msg_line = 435; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 134217728; _debug_capa(& ocapa->c_capa, & msgdata, "found client"); } else { } return (ocapa); ldv_68390: __mptr___0 = (struct list_head const *)ocapa->u.cli.lli_list.next; ocapa = (struct obd_capa *)__mptr___0 + 0xffffffffffffff10UL; ldv_68396: ; if ((unsigned long )(& ocapa->u.cli.lli_list) != (unsigned long )(& lli->lli_oss_capas)) { goto ldv_68395; } else { } return ((struct obd_capa *)0); } } __inline static void inode_add_oss_capa(struct inode *inode , struct obd_capa *ocapa ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct obd_capa *tmp___0 ; struct list_head *next ; struct list_head const *__mptr ; int tmp___1 ; struct list_head const *__mptr___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___2 ; { tmp = ll_i2info(inode); lli = tmp; next = (struct list_head *)0; __mptr = (struct list_head const *)lli->lli_oss_capas.next; tmp___0 = (struct obd_capa *)__mptr + 0xffffffffffffff10UL; goto ldv_68411; ldv_68410: tmp___1 = cfs_time_after(ocapa->c_expiry, tmp___0->c_expiry); if (tmp___1 != 0) { next = & tmp___0->u.cli.lli_list; goto ldv_68409; } else { } __mptr___0 = (struct list_head const *)tmp___0->u.cli.lli_list.next; tmp___0 = (struct obd_capa *)__mptr___0 + 0xffffffffffffff10UL; ldv_68411: ; if ((unsigned long )(& tmp___0->u.cli.lli_list) != (unsigned long )(& lli->lli_oss_capas)) { goto ldv_68410; } else { } ldv_68409: tmp___2 = ldv__builtin_expect((unsigned long )(& ocapa->u.cli.lli_list) == (unsigned long )next, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; __msg_data.msg_fn = "inode_add_oss_capa"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 457; __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 *)"&ocapa->u.cli.lli_list != next"); lbug_with_loc(& __msg_data); } else { } list_move_tail(& ocapa->u.cli.lli_list, (unsigned long )next != (unsigned long )((struct list_head *)0) ? (unsigned long )next != (unsigned long )((struct list_head *)0) : & lli->lli_oss_capas); return; } } static struct obd_capa *do_add_oss_capa(struct inode *inode , struct obd_capa *ocapa ) { struct obd_capa *old ; struct lustre_capa *capa ; struct libcfs_debug_msg_data __msg_data ; long tmp ; __u64 tmp___0 ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; { capa = & ocapa->c_capa; tmp = ldv__builtin_expect(((int )inode->i_mode & 61440) != 32768, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; __msg_data.msg_fn = "do_add_oss_capa"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 469; __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: inode has oss capa, but not regular file, mode: %d\n", (char *)"S_ISREG(inode->i_mode)", (int )inode->i_mode); lbug_with_loc(& __msg_data); } else { } tmp___0 = capa_opc(capa); old = do_lookup_oss_capa(inode, (int )tmp___0 & 480); if ((unsigned long )old == (unsigned long )((struct obd_capa *)0)) { ocapa->u.cli.inode = inode; INIT_LIST_HEAD(& ocapa->u.cli.lli_list); capa_count[0] = capa_count[0] + 1; if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 128U) != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata.msg_fn = "do_add_oss_capa"; msgdata.msg_subsys = 128; msgdata.msg_line = 478; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 134217728; _debug_capa(capa, & msgdata, "add OSS"); } else { } } else { spin_lock(& old->c_lock); old->c_capa = *capa; spin_unlock(& old->c_lock); if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 128U) != 0U) { 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata___0.msg_fn = "do_add_oss_capa"; msgdata___0.msg_subsys = 128; msgdata___0.msg_line = 484; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 134217728; _debug_capa(capa, & msgdata___0, "update OSS"); } else { } capa_put(ocapa); ocapa = old; } inode_add_oss_capa(inode, ocapa); return (ocapa); } } struct obd_capa *ll_add_capa(struct inode *inode , struct obd_capa *ocapa ) { struct obd_capa *tmp___0 ; struct obd_capa *tmp___1 ; int tmp___2 ; unsigned long tmp___3 ; { spin_lock(& capa_lock); tmp___2 = capa_for_mds(& ocapa->c_capa); if (tmp___2 != 0) { tmp___0 = do_add_mds_capa(inode, ocapa); ocapa = tmp___0; } else { tmp___1 = do_add_oss_capa(inode, ocapa); ocapa = tmp___1; } if (ocapa->c_capa.lc_opc != 128ULL) { set_capa_expiry(ocapa); list_del_init(& ocapa->c_list); sort_add_capa(ocapa, ll_capa_list); tmp___3 = capa_renewal_time(ocapa); update_capa_timer(ocapa, tmp___3); } else { } spin_unlock(& capa_lock); atomic_set(& ll_capa_debug, 1); return (ocapa); } } __inline static void delay_capa_renew(struct obd_capa *oc , unsigned long delay ) { long tmp ; { tmp = cfs_time_seconds((int )delay); oc->c_expiry = cfs_time_add(oc->c_expiry, tmp); return; } } static int ll_update_capa(struct obd_capa *ocapa , struct lustre_capa *capa ) { struct inode *inode ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___1 ; bool tmp___2 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___3 ; long tmp___4 ; int tmp___5 ; struct libcfs_debug_msg_data msgdata___2 ; unsigned long tmp___6 ; { inode = ocapa->u.cli.inode; rc = 0; tmp = ldv__builtin_expect((unsigned long )ocapa == (unsigned long )((struct obd_capa *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; __msg_data.msg_fn = "ll_update_capa"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 526; __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 *)"ocapa"); lbug_with_loc(& __msg_data); } else { } tmp___2 = IS_ERR((void const *)capa); if ((int )tmp___2) { tmp___0 = PTR_ERR((void const *)capa); rc = (int )tmp___0; spin_lock(& capa_lock); if (rc == -2) { if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 128U) != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata.msg_fn = "ll_update_capa"; msgdata.msg_subsys = 128; msgdata.msg_line = 534; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 134217728; _debug_capa(& ocapa->c_capa, & msgdata, "renewal canceled because object removed"); } else { } ll_capa_renewal_noent = ll_capa_renewal_noent + 1ULL; } else { ll_capa_renewal_failed = ll_capa_renewal_failed + 1ULL; if (rc == -5) { tmp___1 = capa_is_expired(ocapa); if (tmp___1 == 0) { delay_capa_renew(ocapa, 120UL); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata___0.msg_fn = "ll_update_capa"; msgdata___0.msg_subsys = 128; msgdata___0.msg_line = 544; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 131072; _debug_capa(& ocapa->c_capa, & msgdata___0, "renewal failed: -EIO, retry in 2 mins"); ll_capa_renewal_retries = ll_capa_renewal_retries + 1ULL; goto retry; } else { goto _L; } } else { _L: /* CIL Label */ 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata___1.msg_fn = "ll_update_capa"; msgdata___1.msg_subsys = 128; msgdata___1.msg_line = 549; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 131072; _debug_capa(& ocapa->c_capa, & msgdata___1, "renewal failed(rc: %d) for", rc); } } list_del_init(& ocapa->c_list); sort_add_capa(ocapa, & ll_idle_capas); spin_unlock(& capa_lock); capa_put(ocapa); iput(inode); return (rc); } else { } spin_lock(& ocapa->c_lock); tmp___3 = memcmp((void const *)(& ocapa->c_capa), (void const *)capa, 16UL); tmp___4 = ldv__builtin_expect(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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; __msg_data___0.msg_fn = "ll_update_capa"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 564; __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 *)"!memcmp(&ocapa->c_capa, capa, __builtin_offsetof(struct lustre_capa, lc_opc))"); lbug_with_loc(& __msg_data___0); } else { } ocapa->c_capa = *capa; set_capa_expiry(ocapa); spin_unlock(& ocapa->c_lock); spin_lock(& capa_lock); tmp___5 = capa_for_oss(capa); if (tmp___5 != 0) { inode_add_oss_capa(inode, ocapa); } else { } if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 128U) != 0U) { 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata___2.msg_fn = "ll_update_capa"; msgdata___2.msg_subsys = 128; msgdata___2.msg_line = 572; msgdata___2.msg_mask = 0; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 134217728; _debug_capa(capa, & msgdata___2, "renew"); } else { } retry: list_del_init(& ocapa->c_list); sort_add_capa(ocapa, ll_capa_list); tmp___6 = capa_renewal_time(ocapa); update_capa_timer(ocapa, tmp___6); spin_unlock(& capa_lock); capa_put(ocapa); iput(inode); return (rc); } } void ll_capa_open(struct inode *inode ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ll_sb_info *tmp___0 ; { tmp = ll_i2info(inode); lli = tmp; tmp___0 = ll_i2sbi(inode); if ((tmp___0->ll_flags & 384) == 0) { return; } else { } if (((int )inode->i_mode & 61440) != 32768) { return; } else { } atomic_inc(& lli->lli_open_count); return; } } void ll_capa_close(struct inode *inode ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ll_sb_info *tmp___0 ; { tmp = ll_i2info(inode); lli = tmp; tmp___0 = ll_i2sbi(inode); if ((tmp___0->ll_flags & 384) == 0) { return; } else { } if (((int )inode->i_mode & 61440) != 32768) { return; } else { } atomic_dec(& lli->lli_open_count); return; } } void ll_truncate_free_capa(struct obd_capa *ocapa ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; long tmp___0 ; { if ((unsigned long )ocapa == (unsigned long )((struct obd_capa *)0)) { return; } else { } tmp = ldv__builtin_expect((ocapa->c_capa.lc_opc & 128ULL) == 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; __msg_data.msg_fn = "ll_truncate_free_capa"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 618; __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 *)"ocapa->c_capa.lc_opc & CAPA_OPC_OSS_TRUNC"); lbug_with_loc(& __msg_data); } else { } if ((libcfs_debug & 134217728U) != 0U && (libcfs_subsystem_debug & 128U) != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata.msg_fn = "ll_truncate_free_capa"; msgdata.msg_subsys = 128; msgdata.msg_line = 619; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 134217728; _debug_capa(& ocapa->c_capa, & msgdata, "free truncate"); } else { } capa_put(ocapa); tmp___0 = ldv__builtin_expect(ocapa->c_capa.lc_opc == 128ULL, 1L); if (tmp___0 != 0L) { spin_lock(& capa_lock); ll_delete_capa(ocapa); spin_unlock(& capa_lock); } else { } return; } } void ll_clear_inode_capas(struct inode *inode ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct obd_capa *ocapa ; struct obd_capa *tmp___0 ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; { tmp = ll_i2info(inode); lli = tmp; spin_lock(& capa_lock); ocapa = lli->lli_mds_capa; if ((unsigned long )ocapa != (unsigned long )((struct obd_capa *)0)) { ll_delete_capa(ocapa); } else { } __mptr = (struct list_head const *)lli->lli_oss_capas.next; ocapa = (struct obd_capa *)__mptr + 0xffffffffffffff10UL; __mptr___0 = (struct list_head const *)ocapa->u.cli.lli_list.next; tmp___0 = (struct obd_capa *)__mptr___0 + 0xffffffffffffff10UL; goto ldv_68473; ldv_68472: ll_delete_capa(ocapa); ocapa = tmp___0; __mptr___1 = (struct list_head const *)tmp___0->u.cli.lli_list.next; tmp___0 = (struct obd_capa *)__mptr___1 + 0xffffffffffffff10UL; ldv_68473: ; if ((unsigned long )(& ocapa->u.cli.lli_list) != (unsigned long )(& lli->lli_oss_capas)) { goto ldv_68472; } else { } spin_unlock(& capa_lock); return; } } void ll_print_capa_stat(struct ll_sb_info *sbi ) { struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; { if ((sbi->ll_flags & 384) != 0) { tmp = cfs_cdebug_show(33554432U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/llite_capa.c"; msgdata.msg_fn = "ll_print_capa_stat"; msgdata.msg_line = 654; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 33554432; libcfs_debug_msg(& msgdata, "Fid capabilities renewed: %llu\nFid capabilities renewal ENOENT: %llu\nFid capabilities failed to renew: %llu\nFid capabilities renewal retries: %llu\n", ll_capa_renewed, ll_capa_renewal_noent, ll_capa_renewal_failed, ll_capa_renewal_retries); } else { } } else { } return; } } int ldv_pskb_expand_head_553(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_555(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_557(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_558(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_559(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_560(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_561(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_562(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_563(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); } } int ldv_mod_timer_565(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) { ldv_func_ret_type___2 ldv_func_res ; int tmp ; { tmp = mod_timer(ldv_func_arg1, ldv_func_arg2); ldv_func_res = tmp; activate_pending_timer_1(ldv_func_arg1, ldv_func_arg2, 1); return (ldv_func_res); } } __inline static long ldv__builtin_expect(long exp , long c ) ; extern void warn_slowpath_null(char const * , int const ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; __inline static void __preempt_count_add(int val ) { int pao_ID__ ; { pao_ID__ = 0; switch (4UL) { case 1UL: ; if (pao_ID__ == 1) { __asm__ ("incb %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decb %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addb %1, %%gs:%0": "+m" (__preempt_count): "qi" (val)); } goto ldv_6163; case 2UL: ; if (pao_ID__ == 1) { __asm__ ("incw %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decw %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addw %1, %%gs:%0": "+m" (__preempt_count): "ri" (val)); } goto ldv_6163; case 4UL: ; if (pao_ID__ == 1) { __asm__ ("incl %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decl %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addl %1, %%gs:%0": "+m" (__preempt_count): "ri" (val)); } goto ldv_6163; case 8UL: ; if (pao_ID__ == 1) { __asm__ ("incq %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decq %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addq %1, %%gs:%0": "+m" (__preempt_count): "re" (val)); } goto ldv_6163; default: __bad_percpu_size(); } ldv_6163: ; return; } } __inline static void __preempt_count_sub(int val ) { int pao_ID__ ; { pao_ID__ = 0; switch (4UL) { case 1UL: ; if (pao_ID__ == 1) { __asm__ ("incb %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decb %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addb %1, %%gs:%0": "+m" (__preempt_count): "qi" (- val)); } goto ldv_6175; case 2UL: ; if (pao_ID__ == 1) { __asm__ ("incw %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decw %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addw %1, %%gs:%0": "+m" (__preempt_count): "ri" (- val)); } goto ldv_6175; case 4UL: ; if (pao_ID__ == 1) { __asm__ ("incl %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decl %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addl %1, %%gs:%0": "+m" (__preempt_count): "ri" (- val)); } goto ldv_6175; case 8UL: ; if (pao_ID__ == 1) { __asm__ ("incq %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decq %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addq %1, %%gs:%0": "+m" (__preempt_count): "re" (- val)); } goto ldv_6175; default: __bad_percpu_size(); } ldv_6175: ; return; } } struct writeback_control *ll_aops_group3 ; struct address_space *ll_aops_group1 ; struct page *ll_aops_group0 ; int ldv_state_variable_49 ; struct file *ll_aops_group2 ; void ldv_initialize_address_space_operations_49(void) ; __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); } } extern int __set_page_dirty_nobuffers(struct page * ) ; extern int set_page_dirty(struct page * ) ; extern int set_page_dirty_lock(struct page * ) ; __inline static void pagefault_disabled_inc(void) { struct task_struct *tmp ; { tmp = get_current(); tmp->pagefault_disabled = tmp->pagefault_disabled + 1; return; } } __inline static void pagefault_disabled_dec(void) { struct task_struct *tmp ; int __ret_warn_on ; struct task_struct *tmp___0 ; long tmp___1 ; { tmp = get_current(); tmp->pagefault_disabled = tmp->pagefault_disabled - 1; tmp___0 = get_current(); __ret_warn_on = tmp___0->pagefault_disabled < 0; tmp___1 = ldv__builtin_expect(__ret_warn_on != 0, 0L); if (tmp___1 != 0L) { warn_slowpath_null("include/linux/uaccess.h", 15); } else { } ldv__builtin_expect(__ret_warn_on != 0, 0L); return; } } __inline static void pagefault_disable(void) { { pagefault_disabled_inc(); __asm__ volatile ("": : : "memory"); return; } } __inline static void pagefault_enable(void) { { __asm__ volatile ("": : : "memory"); pagefault_disabled_dec(); return; } } __inline static void *kmap_atomic(struct page *page ) { void *tmp ; { __preempt_count_add(1); __asm__ volatile ("": : : "memory"); pagefault_disable(); tmp = lowmem_page_address((struct page const *)page); return (tmp); } } __inline static void __kunmap_atomic(void *addr ) { { pagefault_enable(); __asm__ volatile ("": : : "memory"); __preempt_count_sub(1); return; } } extern struct page *grab_cache_page_write_begin(struct address_space * , unsigned long , unsigned int ) ; extern void iov_iter_advance(struct iov_iter * , size_t ) ; extern unsigned long iov_iter_alignment(struct iov_iter const * ) ; extern ssize_t iov_iter_get_pages_alloc(struct iov_iter * , struct page *** , size_t , size_t * ) ; struct sk_buff *ldv_skb_clone_594(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_602(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_596(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_592(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_600(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_601(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_597(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_598(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_599(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; extern void lov_stripe_lock(struct lov_stripe_md * ) ; extern void lov_stripe_unlock(struct lov_stripe_md * ) ; __inline static int obd_adjust_kms(struct obd_export *exp , struct lov_stripe_md *lsm , u64 size , int shrink ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "obd_adjust_kms"; msgdata.msg_line = 1214; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_adjust_kms: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "obd_adjust_kms"; msgdata___0.msg_line = 1214; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_adjust_kms: 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_adjust_kms == (unsigned long )((int (*)(struct obd_export * , struct lov_stripe_md * , u64 , int ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "obd_adjust_kms"; msgdata___1.msg_line = 1214; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_adjust_kms: 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 + 29U; 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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "obd_adjust_kms"; __msg_data.msg_subsys = 128; __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 *)"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_adjust_kms))(exp, lsm, size, shrink); return (rc); } } __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/llite/../include/cl_object.h"; __msg_data.msg_fn = "__page_in_use"; __msg_data.msg_subsys = 128; __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); } } extern struct page *cl_page_vmpage(struct lu_env const * , struct cl_page * ) ; extern struct cl_page *cl_vmpage_page(struct page * , struct cl_object * ) ; extern int cl_page_own(struct lu_env const * , struct cl_io * , struct cl_page * ) ; extern void cl_page_clip(struct lu_env const * , struct cl_page * , int , int ) ; extern unsigned long cl_index(struct cl_object const * , loff_t ) ; extern int cl_page_size(struct cl_object const * ) ; extern int cl_io_submit_sync(struct lu_env const * , struct cl_io * , enum cl_req_type , struct cl_2queue * , long ) ; extern void cl_2queue_init(struct cl_2queue * ) ; extern void cl_2queue_add(struct cl_2queue * , struct cl_page * ) ; extern void cl_2queue_disown(struct lu_env const * , struct cl_io * , struct cl_2queue * ) ; extern void cl_2queue_discard(struct lu_env const * , struct cl_io * , struct cl_2queue * ) ; extern void cl_2queue_fini(struct lu_env const * , struct cl_2queue * ) ; ssize_t ll_direct_rw_pages(struct lu_env const *env , struct cl_io *io , int rw , struct inode *inode , struct ll_dio_pages *pv ) ; static void ll_invalidatepage(struct page *vmpage , unsigned int offset , unsigned int length ) { struct inode *inode ; struct lu_env *env ; struct cl_page *page ; struct cl_object *obj ; int refcheck ; 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 ll_inode_info *tmp___3 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___4 ; bool tmp___5 ; int tmp___6 ; { tmp = PageLocked((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw26.c"; __msg_data.msg_fn = "ll_invalidatepage"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 82; __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 *)"PageLocked(vmpage)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = PageWriteback((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw26.c"; __msg_data___0.msg_fn = "ll_invalidatepage"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 83; __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 *)"!PageWriteback(vmpage)"); lbug_with_loc(& __msg_data___0); } else { } if (offset == 0U && length == 4096U) { env = cl_env_get(& refcheck); tmp___5 = IS_ERR((void const *)env); if (tmp___5) { tmp___6 = 0; } else { tmp___6 = 1; } if (tmp___6) { inode = (vmpage->__annonCompField36.mapping)->host; tmp___3 = ll_i2info(inode); obj = tmp___3->lli_clob; if ((unsigned long )obj != (unsigned long )((struct cl_object *)0)) { page = cl_vmpage_page(vmpage, obj); if ((unsigned long )page != (unsigned long )((struct cl_page *)0)) { lu_ref_add(& page->cp_reference, "delete", (void const *)vmpage); cl_page_delete((struct lu_env const *)env, page); lu_ref_del(& page->cp_reference, "delete", (void const *)vmpage); cl_page_put((struct lu_env const *)env, page); } else { } } else { tmp___4 = ldv__builtin_expect(vmpage->__annonCompField46.private != 0UL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw26.c"; __msg_data___1.msg_fn = "ll_invalidatepage"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 106; __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 *)"vmpage->private == 0"); lbug_with_loc(& __msg_data___1); } else { } } cl_env_put(env, & refcheck); } else { } } else { } return; } } static int ll_releasepage(struct page *vmpage , gfp_t gfp_mask ) { struct cl_env_nest nest ; struct lu_env *env ; struct cl_object *obj ; struct cl_page *page ; struct address_space *mapping ; int result ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; int tmp___1 ; int tmp___2 ; struct ll_inode_info *tmp___3 ; int tmp___4 ; bool tmp___5 ; int tmp___6 ; { tmp = PageLocked((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw26.c"; __msg_data.msg_fn = "ll_releasepage"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 126; __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 *)"PageLocked(vmpage)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = PageWriteback((struct page const *)vmpage); if (tmp___1 != 0) { return (0); } else { tmp___2 = PageDirty((struct page const *)vmpage); if (tmp___2 != 0) { return (0); } else { } } mapping = vmpage->__annonCompField36.mapping; if ((unsigned long )mapping == (unsigned long )((struct address_space *)0)) { return (1); } else { } tmp___3 = ll_i2info(mapping->host); obj = tmp___3->lli_clob; if ((unsigned long )obj == (unsigned long )((struct cl_object *)0)) { return (1); } else { } tmp___4 = page_count(vmpage); if (tmp___4 > 3) { return (0); } else { } env = cl_env_nested_get(& nest); tmp___5 = IS_ERR((void const *)env); if ((int )tmp___5) { return (0); } else { } page = cl_vmpage_page(vmpage, obj); result = (unsigned long )page == (unsigned long )((struct cl_page *)0); if ((unsigned long )page != (unsigned long )((struct cl_page *)0)) { tmp___6 = __page_in_use((struct cl_page const *)page, 1); if (tmp___6 == 0) { result = 1; cl_page_delete((struct lu_env const *)env, page); } else { } cl_page_put((struct lu_env const *)env, page); } else { } cl_env_nested_put(& nest, env); return (result); } } static int ll_set_page_dirty(struct page *vmpage ) { int tmp ; { tmp = __set_page_dirty_nobuffers(vmpage); return (tmp); } } static void ll_free_user_pages(struct page **pages , int npages , int do_dirty ) { int i ; { i = 0; goto ldv_68868; ldv_68867: ; if (do_dirty != 0) { set_page_dirty_lock(*(pages + (unsigned long )i)); } else { } put_page(*(pages + (unsigned long )i)); i = i + 1; ldv_68868: ; if (i < npages) { goto ldv_68867; } else { } kvfree((void const *)pages); return; } } ssize_t ll_direct_rw_pages(struct lu_env const *env , struct cl_io *io , int rw , struct inode *inode , struct ll_dio_pages *pv ) { struct cl_page *clp ; struct cl_2queue *queue ; struct cl_object *obj ; int i ; ssize_t rc ; loff_t file_offset ; long size ; int page_count___0 ; struct page **pages ; long page_size ; int tmp ; bool do_io ; int io_pages ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; unsigned long tmp___1 ; bool tmp___2 ; int tmp___3 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___4 ; struct page *vmpage ; struct page *tmp___5 ; struct page *src_page ; struct page *dst_page ; void *src ; void *dst ; long _min1 ; long _min2 ; long _min1___0 ; long _min2___0 ; long tmp___6 ; int tmp___7 ; { obj = io->ci_obj; rc = 0L; file_offset = pv->ldp_start_offset; size = (long )pv->ldp_size; page_count___0 = pv->ldp_nr; pages = pv->ldp_pages; tmp = cl_page_size((struct cl_object const *)obj); page_size = (long )tmp; io_pages = 0; queue = & io->ci_queue; cl_2queue_init(queue); i = 0; goto ldv_68905; ldv_68904: ; if ((unsigned long )pv->ldp_offsets != (unsigned long )((loff_t *)0LL)) { file_offset = *(pv->ldp_offsets + (unsigned long )i); } else { } tmp___0 = ldv__builtin_expect(((long long )(page_size + -1L) & file_offset) != 0LL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw26.c"; __msg_data.msg_fn = "ll_direct_rw_pages"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 251; __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 *)"!(file_offset & (page_size - 1))"); lbug_with_loc(& __msg_data); } else { } tmp___1 = cl_index((struct cl_object const *)obj, file_offset); clp = cl_page_find(env, obj, tmp___1, *(pv->ldp_pages + (unsigned long )i), 2); tmp___2 = IS_ERR((void const *)clp); if ((int )tmp___2) { rc = PTR_ERR((void const *)clp); goto ldv_68891; } else { } tmp___3 = cl_page_own(env, io, clp); rc = (ssize_t )tmp___3; if (rc != 0L) { tmp___4 = ldv__builtin_expect((unsigned int )clp->cp_state != 4U, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw26.c"; __msg_data___0.msg_fn = "ll_direct_rw_pages"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 261; __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 *)"clp->cp_state == CPS_FREEING"); lbug_with_loc(& __msg_data___0); } else { } cl_page_put(env, clp); goto ldv_68891; } else { } do_io = 1; if ((unsigned int )clp->cp_type == 1U) { tmp___5 = cl_page_vmpage(env, clp); vmpage = tmp___5; src_page = rw == 1 ? *(pages + (unsigned long )i) : vmpage; dst_page = rw != 1 ? *(pages + (unsigned long )i) : vmpage; src = kmap_atomic(src_page); dst = kmap_atomic(dst_page); _min1 = page_size; _min2 = size; memcpy(dst, (void const *)src, (size_t )(_min1 < _min2 ? _min1 : _min2)); __kunmap_atomic(dst); __kunmap_atomic(src); if (rw == 1) { set_page_dirty(vmpage); } else { } if (rw == 0) { cl_page_disown(env, io, clp); do_io = 0; } else { } } else { } tmp___6 = ldv__builtin_expect((long )do_io, 1L); if (tmp___6 != 0L) { cl_2queue_add(queue, clp); _min1___0 = size; _min2___0 = page_size; cl_page_clip(env, clp, 0, (int )(_min1___0 < _min2___0 ? _min1___0 : _min2___0)); io_pages = io_pages + 1; } else { } cl_page_put(env, clp); size = size - page_size; file_offset = file_offset + (long long )page_size; i = i + 1; ldv_68905: ; if (i < page_count___0) { goto ldv_68904; } else { } ldv_68891: ; if (rc == 0L && io_pages != 0) { tmp___7 = cl_io_submit_sync(env, io, rw != 0, queue, 0L); rc = (ssize_t )tmp___7; } else { } if (rc == 0L) { rc = (ssize_t )pv->ldp_size; } else { } cl_2queue_discard(env, io, queue); cl_2queue_disown(env, io, queue); cl_2queue_fini(env, queue); return (rc); } } static char const __kstrtab_ll_direct_rw_pages[19U] = { 'l', 'l', '_', 'd', 'i', 'r', 'e', 'c', 't', '_', 'r', 'w', '_', 'p', 'a', 'g', 'e', 's', '\000'}; struct kernel_symbol const __ksymtab_ll_direct_rw_pages ; struct kernel_symbol const __ksymtab_ll_direct_rw_pages = {(unsigned long )(& ll_direct_rw_pages), (char const *)(& __kstrtab_ll_direct_rw_pages)}; static ssize_t ll_direct_IO_26_seg(struct lu_env const *env , struct cl_io *io , int rw , struct inode *inode , struct address_space *mapping , size_t size , loff_t file_offset , struct page **pages , int page_count___0 ) { struct ll_dio_pages pvec ; ssize_t tmp ; { pvec.ldp_pages = pages; pvec.ldp_offsets = (loff_t *)0LL; pvec.ldp_start_offset = file_offset; pvec.ldp_size = size; pvec.ldp_nr = page_count___0; tmp = ll_direct_rw_pages(env, io, rw, inode, & pvec); return (tmp); } } static ssize_t ll_direct_IO_26(struct kiocb *iocb , struct iov_iter *iter , loff_t file_offset ) { struct lu_env *env ; struct cl_io *io ; struct file *file ; struct inode *inode ; struct ccc_object *obj ; struct ccc_object *tmp ; ssize_t count ; size_t tmp___0 ; ssize_t tot_bytes ; ssize_t result ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___1 ; long size ; int refcheck ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; unsigned long tmp___3 ; struct libcfs_debug_msg_data __msg_data ; bool tmp___4 ; long tmp___5 ; struct ccc_io *tmp___6 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___7 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___8 ; struct page **pages ; size_t offs ; size_t __min1 ; size_t tmp___9 ; size_t __min2 ; loff_t tmp___10 ; loff_t tmp___11 ; loff_t tmp___12 ; int n ; long tmp___13 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___14 ; long tmp___15 ; size_t tmp___16 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___17 ; struct lov_stripe_md *lsm ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___18 ; struct obd_export *tmp___19 ; { file = iocb->ki_filp; inode = (file->f_mapping)->host; tmp = cl_inode2ccc(inode); obj = tmp; tmp___0 = iov_iter_count(iter); count = (ssize_t )tmp___0; tot_bytes = 0L; result = 0L; tmp___1 = ll_i2info(inode); lli = tmp___1; size = 1430257664L; if (! lli->lli_has_smd) { return (-9L); } else { } if (((unsigned long long )file_offset & 4095ULL) != 0ULL || ((unsigned long long )count & 4095ULL) != 0ULL) { return (-22L); } else { } tmp___2 = cfs_cdebug_show(2097152U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw26.c"; msgdata.msg_fn = "ll_direct_IO_26"; msgdata.msg_line = 387; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "VFS Op:inode=%lu/%u(%p), size=%zd (max %lu), offset=%lld=%llx, pages %zd (max %lu)\n", inode->i_ino, inode->i_generation, inode, count, 1430257664UL, file_offset, file_offset, count >> 12, 349184UL); } else { } tmp___3 = iov_iter_alignment((struct iov_iter const *)iter); if (((unsigned long long )tmp___3 & 4095ULL) != 0ULL) { return (-22L); } else { } env = cl_env_get(& refcheck); tmp___4 = IS_ERR((void const *)env); tmp___5 = ldv__builtin_expect((long )tmp___4, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw26.c"; __msg_data.msg_fn = "ll_direct_IO_26"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 394; __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 *)"!IS_ERR(env)"); lbug_with_loc(& __msg_data); } else { } tmp___6 = ccc_env_io((struct lu_env const *)env); io = tmp___6->cui_cl.cis_io; tmp___7 = ldv__builtin_expect((unsigned long )io == (unsigned long )((struct cl_io *)0), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw26.c"; __msg_data___0.msg_fn = "ll_direct_IO_26"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 396; __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 { } if (((unsigned long long )iter->type & 1ULL) == 0ULL) { mutex_lock_nested(& inode->i_mutex, 0U); } else { } tmp___8 = ldv__builtin_expect(obj->cob_transient_pages != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw26.c"; __msg_data___1.msg_fn = "ll_direct_IO_26"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 405; __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 *)"obj->cob_transient_pages == 0"); lbug_with_loc(& __msg_data___1); } else { } goto ldv_68958; ldv_68960: tmp___9 = iov_iter_count(iter); __min1 = tmp___9; __min2 = (size_t )size; count = (ssize_t )(__min1 < __min2 ? __min1 : __min2); if (((unsigned long long )iter->type & 1ULL) == 0ULL) { tmp___10 = i_size_read((struct inode const *)inode); if (tmp___10 <= file_offset) { goto ldv_68955; } else { } tmp___12 = i_size_read((struct inode const *)inode); if (file_offset + (long long )count > tmp___12) { tmp___11 = i_size_read((struct inode const *)inode); count = (ssize_t )(tmp___11 - file_offset); } else { } } else { } result = iov_iter_get_pages_alloc(iter, & pages, (size_t )count, & offs); tmp___13 = ldv__builtin_expect(result > 0L, 1L); if (tmp___13 != 0L) { n = (int )((((unsigned long )result + offs) + 4095UL) / 4096UL); result = ll_direct_IO_26_seg((struct lu_env const *)env, io, iter->type & 1, inode, file->f_mapping, (size_t )result, file_offset, pages, n); ll_free_user_pages(pages, n, ((unsigned long long )iter->type & 1ULL) == 0ULL); } else { } tmp___15 = ldv__builtin_expect(result <= 0L, 0L); if (tmp___15 != 0L) { if (result == -12L && (unsigned long )size > 2097152UL) { size = (long )(((unsigned long long )(size / 2L + -1L) | 4095ULL) + 1ULL) & -4096L; tmp___14 = cfs_cdebug_show(2097152U, 128U); if (tmp___14 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw26.c"; msgdata___0.msg_fn = "ll_direct_IO_26"; msgdata___0.msg_line = 440; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 2097152; libcfs_debug_msg(& msgdata___0, "DIO size now %lu\n", size); } else { } goto ldv_68958; } else { } goto out; } else { } iov_iter_advance(iter, (size_t )result); tot_bytes = tot_bytes + result; file_offset = file_offset + (long long )result; ldv_68958: tmp___16 = iov_iter_count(iter); if (tmp___16 != 0UL) { goto ldv_68960; } else { } ldv_68955: ; out: tmp___17 = ldv__builtin_expect(obj->cob_transient_pages != 0, 0L); if (tmp___17 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw26.c"; __msg_data___2.msg_fn = "ll_direct_IO_26"; __msg_data___2.msg_subsys = 128; __msg_data___2.msg_line = 451; __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 *)"obj->cob_transient_pages == 0"); lbug_with_loc(& __msg_data___2); } else { } if (((unsigned long long )iter->type & 1ULL) == 0ULL) { mutex_unlock(& inode->i_mutex); } else { } if (tot_bytes > 0L) { if (iter->type & 1) { lsm = ccc_inode_lsm_get(inode); tmp___18 = ldv__builtin_expect((unsigned long )lsm == (unsigned long )((struct lov_stripe_md *)0), 0L); if (tmp___18 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/rw26.c"; __msg_data___3.msg_fn = "ll_direct_IO_26"; __msg_data___3.msg_subsys = 128; __msg_data___3.msg_line = 460; __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 *)"lsm != ((void *)0)"); lbug_with_loc(& __msg_data___3); } else { } lov_stripe_lock(lsm); tmp___19 = ll_i2dtexp(inode); obd_adjust_kms(tmp___19, lsm, (u64 )file_offset, 0); lov_stripe_unlock(lsm); ccc_inode_lsm_put(inode, lsm); } else { } } else { } cl_env_put(env, & refcheck); return (tot_bytes != 0L ? tot_bytes != 0L : result); } } static int ll_write_begin(struct file *file , struct address_space *mapping , loff_t pos , unsigned int len , unsigned int flags , struct page **pagep , void **fsdata ) { unsigned long index ; struct page *page ; int rc ; unsigned int from ; { index = (unsigned long )(pos >> 12); from = (unsigned int )pos & 4095U; page = grab_cache_page_write_begin(mapping, index, flags); if ((unsigned long )page == (unsigned long )((struct page *)0)) { return (-12); } else { } *pagep = page; rc = ll_prepare_write(file, page, from, from + len); if (rc != 0) { unlock_page(page); put_page(page); } else { } return (rc); } } static int ll_write_end(struct file *file , struct address_space *mapping , loff_t pos , unsigned int len , unsigned int copied , struct page *page , void *fsdata ) { unsigned int from ; int rc ; { from = (unsigned int )pos & 4095U; rc = ll_commit_write(file, page, from, from + copied); unlock_page(page); put_page(page); return (rc != 0 ? rc != 0 : (int )copied); } } static int ll_migratepage(struct address_space *mapping , struct page *newpage , struct page *page , enum migrate_mode mode ) { { return (-5); } } struct address_space_operations const ll_aops = {& ll_writepage, & ll_readpage, & ll_writepages, & ll_set_page_dirty, 0, & ll_write_begin, & ll_write_end, 0, & ll_invalidatepage, & ll_releasepage, 0, & ll_direct_IO_26, & ll_migratepage, 0, 0, 0, 0, 0, 0}; extern int ldv_probe_49(void) ; extern int ldv_release_49(void) ; void ldv_initialize_address_space_operations_49(void) { void *tmp ; void *tmp___1 ; void *tmp___2 ; { tmp = ldv_init_zalloc(408UL); ll_aops_group1 = (struct address_space *)tmp; ll_aops_group2 = ldv_malloc(sizeof(struct file)); tmp___1 = ldv_init_zalloc(64UL); ll_aops_group0 = (struct page *)tmp___1; tmp___2 = ldv_init_zalloc(96UL); ll_aops_group3 = (struct writeback_control *)tmp___2; return; } } void ldv_main_exported_49(void) { unsigned int ldvarg130 ; struct page **ldvarg129 ; void *tmp ; void **ldvarg132 ; void *tmp___0 ; unsigned int ldvarg133 ; struct iov_iter *ldvarg124 ; void *tmp___1 ; void *ldvarg127 ; void *tmp___2 ; unsigned int ldvarg125 ; enum migrate_mode ldvarg120 ; unsigned int ldvarg135 ; loff_t ldvarg123 ; unsigned int ldvarg136 ; loff_t ldvarg126 ; unsigned int ldvarg128 ; struct kiocb *ldvarg122 ; void *tmp___3 ; gfp_t ldvarg134 ; loff_t ldvarg131 ; struct page *ldvarg121 ; void *tmp___4 ; int tmp___5 ; { tmp = ldv_init_zalloc(8UL); ldvarg129 = (struct page **)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg132 = (void **)tmp___0; tmp___1 = ldv_init_zalloc(40UL); ldvarg124 = (struct iov_iter *)tmp___1; tmp___2 = ldv_init_zalloc(1UL); ldvarg127 = tmp___2; tmp___3 = ldv_init_zalloc(40UL); ldvarg122 = (struct kiocb *)tmp___3; tmp___4 = ldv_init_zalloc(64UL); ldvarg121 = (struct page *)tmp___4; ldv_memset((void *)(& ldvarg130), 0, 4UL); ldv_memset((void *)(& ldvarg133), 0, 4UL); ldv_memset((void *)(& ldvarg125), 0, 4UL); ldv_memset((void *)(& ldvarg120), 0, 4UL); ldv_memset((void *)(& ldvarg135), 0, 4UL); ldv_memset((void *)(& ldvarg123), 0, 8UL); ldv_memset((void *)(& ldvarg136), 0, 4UL); ldv_memset((void *)(& ldvarg126), 0, 8UL); ldv_memset((void *)(& ldvarg128), 0, 4UL); ldv_memset((void *)(& ldvarg134), 0, 4UL); ldv_memset((void *)(& ldvarg131), 0, 8UL); tmp___5 = __VERIFIER_nondet_int(); switch (tmp___5) { case 0: ; if (ldv_state_variable_49 == 2) { ll_readpage(ll_aops_group2, ll_aops_group0); ldv_state_variable_49 = 2; } else { } goto ldv_69023; case 1: ; if (ldv_state_variable_49 == 1) { ll_invalidatepage(ll_aops_group0, ldvarg136, ldvarg135); ldv_state_variable_49 = 1; } else { } if (ldv_state_variable_49 == 2) { ll_invalidatepage(ll_aops_group0, ldvarg136, ldvarg135); ldv_state_variable_49 = 2; } else { } goto ldv_69023; case 2: ; if (ldv_state_variable_49 == 1) { ll_releasepage(ll_aops_group0, ldvarg134); ldv_state_variable_49 = 1; } else { } if (ldv_state_variable_49 == 2) { ll_releasepage(ll_aops_group0, ldvarg134); ldv_state_variable_49 = 2; } else { } goto ldv_69023; case 3: ; if (ldv_state_variable_49 == 2) { ll_writepage(ll_aops_group0, ll_aops_group3); ldv_state_variable_49 = 2; } else { } goto ldv_69023; case 4: ; if (ldv_state_variable_49 == 1) { ll_write_begin(ll_aops_group2, ll_aops_group1, ldvarg131, ldvarg130, ldvarg133, ldvarg129, ldvarg132); ldv_state_variable_49 = 1; } else { } if (ldv_state_variable_49 == 2) { ll_write_begin(ll_aops_group2, ll_aops_group1, ldvarg131, ldvarg130, ldvarg133, ldvarg129, ldvarg132); ldv_state_variable_49 = 2; } else { } goto ldv_69023; case 5: ; if (ldv_state_variable_49 == 1) { ll_write_end(ll_aops_group2, ll_aops_group1, ldvarg126, ldvarg125, ldvarg128, ll_aops_group0, ldvarg127); ldv_state_variable_49 = 1; } else { } if (ldv_state_variable_49 == 2) { ll_write_end(ll_aops_group2, ll_aops_group1, ldvarg126, ldvarg125, ldvarg128, ll_aops_group0, ldvarg127); ldv_state_variable_49 = 2; } else { } goto ldv_69023; case 6: ; if (ldv_state_variable_49 == 1) { ll_writepages(ll_aops_group1, ll_aops_group3); ldv_state_variable_49 = 1; } else { } if (ldv_state_variable_49 == 2) { ll_writepages(ll_aops_group1, ll_aops_group3); ldv_state_variable_49 = 2; } else { } goto ldv_69023; case 7: ; if (ldv_state_variable_49 == 1) { ll_direct_IO_26(ldvarg122, ldvarg124, ldvarg123); ldv_state_variable_49 = 1; } else { } if (ldv_state_variable_49 == 2) { ll_direct_IO_26(ldvarg122, ldvarg124, ldvarg123); ldv_state_variable_49 = 2; } else { } goto ldv_69023; case 8: ; if (ldv_state_variable_49 == 1) { ll_migratepage(ll_aops_group1, ll_aops_group0, ldvarg121, ldvarg120); ldv_state_variable_49 = 1; } else { } if (ldv_state_variable_49 == 2) { ll_migratepage(ll_aops_group1, ll_aops_group0, ldvarg121, ldvarg120); ldv_state_variable_49 = 2; } else { } goto ldv_69023; case 9: ; if (ldv_state_variable_49 == 1) { ll_set_page_dirty(ll_aops_group0); ldv_state_variable_49 = 1; } else { } if (ldv_state_variable_49 == 2) { ll_set_page_dirty(ll_aops_group0); ldv_state_variable_49 = 2; } else { } goto ldv_69023; case 10: ; if (ldv_state_variable_49 == 2) { ldv_release_49(); ldv_state_variable_49 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_69023; case 11: ; if (ldv_state_variable_49 == 1) { ldv_probe_49(); ldv_state_variable_49 = 2; ref_cnt = ref_cnt + 1; } else { } goto ldv_69023; default: ldv_stop(); } ldv_69023: ; return; } } int ldv_pskb_expand_head_592(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_594(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_596(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_597(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_598(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_599(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_600(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_601(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_602(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 ) ; bool ldv_is_err_or_null(void const *ptr ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR_OR_NULL(void const *ptr ) ; extern void do_gettimeofday(struct timeval * ) ; extern int del_timer(struct timer_list * ) ; int ldv_del_timer_642(struct timer_list *ldv_func_arg1 ) ; int ldv_del_timer_643(struct timer_list *ldv_func_arg1 ) ; extern void kset_unregister(struct kset * ) ; extern struct kset *kset_create_and_add(char const * , struct kset_uevent_ops const * , struct kobject * ) ; extern struct kmem_cache *kmem_cache_create(char const * , size_t , size_t , unsigned long , void (*)(void * ) ) ; extern void kmem_cache_destroy(struct kmem_cache * ) ; void *ldv_kmem_cache_alloc_641(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; struct super_block *lustre_export_operations_group0 ; struct kobject *lustre_attr_max_read_ahead_whole_mb_group0 ; struct dentry const *ll_d_ops_group0 ; int ldv_state_variable_47 ; struct lu_env const *vvp_page_ops_group0 ; struct lu_context const *ccc_key_group0 ; int ldv_state_variable_20 ; int ldv_timer_1_3 ; struct dentry *ll_file_inode_operations_group1 ; struct file *ll_max_cached_mb_fops_group2 ; int ldv_state_variable_30 ; int ldv_state_variable_0 ; int ldv_state_variable_45 ; int ldv_state_variable_12 ; struct lu_env const *ccc_req_ops_group0 ; struct inode *ll_file_operations_group1 ; struct dentry *ll_dir_inode_operations_group1 ; struct lu_context_key *vvp_key_group1 ; struct super_block *lustre_super_operations_group1 ; struct file *ll_rw_extents_stats_pp_fops_group2 ; struct lu_env const *vvp_transient_page_ops_group0 ; int ldv_state_variable_22 ; int ldv_state_variable_54 ; int ldv_state_variable_14 ; struct writeback_control *ll_aops_group3 ; int ldv_state_variable_37 ; int ldv_state_variable_29 ; int ldv_state_variable_17 ; int ldv_state_variable_51 ; struct cl_io_slice const *vvp_io_ops_group1 ; struct inode *ll_rw_offset_stats_fops_group1 ; struct lu_context const *vvp_session_key_group0 ; struct cl_req_slice const *ccc_req_ops_group1 ; struct kobject *lustre_attr_max_read_ahead_mb_group0 ; struct inode *ll_sbi_flags_fops_group1 ; int ldv_state_variable_19 ; struct inode *ll_file_operations_noflock_group1 ; int ldv_state_variable_27 ; int ldv_state_variable_9 ; struct file *ll_statahead_stats_fops_group2 ; struct file *vvp_dump_pgcache_file_ops_group2 ; struct kobject *lustre_attr_xattr_cache_group0 ; int ref_cnt ; int ldv_state_variable_42 ; int ldv_state_variable_7 ; struct dentry *lustre_export_operations_group2 ; int ldv_state_variable_23 ; int ldv_state_variable_55 ; struct inode *ll_site_stats_fops_group1 ; struct lu_object *vvp_lu_obj_ops_group1 ; struct file *ll_dir_operations_group2 ; struct cl_page_slice const *vvp_transient_page_ops_group2 ; struct file *ll_file_operations_noflock_group2 ; struct lu_env const *vvp_ops_group1 ; struct attribute *lustre_attr_lazystatfs_group1 ; struct inode *ll_dir_operations_group1 ; struct timer_list *ldv_timer_list_1_1 ; int ldv_state_variable_59 ; struct file *ll_file_operations_flock_group2 ; int ldv_state_variable_6 ; struct kobject *lustre_attr_statahead_max_group0 ; struct file *ll_sbi_flags_fops_group2 ; struct vm_fault *ll_file_vm_ops_group1 ; int ldv_timer_1_1 ; int ldv_state_variable_50 ; int ldv_state_variable_26 ; struct seq_file *vvp_pgcache_ops_group1 ; int ldv_state_variable_28 ; struct dentry *ll_fast_symlink_inode_operations_group1 ; struct file *ll_rw_extents_stats_fops_group2 ; struct inode *vvp_dump_pgcache_file_ops_group1 ; int ldv_state_variable_44 ; struct address_space *ll_aops_group1 ; int ldv_state_variable_38 ; int ldv_state_variable_58 ; int ldv_state_variable_39 ; int ldv_state_variable_56 ; struct lu_env const *vvp_device_type_ops_group2 ; int ldv_state_variable_3 ; struct attribute *lustre_attr_stats_track_gid_group1 ; int ldv_state_variable_31 ; int ldv_state_variable_52 ; struct file *ll_file_operations_group2 ; struct lu_device_type *vvp_device_type_ops_group0 ; int ldv_state_variable_4 ; struct attribute *lustre_attr_stats_track_pid_group1 ; struct kobject *lustre_attr_stats_track_ppid_group0 ; int ldv_state_variable_36 ; int ldv_state_variable_60 ; struct cl_page_slice const *vvp_io_ops_group2 ; int ldv_state_variable_8 ; int ldv_state_variable_46 ; int ldv_state_variable_15 ; struct attribute *lustre_attr_statahead_agl_group1 ; int ldv_state_variable_48 ; struct inode *lustre_super_operations_group0 ; struct dentry *ll_d_ops_group1 ; int ldv_state_variable_5 ; int ldv_state_variable_21 ; loff_t *vvp_pgcache_ops_group3 ; int ldv_state_variable_33 ; struct lu_context const *vvp_key_group0 ; int ldv_state_variable_13 ; struct lu_context_key *ccc_key_group1 ; struct file *ll_site_stats_fops_group2 ; struct dentry *ll_dir_inode_operations_group2 ; struct lu_env const *vvp_lock_ops_group1 ; struct inode *ll_rw_extents_stats_fops_group1 ; struct attribute *lustre_attr_checksum_pages_group1 ; struct inode *ll_statahead_stats_fops_group1 ; int ldv_timer_1_0 ; struct lu_env const *vvp_lu_obj_ops_group0 ; struct page *ll_aops_group0 ; int ldv_state_variable_49 ; struct inode *ll_rw_extents_stats_pp_fops_group1 ; struct lu_context_key *vvp_session_key_group1 ; int ldv_state_variable_24 ; struct cl_io *vvp_page_ops_group1 ; struct lu_context_key *ccc_session_key_group1 ; struct dentry *lustre_super_operations_group2 ; struct inode *ll_max_cached_mb_fops_group1 ; struct attribute *lustre_attr_max_read_ahead_per_file_mb_group1 ; struct attribute *lustre_attr_max_read_ahead_mb_group1 ; int ldv_state_variable_1 ; int ldv_state_variable_41 ; struct dentry *ll_special_inode_operations_group1 ; struct file *ll_rw_offset_stats_fops_group2 ; int ldv_state_variable_40 ; struct attribute *lustre_attr_xattr_cache_group1 ; struct cl_io *vvp_transient_page_ops_group1 ; struct timer_list *ldv_timer_list_1_3 ; int ldv_state_variable_10 ; struct lu_context const *ccc_session_key_group0 ; struct lu_env const *vvp_io_ops_group0 ; struct timer_list *ldv_timer_list_1_0 ; int ldv_timer_1_2 ; int ldv_state_variable_16 ; struct kobject *lustre_attr_stats_track_pid_group0 ; int ldv_state_variable_2 ; int ldv_state_variable_43 ; int ldv_state_variable_25 ; struct timer_list *ldv_timer_list_1_2 ; int ldv_state_variable_57 ; struct inode *ll_dir_inode_operations_group0 ; struct kobject *lustre_attr_checksum_pages_group0 ; struct attribute *lustre_attr_max_read_ahead_whole_mb_group1 ; struct fid *lustre_export_operations_group1 ; int ldv_state_variable_11 ; struct lu_device *vvp_device_type_ops_group1 ; struct kobject *lustre_attr_stats_track_gid_group0 ; int ldv_state_variable_53 ; struct vm_area_struct *ll_file_vm_ops_group0 ; struct cl_object *vvp_ops_group0 ; int ldv_state_variable_18 ; struct inode *ll_file_inode_operations_group0 ; struct file *ll_aops_group2 ; struct attribute *lustre_attr_statahead_max_group1 ; struct inode *ll_fast_symlink_inode_operations_group0 ; struct attribute *lustre_attr_stats_track_ppid_group1 ; int ldv_state_variable_32 ; int ldv_state_variable_34 ; void *vvp_pgcache_ops_group2 ; struct cl_lock_slice const *vvp_lock_ops_group0 ; struct kobject *lustre_attr_max_read_ahead_per_file_mb_group0 ; struct inode *ll_file_operations_flock_group1 ; struct inode *ll_special_inode_operations_group0 ; struct kobject *lustre_attr_lazystatfs_group0 ; struct cl_page_slice const *vvp_page_ops_group2 ; int ldv_state_variable_35 ; struct kobject *lustre_attr_statahead_agl_group0 ; void ldv_initialize_cl_io_operations_34(void) ; void ldv_file_operations_7(void) ; void ldv_initialize_lustre_attr_17(void) ; void ldv_initialize_lustre_attr_10(void) ; void ldv_initialize_lu_context_key_46(void) ; void ldv_file_operations_2(void) ; void ldv_initialize_lustre_attr_20(void) ; void ldv_initialize_lustre_attr_14(void) ; void ldv_initialize_lustre_attr_6(void) ; void ldv_initialize_lustre_attr_12(void) ; void ldv_file_operations_38(void) ; void timer_init_1(void) ; void ldv_initialize_super_operations_48(void) ; void ldv_initialize_lu_object_operations_32(void) ; void ldv_file_operations_22(void) ; int reg_timer_1(struct timer_list *timer , void (*function)(unsigned long ) , unsigned long data ) ; void ldv_initialize_lu_context_key_43(void) ; void ldv_initialize_cl_req_operations_45(void) ; void activate_suitable_timer_1(struct timer_list *timer , unsigned long data ) ; void ldv_initialize_cl_object_operations_33(void) ; void choose_timer_1(void) ; void ldv_initialize_lu_device_type_operations_40(void) ; void ldv_initialize_cl_page_operations_36(void) ; void ldv_file_operations_4(void) ; void ldv_initialize_lustre_attr_16(void) ; void ldv_initialize_lustre_attr_13(void) ; void ldv_initialize_lustre_attr_21(void) ; void ldv_initialize_lu_context_key_47(void) ; void ldv_file_operations_3(void) ; void ldv_file_operations_18(void) ; void ldv_initialize_lu_context_key_44(void) ; void ldv_initialize_lustre_attr_15(void) ; void disable_suitable_timer_1(struct timer_list *timer ) ; void ldv_initialize_cl_lock_operations_35(void) ; void ldv_file_operations_11(void) ; void ldv_initialize_cl_page_operations_37(void) ; void ldv_initialize_lustre_attr_19(void) ; void ldv_timer_1(int state , struct timer_list *timer ) ; extern void inode_init_once(struct inode * ) ; struct sk_buff *ldv_skb_clone_631(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_639(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_633(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_629(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_637(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_638(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_634(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_635(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_636(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; extern void cfs_srand(unsigned int , unsigned int ) ; extern struct dentry *debugfs_create_dir(char const * , struct dentry * ) ; extern void debugfs_remove(struct dentry * ) ; __inline static __u32 LNET_NIDADDR(lnet_nid_t nid ) { { return ((__u32 )nid); } } __inline static __u32 LNET_NIDNET(lnet_nid_t nid ) { { return ((__u32 )(nid >> 32)); } } __inline static __u32 LNET_NETTYP(__u32 net ) { { return (net >> 16); } } extern struct dentry *debugfs_lustre_root ; extern struct kobject *lustre_kobj ; extern int LNetGetId(unsigned int , lnet_process_id_t * ) ; extern void lustre_register_client_fill_super(int (*)(struct super_block * , struct vfsmount * ) ) ; extern void lustre_register_kill_super_cb(void (*)(struct super_block * ) ) ; int vvp_global_init(void) ; void vvp_global_fini(void) ; static struct kmem_cache *ll_inode_cachep ; static struct inode *ll_alloc_inode(struct super_block *sb ) { struct ll_inode_info *lli ; 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 ; { ll_stats_ops_tally(((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi, 28, 1); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/super25.c"; __msg_data.msg_fn = "ll_alloc_inode"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 55; __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_641(ll_inode_cachep, 32848U); lli = (struct ll_inode_info *)tmp___1; if ((unsigned long )lli != (unsigned long )((struct ll_inode_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 *)lli, "lli", "slab-", 3016UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/super25.c", 55); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(ll_inode_cachep, (void *)lli); lli = (struct ll_inode_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, 3016L); tmp___2 = cfs_cdebug_show(16U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/super25.c"; msgdata.msg_fn = "ll_alloc_inode"; msgdata.msg_line = 55; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'lli\': %d at %p.\n", 3016, lli); } else { } } else { } if ((unsigned long )lli == (unsigned long )((struct ll_inode_info *)0)) { return ((struct inode *)0); } else { } inode_init_once(& lli->lli_vfs_inode); return (& lli->lli_vfs_inode); } } static void ll_inode_destroy_callback(struct callback_head *head ) { struct inode *inode ; struct callback_head const *__mptr ; struct ll_inode_info *ptr ; struct ll_inode_info *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; { __mptr = (struct callback_head const *)head; inode = (struct inode *)__mptr + 0xfffffffffffffe18UL; tmp = ll_i2info(inode); ptr = tmp; tmp___0 = ldv__builtin_expect((unsigned long )ptr == (unsigned long )((struct ll_inode_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/super25.c"; __msg_data.msg_fn = "ll_inode_destroy_callback"; __msg_data.msg_subsys = 128; __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 *)"(ptr)"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 3016L); tmp___1 = cfs_cdebug_show(16U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/super25.c"; msgdata.msg_fn = "ll_inode_destroy_callback"; msgdata.msg_line = 67; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(ptr)\': %d at %p.\n", 3016, ptr); } else { } memset((void *)ptr, 90, 3016UL); kmem_cache_free(ll_inode_cachep, (void *)ptr); ptr = (struct ll_inode_info *)3735928559L; return; } } static void ll_destroy_inode(struct inode *inode ) { { call_rcu_sched(& inode->__annonCompField67.i_rcu, & ll_inode_destroy_callback); return; } } struct super_operations lustre_super_operations = {& ll_alloc_inode, & ll_destroy_inode, 0, 0, 0, & ll_delete_inode, & ll_put_super, 0, 0, 0, 0, 0, & ll_statfs, & ll_remount_fs, & ll_umount_begin, & ll_show_options, 0, 0, 0, 0, 0, 0, 0, 0, 0}; extern void lustre_register_client_process_config(int (*)(struct lustre_cfg * ) ) ; static int init_lustre_lite(void) { lnet_process_id_t lnet_id ; struct timeval tv ; int i ; int rc ; int seed[2U] ; struct libcfs_debug_msg_data msgdata ; int tmp ; long tmp___0 ; bool tmp___1 ; int tmp___2 ; __u32 tmp___3 ; __u32 tmp___4 ; __u32 tmp___5 ; { switch (42) { case 1: ; case 0: ; goto ldv_68202; } ldv_68202: tmp = cfs_cdebug_show(64U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/super25.c"; msgdata.msg_fn = "init_lustre_lite"; msgdata.msg_line = 102; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "Lustre client module (%p).\n", & lustre_super_operations); } else { } rc = -12; ll_inode_cachep = kmem_cache_create("lustre_inode_cache", 3016UL, 0UL, 8192UL, (void (*)(void * ))0); if ((unsigned long )ll_inode_cachep == (unsigned long )((struct kmem_cache *)0)) { goto out_cache; } else { } ll_file_data_slab = kmem_cache_create("ll_file_data", 264UL, 0UL, 8192UL, (void (*)(void * ))0); if ((unsigned long )ll_file_data_slab == (unsigned long )((struct kmem_cache *)0)) { goto out_cache; } else { } ll_remote_perm_cachep = kmem_cache_create("ll_remote_perm_cache", 40UL, 0UL, 0UL, (void (*)(void * ))0); if ((unsigned long )ll_remote_perm_cachep == (unsigned long )((struct kmem_cache *)0)) { goto out_cache; } else { } ll_rmtperm_hash_cachep = kmem_cache_create("ll_rmtperm_hash_cache", 256UL, 0UL, 0UL, (void (*)(void * ))0); if ((unsigned long )ll_rmtperm_hash_cachep == (unsigned long )((struct kmem_cache *)0)) { goto out_cache; } else { } llite_root = debugfs_create_dir("llite", debugfs_lustre_root); tmp___1 = IS_ERR_OR_NULL((void const *)llite_root); if ((int )tmp___1) { if ((unsigned long )llite_root != (unsigned long )((struct dentry *)0)) { tmp___0 = PTR_ERR((void const *)llite_root); rc = (int )tmp___0; } else { rc = -12; } llite_root = (struct dentry *)0; goto out_cache; } else { } llite_kset = kset_create_and_add("llite", (struct kset_uevent_ops const *)0, lustre_kobj); if ((unsigned long )llite_kset == (unsigned long )((struct kset *)0)) { rc = -12; goto out_debugfs; } else { } cfs_get_random_bytes((void *)(& seed), 8); i = 0; ldv_68208: tmp___2 = LNetGetId((unsigned int )i, & lnet_id); if (tmp___2 == -2) { goto ldv_68207; } else { } tmp___4 = LNET_NIDNET(lnet_id.nid); tmp___5 = LNET_NETTYP(tmp___4); if (tmp___5 != 9U) { tmp___3 = LNET_NIDADDR(lnet_id.nid); seed[0] = (int )((__u32 )seed[0] ^ tmp___3); } else { } i = i + 1; goto ldv_68208; ldv_68207: do_gettimeofday(& tv); cfs_srand((unsigned int )((int )tv.tv_sec ^ seed[0]), (unsigned int )((int )tv.tv_usec ^ seed[1])); reg_timer_1(& ll_capa_timer, & ll_capa_timer_callback, 0UL); rc = ll_capa_thread_start(); if (rc != 0) { goto out_sysfs; } else { } rc = vvp_global_init(); if (rc != 0) { goto out_capa; } else { } rc = ll_xattr_init(); if (rc != 0) { goto out_vvp; } else { } lustre_register_client_fill_super(& ll_fill_super); lustre_register_kill_super_cb(& ll_kill_super); lustre_register_client_process_config(& ll_process_config); return (0); out_vvp: vvp_global_fini(); out_capa: ldv_del_timer_642(& ll_capa_timer); ll_capa_thread_stop(); out_sysfs: kset_unregister(llite_kset); out_debugfs: debugfs_remove(llite_root); out_cache: ; if ((unsigned long )ll_inode_cachep != (unsigned long )((struct kmem_cache *)0)) { kmem_cache_destroy(ll_inode_cachep); } else { } if ((unsigned long )ll_file_data_slab != (unsigned long )((struct kmem_cache *)0)) { kmem_cache_destroy(ll_file_data_slab); } else { } if ((unsigned long )ll_remote_perm_cachep != (unsigned long )((struct kmem_cache *)0)) { kmem_cache_destroy(ll_remote_perm_cachep); } else { } if ((unsigned long )ll_rmtperm_hash_cachep != (unsigned long )((struct kmem_cache *)0)) { kmem_cache_destroy(ll_rmtperm_hash_cachep); } else { } return (rc); } } static void exit_lustre_lite(void) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { lustre_register_client_fill_super((int (*)(struct super_block * , struct vfsmount * ))0); lustre_register_kill_super_cb((void (*)(struct super_block * ))0); lustre_register_client_process_config((int (*)(struct lustre_cfg * ))0); debugfs_remove(llite_root); kset_unregister(llite_kset); ll_xattr_fini(); vvp_global_fini(); ldv_del_timer_643(& ll_capa_timer); ll_capa_thread_stop(); tmp = ldv__builtin_expect(capa_count[0] != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/super25.c"; __msg_data.msg_fn = "exit_lustre_lite"; __msg_data.msg_subsys = 128; __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: client remaining capa count %d\n", (char *)"capa_count[CAPA_SITE_CLIENT] == 0", capa_count[0]); lbug_with_loc(& __msg_data); } else { } kmem_cache_destroy(ll_inode_cachep); kmem_cache_destroy(ll_rmtperm_hash_cachep); kmem_cache_destroy(ll_remote_perm_cachep); kmem_cache_destroy(ll_file_data_slab); return; } } extern void ldv_initialize(void) ; extern void ldv_check_final_state(void) ; int ldv_retval_7 ; void timer_init_1(void) { { ldv_timer_1_0 = 0; ldv_timer_1_1 = 0; ldv_timer_1_2 = 0; ldv_timer_1_3 = 0; return; } } void ldv_initialize_super_operations_48(void) { void *tmp ; void *tmp___0 ; void *tmp___1 ; { tmp = ldv_init_zalloc(1000UL); lustre_super_operations_group0 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(2112UL); lustre_super_operations_group1 = (struct super_block *)tmp___0; tmp___1 = ldv_init_zalloc(320UL); lustre_super_operations_group2 = (struct dentry *)tmp___1; return; } } int reg_timer_1(struct timer_list *timer , void (*function)(unsigned long ) , unsigned long data ) { { if ((unsigned long )function == (unsigned long )(& ll_capa_timer_callback)) { activate_suitable_timer_1(timer, data); } else { } return (0); } } void activate_suitable_timer_1(struct timer_list *timer , unsigned long data ) { { if (ldv_timer_1_0 == 0 || ldv_timer_1_0 == 2) { ldv_timer_list_1_0 = timer; ldv_timer_list_1_0->data = data; ldv_timer_1_0 = 1; return; } else { } if (ldv_timer_1_1 == 0 || ldv_timer_1_1 == 2) { ldv_timer_list_1_1 = timer; ldv_timer_list_1_1->data = data; ldv_timer_1_1 = 1; return; } else { } if (ldv_timer_1_2 == 0 || ldv_timer_1_2 == 2) { ldv_timer_list_1_2 = timer; ldv_timer_list_1_2->data = data; ldv_timer_1_2 = 1; return; } else { } if (ldv_timer_1_3 == 0 || ldv_timer_1_3 == 2) { ldv_timer_list_1_3 = timer; ldv_timer_list_1_3->data = data; ldv_timer_1_3 = 1; return; } else { } return; } } void choose_timer_1(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_timer_1_0 == 1) { ldv_timer_1_0 = 2; ldv_timer_1(ldv_timer_1_0, ldv_timer_list_1_0); } else { } goto ldv_68255; case 1: ; if (ldv_timer_1_1 == 1) { ldv_timer_1_1 = 2; ldv_timer_1(ldv_timer_1_1, ldv_timer_list_1_1); } else { } goto ldv_68255; case 2: ; if (ldv_timer_1_2 == 1) { ldv_timer_1_2 = 2; ldv_timer_1(ldv_timer_1_2, ldv_timer_list_1_2); } else { } goto ldv_68255; case 3: ; if (ldv_timer_1_3 == 1) { ldv_timer_1_3 = 2; ldv_timer_1(ldv_timer_1_3, ldv_timer_list_1_3); } else { } goto ldv_68255; default: ldv_stop(); } ldv_68255: ; return; } } void activate_pending_timer_1(struct timer_list *timer , unsigned long data , int pending_flag ) { { if ((unsigned long )ldv_timer_list_1_0 == (unsigned long )timer) { if (ldv_timer_1_0 == 2 || pending_flag != 0) { ldv_timer_list_1_0 = timer; ldv_timer_list_1_0->data = data; ldv_timer_1_0 = 1; } else { } return; } else { } if ((unsigned long )ldv_timer_list_1_1 == (unsigned long )timer) { if (ldv_timer_1_1 == 2 || pending_flag != 0) { ldv_timer_list_1_1 = timer; ldv_timer_list_1_1->data = data; ldv_timer_1_1 = 1; } else { } return; } else { } if ((unsigned long )ldv_timer_list_1_2 == (unsigned long )timer) { if (ldv_timer_1_2 == 2 || pending_flag != 0) { ldv_timer_list_1_2 = timer; ldv_timer_list_1_2->data = data; ldv_timer_1_2 = 1; } else { } return; } else { } if ((unsigned long )ldv_timer_list_1_3 == (unsigned long )timer) { if (ldv_timer_1_3 == 2 || pending_flag != 0) { ldv_timer_list_1_3 = timer; ldv_timer_list_1_3->data = data; ldv_timer_1_3 = 1; } else { } return; } else { } activate_suitable_timer_1(timer, data); return; } } void disable_suitable_timer_1(struct timer_list *timer ) { { if (ldv_timer_1_0 != 0 && (unsigned long )timer == (unsigned long )ldv_timer_list_1_0) { ldv_timer_1_0 = 0; return; } else { } if (ldv_timer_1_1 != 0 && (unsigned long )timer == (unsigned long )ldv_timer_list_1_1) { ldv_timer_1_1 = 0; return; } else { } if (ldv_timer_1_2 != 0 && (unsigned long )timer == (unsigned long )ldv_timer_list_1_2) { ldv_timer_1_2 = 0; return; } else { } if (ldv_timer_1_3 != 0 && (unsigned long )timer == (unsigned long )ldv_timer_list_1_3) { ldv_timer_1_3 = 0; return; } else { } return; } } void ldv_timer_1(int state , struct timer_list *timer ) { { LDV_IN_INTERRUPT = 2; ll_capa_timer_callback(timer->data); LDV_IN_INTERRUPT = 1; return; } } void ldv_main_exported_42(void) ; void ldv_main_exported_38(void) ; void ldv_main_exported_39(void) ; void ldv_main_exported_40(void) ; void ldv_main_exported_43(void) ; void ldv_main_exported_44(void) ; void ldv_main_exported_41(void) ; void ldv_main_exported_34(void) ; void ldv_main_exported_46(void) ; void ldv_main_exported_45(void) ; void ldv_main_exported_47(void) ; void ldv_main_exported_33(void) ; void ldv_main_exported_32(void) ; void ldv_main_exported_11(void) ; void ldv_main_exported_21(void) ; void ldv_main_exported_7(void) ; void ldv_main_exported_26(void) ; void ldv_main_exported_17(void) ; void ldv_main_exported_2(void) ; void ldv_main_exported_22(void) ; void ldv_main_exported_18(void) ; void ldv_main_exported_30(void) ; void ldv_main_exported_23(void) ; void ldv_main_exported_16(void) ; void ldv_main_exported_13(void) ; void ldv_main_exported_29(void) ; void ldv_main_exported_27(void) ; void ldv_main_exported_25(void) ; void ldv_main_exported_6(void) ; void ldv_main_exported_28(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_31(void) ; void ldv_main_exported_5(void) ; void ldv_main_exported_35(void) ; void ldv_main_exported_36(void) ; void ldv_main_exported_37(void) ; int main(void) { struct seq_file *ldvarg187 ; void *tmp ; char *ldvarg185 ; void *tmp___0 ; int *ldvarg186 ; void *tmp___1 ; struct kstatfs *ldvarg184 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; { tmp = ldv_init_zalloc(256UL); ldvarg187 = (struct seq_file *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg185 = (char *)tmp___0; tmp___1 = ldv_init_zalloc(4UL); ldvarg186 = (int *)tmp___1; ldvarg184 = ldv_malloc(sizeof(struct kstatfs)); ldv_initialize(); 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; timer_init_1(); ldv_state_variable_1 = 1; ldv_state_variable_18 = 0; ldv_state_variable_30 = 0; ldv_state_variable_16 = 0; ldv_state_variable_44 = 0; ldv_state_variable_55 = 0; ldv_state_variable_27 = 0; ldv_state_variable_25 = 0; ldv_state_variable_28 = 0; ldv_state_variable_57 = 0; ldv_state_variable_40 = 0; ldv_state_variable_20 = 0; ldv_state_variable_14 = 0; ldv_state_variable_59 = 0; ldv_state_variable_49 = 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_53 = 0; ldv_state_variable_48 = 0; ldv_state_variable_42 = 0; ldv_state_variable_22 = 0; ref_cnt = 0; ldv_state_variable_0 = 1; ldv_state_variable_46 = 0; ldv_state_variable_13 = 0; ldv_state_variable_23 = 0; ldv_state_variable_29 = 0; ldv_state_variable_6 = 0; ldv_state_variable_50 = 0; ldv_state_variable_39 = 0; ldv_state_variable_36 = 0; ldv_state_variable_3 = 0; ldv_state_variable_51 = 0; ldv_state_variable_9 = 0; ldv_state_variable_58 = 0; ldv_state_variable_41 = 0; ldv_state_variable_12 = 0; ldv_state_variable_47 = 0; ldv_state_variable_15 = 0; ldv_state_variable_52 = 0; ldv_state_variable_38 = 0; ldv_state_variable_8 = 0; ldv_state_variable_60 = 0; ldv_state_variable_4 = 0; ldv_state_variable_34 = 0; ldv_state_variable_56 = 0; ldv_state_variable_45 = 0; ldv_state_variable_37 = 0; ldv_state_variable_43 = 0; ldv_state_variable_19 = 0; ldv_state_variable_54 = 0; ldv_state_variable_5 = 0; ldv_68479: tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_33 != 0) { ldv_main_exported_33(); } else { } goto ldv_68402; case 1: ; if (ldv_state_variable_32 != 0) { ldv_main_exported_32(); } else { } goto ldv_68402; case 2: ; if (ldv_state_variable_21 != 0) { ldv_main_exported_21(); } else { } goto ldv_68402; case 3: ; if (ldv_state_variable_7 != 0) { ldv_main_exported_7(); } else { } goto ldv_68402; case 4: ; if (ldv_state_variable_26 != 0) { ldv_main_exported_26(); } else { } goto ldv_68402; case 5: ; if (ldv_state_variable_17 != 0) { ldv_main_exported_17(); } else { } goto ldv_68402; case 6: ; if (ldv_state_variable_2 != 0) { ldv_main_exported_2(); } else { } goto ldv_68402; case 7: ; if (ldv_state_variable_1 != 0) { choose_timer_1(); } else { } goto ldv_68402; case 8: ; if (ldv_state_variable_18 != 0) { ldv_main_exported_18(); } else { } goto ldv_68402; case 9: ; if (ldv_state_variable_30 != 0) { ldv_main_exported_30(); } else { } goto ldv_68402; case 10: ; if (ldv_state_variable_16 != 0) { ldv_main_exported_16(); } else { } goto ldv_68402; case 11: ; if (ldv_state_variable_44 != 0) { ldv_main_exported_44(); } else { } goto ldv_68402; case 12: ; if (ldv_state_variable_55 != 0) { ldv_main_exported_55(); } else { } goto ldv_68402; case 13: ; if (ldv_state_variable_27 != 0) { ldv_main_exported_27(); } else { } goto ldv_68402; case 14: ; if (ldv_state_variable_25 != 0) { ldv_main_exported_25(); } else { } goto ldv_68402; case 15: ; if (ldv_state_variable_28 != 0) { ldv_main_exported_28(); } else { } goto ldv_68402; case 16: ; if (ldv_state_variable_57 != 0) { ldv_main_exported_57(); } else { } goto ldv_68402; case 17: ; if (ldv_state_variable_40 != 0) { ldv_main_exported_40(); } else { } goto ldv_68402; case 18: ; if (ldv_state_variable_20 != 0) { ldv_main_exported_20(); } else { } goto ldv_68402; case 19: ; if (ldv_state_variable_14 != 0) { ldv_main_exported_14(); } else { } goto ldv_68402; case 20: ; if (ldv_state_variable_59 != 0) { ldv_main_exported_59(); } else { } goto ldv_68402; case 21: ; if (ldv_state_variable_49 != 0) { ldv_main_exported_49(); } else { } goto ldv_68402; case 22: ; if (ldv_state_variable_24 != 0) { ldv_main_exported_24(); } else { } goto ldv_68402; case 23: ; if (ldv_state_variable_10 != 0) { ldv_main_exported_10(); } else { } goto ldv_68402; case 24: ; if (ldv_state_variable_31 != 0) { ldv_main_exported_31(); } else { } goto ldv_68402; case 25: ; if (ldv_state_variable_35 != 0) { ldv_main_exported_35(); } else { } goto ldv_68402; case 26: ; if (ldv_state_variable_11 != 0) { ldv_main_exported_11(); } else { } goto ldv_68402; case 27: ; if (ldv_state_variable_53 != 0) { ldv_main_exported_53(); } else { } goto ldv_68402; case 28: ; if (ldv_state_variable_48 != 0) { tmp___4 = __VERIFIER_nondet_int(); switch (tmp___4) { case 0: ; if (ldv_state_variable_48 == 1) { ll_destroy_inode(lustre_super_operations_group0); ldv_state_variable_48 = 1; } else { } goto ldv_68432; case 1: ; if (ldv_state_variable_48 == 1) { ll_show_options(ldvarg187, lustre_super_operations_group2); ldv_state_variable_48 = 1; } else { } goto ldv_68432; case 2: ; if (ldv_state_variable_48 == 1) { ll_umount_begin(lustre_super_operations_group1); ldv_state_variable_48 = 1; } else { } goto ldv_68432; case 3: ; if (ldv_state_variable_48 == 1) { ll_remount_fs(lustre_super_operations_group1, ldvarg186, ldvarg185); ldv_state_variable_48 = 1; } else { } goto ldv_68432; case 4: ; if (ldv_state_variable_48 == 1) { ll_delete_inode(lustre_super_operations_group0); ldv_state_variable_48 = 1; } else { } goto ldv_68432; case 5: ; if (ldv_state_variable_48 == 1) { ll_alloc_inode(lustre_super_operations_group1); ldv_state_variable_48 = 1; } else { } goto ldv_68432; case 6: ; if (ldv_state_variable_48 == 1) { ll_statfs(lustre_super_operations_group2, ldvarg184); ldv_state_variable_48 = 1; } else { } goto ldv_68432; case 7: ; if (ldv_state_variable_48 == 1) { ll_put_super(lustre_super_operations_group1); ldv_state_variable_48 = 1; } else { } goto ldv_68432; default: ldv_stop(); } ldv_68432: ; } else { } goto ldv_68402; case 29: ; if (ldv_state_variable_42 != 0) { ldv_main_exported_42(); } else { } goto ldv_68402; case 30: ; if (ldv_state_variable_22 != 0) { ldv_main_exported_22(); } else { } goto ldv_68402; case 31: ; if (ldv_state_variable_0 != 0) { tmp___5 = __VERIFIER_nondet_int(); switch (tmp___5) { case 0: ; if (ldv_state_variable_0 == 2 && ref_cnt == 0) { exit_lustre_lite(); ldv_state_variable_0 = 3; goto ldv_final; } else { } goto ldv_68446; case 1: ; if (ldv_state_variable_0 == 1) { ldv_retval_7 = init_lustre_lite(); if (ldv_retval_7 != 0) { ldv_state_variable_0 = 3; goto ldv_final; } else { } if (ldv_retval_7 == 0) { ldv_state_variable_0 = 2; ldv_state_variable_5 = 1; ldv_state_variable_54 = 1; ldv_initialize_export_operations_54(); ldv_state_variable_19 = 1; ldv_initialize_lustre_attr_19(); ldv_state_variable_43 = 1; ldv_initialize_lu_context_key_43(); ldv_state_variable_37 = 1; ldv_initialize_cl_page_operations_37(); ldv_state_variable_45 = 1; ldv_initialize_cl_req_operations_45(); ldv_state_variable_56 = 1; ldv_file_operations_56(); ldv_state_variable_34 = 1; ldv_initialize_cl_io_operations_34(); ldv_state_variable_4 = 1; ldv_file_operations_4(); ldv_state_variable_60 = 1; ldv_initialize_dentry_operations_60(); ldv_state_variable_8 = 1; ldv_state_variable_38 = 1; ldv_file_operations_38(); ldv_state_variable_52 = 1; ldv_initialize_inode_operations_52(); ldv_state_variable_15 = 1; ldv_initialize_lustre_attr_15(); ldv_state_variable_47 = 1; ldv_initialize_lu_context_key_47(); ldv_state_variable_12 = 1; ldv_initialize_lustre_attr_12(); ldv_state_variable_41 = 1; ldv_state_variable_58 = 1; ldv_file_operations_58(); ldv_state_variable_9 = 1; ldv_state_variable_51 = 1; ldv_initialize_inode_operations_51(); ldv_state_variable_3 = 1; ldv_file_operations_3(); ldv_state_variable_36 = 1; ldv_initialize_cl_page_operations_36(); ldv_state_variable_50 = 1; ldv_initialize_vm_operations_struct_50(); ldv_state_variable_6 = 1; ldv_initialize_lustre_attr_6(); ldv_state_variable_29 = 1; ldv_state_variable_23 = 1; ldv_state_variable_13 = 1; ldv_initialize_lustre_attr_13(); ldv_state_variable_46 = 1; ldv_initialize_lu_context_key_46(); ldv_state_variable_22 = 1; ldv_file_operations_22(); ldv_state_variable_42 = 1; ldv_state_variable_48 = 1; ldv_initialize_super_operations_48(); ldv_state_variable_53 = 1; ldv_initialize_inode_operations_53(); ldv_state_variable_11 = 1; ldv_file_operations_11(); ldv_state_variable_35 = 1; ldv_initialize_cl_lock_operations_35(); ldv_state_variable_31 = 1; ldv_state_variable_10 = 1; ldv_initialize_lustre_attr_10(); ldv_state_variable_24 = 1; ldv_state_variable_49 = 1; ldv_initialize_address_space_operations_49(); ldv_state_variable_59 = 1; ldv_file_operations_59(); ldv_state_variable_14 = 1; ldv_initialize_lustre_attr_14(); ldv_state_variable_20 = 1; ldv_initialize_lustre_attr_20(); ldv_state_variable_40 = 1; ldv_initialize_lu_device_type_operations_40(); ldv_state_variable_57 = 1; ldv_file_operations_57(); ldv_state_variable_28 = 1; ldv_state_variable_25 = 1; ldv_state_variable_27 = 1; ldv_state_variable_55 = 1; ldv_initialize_inode_operations_55(); ldv_state_variable_44 = 1; ldv_initialize_lu_context_key_44(); ldv_state_variable_16 = 1; ldv_initialize_lustre_attr_16(); ldv_state_variable_30 = 1; ldv_state_variable_18 = 1; ldv_file_operations_18(); 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_state_variable_7 = 1; ldv_file_operations_7(); ldv_state_variable_21 = 1; ldv_initialize_lustre_attr_21(); ldv_state_variable_32 = 1; ldv_initialize_lu_object_operations_32(); ldv_state_variable_33 = 1; ldv_initialize_cl_object_operations_33(); } else { } } else { } goto ldv_68446; default: ldv_stop(); } ldv_68446: ; } else { } goto ldv_68402; case 32: ; if (ldv_state_variable_46 != 0) { ldv_main_exported_46(); } else { } goto ldv_68402; case 33: ; if (ldv_state_variable_13 != 0) { ldv_main_exported_13(); } else { } goto ldv_68402; case 34: ; if (ldv_state_variable_23 != 0) { ldv_main_exported_23(); } else { } goto ldv_68402; case 35: ; if (ldv_state_variable_29 != 0) { ldv_main_exported_29(); } else { } goto ldv_68402; case 36: ; if (ldv_state_variable_6 != 0) { ldv_main_exported_6(); } else { } goto ldv_68402; case 37: ; if (ldv_state_variable_50 != 0) { ldv_main_exported_50(); } else { } goto ldv_68402; case 38: ; if (ldv_state_variable_39 != 0) { ldv_main_exported_39(); } else { } goto ldv_68402; case 39: ; if (ldv_state_variable_36 != 0) { ldv_main_exported_36(); } else { } goto ldv_68402; case 40: ; if (ldv_state_variable_3 != 0) { ldv_main_exported_3(); } else { } goto ldv_68402; case 41: ; if (ldv_state_variable_51 != 0) { ldv_main_exported_51(); } else { } goto ldv_68402; case 42: ; if (ldv_state_variable_9 != 0) { ldv_main_exported_9(); } else { } goto ldv_68402; case 43: ; if (ldv_state_variable_58 != 0) { ldv_main_exported_58(); } else { } goto ldv_68402; case 44: ; if (ldv_state_variable_41 != 0) { ldv_main_exported_41(); } else { } goto ldv_68402; case 45: ; if (ldv_state_variable_12 != 0) { ldv_main_exported_12(); } else { } goto ldv_68402; case 46: ; if (ldv_state_variable_47 != 0) { ldv_main_exported_47(); } else { } goto ldv_68402; case 47: ; if (ldv_state_variable_15 != 0) { ldv_main_exported_15(); } else { } goto ldv_68402; case 48: ; if (ldv_state_variable_52 != 0) { ldv_main_exported_52(); } else { } goto ldv_68402; case 49: ; if (ldv_state_variable_38 != 0) { ldv_main_exported_38(); } else { } goto ldv_68402; case 50: ; if (ldv_state_variable_8 != 0) { ldv_main_exported_8(); } else { } goto ldv_68402; case 51: ; if (ldv_state_variable_60 != 0) { ldv_main_exported_60(); } else { } goto ldv_68402; case 52: ; if (ldv_state_variable_4 != 0) { ldv_main_exported_4(); } else { } goto ldv_68402; case 53: ; if (ldv_state_variable_34 != 0) { ldv_main_exported_34(); } else { } goto ldv_68402; case 54: ; if (ldv_state_variable_56 != 0) { ldv_main_exported_56(); } else { } goto ldv_68402; case 55: ; if (ldv_state_variable_45 != 0) { ldv_main_exported_45(); } else { } goto ldv_68402; case 56: ; if (ldv_state_variable_37 != 0) { ldv_main_exported_37(); } else { } goto ldv_68402; case 57: ; if (ldv_state_variable_43 != 0) { ldv_main_exported_43(); } else { } goto ldv_68402; case 58: ; if (ldv_state_variable_19 != 0) { ldv_main_exported_19(); } else { } goto ldv_68402; case 59: ; if (ldv_state_variable_54 != 0) { ldv_main_exported_54(); } else { } goto ldv_68402; case 60: ; if (ldv_state_variable_5 != 0) { ldv_main_exported_5(); } else { } goto ldv_68402; default: ldv_stop(); } ldv_68402: ; goto ldv_68479; ldv_final: ldv_check_final_state(); return 0; } } __inline static bool IS_ERR_OR_NULL(void const *ptr ) { bool tmp ; { tmp = ldv_is_err_or_null(ptr); return (tmp); } } int ldv_pskb_expand_head_629(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_631(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_633(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_634(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_635(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_636(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_637(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_638(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_639(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_641(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) { void *tmp ; { ldv_check_alloc_flags(flags); tmp = ldv_malloc(3016UL); return (tmp); } } int ldv_del_timer_642(struct timer_list *ldv_func_arg1 ) { ldv_func_ret_type___2 ldv_func_res ; int tmp ; { tmp = del_timer(ldv_func_arg1); ldv_func_res = tmp; disable_suitable_timer_1(ldv_func_arg1); return (ldv_func_res); } } int ldv_del_timer_643(struct timer_list *ldv_func_arg1 ) { ldv_func_ret_type___3 ldv_func_res ; int tmp ; { tmp = del_timer(ldv_func_arg1); ldv_func_res = tmp; disable_suitable_timer_1(ldv_func_arg1); return (ldv_func_res); } } __inline static long ldv__builtin_expect(long exp , long c ) ; int ldv_spin_trylock(void) ; __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 spin_lock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; extern void lockref_get(struct lockref * ) ; extern unsigned int full_name_hash(unsigned char const * , unsigned int ) ; extern struct dentry *d_lookup(struct dentry const * , struct qstr const * ) ; __inline static struct dentry *dget(struct dentry *dentry ) { { if ((unsigned long )dentry != (unsigned long )((struct dentry *)0)) { lockref_get(& dentry->d_lockref); } else { } return (dentry); } } struct sk_buff *ldv_skb_clone_673(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_681(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_675(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_671(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_679(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_680(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_676(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_677(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_678(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __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); } } __inline static int thread_is_init(struct ptlrpc_thread *thread ) { { return (thread->t_flags == 0U); } } extern struct ptlrpc_request *ptlrpc_request_addref(struct ptlrpc_request * ) ; __inline static int md_intent_getattr_async(struct obd_export *exp , struct md_enqueue_info *minfo , struct ldlm_enqueue_info *einfo ) { 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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/llite/../include/linux/../obd_class.h"; msgdata.msg_fn = "md_intent_getattr_async"; msgdata.msg_line = 1805; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_intent_getattr_async: 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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___0.msg_fn = "md_intent_getattr_async"; msgdata___0.msg_line = 1805; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_intent_getattr_async: 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_md_ops)->m_intent_getattr_async == (unsigned long )((int (*)(struct obd_export * , struct md_enqueue_info * , struct ldlm_enqueue_info * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 128U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 128; 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/llite/../include/linux/../obd_class.h"; msgdata___1.msg_fn = "md_intent_getattr_async"; msgdata___1.msg_line = 1805; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_intent_getattr_async: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 30U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/llite/../include/linux/../obd_class.h"; __msg_data.msg_fn = "md_intent_getattr_async"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1806; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } rc = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_intent_getattr_async))(exp, minfo, einfo); return (rc); } } __inline static int cl_agl(struct inode *inode ) { int tmp ; { tmp = cl_glimpse_size0(inode, 1); return (tmp); } } __inline static void d_lustre_revalidate___0(struct dentry *dentry ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { spin_lock(& dentry->d_lockref.__annonCompField59.__annonCompField58.lock); tmp = ldv__builtin_expect((unsigned long )((struct ll_dentry_data *)dentry->d_fsdata) == (unsigned long )((struct ll_dentry_data *)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/llite/llite_internal.h"; __msg_data.msg_fn = "d_lustre_revalidate"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1477; __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 *)"((struct ll_dentry_data*)((dentry)->d_fsdata)) != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } ((struct ll_dentry_data *)dentry->d_fsdata)->lld_invalid = 0U; spin_unlock(& dentry->d_lockref.__annonCompField59.__annonCompField58.lock); return; } } static unsigned int sai_generation ; static spinlock_t sai_generation_lock = {{{{{0}}, 3735899821U, 4294967295U, (void *)-1, {0, {0, 0}, "sai_generation_lock", 0, 0UL}}}}; __inline static int ll_sa_entry_unhashed(struct ll_sa_entry *entry ) { int tmp ; { tmp = list_empty((struct list_head const *)(& entry->se_hash)); return (tmp); } } __inline static int ll_sa_entry_stated(struct ll_sa_entry *entry ) { { __asm__ volatile ("": : : "memory"); return ((unsigned int )entry->se_stat != 0U); } } __inline static int ll_sa_entry_hash(int val ) { { return (val & 31); } } __inline static void ll_sa_entry_enhash(struct ll_statahead_info *sai , struct ll_sa_entry *entry ) { int i ; int tmp ; { tmp = ll_sa_entry_hash((int )entry->se_qstr.__annonCompField61.__annonCompField60.hash); i = tmp; spin_lock((spinlock_t *)(& sai->sai_cache_lock) + (unsigned long )i); list_add_tail(& entry->se_hash, (struct list_head *)(& sai->sai_cache) + (unsigned long )i); spin_unlock((spinlock_t *)(& sai->sai_cache_lock) + (unsigned long )i); return; } } __inline static void ll_sa_entry_unhash(struct ll_statahead_info *sai , struct ll_sa_entry *entry ) { int i ; int tmp ; { tmp = ll_sa_entry_hash((int )entry->se_qstr.__annonCompField61.__annonCompField60.hash); i = tmp; spin_lock((spinlock_t *)(& sai->sai_cache_lock) + (unsigned long )i); list_del_init(& entry->se_hash); spin_unlock((spinlock_t *)(& sai->sai_cache_lock) + (unsigned long )i); return; } } __inline static int agl_should_run(struct ll_statahead_info *sai , struct inode *inode ) { { return (((unsigned long )inode != (unsigned long )((struct inode *)0) && ((int )inode->i_mode & 61440) == 32768) && (unsigned int )*((unsigned char *)sai + 84UL) != 0U); } } __inline static struct ll_sa_entry *sa_first_received_entry(struct ll_statahead_info *sai ) { struct list_head const *__mptr ; { __mptr = (struct list_head const *)sai->sai_entries_received.next; return ((struct ll_sa_entry *)__mptr + 0xfffffffffffffff0UL); } } __inline static struct ll_inode_info *agl_first_entry(struct ll_statahead_info *sai ) { struct list_head const *__mptr ; { __mptr = (struct list_head const *)sai->sai_entries_agl.next; return ((struct ll_inode_info *)__mptr + 0xfffffffffffff6c8UL); } } __inline static int sa_sent_full(struct ll_statahead_info *sai ) { int tmp ; { tmp = atomic_read((atomic_t const *)(& sai->sai_cache_count)); return ((unsigned int )tmp >= sai->sai_max); } } __inline static int sa_received_empty(struct ll_statahead_info *sai ) { int tmp ; { tmp = list_empty((struct list_head const *)(& sai->sai_entries_received)); return (tmp); } } __inline static int agl_list_empty(struct ll_statahead_info *sai ) { int tmp ; { tmp = list_empty((struct list_head const *)(& sai->sai_entries_agl)); return (tmp); } } __inline static int sa_low_hit(struct ll_statahead_info *sai ) { { return ((sai->sai_hit > 7ULL && sai->sai_hit < sai->sai_miss * 4ULL) || sai->sai_consecutive_miss > 8U); } } __inline static int is_omitted_entry(struct ll_statahead_info *sai , __u64 index ) { { return (((unsigned long long )sai->sai_max + index) + 8ULL < sai->sai_index); } } static struct ll_sa_entry *ll_sa_entry_alloc(struct ll_statahead_info *sai , __u64 index , char const *name , int len ) { struct ll_inode_info *lli ; struct ll_sa_entry *entry ; int entry_size ; char *dname ; void *tmp ; void *tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; { entry_size = (int )(((unsigned int )len & 4294967292U) + 124U); tmp = kzalloc((size_t )entry_size, 80U); entry = (struct ll_sa_entry *)tmp; tmp___1 = ldv__builtin_expect((unsigned long )entry == (unsigned long )((struct ll_sa_entry *)0), 0L); if (tmp___1 != 0L) { tmp___0 = ERR_PTR(-12L); return ((struct ll_sa_entry *)tmp___0); } else { } tmp___2 = cfs_cdebug_show(4194304U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata.msg_fn = "ll_sa_entry_alloc"; msgdata.msg_line = 210; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "alloc sa entry %.*s(%p) index %llu\n", len, name, entry, index); } else { } entry->se_index = index; atomic_set(& entry->se_refcount, 2); entry->se_stat = 0; entry->se_size = entry_size; dname = (char *)entry + 120UL; memcpy((void *)dname, (void const *)name, (size_t )len); *(dname + (unsigned long )len) = 0; entry->se_qstr.__annonCompField61.__annonCompField60.hash = full_name_hash((unsigned char const *)name, (unsigned int )len); entry->se_qstr.__annonCompField61.__annonCompField60.len = (u32 )len; entry->se_qstr.name = (unsigned char const *)dname; lli = ll_i2info(sai->sai_inode); spin_lock(& lli->u.d.d_sa_lock); list_add_tail(& entry->se_link, & sai->sai_entries); INIT_LIST_HEAD(& entry->se_list); ll_sa_entry_enhash(sai, entry); spin_unlock(& lli->u.d.d_sa_lock); atomic_inc(& sai->sai_cache_count); return (entry); } } static struct ll_sa_entry *ll_sa_entry_get_byname(struct ll_statahead_info *sai , struct qstr const *qstr ) { struct ll_sa_entry *entry ; int i ; int tmp ; struct list_head const *__mptr ; int tmp___0 ; struct list_head const *__mptr___0 ; { tmp = ll_sa_entry_hash((int )qstr->__annonCompField61.__annonCompField60.hash); i = tmp; __mptr = (struct list_head const *)((struct list_head *)(& sai->sai_cache) + (unsigned long )i)->next; entry = (struct ll_sa_entry *)__mptr + 0xffffffffffffffe0UL; goto ldv_68243; ldv_68242: ; if (entry->se_qstr.__annonCompField61.__annonCompField60.hash == (u32 )qstr->__annonCompField61.__annonCompField60.hash && entry->se_qstr.__annonCompField61.__annonCompField60.len == (u32 )qstr->__annonCompField61.__annonCompField60.len) { tmp___0 = memcmp((void const *)entry->se_qstr.name, (void const *)qstr->name, (size_t )qstr->__annonCompField61.__annonCompField60.len); if (tmp___0 == 0) { return (entry); } else { } } else { } __mptr___0 = (struct list_head const *)entry->se_hash.next; entry = (struct ll_sa_entry *)__mptr___0 + 0xffffffffffffffe0UL; ldv_68243: ; if ((unsigned long )(& entry->se_hash) != (unsigned long )((struct list_head *)(& sai->sai_cache) + (unsigned long )i)) { goto ldv_68242; } else { } return ((struct ll_sa_entry *)0); } } static struct ll_sa_entry *ll_sa_entry_get_byindex(struct ll_statahead_info *sai , __u64 index ) { struct ll_sa_entry *entry ; struct list_head const *__mptr ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct list_head const *__mptr___0 ; { __mptr = (struct list_head const *)sai->sai_entries.next; entry = (struct ll_sa_entry *)__mptr; goto ldv_68258; ldv_68257: ; if (entry->se_index == index) { tmp = atomic_read((atomic_t const *)(& entry->se_refcount)); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data.msg_fn = "ll_sa_entry_get_byindex"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 295; __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(&entry->se_refcount) > 0"); lbug_with_loc(& __msg_data); } else { } atomic_inc(& entry->se_refcount); return (entry); } else { } if (entry->se_index > index) { goto ldv_68256; } else { } __mptr___0 = (struct list_head const *)entry->se_link.next; entry = (struct ll_sa_entry *)__mptr___0; ldv_68258: ; if ((unsigned long )(& entry->se_link) != (unsigned long )(& sai->sai_entries)) { goto ldv_68257; } else { } ldv_68256: ; return ((struct ll_sa_entry *)0); } } static void ll_sa_entry_cleanup(struct ll_statahead_info *sai , struct ll_sa_entry *entry ) { struct md_enqueue_info *minfo ; struct ptlrpc_request *req ; { minfo = entry->se_minfo; req = entry->se_req; if ((unsigned long )minfo != (unsigned long )((struct md_enqueue_info *)0)) { entry->se_minfo = (struct md_enqueue_info *)0; ll_intent_release(& minfo->mi_it); iput(minfo->mi_dir); kfree((void const *)minfo); } else { } if ((unsigned long )req != (unsigned long )((struct ptlrpc_request *)0)) { entry->se_req = (struct ptlrpc_request *)0; ptlrpc_req_finished(req); } else { } return; } } static void ll_sa_entry_put(struct ll_statahead_info *sai , struct ll_sa_entry *entry ) { struct libcfs_debug_msg_data msgdata ; 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 libcfs_debug_msg_data __msg_data___1 ; int tmp___4 ; long tmp___5 ; int tmp___6 ; { tmp___6 = atomic_dec_and_test(& entry->se_refcount); if (tmp___6 != 0) { tmp = cfs_cdebug_show(4194304U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata.msg_fn = "ll_sa_entry_put"; msgdata.msg_line = 330; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "free sa entry %.*s(%p) index %llu\n", entry->se_qstr.__annonCompField61.__annonCompField60.len, entry->se_qstr.name, entry, entry->se_index); } else { } tmp___0 = list_empty((struct list_head const *)(& entry->se_link)); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data.msg_fn = "ll_sa_entry_put"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 332; __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(&entry->se_link)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = list_empty((struct list_head const *)(& entry->se_list)); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data___0.msg_fn = "ll_sa_entry_put"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 333; __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(&entry->se_list)"); lbug_with_loc(& __msg_data___0); } else { } tmp___4 = ll_sa_entry_unhashed(entry); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data___1.msg_fn = "ll_sa_entry_put"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 334; __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 *)"ll_sa_entry_unhashed(entry)"); lbug_with_loc(& __msg_data___1); } else { } ll_sa_entry_cleanup(sai, entry); iput(entry->se_inode); kfree((void const *)entry); atomic_dec(& sai->sai_cache_count); } else { } return; } } __inline static void do_sa_entry_fini(struct ll_statahead_info *sai , struct ll_sa_entry *entry ) { struct ll_inode_info *lli ; struct ll_inode_info *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 ; int tmp___4 ; long tmp___5 ; { tmp = ll_i2info(sai->sai_inode); lli = tmp; tmp___0 = ll_sa_entry_unhashed(entry); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data.msg_fn = "do_sa_entry_fini"; __msg_data.msg_subsys = 128; __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 *)"!ll_sa_entry_unhashed(entry)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = list_empty((struct list_head const *)(& entry->se_link)); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data___0.msg_fn = "do_sa_entry_fini"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 350; __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(&entry->se_link)"); lbug_with_loc(& __msg_data___0); } else { } ll_sa_entry_unhash(sai, entry); spin_lock(& lli->u.d.d_sa_lock); entry->se_stat = 3; list_del_init(& entry->se_link); tmp___4 = list_empty((struct list_head const *)(& entry->se_list)); tmp___5 = ldv__builtin_expect(tmp___4 == 0, 1L); if (tmp___5 != 0L) { list_del_init(& entry->se_list); } else { } spin_unlock(& lli->u.d.d_sa_lock); ll_sa_entry_put(sai, entry); return; } } static void ll_sa_entry_fini(struct ll_statahead_info *sai , struct ll_sa_entry *entry ) { struct ll_sa_entry *pos ; struct ll_sa_entry *next ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; int tmp ; struct list_head const *__mptr___1 ; { if ((unsigned long )entry != (unsigned long )((struct ll_sa_entry *)0)) { do_sa_entry_fini(sai, entry); } else { } __mptr = (struct list_head const *)sai->sai_entries.next; pos = (struct ll_sa_entry *)__mptr; __mptr___0 = (struct list_head const *)pos->se_link.next; next = (struct ll_sa_entry *)__mptr___0; goto ldv_68296; ldv_68295: tmp = is_omitted_entry(sai, pos->se_index); if (tmp == 0) { goto ldv_68294; } else { } do_sa_entry_fini(sai, pos); pos = next; __mptr___1 = (struct list_head const *)next->se_link.next; next = (struct ll_sa_entry *)__mptr___1; ldv_68296: ; if ((unsigned long )(& pos->se_link) != (unsigned long )(& sai->sai_entries)) { goto ldv_68295; } else { } ldv_68294: ; return; } } static void do_sa_entry_to_stated(struct ll_statahead_info *sai , struct ll_sa_entry *entry , se_stat_t stat ) { struct ll_sa_entry *se ; struct list_head *pos ; int tmp ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; { pos = & sai->sai_entries_stated; tmp = list_empty((struct list_head const *)(& entry->se_list)); if (tmp == 0) { list_del_init(& entry->se_list); } else { } __mptr = (struct list_head const *)sai->sai_entries_stated.prev; se = (struct ll_sa_entry *)__mptr + 0xfffffffffffffff0UL; goto ldv_68310; ldv_68309: ; if (se->se_index < entry->se_index) { pos = & se->se_list; goto ldv_68308; } else { } __mptr___0 = (struct list_head const *)se->se_list.prev; se = (struct ll_sa_entry *)__mptr___0 + 0xfffffffffffffff0UL; ldv_68310: ; if ((unsigned long )(& se->se_list) != (unsigned long )(& sai->sai_entries_stated)) { goto ldv_68309; } else { } ldv_68308: list_add(& entry->se_list, pos); entry->se_stat = stat; return; } } static int ll_sa_entry_to_stated(struct ll_statahead_info *sai , struct ll_sa_entry *entry , se_stat_t stat ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; int ret ; long tmp___0 ; { tmp = ll_i2info(sai->sai_inode); lli = tmp; ret = 1; ll_sa_entry_cleanup(sai, entry); spin_lock(& lli->u.d.d_sa_lock); tmp___0 = ldv__builtin_expect((unsigned int )entry->se_stat != 3U, 1L); if (tmp___0 != 0L) { do_sa_entry_to_stated(sai, entry, stat); ret = 0; } else { } spin_unlock(& lli->u.d.d_sa_lock); return (ret); } } static void ll_agl_add(struct ll_statahead_info *sai , struct inode *inode , int index ) { struct ll_inode_info *child ; struct ll_inode_info *tmp ; struct ll_inode_info *parent ; struct ll_inode_info *tmp___0 ; int added ; struct libcfs_debug_msg_data __msg_data ; int tmp___1 ; long tmp___2 ; int tmp___3 ; { tmp = ll_i2info(inode); child = tmp; tmp___0 = ll_i2info(sai->sai_inode); parent = tmp___0; added = 0; spin_lock(& child->lli_agl_lock); if (child->u.f.f_agl_index == 0ULL) { child->u.f.f_agl_index = (__u64 )index; spin_unlock(& child->lli_agl_lock); tmp___1 = list_empty((struct list_head const *)(& child->u.f.f_agl_list)); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data.msg_fn = "ll_agl_add"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 446; __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(&child->u.f.f_agl_list)"); lbug_with_loc(& __msg_data); } else { } igrab(inode); spin_lock(& parent->lli_agl_lock); tmp___3 = agl_list_empty(sai); if (tmp___3 != 0) { added = 1; } else { } list_add_tail(& child->u.f.f_agl_list, & sai->sai_entries_agl); spin_unlock(& parent->lli_agl_lock); } else { spin_unlock(& child->lli_agl_lock); } if (added > 0) { __wake_up(& sai->sai_agl_thread.t_ctl_waitq, 3U, 1, (void *)0); } else { } return; } } static struct ll_statahead_info *ll_sai_alloc(void) { struct ll_statahead_info *sai ; int i ; void *tmp ; long tmp___0 ; struct lock_class_key __key ; struct lock_class_key __key___0 ; struct lock_class_key __key___1 ; struct lock_class_key __key___2 ; { tmp = kzalloc(3416UL, 80U); sai = (struct ll_statahead_info *)tmp; if ((unsigned long )sai == (unsigned long )((struct ll_statahead_info *)0)) { return ((struct ll_statahead_info *)0); } else { } atomic_set(& sai->sai_refcount, 1); spin_lock(& sai_generation_lock); sai_generation = sai_generation + 1U; sai->sai_generation = sai_generation; tmp___0 = ldv__builtin_expect(sai_generation == 0U, 0L); if (tmp___0 != 0L) { sai_generation = sai_generation + 1U; sai->sai_generation = sai_generation; } else { } spin_unlock(& sai_generation_lock); sai->sai_max = 2U; sai->sai_index = 1ULL; __init_waitqueue_head(& sai->sai_waitq, "&sai->sai_waitq", & __key); __init_waitqueue_head(& sai->sai_thread.t_ctl_waitq, "&sai->sai_thread.t_ctl_waitq", & __key___0); __init_waitqueue_head(& sai->sai_agl_thread.t_ctl_waitq, "&sai->sai_agl_thread.t_ctl_waitq", & __key___1); INIT_LIST_HEAD(& sai->sai_entries); INIT_LIST_HEAD(& sai->sai_entries_received); INIT_LIST_HEAD(& sai->sai_entries_stated); INIT_LIST_HEAD(& sai->sai_entries_agl); i = 0; goto ldv_68338; ldv_68337: INIT_LIST_HEAD((struct list_head *)(& sai->sai_cache) + (unsigned long )i); spinlock_check((spinlock_t *)(& sai->sai_cache_lock) + (unsigned long )i); __raw_spin_lock_init(& ((spinlock_t *)(& sai->sai_cache_lock) + (unsigned long )i)->__annonCompField18.rlock, "&(&sai->sai_cache_lock[i])->rlock", & __key___2); i = i + 1; ldv_68338: ; if (i <= 31) { goto ldv_68337; } else { } atomic_set(& sai->sai_cache_count, 0); return (sai); } } __inline static struct ll_statahead_info *ll_sai_get(struct ll_statahead_info *sai ) { { atomic_inc(& sai->sai_refcount); return (sai); } } static void ll_sai_put(struct ll_statahead_info *sai ) { struct inode *inode ; struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ll_sa_entry *entry ; struct ll_sa_entry *next ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___3 ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___5 ; long tmp___6 ; struct libcfs_debug_msg_data msgdata ; int tmp___7 ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; struct libcfs_debug_msg_data __msg_data___2 ; int tmp___8 ; long tmp___9 ; struct libcfs_debug_msg_data __msg_data___3 ; int tmp___10 ; long tmp___11 ; struct libcfs_debug_msg_data __msg_data___4 ; int tmp___12 ; long tmp___13 ; struct libcfs_debug_msg_data __msg_data___5 ; int tmp___14 ; long tmp___15 ; struct libcfs_debug_msg_data __msg_data___6 ; int tmp___16 ; long tmp___17 ; int tmp___18 ; { inode = sai->sai_inode; tmp = ll_i2info(inode); lli = tmp; tmp___18 = ldv_spin_trylock(); if (tmp___18 != 0) { tmp___0 = atomic_read((atomic_t const *)(& sai->sai_refcount)); tmp___1 = ldv__builtin_expect(tmp___0 > 0, 0L); if (tmp___1 != 0L) { spin_unlock(& lli->u.d.d_sa_lock); return; } else { } tmp___2 = ldv__builtin_expect((unsigned long )lli->u.d.d_opendir_key != (unsigned long )((void *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data.msg_fn = "ll_sai_put"; __msg_data.msg_subsys = 128; __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 *)"lli->u.d.d_opendir_key == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___3 = thread_is_stopped(& sai->sai_thread); tmp___4 = ldv__builtin_expect(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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data___0.msg_fn = "ll_sai_put"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 522; __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 *)"thread_is_stopped(&sai->sai_thread)"); lbug_with_loc(& __msg_data___0); } else { } tmp___5 = thread_is_stopped(& sai->sai_agl_thread); tmp___6 = ldv__builtin_expect(tmp___5 == 0, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data___1.msg_fn = "ll_sai_put"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 523; __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 *)"thread_is_stopped(&sai->sai_agl_thread)"); lbug_with_loc(& __msg_data___1); } else { } lli->u.d.d_sai = (struct ll_statahead_info *)0; lli->u.d.d_opendir_pid = 0; spin_unlock(& lli->u.d.d_sa_lock); if (sai->sai_sent > sai->sai_replied) { tmp___7 = cfs_cdebug_show(4194304U, 128U); if (tmp___7 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata.msg_fn = "ll_sai_put"; msgdata.msg_line = 533; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "statahead for dir [%#llx:0x%x:0x%x] does not finish: [sent:%llu] [replied:%llu]\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, sai->sai_sent, sai->sai_replied); } else { } } else { } __mptr = (struct list_head const *)sai->sai_entries.next; entry = (struct ll_sa_entry *)__mptr; __mptr___0 = (struct list_head const *)entry->se_link.next; next = (struct ll_sa_entry *)__mptr___0; goto ldv_68362; ldv_68361: do_sa_entry_fini(sai, entry); entry = next; __mptr___1 = (struct list_head const *)next->se_link.next; next = (struct ll_sa_entry *)__mptr___1; ldv_68362: ; if ((unsigned long )(& entry->se_link) != (unsigned long )(& sai->sai_entries)) { goto ldv_68361; } else { } tmp___8 = list_empty((struct list_head const *)(& sai->sai_entries)); tmp___9 = ldv__builtin_expect(tmp___8 == 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data___2.msg_fn = "ll_sai_put"; __msg_data___2.msg_subsys = 128; __msg_data___2.msg_line = 539; __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(&sai->sai_entries)"); lbug_with_loc(& __msg_data___2); } else { } tmp___10 = sa_received_empty(sai); tmp___11 = ldv__builtin_expect(tmp___10 == 0, 0L); if (tmp___11 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data___3.msg_fn = "ll_sai_put"; __msg_data___3.msg_subsys = 128; __msg_data___3.msg_line = 540; __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 *)"sa_received_empty(sai)"); lbug_with_loc(& __msg_data___3); } else { } tmp___12 = list_empty((struct list_head const *)(& sai->sai_entries_stated)); tmp___13 = ldv__builtin_expect(tmp___12 == 0, 0L); if (tmp___13 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data___4.msg_fn = "ll_sai_put"; __msg_data___4.msg_subsys = 128; __msg_data___4.msg_line = 541; __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(&sai->sai_entries_stated)"); lbug_with_loc(& __msg_data___4); } else { } tmp___14 = atomic_read((atomic_t const *)(& sai->sai_cache_count)); tmp___15 = ldv__builtin_expect(tmp___14 != 0, 0L); if (tmp___15 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data___5.msg_fn = "ll_sai_put"; __msg_data___5.msg_subsys = 128; __msg_data___5.msg_line = 543; __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 *)"atomic_read(&sai->sai_cache_count) == 0"); lbug_with_loc(& __msg_data___5); } else { } tmp___16 = agl_list_empty(sai); tmp___17 = ldv__builtin_expect(tmp___16 == 0, 0L); if (tmp___17 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data___6.msg_fn = "ll_sai_put"; __msg_data___6.msg_subsys = 128; __msg_data___6.msg_line = 544; __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 *)"agl_list_empty(sai)"); lbug_with_loc(& __msg_data___6); } else { } iput(inode); kfree((void const *)sai); } else { } return; } } static void ll_agl_trigger(struct inode *inode , struct ll_statahead_info *sai ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; __u64 index ; int rc ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; int tmp___2 ; unsigned long tmp___3 ; struct libcfs_debug_msg_data msgdata ; int tmp___4 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___5 ; { tmp = ll_i2info(inode); lli = tmp; index = lli->u.f.f_agl_index; tmp___0 = list_empty((struct list_head const *)(& lli->u.f.f_agl_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data.msg_fn = "ll_agl_trigger"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 558; __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(&lli->u.f.f_agl_list)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = is_omitted_entry(sai, index + 1ULL); if (tmp___2 != 0) { lli->u.f.f_agl_index = 0ULL; iput(inode); return; } else { } rc = down_write_trylock(& lli->u.f.f_glimpse_sem); if (rc == 0) { lli->u.f.f_agl_index = 0ULL; iput(inode); return; } else { } if (lli->u.f.f_glimpse_time != 0UL) { tmp___3 = cfs_time_shift(-1); if ((long )(tmp___3 - lli->u.f.f_glimpse_time) < 0L) { up_write(& lli->u.f.f_glimpse_sem); lli->u.f.f_agl_index = 0ULL; iput(inode); return; } else { } } else { } tmp___4 = cfs_cdebug_show(4194304U, 128U); if (tmp___4 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata.msg_fn = "ll_agl_trigger"; msgdata.msg_line = 597; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "Handling (init) async glimpse: inode = [%#llx:0x%x:0x%x], idx = %llu\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, index); } else { } cl_agl(inode); lli->u.f.f_agl_index = 0ULL; lli->u.f.f_glimpse_time = cfs_time_current(); up_write(& lli->u.f.f_glimpse_sem); tmp___5 = cfs_cdebug_show(4194304U, 128U); if (tmp___5 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata___0.msg_fn = "ll_agl_trigger"; msgdata___0.msg_line = 606; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 4194304; libcfs_debug_msg(& msgdata___0, "Handled (init) async glimpse: inode= [%#llx:0x%x:0x%x], idx = %llu, rc = %d\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, index, rc); } else { } iput(inode); return; } } static void ll_post_statahead(struct ll_statahead_info *sai ) { struct inode *dir ; struct inode *child ; struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ll_sa_entry *entry ; struct md_enqueue_info *minfo ; struct lookup_intent *it ; struct ptlrpc_request *req ; struct mdt_body *body ; int rc ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data ; long tmp___2 ; void *tmp___3 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___4 ; long tmp___5 ; int tmp___6 ; long tmp___7 ; struct lu_fid *tmp___8 ; struct obd_export *tmp___9 ; struct libcfs_debug_msg_data msgdata ; int tmp___10 ; struct ll_sb_info *tmp___11 ; int tmp___12 ; { dir = sai->sai_inode; tmp = ll_i2info(dir); lli = tmp; rc = 0; spin_lock(& lli->u.d.d_sa_lock); tmp___0 = sa_received_empty(sai); tmp___1 = ldv__builtin_expect(tmp___0 != 0, 0L); if (tmp___1 != 0L) { spin_unlock(& lli->u.d.d_sa_lock); return; } else { } entry = sa_first_received_entry(sai); atomic_inc(& entry->se_refcount); list_del_init(& entry->se_list); spin_unlock(& lli->u.d.d_sa_lock); tmp___2 = ldv__builtin_expect(entry->se_handle == 0ULL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data.msg_fn = "ll_post_statahead"; __msg_data.msg_subsys = 128; __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 *)"entry->se_handle != 0"); lbug_with_loc(& __msg_data); } else { } minfo = entry->se_minfo; it = & minfo->mi_it; req = entry->se_req; tmp___3 = req_capsule_server_get(& req->rq_pill, (struct req_msg_field const *)(& RMF_MDT_BODY)); body = (struct mdt_body *)tmp___3; if ((unsigned long )body == (unsigned long )((struct mdt_body *)0)) { rc = -14; goto out; } else { } child = entry->se_inode; if ((unsigned long )child == (unsigned long )((struct inode *)0)) { tmp___4 = fid_is_zero((struct lu_fid const *)(& minfo->mi_data.op_fid2)); tmp___5 = ldv__builtin_expect(tmp___4 == 0, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data___0.msg_fn = "ll_post_statahead"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 649; __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 *)"fid_is_zero(&minfo->mi_data.op_fid2)"); lbug_with_loc(& __msg_data___0); } else { } if ((body->valid & 4294967296ULL) != 0ULL) { rc = -11; goto out; } else { } } else { tmp___6 = lu_fid_eq((struct lu_fid const *)(& minfo->mi_data.op_fid2), (struct lu_fid const *)(& body->fid1)); tmp___7 = ldv__builtin_expect(tmp___6 == 0, 0L); if (tmp___7 != 0L) { entry->se_inode = (struct inode *)0; iput(child); child = (struct inode *)0; } else { } } it->d.lustre.it_lock_handle = entry->se_handle; tmp___8 = ll_inode2fid(dir); tmp___9 = ll_i2mdexp(dir); rc = md_revalidate_lock(tmp___9, it, tmp___8, (__u64 *)0ULL); if (rc != 1) { rc = -11; goto out; } else { } rc = ll_prep_inode(& child, req, dir->i_sb, it); if (rc != 0) { goto out; } else { } tmp___10 = cfs_cdebug_show(65536U, 128U); if (tmp___10 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata.msg_fn = "ll_post_statahead"; msgdata.msg_line = 681; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 65536; libcfs_debug_msg(& msgdata, "setting l_data to inode %p (%lu/%u)\n", child, child->i_ino, child->i_generation); } else { } tmp___11 = ll_i2sbi(dir); ll_set_lock_data(tmp___11->ll_md_exp, child, it, (__u64 *)0ULL); entry->se_inode = child; tmp___12 = agl_should_run(sai, child); if (tmp___12 != 0) { ll_agl_add(sai, child, (int )entry->se_index); } else { } out: rc = ll_sa_entry_to_stated(sai, entry, rc < 0 ? 2 : 1); if (rc == 0 && entry->se_index == sai->sai_index_wait) { __wake_up(& sai->sai_waitq, 3U, 1, (void *)0); } else { } ll_sa_entry_put(sai, entry); return; } } static int ll_statahead_interpret(struct ptlrpc_request *req , struct md_enqueue_info *minfo , int rc ) { struct lookup_intent *it ; struct inode *dir ; struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ll_statahead_info *sai ; struct ll_sa_entry *entry ; __u64 handle ; int wakeup ; int tmp___0 ; int tmp___1 ; long tmp___2 ; long tmp___3 ; { it = & minfo->mi_it; dir = minfo->mi_dir; tmp = ll_i2info(dir); lli = tmp; sai = (struct ll_statahead_info *)0; handle = 0ULL; tmp___0 = it_disposition(it, 4); if (tmp___0 != 0) { rc = -2; } else { } if (rc == 0) { handle = it->d.lustre.it_lock_handle; ll_intent_drop_lock(it); } else { } spin_lock(& lli->u.d.d_sa_lock); tmp___3 = ldv__builtin_expect((long )((unsigned long )lli->u.d.d_sai == (unsigned long )((struct ll_statahead_info *)0) || (lli->u.d.d_sai)->sai_generation != minfo->mi_generation), 0L); if (tmp___3 != 0L) { spin_unlock(& lli->u.d.d_sa_lock); rc = -116; goto out; } else { sai = ll_sai_get(lli->u.d.d_sai); tmp___1 = thread_is_running(& sai->sai_thread); tmp___2 = ldv__builtin_expect(tmp___1 == 0, 0L); if (tmp___2 != 0L) { sai->sai_replied = sai->sai_replied + 1ULL; spin_unlock(& lli->u.d.d_sa_lock); rc = -77; goto out; } else { } entry = ll_sa_entry_get_byindex(sai, minfo->mi_cbdata); if ((unsigned long )entry == (unsigned long )((struct ll_sa_entry *)0)) { sai->sai_replied = sai->sai_replied + 1ULL; spin_unlock(& lli->u.d.d_sa_lock); rc = -43; goto out; } else { } if (rc != 0) { do_sa_entry_to_stated(sai, entry, 2); wakeup = entry->se_index == sai->sai_index_wait; } else { entry->se_minfo = minfo; entry->se_req = ptlrpc_request_addref(req); entry->se_handle = handle; wakeup = sa_received_empty(sai); list_add_tail(& entry->se_list, & sai->sai_entries_received); } sai->sai_replied = sai->sai_replied + 1ULL; spin_unlock(& lli->u.d.d_sa_lock); ll_sa_entry_put(sai, entry); if (wakeup != 0) { __wake_up(& sai->sai_thread.t_ctl_waitq, 3U, 1, (void *)0); } else { } } out: ; if (rc != 0) { ll_intent_release(it); iput(dir); kfree((void const *)minfo); } else { } if ((unsigned long )sai != (unsigned long )((struct ll_statahead_info *)0)) { ll_sai_put(sai); } else { } return (rc); } } static void sa_args_fini(struct md_enqueue_info *minfo , struct ldlm_enqueue_info *einfo ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((long )((unsigned long )minfo == (unsigned long )((struct md_enqueue_info *)0) || (unsigned long )einfo == (unsigned long )((struct ldlm_enqueue_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data.msg_fn = "sa_args_fini"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 785; __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 *)"minfo && einfo"); lbug_with_loc(& __msg_data); } else { } iput(minfo->mi_dir); capa_put(minfo->mi_data.op_capa1); capa_put(minfo->mi_data.op_capa2); kfree((void const *)minfo); kfree((void const *)einfo); return; } } static int sa_args_init(struct inode *dir , struct inode *child , struct ll_sa_entry *entry , struct md_enqueue_info **pmi , struct ldlm_enqueue_info **pei , struct obd_capa **pcapa ) { struct qstr *qstr ; struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct md_enqueue_info *minfo ; struct ldlm_enqueue_info *einfo ; struct md_op_data *op_data ; void *tmp___0 ; void *tmp___1 ; long tmp___2 ; bool tmp___3 ; int tmp___4 ; { qstr = & entry->se_qstr; tmp = ll_i2info(dir); lli = tmp; tmp___0 = kzalloc(40UL, 80U); einfo = (struct ldlm_enqueue_info *)tmp___0; if ((unsigned long )einfo == (unsigned long )((struct ldlm_enqueue_info *)0)) { return (-12); } else { } tmp___1 = kzalloc(440UL, 80U); minfo = (struct md_enqueue_info *)tmp___1; if ((unsigned long )minfo == (unsigned long )((struct md_enqueue_info *)0)) { kfree((void const *)einfo); return (-12); } else { } op_data = ll_prep_md_op_data(& minfo->mi_data, dir, child, (char const *)qstr->name, (int )qstr->__annonCompField61.__annonCompField60.len, 0, 16U, (void *)0); tmp___3 = IS_ERR((void const *)op_data); if ((int )tmp___3) { kfree((void const *)einfo); kfree((void const *)minfo); tmp___2 = PTR_ERR((void const *)op_data); return ((int )tmp___2); } else { } minfo->mi_it.it_op = 8; minfo->mi_dir = igrab(dir); minfo->mi_cb = & ll_statahead_interpret; minfo->mi_generation = (lli->u.d.d_sai)->sai_generation; minfo->mi_cbdata = entry->se_index; einfo->ei_type = 13U; tmp___4 = it_to_lock_mode(& minfo->mi_it); einfo->ei_mode = (__u32 )tmp___4; einfo->ei_cb_bl = (void *)(& ll_md_blocking_ast); einfo->ei_cb_cp = (void *)(& ldlm_completion_ast); einfo->ei_cb_gl = (void *)0; einfo->ei_cbdata = (void *)0; *pmi = minfo; *pei = einfo; *pcapa = op_data->op_capa1; *(pcapa + 1UL) = op_data->op_capa2; return (0); } } static int do_sa_lookup(struct inode *dir , struct ll_sa_entry *entry ) { struct md_enqueue_info *minfo ; struct ldlm_enqueue_info *einfo ; struct obd_capa *capas[2U] ; int rc ; struct obd_export *tmp ; { rc = sa_args_init(dir, (struct inode *)0, entry, & minfo, & einfo, (struct obd_capa **)(& capas)); if (rc != 0) { return (rc); } else { } tmp = ll_i2mdexp(dir); rc = md_intent_getattr_async(tmp, minfo, einfo); if (rc == 0) { capa_put(capas[0]); capa_put(capas[1]); } else { sa_args_fini(minfo, einfo); } return (rc); } } static int do_sa_revalidate(struct inode *dir , struct ll_sa_entry *entry , struct dentry *dentry ) { struct inode *inode ; struct inode *tmp ; struct lookup_intent it ; struct md_enqueue_info *minfo ; struct ldlm_enqueue_info *einfo ; struct obd_capa *capas[2U] ; int rc ; long tmp___0 ; bool tmp___1 ; struct lu_fid *tmp___2 ; struct obd_export *tmp___3 ; struct obd_export *tmp___4 ; { tmp = d_inode((struct dentry const *)dentry); inode = tmp; it.it_op = 8; it.it_create_mode = 0; it.it_flags = 0ULL; it.d.lustre.it_disposition = 0; it.d.lustre.it_status = 0; it.d.lustre.it_lock_handle = 0ULL; it.d.lustre.it_lock_bits = 0ULL; it.d.lustre.it_lock_mode = 0; it.d.lustre.it_remote_lock_mode = 0; it.d.lustre.it_remote_lock_handle = 0ULL; it.d.lustre.it_data = 0; it.d.lustre.it_lock_set = (unsigned char)0; tmp___0 = ldv__builtin_expect((unsigned long )inode == (unsigned long )((struct inode *)0), 0L); if (tmp___0 != 0L) { return (1); } else { } tmp___1 = d_mountpoint((struct dentry const *)dentry); if ((int )tmp___1) { return (1); } else { } entry->se_inode = igrab(inode); tmp___2 = ll_inode2fid(inode); tmp___3 = ll_i2mdexp(dir); rc = md_revalidate_lock(tmp___3, & it, tmp___2, (__u64 *)0ULL); if (rc == 1) { entry->se_handle = it.d.lustre.it_lock_handle; ll_intent_release(& it); return (1); } else { } rc = sa_args_init(dir, inode, entry, & minfo, & einfo, (struct obd_capa **)(& capas)); if (rc != 0) { entry->se_inode = (struct inode *)0; iput(inode); return (rc); } else { } tmp___4 = ll_i2mdexp(dir); rc = md_intent_getattr_async(tmp___4, minfo, einfo); if (rc == 0) { capa_put(capas[0]); capa_put(capas[1]); } else { entry->se_inode = (struct inode *)0; iput(inode); sa_args_fini(minfo, einfo); } return (rc); } } static void ll_statahead_one(struct dentry *parent , char const *entry_name , int entry_name_len ) { struct inode *dir ; struct inode *tmp ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___0 ; struct ll_statahead_info *sai ; struct dentry *dentry ; struct ll_sa_entry *entry ; int rc ; int rc1 ; bool tmp___1 ; struct inode *tmp___2 ; struct inode *tmp___3 ; int tmp___4 ; { tmp = d_inode((struct dentry const *)parent); dir = tmp; tmp___0 = ll_i2info(dir); lli = tmp___0; sai = lli->u.d.d_sai; dentry = (struct dentry *)0; entry = ll_sa_entry_alloc(sai, sai->sai_index, entry_name, entry_name_len); tmp___1 = IS_ERR((void const *)entry); if ((int )tmp___1) { return; } else { } dentry = d_lookup((struct dentry const *)parent, (struct qstr const *)(& entry->se_qstr)); if ((unsigned long )dentry == (unsigned long )((struct dentry *)0)) { rc = do_sa_lookup(dir, entry); } else { rc = do_sa_revalidate(dir, entry, dentry); if (rc == 1) { tmp___3 = d_inode((struct dentry const *)dentry); tmp___4 = agl_should_run(sai, tmp___3); if (tmp___4 != 0) { tmp___2 = d_inode((struct dentry const *)dentry); ll_agl_add(sai, tmp___2, (int )entry->se_index); } else { } } else { } } if ((unsigned long )dentry != (unsigned long )((struct dentry *)0)) { dput(dentry); } else { } if (rc != 0) { rc1 = ll_sa_entry_to_stated(sai, entry, rc < 0 ? 2 : 1); if (rc1 == 0 && entry->se_index == sai->sai_index_wait) { __wake_up(& sai->sai_waitq, 3U, 1, (void *)0); } else { } } else { sai->sai_sent = sai->sai_sent + 1ULL; } sai->sai_index = sai->sai_index + 1ULL; ll_sa_entry_put(sai, entry); return; } } static int ll_agl_thread(void *arg ) { struct dentry *parent ; struct inode *dir ; struct inode *tmp ; struct ll_inode_info *plli ; struct ll_inode_info *tmp___0 ; struct ll_inode_info *clli ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___1 ; struct ll_statahead_info *sai ; struct ll_statahead_info *tmp___2 ; struct ptlrpc_thread *thread ; struct l_wait_info lwi ; struct task_struct *tmp___3 ; struct libcfs_debug_msg_data msgdata ; int tmp___4 ; int tmp___5 ; int __ret ; struct l_wait_info *__info ; wait_queue_t __wait ; long __timeout ; sigset_t __blocked ; int __allow_intr ; int tmp___6 ; int tmp___7 ; struct task_struct *tmp___8 ; int tmp___9 ; int tmp___10 ; struct task_struct *tmp___11 ; long volatile __ret___0 ; struct task_struct *tmp___12 ; struct task_struct *tmp___13 ; struct task_struct *tmp___14 ; struct task_struct *tmp___15 ; long interval ; long __min1 ; long __min2 ; long tmp___16 ; long remaining ; long tmp___17 ; unsigned long tmp___18 ; unsigned long tmp___19 ; int tmp___20 ; struct task_struct *tmp___21 ; long volatile __ret___1 ; struct task_struct *tmp___22 ; struct task_struct *tmp___23 ; struct task_struct *tmp___24 ; struct task_struct *tmp___25 ; int tmp___26 ; int tmp___27 ; int tmp___28 ; int tmp___29 ; int tmp___30 ; int tmp___31 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___32 ; { parent = (struct dentry *)arg; tmp = d_inode((struct dentry const *)parent); dir = tmp; tmp___0 = ll_i2info(dir); plli = tmp___0; tmp___1 = ll_i2sbi(dir); sbi = tmp___1; tmp___2 = ll_sai_get(plli->u.d.d_sai); sai = tmp___2; thread = & sai->sai_agl_thread; lwi.lwi_timeout = 0L; lwi.lwi_interval = 0L; lwi.lwi_allow_intr = 0; lwi.lwi_on_timeout = 0; lwi.lwi_on_signal = 0; lwi.lwi_cb_data = 0; tmp___3 = get_current(); thread->t_pid = tmp___3->pid; tmp___4 = cfs_cdebug_show(4194304U, 128U); if (tmp___4 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata.msg_fn = "ll_agl_thread"; msgdata.msg_line = 981; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "agl thread started: sai %p, parent %pd\n", sai, parent); } else { } atomic_inc(& sbi->ll_agl_total); spin_lock(& plli->lli_agl_lock); sai->sai_agl_valid = 1U; tmp___5 = thread_is_init(thread); if (tmp___5 != 0) { thread_set_flags(thread, 8U); } else { } spin_unlock(& plli->lli_agl_lock); __wake_up(& thread->t_ctl_waitq, 3U, 1, (void *)0); ldv_68512: __info = & lwi; __timeout = __info->lwi_timeout; __allow_intr = __info->lwi_allow_intr; __ret = 0; tmp___6 = agl_list_empty(sai); if (tmp___6 == 0) { goto ldv_68485; } else { tmp___7 = thread_is_running(thread); if (tmp___7 == 0) { goto ldv_68485; } else { } } tmp___8 = get_current(); init_waitqueue_entry(& __wait, tmp___8); add_wait_queue(& thread->t_ctl_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_68509: tmp___9 = agl_list_empty(sai); if (tmp___9 == 0) { goto ldv_68486; } else { tmp___10 = thread_is_running(thread); if (tmp___10 == 0) { goto ldv_68486; } else { } } tmp___11 = get_current(); tmp___11->task_state_change = 0UL; __ret___0 = 1L; switch (8UL) { case 1UL: tmp___12 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___0), "+m" (tmp___12->state): : "memory", "cc"); goto ldv_68489; case 2UL: tmp___13 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___0), "+m" (tmp___13->state): : "memory", "cc"); goto ldv_68489; case 4UL: tmp___14 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___0), "+m" (tmp___14->state): : "memory", "cc"); goto ldv_68489; case 8UL: tmp___15 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___0), "+m" (tmp___15->state): : "memory", "cc"); goto ldv_68489; default: __xchg_wrong_size(); } ldv_68489: ; if (__timeout == 0L) { schedule(); } else { if (__info->lwi_interval != 0L) { __min1 = __info->lwi_interval; __min2 = __timeout; tmp___16 = __min1 < __min2 ? __min1 : __min2; } else { tmp___16 = __timeout; } interval = tmp___16; tmp___17 = schedule_timeout(interval); remaining = tmp___17; tmp___18 = cfs_time_sub((unsigned long )interval, (unsigned long )remaining); tmp___19 = cfs_time_sub((unsigned long )__timeout, tmp___18); __timeout = (long )tmp___19; if (__timeout == 0L) { if ((unsigned long )__info->lwi_on_timeout == (unsigned long )((int (*)(void * ))0)) { __ret = -110; goto ldv_68486; } else { tmp___20 = (*(__info->lwi_on_timeout))(__info->lwi_cb_data); if (tmp___20 != 0) { __ret = -110; goto ldv_68486; } else { } } if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0)) { cfs_block_sigsinv(24838UL); } else { } } else { } } tmp___21 = get_current(); tmp___21->task_state_change = 0UL; __ret___1 = 0L; switch (8UL) { case 1UL: tmp___22 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___1), "+m" (tmp___22->state): : "memory", "cc"); goto ldv_68502; case 2UL: tmp___23 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___1), "+m" (tmp___23->state): : "memory", "cc"); goto ldv_68502; case 4UL: tmp___24 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___1), "+m" (tmp___24->state): : "memory", "cc"); goto ldv_68502; case 8UL: tmp___25 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___1), "+m" (tmp___25->state): : "memory", "cc"); goto ldv_68502; default: __xchg_wrong_size(); } ldv_68502: tmp___26 = agl_list_empty(sai); if (tmp___26 == 0) { goto ldv_68486; } else { tmp___27 = thread_is_running(thread); if (tmp___27 == 0) { goto ldv_68486; } else { } } tmp___28 = cfs_signal_pending(); if (tmp___28 != 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_68486; } else { } cfs_clear_sigpending(); } else { } goto ldv_68509; ldv_68486: cfs_restore_sigs(__blocked); remove_wait_queue(& thread->t_ctl_waitq, & __wait); ldv_68485: tmp___29 = thread_is_running(thread); if (tmp___29 == 0) { goto ldv_68511; } else { } spin_lock(& plli->lli_agl_lock); tmp___30 = agl_list_empty(sai); if (tmp___30 == 0) { clli = agl_first_entry(sai); list_del_init(& clli->u.f.f_agl_list); spin_unlock(& plli->lli_agl_lock); ll_agl_trigger(& clli->lli_vfs_inode, sai); } else { spin_unlock(& plli->lli_agl_lock); } goto ldv_68512; ldv_68511: spin_lock(& plli->lli_agl_lock); sai->sai_agl_valid = 0U; goto ldv_68514; ldv_68513: clli = agl_first_entry(sai); list_del_init(& clli->u.f.f_agl_list); spin_unlock(& plli->lli_agl_lock); clli->u.f.f_agl_index = 0ULL; iput(& clli->lli_vfs_inode); spin_lock(& plli->lli_agl_lock); ldv_68514: tmp___31 = agl_list_empty(sai); if (tmp___31 == 0) { goto ldv_68513; } else { } thread_set_flags(thread, 1U); spin_unlock(& plli->lli_agl_lock); __wake_up(& thread->t_ctl_waitq, 3U, 1, (void *)0); ll_sai_put(sai); tmp___32 = cfs_cdebug_show(4194304U, 128U); if (tmp___32 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata___0.msg_fn = "ll_agl_thread"; msgdata___0.msg_line = 1031; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 4194304; libcfs_debug_msg(& msgdata___0, "agl thread stopped: sai %p, parent %pd\n", sai, parent); } else { } return (0); } } static void ll_start_agl(struct dentry *parent , struct ll_statahead_info *sai ) { struct ptlrpc_thread *thread ; struct l_wait_info lwi ; struct ll_inode_info *plli ; struct task_struct *task ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct inode *tmp___0 ; struct task_struct *__k ; struct task_struct *tmp___1 ; bool tmp___2 ; int tmp___3 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; long tmp___4 ; int tmp___5 ; bool tmp___6 ; int __ret ; struct l_wait_info *__info ; wait_queue_t __wait ; long __timeout ; sigset_t __blocked ; int __allow_intr ; int tmp___7 ; int tmp___8 ; struct task_struct *tmp___9 ; int tmp___10 ; int tmp___11 ; struct task_struct *tmp___12 ; long volatile __ret___0 ; struct task_struct *tmp___13 ; struct task_struct *tmp___14 ; struct task_struct *tmp___15 ; struct task_struct *tmp___16 ; long interval ; long __min1 ; long __min2 ; long tmp___17 ; long remaining ; long tmp___18 ; unsigned long tmp___19 ; unsigned long tmp___20 ; int tmp___21 ; struct task_struct *tmp___22 ; long volatile __ret___1 ; struct task_struct *tmp___23 ; struct task_struct *tmp___24 ; struct task_struct *tmp___25 ; struct task_struct *tmp___26 ; int tmp___27 ; int tmp___28 ; int tmp___29 ; { thread = & sai->sai_agl_thread; lwi.lwi_timeout = 0L; lwi.lwi_interval = 0L; lwi.lwi_allow_intr = 0; lwi.lwi_on_timeout = 0; lwi.lwi_on_signal = 0; lwi.lwi_cb_data = 0; tmp = cfs_cdebug_show(4194304U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata.msg_fn = "ll_start_agl"; msgdata.msg_line = 1043; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "start agl thread: sai %p, parent %pd\n", sai, parent); } else { } tmp___0 = d_inode((struct dentry const *)parent); plli = ll_i2info(tmp___0); tmp___1 = kthread_create_on_node(& ll_agl_thread, (void *)parent, -1, "ll_agl_%u", plli->u.d.d_opendir_pid); __k = tmp___1; tmp___2 = IS_ERR((void const *)__k); if (tmp___2) { tmp___3 = 0; } else { tmp___3 = 1; } if (tmp___3) { wake_up_process(__k); } else { } task = __k; tmp___6 = IS_ERR((void const *)task); if ((int )tmp___6) { tmp___5 = cfs_cdebug_show(131072U, 128U); if (tmp___5 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata___0.msg_fn = "ll_start_agl"; msgdata___0.msg_line = 1049; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; tmp___4 = PTR_ERR((void const *)task); libcfs_debug_msg(& msgdata___0, "can\'t start ll_agl thread, rc: %ld\n", tmp___4); } else { } thread_set_flags(thread, 1U); return; } else { } __info = & lwi; __timeout = __info->lwi_timeout; __allow_intr = __info->lwi_allow_intr; __ret = 0; tmp___7 = thread_is_running(thread); if (tmp___7 != 0) { goto ldv_68537; } else { tmp___8 = thread_is_stopped(thread); if (tmp___8 != 0) { goto ldv_68537; } else { } } tmp___9 = get_current(); init_waitqueue_entry(& __wait, tmp___9); add_wait_queue(& thread->t_ctl_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_68561: tmp___10 = thread_is_running(thread); if (tmp___10 != 0) { goto ldv_68538; } else { tmp___11 = thread_is_stopped(thread); if (tmp___11 != 0) { goto ldv_68538; } else { } } tmp___12 = get_current(); tmp___12->task_state_change = 0UL; __ret___0 = 1L; switch (8UL) { case 1UL: tmp___13 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___0), "+m" (tmp___13->state): : "memory", "cc"); goto ldv_68541; case 2UL: tmp___14 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___0), "+m" (tmp___14->state): : "memory", "cc"); goto ldv_68541; case 4UL: tmp___15 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___0), "+m" (tmp___15->state): : "memory", "cc"); goto ldv_68541; case 8UL: tmp___16 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___0), "+m" (tmp___16->state): : "memory", "cc"); goto ldv_68541; default: __xchg_wrong_size(); } ldv_68541: ; if (__timeout == 0L) { schedule(); } else { if (__info->lwi_interval != 0L) { __min1 = __info->lwi_interval; __min2 = __timeout; tmp___17 = __min1 < __min2 ? __min1 : __min2; } else { tmp___17 = __timeout; } interval = tmp___17; tmp___18 = schedule_timeout(interval); remaining = tmp___18; tmp___19 = cfs_time_sub((unsigned long )interval, (unsigned long )remaining); tmp___20 = cfs_time_sub((unsigned long )__timeout, tmp___19); __timeout = (long )tmp___20; if (__timeout == 0L) { if ((unsigned long )__info->lwi_on_timeout == (unsigned long )((int (*)(void * ))0)) { __ret = -110; goto ldv_68538; } else { tmp___21 = (*(__info->lwi_on_timeout))(__info->lwi_cb_data); if (tmp___21 != 0) { __ret = -110; goto ldv_68538; } else { } } if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0)) { cfs_block_sigsinv(24838UL); } else { } } else { } } tmp___22 = get_current(); tmp___22->task_state_change = 0UL; __ret___1 = 0L; switch (8UL) { case 1UL: tmp___23 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___1), "+m" (tmp___23->state): : "memory", "cc"); goto ldv_68554; case 2UL: tmp___24 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___1), "+m" (tmp___24->state): : "memory", "cc"); goto ldv_68554; case 4UL: tmp___25 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___1), "+m" (tmp___25->state): : "memory", "cc"); goto ldv_68554; case 8UL: tmp___26 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___1), "+m" (tmp___26->state): : "memory", "cc"); goto ldv_68554; default: __xchg_wrong_size(); } ldv_68554: tmp___27 = thread_is_running(thread); if (tmp___27 != 0) { goto ldv_68538; } else { tmp___28 = thread_is_stopped(thread); if (tmp___28 != 0) { goto ldv_68538; } else { } } tmp___29 = cfs_signal_pending(); if (tmp___29 != 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_68538; } else { } cfs_clear_sigpending(); } else { } goto ldv_68561; ldv_68538: cfs_restore_sigs(__blocked); remove_wait_queue(& thread->t_ctl_waitq, & __wait); ldv_68537: ; return; } } static int ll_statahead_thread(void *arg ) { struct dentry *parent ; struct inode *dir ; struct inode *tmp ; struct ll_inode_info *plli ; struct ll_inode_info *tmp___0 ; struct ll_inode_info *clli ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___1 ; struct ll_statahead_info *sai ; struct ll_statahead_info *tmp___2 ; struct ptlrpc_thread *thread ; struct ptlrpc_thread *agl_thread ; struct page *page ; __u64 pos ; int first ; int rc ; struct ll_dir_chain chain ; struct l_wait_info lwi ; struct task_struct *tmp___3 ; struct libcfs_debug_msg_data msgdata ; int tmp___4 ; int tmp___5 ; struct lu_dirpage *dp ; struct lu_dirent *ent ; long tmp___6 ; struct libcfs_debug_msg_data msgdata___0 ; struct lu_fid *tmp___7 ; struct lu_fid *tmp___8 ; struct lu_fid *tmp___9 ; int tmp___10 ; bool tmp___11 ; void *tmp___12 ; __u64 hash ; int namelen ; char *name ; long tmp___13 ; long tmp___14 ; long tmp___15 ; int __ret ; struct l_wait_info *__info ; wait_queue_t __wait ; long __timeout ; sigset_t __blocked ; int __allow_intr ; int tmp___16 ; int tmp___17 ; int tmp___18 ; int tmp___19 ; struct task_struct *tmp___20 ; int tmp___21 ; int tmp___22 ; int tmp___23 ; int tmp___24 ; struct task_struct *tmp___25 ; long volatile __ret___0 ; struct task_struct *tmp___26 ; struct task_struct *tmp___27 ; struct task_struct *tmp___28 ; struct task_struct *tmp___29 ; long interval ; long __min1 ; long __min2 ; long tmp___30 ; long remaining ; long tmp___31 ; unsigned long tmp___32 ; unsigned long tmp___33 ; int tmp___34 ; struct task_struct *tmp___35 ; long volatile __ret___1 ; struct task_struct *tmp___36 ; struct task_struct *tmp___37 ; struct task_struct *tmp___38 ; struct task_struct *tmp___39 ; int tmp___40 ; int tmp___41 ; int tmp___42 ; int tmp___43 ; int tmp___44 ; int tmp___45 ; int tmp___46 ; long tmp___47 ; int tmp___48 ; int tmp___49 ; long tmp___50 ; int tmp___51 ; int tmp___52 ; int tmp___53 ; 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___54 ; int tmp___55 ; struct task_struct *tmp___56 ; int tmp___57 ; int tmp___58 ; struct task_struct *tmp___59 ; long volatile __ret___3 ; struct task_struct *tmp___60 ; struct task_struct *tmp___61 ; struct task_struct *tmp___62 ; struct task_struct *tmp___63 ; long interval___0 ; long __min1___0 ; long __min2___0 ; long tmp___64 ; long remaining___0 ; long tmp___65 ; unsigned long tmp___66 ; unsigned long tmp___67 ; int tmp___68 ; struct task_struct *tmp___69 ; long volatile __ret___4 ; struct task_struct *tmp___70 ; struct task_struct *tmp___71 ; struct task_struct *tmp___72 ; struct task_struct *tmp___73 ; int tmp___74 ; int tmp___75 ; int tmp___76 ; int tmp___77 ; int tmp___78 ; long tmp___79 ; int tmp___80 ; int tmp___81 ; int tmp___82 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___84 ; int __ret___5 ; struct l_wait_info *__info___1 ; wait_queue_t __wait___1 ; long __timeout___1 ; sigset_t __blocked___1 ; int __allow_intr___1 ; int tmp___85 ; struct task_struct *tmp___86 ; int tmp___87 ; struct task_struct *tmp___88 ; long volatile __ret___6 ; struct task_struct *tmp___89 ; struct task_struct *tmp___90 ; struct task_struct *tmp___91 ; struct task_struct *tmp___92 ; long interval___1 ; long __min1___1 ; long __min2___1 ; long tmp___93 ; long remaining___1 ; long tmp___94 ; unsigned long tmp___95 ; unsigned long tmp___96 ; int tmp___97 ; struct task_struct *tmp___98 ; long volatile __ret___7 ; struct task_struct *tmp___99 ; struct task_struct *tmp___100 ; struct task_struct *tmp___101 ; struct task_struct *tmp___102 ; int tmp___103 ; int tmp___104 ; int tmp___105 ; int tmp___106 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___107 ; { parent = (struct dentry *)arg; tmp = d_inode((struct dentry const *)parent); dir = tmp; tmp___0 = ll_i2info(dir); plli = tmp___0; tmp___1 = ll_i2sbi(dir); sbi = tmp___1; tmp___2 = ll_sai_get(plli->u.d.d_sai); sai = tmp___2; thread = & sai->sai_thread; agl_thread = & sai->sai_agl_thread; pos = 0ULL; first = 0; rc = 0; lwi.lwi_timeout = 0L; lwi.lwi_interval = 0L; lwi.lwi_allow_intr = 0; lwi.lwi_on_timeout = 0; lwi.lwi_on_signal = 0; lwi.lwi_cb_data = 0; tmp___3 = get_current(); thread->t_pid = tmp___3->pid; tmp___4 = cfs_cdebug_show(4194304U, 128U); if (tmp___4 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata.msg_fn = "ll_statahead_thread"; msgdata.msg_line = 1078; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "statahead thread starting: sai %p, parent %pd\n", sai, parent); } else { } if ((sbi->ll_flags & 32768) != 0) { ll_start_agl(parent, sai); } else { } atomic_inc(& sbi->ll_sa_total); spin_lock(& plli->u.d.d_sa_lock); tmp___5 = thread_is_init(thread); if (tmp___5 != 0) { thread_set_flags(thread, 8U); } else { } spin_unlock(& plli->u.d.d_sa_lock); __wake_up(& thread->t_ctl_waitq, 3U, 1, (void *)0); ll_dir_chain_init(& chain); page = ll_get_dir_page(dir, pos, & chain); ldv_68675: tmp___11 = IS_ERR((void const *)page); if ((int )tmp___11) { tmp___6 = PTR_ERR((void const *)page); rc = (int )tmp___6; tmp___10 = cfs_cdebug_show(4194304U, 128U); if (tmp___10 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata___0.msg_fn = "ll_statahead_thread"; msgdata___0.msg_line = 1104; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 4194304; tmp___7 = ll_inode2fid(dir); tmp___8 = ll_inode2fid(dir); tmp___9 = ll_inode2fid(dir); libcfs_debug_msg(& msgdata___0, "error reading dir [%#llx:0x%x:0x%x] at %llu/%llu: [rc %d] [parent %u]\n", tmp___9->f_seq, tmp___8->f_oid, tmp___7->f_ver, pos, sai->sai_index, rc, plli->u.d.d_opendir_pid); } else { } goto out; } else { } tmp___12 = lowmem_page_address((struct page const *)page); dp = (struct lu_dirpage *)tmp___12; ent = lu_dirent_start(dp); goto ldv_68632; ldv_68631: hash = ent->lde_hash; tmp___13 = ldv__builtin_expect(hash < pos, 0L); if (tmp___13 != 0L) { goto ldv_68589; } else { } namelen = (int )ent->lde_namelen; tmp___14 = ldv__builtin_expect(namelen == 0, 0L); if (tmp___14 != 0L) { goto ldv_68589; } else { } name = (char *)(& ent->lde_name); if ((int )((signed char )*name) == 46) { if (namelen == 1) { goto ldv_68589; } else if ((int )((signed char )*(name + 1UL)) == 46 && namelen == 2) { goto ldv_68589; } else if ((unsigned int )*((unsigned char *)sai + 84UL) == 0U) { sai->sai_skip_hidden = sai->sai_skip_hidden + 1U; goto ldv_68589; } else { } } else { } first = first + 1; tmp___15 = ldv__builtin_expect(first == 1, 0L); if (tmp___15 != 0L) { goto ldv_68589; } else { } keep_it: __info = & lwi; __timeout = __info->lwi_timeout; __allow_intr = __info->lwi_allow_intr; __ret = 0; tmp___16 = sa_sent_full(sai); if (tmp___16 == 0) { goto ldv_68597; } else { tmp___17 = sa_received_empty(sai); if (tmp___17 == 0) { goto ldv_68597; } else { tmp___18 = agl_list_empty(sai); if (tmp___18 == 0) { goto ldv_68597; } else { tmp___19 = thread_is_running(thread); if (tmp___19 == 0) { goto ldv_68597; } else { } } } } tmp___20 = get_current(); init_waitqueue_entry(& __wait, tmp___20); add_wait_queue(& thread->t_ctl_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_68621: tmp___21 = sa_sent_full(sai); if (tmp___21 == 0) { goto ldv_68598; } else { tmp___22 = sa_received_empty(sai); if (tmp___22 == 0) { goto ldv_68598; } else { tmp___23 = agl_list_empty(sai); if (tmp___23 == 0) { goto ldv_68598; } else { tmp___24 = thread_is_running(thread); if (tmp___24 == 0) { goto ldv_68598; } else { } } } } tmp___25 = get_current(); tmp___25->task_state_change = 0UL; __ret___0 = 1L; switch (8UL) { case 1UL: tmp___26 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___0), "+m" (tmp___26->state): : "memory", "cc"); goto ldv_68601; case 2UL: tmp___27 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___0), "+m" (tmp___27->state): : "memory", "cc"); goto ldv_68601; case 4UL: tmp___28 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___0), "+m" (tmp___28->state): : "memory", "cc"); goto ldv_68601; case 8UL: tmp___29 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___0), "+m" (tmp___29->state): : "memory", "cc"); goto ldv_68601; default: __xchg_wrong_size(); } ldv_68601: ; if (__timeout == 0L) { schedule(); } else { if (__info->lwi_interval != 0L) { __min1 = __info->lwi_interval; __min2 = __timeout; tmp___30 = __min1 < __min2 ? __min1 : __min2; } else { tmp___30 = __timeout; } interval = tmp___30; tmp___31 = schedule_timeout(interval); remaining = tmp___31; tmp___32 = cfs_time_sub((unsigned long )interval, (unsigned long )remaining); tmp___33 = cfs_time_sub((unsigned long )__timeout, tmp___32); __timeout = (long )tmp___33; if (__timeout == 0L) { if ((unsigned long )__info->lwi_on_timeout == (unsigned long )((int (*)(void * ))0)) { __ret = -110; goto ldv_68598; } else { tmp___34 = (*(__info->lwi_on_timeout))(__info->lwi_cb_data); if (tmp___34 != 0) { __ret = -110; goto ldv_68598; } else { } } if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0)) { cfs_block_sigsinv(24838UL); } else { } } else { } } tmp___35 = get_current(); tmp___35->task_state_change = 0UL; __ret___1 = 0L; switch (8UL) { case 1UL: tmp___36 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___1), "+m" (tmp___36->state): : "memory", "cc"); goto ldv_68614; case 2UL: tmp___37 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___1), "+m" (tmp___37->state): : "memory", "cc"); goto ldv_68614; case 4UL: tmp___38 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___1), "+m" (tmp___38->state): : "memory", "cc"); goto ldv_68614; case 8UL: tmp___39 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___1), "+m" (tmp___39->state): : "memory", "cc"); goto ldv_68614; default: __xchg_wrong_size(); } ldv_68614: tmp___40 = sa_sent_full(sai); if (tmp___40 == 0) { goto ldv_68598; } else { tmp___41 = sa_received_empty(sai); if (tmp___41 == 0) { goto ldv_68598; } else { tmp___42 = agl_list_empty(sai); if (tmp___42 == 0) { goto ldv_68598; } else { tmp___43 = thread_is_running(thread); if (tmp___43 == 0) { goto ldv_68598; } else { } } } } tmp___44 = cfs_signal_pending(); if (tmp___44 != 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_68598; } else { } cfs_clear_sigpending(); } else { } goto ldv_68621; ldv_68598: cfs_restore_sigs(__blocked); remove_wait_queue(& thread->t_ctl_waitq, & __wait); ldv_68597: ; interpret_it: ; goto ldv_68625; ldv_68624: ll_post_statahead(sai); ldv_68625: tmp___45 = sa_received_empty(sai); if (tmp___45 == 0) { goto ldv_68624; } else { } tmp___46 = thread_is_running(thread); tmp___47 = ldv__builtin_expect(tmp___46 == 0, 0L); if (tmp___47 != 0L) { ll_release_page(page, 0); rc = 0; goto out; } else { } tmp___53 = sa_sent_full(sai); if (tmp___53 != 0) { spin_lock(& plli->lli_agl_lock); goto ldv_68629; ldv_68628: clli = agl_first_entry(sai); list_del_init(& clli->u.f.f_agl_list); spin_unlock(& plli->lli_agl_lock); ll_agl_trigger(& clli->lli_vfs_inode, sai); tmp___48 = sa_received_empty(sai); if (tmp___48 == 0) { goto interpret_it; } else { } tmp___49 = thread_is_running(thread); tmp___50 = ldv__builtin_expect(tmp___49 == 0, 0L); if (tmp___50 != 0L) { ll_release_page(page, 0); rc = 0; goto out; } else { } tmp___51 = sa_sent_full(sai); if (tmp___51 == 0) { goto do_it; } else { } spin_lock(& plli->lli_agl_lock); ldv_68629: tmp___52 = agl_list_empty(sai); if (tmp___52 == 0) { goto ldv_68628; } else { } spin_unlock(& plli->lli_agl_lock); goto keep_it; } else { } do_it: ll_statahead_one(parent, (char const *)name, namelen); ldv_68589: ent = lu_dirent_next(ent); ldv_68632: ; if ((unsigned long )ent != (unsigned long )((struct lu_dirent *)0)) { goto ldv_68631; } else { } pos = dp->ldp_hash_end; if (pos == 0xfffffffffffffffeULL) { ll_release_page(page, 0); ldv_68670: __info___0 = & lwi; __timeout___0 = __info___0->lwi_timeout; __allow_intr___0 = __info___0->lwi_allow_intr; __ret___2 = 0; tmp___54 = sa_received_empty(sai); if (tmp___54 == 0 || sai->sai_sent == sai->sai_replied) { goto ldv_68640; } else { tmp___55 = thread_is_running(thread); if (tmp___55 == 0) { goto ldv_68640; } else { } } tmp___56 = get_current(); init_waitqueue_entry(& __wait___0, tmp___56); add_wait_queue(& thread->t_ctl_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_68664: tmp___57 = sa_received_empty(sai); if (tmp___57 == 0 || sai->sai_sent == sai->sai_replied) { goto ldv_68641; } else { tmp___58 = thread_is_running(thread); if (tmp___58 == 0) { goto ldv_68641; } else { } } tmp___59 = get_current(); tmp___59->task_state_change = 0UL; __ret___3 = 1L; switch (8UL) { case 1UL: tmp___60 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___3), "+m" (tmp___60->state): : "memory", "cc"); goto ldv_68644; case 2UL: tmp___61 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___3), "+m" (tmp___61->state): : "memory", "cc"); goto ldv_68644; case 4UL: tmp___62 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___3), "+m" (tmp___62->state): : "memory", "cc"); goto ldv_68644; case 8UL: tmp___63 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___3), "+m" (tmp___63->state): : "memory", "cc"); goto ldv_68644; default: __xchg_wrong_size(); } ldv_68644: ; if (__timeout___0 == 0L) { schedule(); } else { if (__info___0->lwi_interval != 0L) { __min1___0 = __info___0->lwi_interval; __min2___0 = __timeout___0; tmp___64 = __min1___0 < __min2___0 ? __min1___0 : __min2___0; } else { tmp___64 = __timeout___0; } interval___0 = tmp___64; tmp___65 = schedule_timeout(interval___0); remaining___0 = tmp___65; tmp___66 = cfs_time_sub((unsigned long )interval___0, (unsigned long )remaining___0); tmp___67 = cfs_time_sub((unsigned long )__timeout___0, tmp___66); __timeout___0 = (long )tmp___67; if (__timeout___0 == 0L) { if ((unsigned long )__info___0->lwi_on_timeout == (unsigned long )((int (*)(void * ))0)) { __ret___2 = -110; goto ldv_68641; } else { tmp___68 = (*(__info___0->lwi_on_timeout))(__info___0->lwi_cb_data); if (tmp___68 != 0) { __ret___2 = -110; goto ldv_68641; } else { } } if ((unsigned long )__info___0->lwi_on_signal != (unsigned long )((void (*)(void * ))0)) { cfs_block_sigsinv(24838UL); } else { } } else { } } tmp___69 = get_current(); tmp___69->task_state_change = 0UL; __ret___4 = 0L; switch (8UL) { case 1UL: tmp___70 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___4), "+m" (tmp___70->state): : "memory", "cc"); goto ldv_68657; case 2UL: tmp___71 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___4), "+m" (tmp___71->state): : "memory", "cc"); goto ldv_68657; case 4UL: tmp___72 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___4), "+m" (tmp___72->state): : "memory", "cc"); goto ldv_68657; case 8UL: tmp___73 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___4), "+m" (tmp___73->state): : "memory", "cc"); goto ldv_68657; default: __xchg_wrong_size(); } ldv_68657: tmp___74 = sa_received_empty(sai); if (tmp___74 == 0 || sai->sai_sent == sai->sai_replied) { goto ldv_68641; } else { tmp___75 = thread_is_running(thread); if (tmp___75 == 0) { goto ldv_68641; } else { } } tmp___76 = cfs_signal_pending(); if (tmp___76 != 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_68641; } else { } cfs_clear_sigpending(); } else { } goto ldv_68664; ldv_68641: cfs_restore_sigs(__blocked___0); remove_wait_queue(& thread->t_ctl_waitq, & __wait___0); ldv_68640: ; goto ldv_68667; ldv_68666: ll_post_statahead(sai); ldv_68667: tmp___77 = sa_received_empty(sai); if (tmp___77 == 0) { goto ldv_68666; } else { } tmp___78 = thread_is_running(thread); tmp___79 = ldv__builtin_expect(tmp___78 == 0, 0L); if (tmp___79 != 0L) { rc = 0; goto out; } else { } if (sai->sai_sent == sai->sai_replied) { tmp___80 = sa_received_empty(sai); if (tmp___80 != 0) { goto ldv_68669; } else { } } else { } goto ldv_68670; ldv_68669: spin_lock(& plli->lli_agl_lock); goto ldv_68672; ldv_68671: clli = agl_first_entry(sai); list_del_init(& clli->u.f.f_agl_list); spin_unlock(& plli->lli_agl_lock); ll_agl_trigger(& clli->lli_vfs_inode, sai); spin_lock(& plli->lli_agl_lock); ldv_68672: tmp___81 = agl_list_empty(sai); if (tmp___81 == 0) { tmp___82 = thread_is_running(thread); if (tmp___82 != 0) { goto ldv_68671; } else { goto ldv_68673; } } else { } ldv_68673: spin_unlock(& plli->lli_agl_lock); rc = 0; goto out; } else { ll_release_page(page, (int )dp->ldp_flags & 2); page = ll_get_dir_page(dir, pos, & chain); } goto ldv_68675; out: ; if ((unsigned int )*((unsigned char *)sai + 84UL) != 0U) { spin_lock(& plli->lli_agl_lock); thread_set_flags(agl_thread, 2U); spin_unlock(& plli->lli_agl_lock); __wake_up(& agl_thread->t_ctl_waitq, 3U, 1, (void *)0); tmp___84 = cfs_cdebug_show(4194304U, 128U); if (tmp___84 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata___1.msg_fn = "ll_statahead_thread"; msgdata___1.msg_line = 1273; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 4194304; libcfs_debug_msg(& msgdata___1, "stop agl thread: sai %p pid %u\n", sai, (unsigned int )agl_thread->t_pid); } else { } __info___1 = & lwi; __timeout___1 = __info___1->lwi_timeout; __allow_intr___1 = __info___1->lwi_allow_intr; __ret___5 = 0; tmp___85 = thread_is_stopped(agl_thread); if (tmp___85 != 0) { goto ldv_68683; } else { } tmp___86 = get_current(); init_waitqueue_entry(& __wait___1, tmp___86); add_wait_queue(& agl_thread->t_ctl_waitq, & __wait___1); if ((unsigned long )__info___1->lwi_on_signal != (unsigned long )((void (*)(void * ))0) && (__timeout___1 == 0L || __allow_intr___1 != 0)) { __blocked___1 = cfs_block_sigsinv(24838UL); } else { __blocked___1 = cfs_block_sigsinv(0UL); } ldv_68707: tmp___87 = thread_is_stopped(agl_thread); if (tmp___87 != 0) { goto ldv_68684; } else { } tmp___88 = get_current(); tmp___88->task_state_change = 0UL; __ret___6 = 1L; switch (8UL) { case 1UL: tmp___89 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___6), "+m" (tmp___89->state): : "memory", "cc"); goto ldv_68687; case 2UL: tmp___90 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___6), "+m" (tmp___90->state): : "memory", "cc"); goto ldv_68687; case 4UL: tmp___91 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___6), "+m" (tmp___91->state): : "memory", "cc"); goto ldv_68687; case 8UL: tmp___92 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___6), "+m" (tmp___92->state): : "memory", "cc"); goto ldv_68687; default: __xchg_wrong_size(); } ldv_68687: ; if (__timeout___1 == 0L) { schedule(); } else { if (__info___1->lwi_interval != 0L) { __min1___1 = __info___1->lwi_interval; __min2___1 = __timeout___1; tmp___93 = __min1___1 < __min2___1 ? __min1___1 : __min2___1; } else { tmp___93 = __timeout___1; } interval___1 = tmp___93; tmp___94 = schedule_timeout(interval___1); remaining___1 = tmp___94; tmp___95 = cfs_time_sub((unsigned long )interval___1, (unsigned long )remaining___1); tmp___96 = cfs_time_sub((unsigned long )__timeout___1, tmp___95); __timeout___1 = (long )tmp___96; if (__timeout___1 == 0L) { if ((unsigned long )__info___1->lwi_on_timeout == (unsigned long )((int (*)(void * ))0)) { __ret___5 = -110; goto ldv_68684; } else { tmp___97 = (*(__info___1->lwi_on_timeout))(__info___1->lwi_cb_data); if (tmp___97 != 0) { __ret___5 = -110; goto ldv_68684; } else { } } if ((unsigned long )__info___1->lwi_on_signal != (unsigned long )((void (*)(void * ))0)) { cfs_block_sigsinv(24838UL); } else { } } else { } } tmp___98 = get_current(); tmp___98->task_state_change = 0UL; __ret___7 = 0L; switch (8UL) { case 1UL: tmp___99 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___7), "+m" (tmp___99->state): : "memory", "cc"); goto ldv_68700; case 2UL: tmp___100 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___7), "+m" (tmp___100->state): : "memory", "cc"); goto ldv_68700; case 4UL: tmp___101 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___7), "+m" (tmp___101->state): : "memory", "cc"); goto ldv_68700; case 8UL: tmp___102 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___7), "+m" (tmp___102->state): : "memory", "cc"); goto ldv_68700; default: __xchg_wrong_size(); } ldv_68700: tmp___103 = thread_is_stopped(agl_thread); if (tmp___103 != 0) { goto ldv_68684; } else { } tmp___104 = cfs_signal_pending(); if (tmp___104 != 0) { if ((unsigned long )__info___1->lwi_on_signal != (unsigned long )((void (*)(void * ))0) && (__timeout___1 == 0L || __allow_intr___1 != 0)) { if ((unsigned long )__info___1->lwi_on_signal != (unsigned long )((void (*)(void * ))-1)) { (*(__info___1->lwi_on_signal))(__info___1->lwi_cb_data); } else { } __ret___5 = -4; goto ldv_68684; } else { } cfs_clear_sigpending(); } else { } goto ldv_68707; ldv_68684: cfs_restore_sigs(__blocked___1); remove_wait_queue(& agl_thread->t_ctl_waitq, & __wait___1); ldv_68683: ; } else { thread_set_flags(& sai->sai_agl_thread, 1U); } ll_dir_chain_init(& chain); spin_lock(& plli->u.d.d_sa_lock); tmp___106 = sa_received_empty(sai); if (tmp___106 == 0) { thread_set_flags(thread, 2U); spin_unlock(& plli->u.d.d_sa_lock); goto ldv_68710; ldv_68709: ll_post_statahead(sai); ldv_68710: tmp___105 = sa_received_empty(sai); if (tmp___105 == 0) { goto ldv_68709; } else { } spin_lock(& plli->u.d.d_sa_lock); } else { } thread_set_flags(thread, 1U); spin_unlock(& plli->u.d.d_sa_lock); __wake_up(& sai->sai_waitq, 3U, 1, (void *)0); __wake_up(& thread->t_ctl_waitq, 3U, 1, (void *)0); ll_sai_put(sai); dput(parent); tmp___107 = cfs_cdebug_show(4194304U, 128U); if (tmp___107 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata___2.msg_fn = "ll_statahead_thread"; msgdata___2.msg_line = 1300; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 4194304; libcfs_debug_msg(& msgdata___2, "statahead thread stopped: sai %p, parent %pd\n", sai, parent); } else { } return (rc); } } void ll_stop_statahead(struct inode *dir , void *key ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; long tmp___0 ; struct l_wait_info lwi ; struct ptlrpc_thread *thread ; struct libcfs_debug_msg_data msgdata ; int 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 ; int tmp___22 ; { tmp = ll_i2info(dir); lli = tmp; tmp___0 = ldv__builtin_expect((unsigned long )key == (unsigned long )((void *)0), 0L); if (tmp___0 != 0L) { return; } else { } spin_lock(& lli->u.d.d_sa_lock); if ((unsigned long )lli->u.d.d_opendir_key != (unsigned long )key || lli->u.d.d_opendir_pid == 0) { spin_unlock(& lli->u.d.d_sa_lock); return; } else { } lli->u.d.d_opendir_key = (void *)0; if ((unsigned long )lli->u.d.d_sai != (unsigned long )((struct ll_statahead_info *)0)) { lwi.lwi_timeout = 0L; lwi.lwi_interval = 0L; lwi.lwi_allow_intr = 0; lwi.lwi_on_timeout = 0; lwi.lwi_on_signal = 0; lwi.lwi_cb_data = 0; thread = & (lli->u.d.d_sai)->sai_thread; tmp___22 = thread_is_stopped(thread); if (tmp___22 == 0) { thread_set_flags(thread, 2U); spin_unlock(& lli->u.d.d_sa_lock); __wake_up(& thread->t_ctl_waitq, 3U, 1, (void *)0); tmp___1 = cfs_cdebug_show(4194304U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata.msg_fn = "ll_stop_statahead"; msgdata.msg_line = 1332; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "stop statahead thread: sai %p pid %u\n", lli->u.d.d_sai, (unsigned int )thread->t_pid); } else { } __info = & lwi; __timeout = __info->lwi_timeout; __allow_intr = __info->lwi_allow_intr; __ret = 0; tmp___2 = thread_is_stopped(thread); if (tmp___2 != 0) { goto ldv_68728; } else { } tmp___3 = get_current(); init_waitqueue_entry(& __wait, tmp___3); add_wait_queue(& thread->t_ctl_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_68752: tmp___4 = thread_is_stopped(thread); if (tmp___4 != 0) { goto ldv_68729; } 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_68732; case 2UL: tmp___7 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___0), "+m" (tmp___7->state): : "memory", "cc"); goto ldv_68732; case 4UL: tmp___8 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___0), "+m" (tmp___8->state): : "memory", "cc"); goto ldv_68732; case 8UL: tmp___9 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___0), "+m" (tmp___9->state): : "memory", "cc"); goto ldv_68732; default: __xchg_wrong_size(); } ldv_68732: ; 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_68729; } else { tmp___14 = (*(__info->lwi_on_timeout))(__info->lwi_cb_data); if (tmp___14 != 0) { __ret = -110; goto ldv_68729; } 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_68745; case 2UL: tmp___17 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___1), "+m" (tmp___17->state): : "memory", "cc"); goto ldv_68745; case 4UL: tmp___18 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___1), "+m" (tmp___18->state): : "memory", "cc"); goto ldv_68745; case 8UL: tmp___19 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___1), "+m" (tmp___19->state): : "memory", "cc"); goto ldv_68745; default: __xchg_wrong_size(); } ldv_68745: tmp___20 = thread_is_stopped(thread); if (tmp___20 != 0) { goto ldv_68729; } 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_68729; } else { } cfs_clear_sigpending(); } else { } goto ldv_68752; ldv_68729: cfs_restore_sigs(__blocked); remove_wait_queue(& thread->t_ctl_waitq, & __wait); ldv_68728: ; } else { spin_unlock(& lli->u.d.d_sa_lock); } ll_sai_put(lli->u.d.d_sai); } else { lli->u.d.d_opendir_pid = 0; spin_unlock(& lli->u.d.d_sa_lock); } return; } } static int is_first_dirent(struct inode *dir , struct dentry *dentry ) { struct ll_dir_chain chain ; struct qstr *target ; struct page *page ; __u64 pos ; int dot_de ; int rc ; struct lu_dirpage *dp ; struct lu_dirent *ent ; struct ll_inode_info *lli ; struct ll_inode_info *tmp ; long tmp___0 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; struct lu_fid *tmp___1 ; struct lu_fid *tmp___2 ; struct lu_fid *tmp___3 ; int tmp___4 ; bool tmp___5 ; void *tmp___6 ; __u64 hash ; int namelen ; char *name ; long tmp___7 ; long tmp___8 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___9 ; int tmp___10 ; { target = & dentry->d_name; pos = 0ULL; rc = 0; ll_dir_chain_init(& chain); page = ll_get_dir_page(dir, pos, & chain); ldv_68785: tmp___5 = IS_ERR((void const *)page); if ((int )tmp___5) { tmp = ll_i2info(dir); lli = tmp; tmp___0 = PTR_ERR((void const *)page); rc = (int )tmp___0; tmp___4 = cfs_cdebug_show(131072U, 128U); if (tmp___4 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata.msg_fn = "is_first_dirent"; msgdata.msg_line = 1389; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; tmp___1 = ll_inode2fid(dir); tmp___2 = ll_inode2fid(dir); tmp___3 = ll_inode2fid(dir); libcfs_debug_msg(& msgdata, "error reading dir [%#llx:0x%x:0x%x] at %llu: [rc %d] [parent %u]\n", tmp___3->f_seq, tmp___2->f_oid, tmp___1->f_ver, pos, rc, lli->u.d.d_opendir_pid); } else { } goto ldv_68774; } else { } tmp___6 = lowmem_page_address((struct page const *)page); dp = (struct lu_dirpage *)tmp___6; ent = lu_dirent_start(dp); goto ldv_68782; ldv_68781: hash = ent->lde_hash; tmp___7 = ldv__builtin_expect(hash < pos, 0L); if (tmp___7 != 0L) { goto ldv_68778; } else { } namelen = (int )ent->lde_namelen; tmp___8 = ldv__builtin_expect(namelen == 0, 0L); if (tmp___8 != 0L) { goto ldv_68778; } else { } name = (char *)(& ent->lde_name); if ((int )((signed char )*name) == 46) { if (namelen == 1) { goto ldv_68778; } else if ((int )((signed char )*(name + 1UL)) == 46 && namelen == 2) { goto ldv_68778; } else { dot_de = 1; } } else { dot_de = 0; } if (dot_de != 0 && (unsigned int )((unsigned char )*(target->name)) != 46U) { tmp___9 = cfs_cdebug_show(4194304U, 128U); if (tmp___9 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata___0.msg_fn = "is_first_dirent"; msgdata___0.msg_line = 1434; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 4194304; libcfs_debug_msg(& msgdata___0, "%.*s skip hidden file %.*s\n", target->__annonCompField61.__annonCompField60.len, target->name, namelen, name); } else { } goto ldv_68778; } else { } if (target->__annonCompField61.__annonCompField60.len != (u32 )namelen) { rc = 0; } else { tmp___10 = memcmp((void const *)target->name, (void const *)name, (size_t )namelen); if (tmp___10 != 0) { rc = 0; } else if (dot_de == 0) { rc = 1; } else { rc = 2; } } ll_release_page(page, 0); goto out; ldv_68778: ent = lu_dirent_next(ent); ldv_68782: ; if ((unsigned long )ent != (unsigned long )((struct lu_dirent *)0)) { goto ldv_68781; } else { } pos = dp->ldp_hash_end; if (pos == 0xfffffffffffffffeULL) { ll_release_page(page, 0); goto ldv_68774; } else { ll_release_page(page, (int )dp->ldp_flags & 2); page = ll_get_dir_page(dir, pos, & chain); } goto ldv_68785; ldv_68774: ; out: ll_dir_chain_init(& chain); return (rc); } } static void ll_sai_unplug(struct ll_statahead_info *sai , struct ll_sa_entry *entry ) { struct ptlrpc_thread *thread ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp ; int hit ; unsigned int _min1 ; unsigned int _min2 ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; { thread = & sai->sai_thread; tmp = ll_i2sbi(sai->sai_inode); sbi = tmp; if ((unsigned long )entry != (unsigned long )((struct ll_sa_entry *)0) && (unsigned int )entry->se_stat == 1U) { hit = 1; } else { hit = 0; } ll_sa_entry_fini(sai, entry); if (hit != 0) { sai->sai_hit = sai->sai_hit + 1ULL; sai->sai_consecutive_miss = 0U; _min1 = sai->sai_max * 2U; _min2 = sbi->ll_sa_max; sai->sai_max = _min1 < _min2 ? _min1 : _min2; } else { tmp___0 = ll_i2info(sai->sai_inode); lli = tmp___0; sai->sai_miss = sai->sai_miss + 1ULL; sai->sai_consecutive_miss = sai->sai_consecutive_miss + 1U; tmp___3 = sa_low_hit(sai); if (tmp___3 != 0) { tmp___4 = thread_is_running(thread); if (tmp___4 != 0) { atomic_inc(& sbi->ll_sa_wrong); tmp___1 = cfs_cdebug_show(4194304U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata.msg_fn = "ll_sai_unplug"; msgdata.msg_line = 1505; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; libcfs_debug_msg(& msgdata, "Statahead for dir [%#llx:0x%x:0x%x] hit ratio too low: hit/miss %llu/%llu, sent/replied %llu/%llu, stopping statahead thread\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, sai->sai_hit, sai->sai_miss, sai->sai_sent, sai->sai_replied); } else { } spin_lock(& lli->u.d.d_sa_lock); tmp___2 = thread_is_stopped(thread); if (tmp___2 == 0) { thread_set_flags(thread, 2U); } else { } spin_unlock(& lli->u.d.d_sa_lock); } else { } } else { } } tmp___5 = thread_is_stopped(thread); if (tmp___5 == 0) { __wake_up(& thread->t_ctl_waitq, 3U, 1, (void *)0); } else { } return; } } int do_statahead_enter(struct inode *dir , struct dentry **dentryp , int only_unplug ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ll_statahead_info *sai ; struct dentry *parent ; struct ll_sa_entry *entry ; struct ptlrpc_thread *thread ; struct l_wait_info lwi ; int rc ; struct ll_inode_info *plli ; struct libcfs_debug_msg_data __msg_data ; struct task_struct *tmp___0 ; long tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; long tmp___5 ; struct l_wait_info __constr_expr_0 ; long tmp___6 ; int __ret ; struct l_wait_info *__info ; wait_queue_t __wait ; long __timeout ; sigset_t __blocked ; int __allow_intr ; int tmp___7 ; int tmp___8 ; struct task_struct *tmp___9 ; int tmp___10 ; int tmp___11 ; struct task_struct *tmp___12 ; long volatile __ret___0 ; struct task_struct *tmp___13 ; struct task_struct *tmp___14 ; struct task_struct *tmp___15 ; struct task_struct *tmp___16 ; long interval ; long __min1 ; long __min2 ; long tmp___17 ; long remaining ; long tmp___18 ; unsigned long tmp___19 ; unsigned long tmp___20 ; int tmp___21 ; struct task_struct *tmp___22 ; long volatile __ret___1 ; struct task_struct *tmp___23 ; struct task_struct *tmp___24 ; struct task_struct *tmp___25 ; struct task_struct *tmp___26 ; int tmp___27 ; int tmp___28 ; int tmp___29 ; int tmp___30 ; struct inode *inode ; struct lookup_intent it ; __u64 bits ; struct lu_fid *tmp___31 ; struct obd_export *tmp___32 ; struct dentry *alias ; long tmp___33 ; bool tmp___34 ; struct libcfs_debug_msg_data msgdata ; struct inode *tmp___35 ; struct inode *tmp___36 ; int tmp___37 ; struct inode *tmp___38 ; struct inode *tmp___39 ; int tmp___40 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___41 ; long tmp___42 ; struct ll_inode_info *nlli ; struct inode *tmp___43 ; struct ll_inode_info *tmp___44 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___45 ; struct inode *tmp___46 ; long tmp___47 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___48 ; struct inode *tmp___49 ; struct task_struct *__k ; struct task_struct *tmp___50 ; bool tmp___51 ; int tmp___52 ; long tmp___53 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___54 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___55 ; long tmp___56 ; 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___57 ; int tmp___58 ; struct task_struct *tmp___59 ; int tmp___60 ; int tmp___61 ; struct task_struct *tmp___62 ; long volatile __ret___3 ; struct task_struct *tmp___63 ; struct task_struct *tmp___64 ; struct task_struct *tmp___65 ; struct task_struct *tmp___66 ; long interval___0 ; long __min1___0 ; long __min2___0 ; long tmp___67 ; long remaining___0 ; long tmp___68 ; unsigned long tmp___69 ; unsigned long tmp___70 ; int tmp___71 ; struct task_struct *tmp___72 ; long volatile __ret___4 ; struct task_struct *tmp___73 ; struct task_struct *tmp___74 ; struct task_struct *tmp___75 ; struct task_struct *tmp___76 ; int tmp___77 ; int tmp___78 ; int tmp___79 ; { tmp = ll_i2info(dir); lli = tmp; sai = lli->u.d.d_sai; lwi.lwi_timeout = 0L; lwi.lwi_interval = 0L; lwi.lwi_allow_intr = 0; lwi.lwi_on_timeout = 0; lwi.lwi_on_signal = 0; lwi.lwi_cb_data = 0; rc = 0; tmp___0 = get_current(); tmp___1 = ldv__builtin_expect(lli->u.d.d_opendir_pid != tmp___0->pid, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data.msg_fn = "do_statahead_enter"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1538; __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 *)"lli->u.d.d_opendir_pid == (get_current()->pid)"); lbug_with_loc(& __msg_data); } else { } if ((unsigned long )sai != (unsigned long )((struct ll_statahead_info *)0)) { thread = & sai->sai_thread; tmp___2 = thread_is_stopped(thread); if (tmp___2 != 0) { tmp___3 = list_empty((struct list_head const *)(& sai->sai_entries_stated)); if (tmp___3 != 0) { tmp___4 = 1; } else { tmp___4 = 0; } } else { tmp___4 = 0; } tmp___5 = ldv__builtin_expect((long )tmp___4, 0L); if (tmp___5 != 0L) { ll_stop_statahead(dir, lli->u.d.d_opendir_key); return (-11); } else { } if ((unsigned int )((unsigned char )*((*dentryp)->d_name.name)) == 46U) { if ((unsigned int )*((unsigned char *)sai + 84UL) != 0U || sai->sai_miss_hidden >= sai->sai_skip_hidden) { } else { if ((unsigned int )*((unsigned char *)sai + 84UL) == 0U) { sai->sai_ls_all = 1U; } else { } sai->sai_miss_hidden = sai->sai_miss_hidden + 1U; return (-11); } } else { } entry = ll_sa_entry_get_byname(sai, (struct qstr const *)(& (*dentryp)->d_name)); if ((unsigned long )entry == (unsigned long )((struct ll_sa_entry *)0) || only_unplug != 0) { ll_sai_unplug(sai, entry); return ((unsigned long )entry != (unsigned long )((struct ll_sa_entry *)0) ? 1 : -11); } else { } tmp___30 = ll_sa_entry_stated(entry); if (tmp___30 == 0) { sai->sai_index_wait = entry->se_index; tmp___6 = cfs_time_seconds(30); __constr_expr_0.lwi_timeout = tmp___6; __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 = & lwi; __timeout = __info->lwi_timeout; __allow_intr = __info->lwi_allow_intr; __ret = 0; tmp___7 = ll_sa_entry_stated(entry); if (tmp___7 != 0) { goto ldv_68822; } else { tmp___8 = thread_is_stopped(thread); if (tmp___8 != 0) { goto ldv_68822; } else { } } tmp___9 = get_current(); init_waitqueue_entry(& __wait, tmp___9); add_wait_queue(& sai->sai_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_68846: tmp___10 = ll_sa_entry_stated(entry); if (tmp___10 != 0) { goto ldv_68823; } else { tmp___11 = thread_is_stopped(thread); if (tmp___11 != 0) { goto ldv_68823; } else { } } tmp___12 = get_current(); tmp___12->task_state_change = 0UL; __ret___0 = 1L; switch (8UL) { case 1UL: tmp___13 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___0), "+m" (tmp___13->state): : "memory", "cc"); goto ldv_68826; case 2UL: tmp___14 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___0), "+m" (tmp___14->state): : "memory", "cc"); goto ldv_68826; case 4UL: tmp___15 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___0), "+m" (tmp___15->state): : "memory", "cc"); goto ldv_68826; case 8UL: tmp___16 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___0), "+m" (tmp___16->state): : "memory", "cc"); goto ldv_68826; default: __xchg_wrong_size(); } ldv_68826: ; if (__timeout == 0L) { schedule(); } else { if (__info->lwi_interval != 0L) { __min1 = __info->lwi_interval; __min2 = __timeout; tmp___17 = __min1 < __min2 ? __min1 : __min2; } else { tmp___17 = __timeout; } interval = tmp___17; tmp___18 = schedule_timeout(interval); remaining = tmp___18; tmp___19 = cfs_time_sub((unsigned long )interval, (unsigned long )remaining); tmp___20 = cfs_time_sub((unsigned long )__timeout, tmp___19); __timeout = (long )tmp___20; if (__timeout == 0L) { if ((unsigned long )__info->lwi_on_timeout == (unsigned long )((int (*)(void * ))0)) { __ret = -110; goto ldv_68823; } else { tmp___21 = (*(__info->lwi_on_timeout))(__info->lwi_cb_data); if (tmp___21 != 0) { __ret = -110; goto ldv_68823; } else { } } if ((unsigned long )__info->lwi_on_signal != (unsigned long )((void (*)(void * ))0)) { cfs_block_sigsinv(24838UL); } else { } } else { } } tmp___22 = get_current(); tmp___22->task_state_change = 0UL; __ret___1 = 0L; switch (8UL) { case 1UL: tmp___23 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___1), "+m" (tmp___23->state): : "memory", "cc"); goto ldv_68839; case 2UL: tmp___24 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___1), "+m" (tmp___24->state): : "memory", "cc"); goto ldv_68839; case 4UL: tmp___25 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___1), "+m" (tmp___25->state): : "memory", "cc"); goto ldv_68839; case 8UL: tmp___26 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___1), "+m" (tmp___26->state): : "memory", "cc"); goto ldv_68839; default: __xchg_wrong_size(); } ldv_68839: tmp___27 = ll_sa_entry_stated(entry); if (tmp___27 != 0) { goto ldv_68823; } else { tmp___28 = thread_is_stopped(thread); if (tmp___28 != 0) { goto ldv_68823; } else { } } tmp___29 = cfs_signal_pending(); if (tmp___29 != 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_68823; } else { } cfs_clear_sigpending(); } else { } goto ldv_68846; ldv_68823: cfs_restore_sigs(__blocked); remove_wait_queue(& sai->sai_waitq, & __wait); ldv_68822: rc = __ret; if (rc < 0) { ll_sai_unplug(sai, entry); return (-11); } else { } } else { } if ((unsigned int )entry->se_stat == 1U && (unsigned long )entry->se_inode != (unsigned long )((struct inode *)0)) { inode = entry->se_inode; it.it_op = 8; it.it_create_mode = 0; it.it_flags = 0ULL; it.d.lustre.it_disposition = 0; it.d.lustre.it_status = 0; it.d.lustre.it_lock_handle = entry->se_handle; it.d.lustre.it_lock_bits = 0ULL; it.d.lustre.it_lock_mode = 0; it.d.lustre.it_remote_lock_mode = 0; it.d.lustre.it_remote_lock_handle = 0ULL; it.d.lustre.it_data = 0; it.d.lustre.it_lock_set = (unsigned char)0; tmp___31 = ll_inode2fid(inode); tmp___32 = ll_i2mdexp(dir); rc = md_revalidate_lock(tmp___32, & it, tmp___31, & bits); if (rc == 1) { tmp___39 = d_inode((struct dentry const *)*dentryp); if ((unsigned long )tmp___39 == (unsigned long )((struct inode *)0)) { alias = ll_splice_alias(inode, *dentryp); tmp___34 = IS_ERR((void const *)alias); if ((int )tmp___34) { ll_sai_unplug(sai, entry); tmp___33 = PTR_ERR((void const *)alias); return ((int )tmp___33); } else { } *dentryp = alias; } else { tmp___38 = d_inode((struct dentry const *)*dentryp); if ((unsigned long )tmp___38 != (unsigned long )inode) { tmp___37 = cfs_cdebug_show(4194304U, 128U); if (tmp___37 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata.msg_fn = "do_statahead_enter"; msgdata.msg_line = 1625; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4194304; tmp___35 = d_inode((struct dentry const *)*dentryp); tmp___36 = d_inode((struct dentry const *)*dentryp); libcfs_debug_msg(& msgdata, "stale dentry %pd inode %lu/%u, statahead inode %lu/%u\n", *dentryp, tmp___36->i_ino, tmp___35->i_generation, inode->i_ino, inode->i_generation); } else { } ll_sai_unplug(sai, entry); return (-116); } else { iput(inode); } } entry->se_inode = (struct inode *)0; if ((int )bits & 1) { tmp___40 = d_lustre_invalid((struct dentry const *)*dentryp); if (tmp___40 != 0) { d_lustre_revalidate___0(*dentryp); } else { } } else { } ll_intent_release(& it); } else { } } else { } ll_sai_unplug(sai, entry); return (rc); } else { } rc = is_first_dirent(dir, *dentryp); if (rc == 0) { rc = -11; goto out; } else { } sai = ll_sai_alloc(); if ((unsigned long )sai == (unsigned long )((struct ll_statahead_info *)0)) { rc = -12; goto out; } else { } sai->sai_ls_all = rc == 2; sai->sai_inode = igrab(dir); tmp___42 = ldv__builtin_expect((unsigned long )sai->sai_inode == (unsigned long )((struct inode *)0), 0L); if (tmp___42 != 0L) { tmp___41 = cfs_cdebug_show(1024U, 128U); if (tmp___41 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata___0.msg_fn = "do_statahead_enter"; msgdata___0.msg_line = 1662; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 1024; libcfs_debug_msg(& msgdata___0, "Do not start stat ahead on dying inode [%#llx:0x%x:0x%x]\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver); } else { } rc = -116; goto out; } else { } parent = dget((*dentryp)->d_parent); tmp___46 = d_inode((struct dentry const *)parent); tmp___47 = ldv__builtin_expect((unsigned long )sai->sai_inode != (unsigned long )tmp___46, 0L); if (tmp___47 != 0L) { tmp___43 = d_inode((struct dentry const *)parent); tmp___44 = ll_i2info(tmp___43); nlli = tmp___44; tmp___45 = cfs_cdebug_show(1024U, 128U); if (tmp___45 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata___1.msg_fn = "do_statahead_enter"; msgdata___1.msg_line = 1674; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 1024; libcfs_debug_msg(& msgdata___1, "Race condition, someone changed %pd just now: old parent [%#llx:0x%x:0x%x], new parent [%#llx:0x%x:0x%x]\n", *dentryp, lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, nlli->lli_fid.f_seq, nlli->lli_fid.f_oid, nlli->lli_fid.f_ver); } else { } dput(parent); iput(sai->sai_inode); rc = -11; goto out; } else { } tmp___48 = cfs_cdebug_show(4194304U, 128U); if (tmp___48 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata___2.msg_fn = "do_statahead_enter"; msgdata___2.msg_line = 1682; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 4194304; libcfs_debug_msg(& msgdata___2, "start statahead thread: sai %p, parent %pd\n", sai, parent); } else { } ll_sai_get(sai); lli->u.d.d_sai = sai; tmp___49 = d_inode((struct dentry const *)parent); plli = ll_i2info(tmp___49); tmp___50 = kthread_create_on_node(& ll_statahead_thread, (void *)parent, -1, "ll_sa_%u", plli->u.d.d_opendir_pid); __k = tmp___50; tmp___51 = IS_ERR((void const *)__k); if (tmp___51) { tmp___52 = 0; } else { tmp___52 = 1; } if (tmp___52) { wake_up_process(__k); } else { } tmp___53 = PTR_ERR((void const *)__k); rc = (int )tmp___53; thread = & sai->sai_thread; tmp___56 = ldv__builtin_expect((unsigned int )rc > 4294963200U, 0L); if (tmp___56 != 0L) { tmp___54 = cfs_cdebug_show(131072U, 128U); if (tmp___54 != 0) { msgdata___3.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; msgdata___3.msg_fn = "do_statahead_enter"; msgdata___3.msg_line = 1697; msgdata___3.msg_cdls = & cdls___1; msgdata___3.msg_mask = 131072; libcfs_debug_msg(& msgdata___3, "can\'t start ll_sa thread, rc: %d\n", rc); } else { } dput(parent); lli->u.d.d_opendir_key = (void *)0; thread_set_flags(thread, 1U); thread_set_flags(& sai->sai_agl_thread, 1U); ll_sai_put(sai); ll_sai_put(sai); tmp___55 = ldv__builtin_expect((unsigned long )lli->u.d.d_sai != (unsigned long )((struct ll_statahead_info *)0), 0L); if (tmp___55 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/statahead.c"; __msg_data___0.msg_fn = "do_statahead_enter"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 1706; __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 *)"lli->u.d.d_sai == ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } return (-11); } else { } __info___0 = & lwi; __timeout___0 = __info___0->lwi_timeout; __allow_intr___0 = __info___0->lwi_allow_intr; __ret___2 = 0; tmp___57 = thread_is_running(thread); if (tmp___57 != 0) { goto ldv_68871; } else { tmp___58 = thread_is_stopped(thread); if (tmp___58 != 0) { goto ldv_68871; } else { } } tmp___59 = get_current(); init_waitqueue_entry(& __wait___0, tmp___59); add_wait_queue(& thread->t_ctl_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_68895: tmp___60 = thread_is_running(thread); if (tmp___60 != 0) { goto ldv_68872; } else { tmp___61 = thread_is_stopped(thread); if (tmp___61 != 0) { goto ldv_68872; } else { } } tmp___62 = get_current(); tmp___62->task_state_change = 0UL; __ret___3 = 1L; switch (8UL) { case 1UL: tmp___63 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___3), "+m" (tmp___63->state): : "memory", "cc"); goto ldv_68875; case 2UL: tmp___64 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___3), "+m" (tmp___64->state): : "memory", "cc"); goto ldv_68875; case 4UL: tmp___65 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___3), "+m" (tmp___65->state): : "memory", "cc"); goto ldv_68875; case 8UL: tmp___66 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___3), "+m" (tmp___66->state): : "memory", "cc"); goto ldv_68875; default: __xchg_wrong_size(); } ldv_68875: ; if (__timeout___0 == 0L) { schedule(); } else { if (__info___0->lwi_interval != 0L) { __min1___0 = __info___0->lwi_interval; __min2___0 = __timeout___0; tmp___67 = __min1___0 < __min2___0 ? __min1___0 : __min2___0; } else { tmp___67 = __timeout___0; } interval___0 = tmp___67; tmp___68 = schedule_timeout(interval___0); remaining___0 = tmp___68; tmp___69 = cfs_time_sub((unsigned long )interval___0, (unsigned long )remaining___0); tmp___70 = cfs_time_sub((unsigned long )__timeout___0, tmp___69); __timeout___0 = (long )tmp___70; if (__timeout___0 == 0L) { if ((unsigned long )__info___0->lwi_on_timeout == (unsigned long )((int (*)(void * ))0)) { __ret___2 = -110; goto ldv_68872; } else { tmp___71 = (*(__info___0->lwi_on_timeout))(__info___0->lwi_cb_data); if (tmp___71 != 0) { __ret___2 = -110; goto ldv_68872; } else { } } if ((unsigned long )__info___0->lwi_on_signal != (unsigned long )((void (*)(void * ))0)) { cfs_block_sigsinv(24838UL); } else { } } else { } } tmp___72 = get_current(); tmp___72->task_state_change = 0UL; __ret___4 = 0L; switch (8UL) { case 1UL: tmp___73 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___4), "+m" (tmp___73->state): : "memory", "cc"); goto ldv_68888; case 2UL: tmp___74 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___4), "+m" (tmp___74->state): : "memory", "cc"); goto ldv_68888; case 4UL: tmp___75 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___4), "+m" (tmp___75->state): : "memory", "cc"); goto ldv_68888; case 8UL: tmp___76 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___4), "+m" (tmp___76->state): : "memory", "cc"); goto ldv_68888; default: __xchg_wrong_size(); } ldv_68888: tmp___77 = thread_is_running(thread); if (tmp___77 != 0) { goto ldv_68872; } else { tmp___78 = thread_is_stopped(thread); if (tmp___78 != 0) { goto ldv_68872; } else { } } tmp___79 = cfs_signal_pending(); if (tmp___79 != 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_68872; } else { } cfs_clear_sigpending(); } else { } goto ldv_68895; ldv_68872: cfs_restore_sigs(__blocked___0); remove_wait_queue(& thread->t_ctl_waitq, & __wait___0); ldv_68871: ll_sai_put(sai); return (-11); out: kfree((void const *)sai); spin_lock(& lli->u.d.d_sa_lock); lli->u.d.d_opendir_key = (void *)0; lli->u.d.d_opendir_pid = 0; spin_unlock(& lli->u.d.d_sa_lock); return (rc); } } int ldv_pskb_expand_head_671(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_673(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_675(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_676(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_677(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_678(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_679(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_680(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_681(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 ) ; extern unsigned int radix_tree_gang_lookup_tag(struct radix_tree_root * , void ** , unsigned long , unsigned int , unsigned int ) ; struct sk_buff *ldv_skb_clone_710(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_718(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_712(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_708(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_716(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_717(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_713(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_714(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_715(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; extern struct cl_lock *cl_lock_peek(struct lu_env const * , struct cl_io const * , struct cl_lock_descr const * , char const * , void const * ) ; extern struct cl_lock *cl_lock_request(struct lu_env const * , struct cl_io * , struct cl_lock_descr const * , char const * , void const * ) ; extern void cl_lock_release(struct lu_env const * , struct cl_lock * , char const * , void const * ) ; extern int cl_wait(struct lu_env const * , struct cl_lock * ) ; extern void cl_unuse(struct lu_env const * , struct cl_lock * ) ; blkcnt_t dirty_cnt(struct inode *inode ) ; int cl_glimpse_lock(struct lu_env const *env , struct cl_io *io , struct inode *inode , struct cl_object *clob , int agl ) ; __inline static struct ccc_thread_info *ccc_env_info___2(struct lu_env const *env ) { struct ccc_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 *)(& ccc_key)); info = (struct ccc_thread_info *)tmp; tmp___0 = ldv__builtin_expect((unsigned long )info == (unsigned long )((struct ccc_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/lclient/../include/lclient.h"; __msg_data.msg_fn = "ccc_env_info"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 131; __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_io *ccc_env_thread_io___2(struct lu_env const *env ) { struct cl_io *io ; struct ccc_thread_info *tmp ; { tmp = ccc_env_info___2(env); io = & tmp->cti_io; memset((void *)io, 0, 256UL); return (io); } } __inline static struct ccc_session *ccc_env_session___3(struct lu_env const *env ) { struct ccc_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 *)(& ccc_session_key)); ses = (struct ccc_session *)tmp; tmp___0 = ldv__builtin_expect((unsigned long )ses == (unsigned long )((struct ccc_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/lclient/../include/lclient.h"; __msg_data.msg_fn = "ccc_env_session"; __msg_data.msg_subsys = 1; __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 *)"ses != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } return (ses); } } __inline static struct ccc_io *ccc_env_io___3(struct lu_env const *env ) { struct ccc_session *tmp ; { tmp = ccc_env_session___3(env); return (& tmp->cs_ios); } } __inline static int cl_merge_lvb(struct lu_env const *env , struct inode *inode ) { int tmp ; { tmp = ll_merge_lvb(env, inode); return (tmp); } } static struct cl_lock_descr const whole_file = {0, 0UL, 0xffffffffffffffffUL, 0ULL, 1, 0U}; blkcnt_t dirty_cnt(struct inode *inode ) { blkcnt_t cnt ; struct ccc_object *vob ; struct ccc_object *tmp ; void *results[1U] ; unsigned int tmp___0 ; int tmp___1 ; { cnt = 0UL; tmp = cl_inode2ccc(inode); vob = tmp; if ((unsigned long )inode->i_mapping != (unsigned long )((struct address_space *)0)) { tmp___0 = radix_tree_gang_lookup_tag(& (inode->i_mapping)->page_tree, (void **)(& results), 0UL, 1U, 0U); cnt = (blkcnt_t )tmp___0 + cnt; } else { } if (cnt == 0UL) { tmp___1 = atomic_read((atomic_t const *)(& vob->cob_mmap_cnt)); if (tmp___1 > 0) { cnt = 1UL; } else { } } else { } return (cnt != 0UL); } } int cl_glimpse_lock(struct lu_env const *env , struct cl_io *io , struct inode *inode , struct cl_object *clob , int agl ) { struct cl_lock_descr *descr ; struct ccc_thread_info *tmp ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___0 ; struct lu_fid const *fid ; struct lu_fid const *tmp___1 ; struct ccc_io *cio ; struct ccc_io *tmp___2 ; struct cl_lock *lock ; int result ; struct libcfs_debug_msg_data msgdata ; int tmp___3 ; struct task_struct *tmp___4 ; long tmp___5 ; bool tmp___6 ; struct libcfs_debug_msg_data __msg_data ; long tmp___7 ; loff_t tmp___8 ; struct task_struct *tmp___9 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___10 ; { tmp = ccc_env_info___2(env); descr = & tmp->cti_descr; tmp___0 = ll_i2info(inode); lli = tmp___0; tmp___1 = lu_object_fid((struct lu_object const *)(& clob->co_lu)); fid = tmp___1; tmp___2 = ccc_env_io___3(env); cio = tmp___2; result = 0; if ((lli->lli_flags & 1U) == 0U) { tmp___3 = cfs_cdebug_show(65536U, 1U); if (tmp___3 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/glimpse.c"; msgdata.msg_fn = "cl_glimpse_lock"; msgdata.msg_line = 98; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 65536; libcfs_debug_msg(& msgdata, "Glimpsing inode [%#llx:0x%x:0x%x]\n", fid->f_seq, fid->f_oid, fid->f_ver); } else { } if ((int )lli->lli_has_smd) { *descr = whole_file; descr->cld_obj = clob; descr->cld_mode = 0; descr->cld_enq_flags = 10U; if (agl != 0) { descr->cld_enq_flags = descr->cld_enq_flags | 32U; } else { } cio->cui_glimpse = 1; tmp___4 = get_current(); lock = cl_lock_request(env, io, (struct cl_lock_descr const *)descr, "glimpse", (void const *)tmp___4); cio->cui_glimpse = 0; if ((unsigned long )lock == (unsigned long )((struct cl_lock *)0)) { return (0); } else { } tmp___6 = IS_ERR((void const *)lock); if ((int )tmp___6) { tmp___5 = PTR_ERR((void const *)lock); return ((int )tmp___5); } else { } tmp___7 = ldv__builtin_expect(agl != 0, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/glimpse.c"; __msg_data.msg_fn = "cl_glimpse_lock"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 138; __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 *)"agl == 0"); lbug_with_loc(& __msg_data); } else { } result = cl_wait(env, lock); if (result == 0) { cl_merge_lvb(env, inode); tmp___8 = i_size_read((struct inode const *)inode); if (tmp___8 > 0LL && inode->i_blocks == 0UL) { inode->i_blocks = dirty_cnt(inode); } else { } cl_unuse(env, lock); } else { } tmp___9 = get_current(); cl_lock_release(env, lock, "glimpse", (void const *)tmp___9); } else { tmp___10 = cfs_cdebug_show(65536U, 1U); if (tmp___10 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/glimpse.c"; msgdata___0.msg_fn = "cl_glimpse_lock"; msgdata___0.msg_line = 156; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 65536; libcfs_debug_msg(& msgdata___0, "No objects for inode\n"); } else { } cl_merge_lvb(env, inode); } } else { } return (result); } } static int cl_io_get(struct inode *inode , struct lu_env **envout , struct cl_io **ioout , int *refcheck ) { struct lu_env *env ; struct cl_io *io ; struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct cl_object *clob ; int result ; long tmp___0 ; bool tmp___1 ; int tmp___2 ; { tmp = ll_i2info(inode); lli = tmp; clob = lli->lli_clob; if (((int )inode->i_mode & 61440) == 32768) { 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) { io = ccc_env_thread_io___2((struct lu_env const *)env); io->ci_obj = clob; *envout = env; *ioout = io; result = 1; } else { tmp___0 = PTR_ERR((void const *)env); result = (int )tmp___0; } } else { result = 0; } return (result); } } int cl_glimpse_size0(struct inode *inode , int agl ) { struct lu_env *env ; struct cl_io *io ; int result ; int refcheck ; long tmp ; { env = (struct lu_env *)0; io = (struct cl_io *)0; result = cl_io_get(inode, & env, & io, & refcheck); if (result > 0) { again: io->ci_verify_layout = 1U; result = cl_io_init((struct lu_env const *)env, io, 5, io->ci_obj); if (result > 0) { result = io->ci_result; } else if (result == 0) { result = cl_glimpse_lock((struct lu_env const *)env, io, inode, io->ci_obj, agl); } else { } cfs_fail_timeout_set(5124U, 0U, 2000, 0); cl_io_fini((struct lu_env const *)env, io); tmp = ldv__builtin_expect((unsigned int )*((unsigned char *)io + 244UL) != 0U, 0L); if (tmp != 0L) { goto again; } else { } cl_env_put(env, & refcheck); } else { } return (result); } } int cl_local_size(struct inode *inode ) { struct lu_env *env ; struct cl_io *io ; struct ccc_thread_info *cti ; struct cl_object *clob ; struct cl_lock_descr *descr ; struct cl_lock *lock ; int result ; int refcheck ; struct ll_inode_info *tmp ; int tmp___0 ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; { env = (struct lu_env *)0; io = (struct cl_io *)0; tmp = ll_i2info(inode); if (tmp->lli_has_smd) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return (0); } else { } result = cl_io_get(inode, & env, & io, & refcheck); if (result <= 0) { return (result); } else { } clob = io->ci_obj; result = cl_io_init((struct lu_env const *)env, io, 5, clob); if (result > 0) { result = io->ci_result; } else if (result == 0) { cti = ccc_env_info___2((struct lu_env const *)env); descr = & cti->cti_descr; *descr = whole_file; descr->cld_obj = clob; tmp___1 = get_current(); lock = cl_lock_peek((struct lu_env const *)env, (struct cl_io const *)io, (struct cl_lock_descr const *)descr, "localsize", (void const *)tmp___1); if ((unsigned long )lock != (unsigned long )((struct cl_lock *)0)) { cl_merge_lvb((struct lu_env const *)env, inode); cl_unuse((struct lu_env const *)env, lock); tmp___2 = get_current(); cl_lock_release((struct lu_env const *)env, lock, "localsize", (void const *)tmp___2); result = 0; } else { result = -61; } } else { } cl_io_fini((struct lu_env const *)env, io); cl_env_put(env, & refcheck); return (result); } } int ldv_pskb_expand_head_708(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_710(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_712(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_713(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_714(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_715(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_716(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_717(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_718(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 void *ERR_PTR(long error ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; void *ldv_kmem_cache_alloc_757(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; void *ldv_kmem_cache_alloc_758(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; void *ldv_kmem_cache_alloc_759(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; void *ldv_kmem_cache_alloc_760(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; void *ldv_kmem_cache_alloc_761(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; __inline static void iov_iter_truncate(struct iov_iter *i , u64 count ) { { if ((unsigned long long )i->count > count) { i->count = (size_t )count; } else { } return; } } __inline static void iov_iter_reexpand(struct iov_iter *i , size_t count ) { { i->count = count; return; } } struct sk_buff *ldv_skb_clone_747(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_755(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_749(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_745(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_753(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_754(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_750(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_751(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_752(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static int cfs_hash_bkt_size(struct cfs_hash *hs ) { int tmp ; { tmp = (*((hs->hs_hops)->hop_hhead_size))(hs); return ((int )((((unsigned int )tmp << (int )hs->hs_bkt_bits) + (unsigned int )hs->hs_extra_bytes) + 88U)); } } extern void cfs_hash_bd_get(struct cfs_hash * , void const * , struct cfs_hash_bd * ) ; __inline static void *cfs_hash_bd_extra_get(struct cfs_hash *hs , struct cfs_hash_bd *bd ) { int tmp ; { tmp = cfs_hash_bkt_size(hs); return ((void *)bd->bd_bucket + ((unsigned long )tmp - (unsigned long )hs->hs_extra_bytes)); } } __inline static int cfs_fail_check_set___6(__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, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; msgdata.msg_file = "/home/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/lclient/../../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, 128U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 128; 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/lclient/../../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); } } __inline static ino_t lu_igif_ino(struct lu_fid const *fid ) { __u64 tmp ; { tmp = fid_seq(fid); return ((ino_t )tmp); } } __inline static __u32 lu_igif_gen(struct lu_fid const *fid ) { __u32 tmp ; { tmp = fid_oid(fid); return (tmp); } } __inline static struct lu_site_bkt_data *lu_site_bkt_from_fid(struct lu_site *site , struct lu_fid *fid ) { struct cfs_hash_bd bd ; void *tmp ; { cfs_hash_bd_get(site->ls_obj_hash, (void const *)fid, & bd); tmp = cfs_hash_bd_extra_get(site->ls_obj_hash, & bd); return ((struct lu_site_bkt_data *)tmp); } } extern int lu_site_init(struct lu_site * , struct lu_device * ) ; extern int lu_site_init_finish(struct lu_site * ) ; extern void lu_device_get(struct lu_device * ) ; extern int lu_device_init(struct lu_device * , struct lu_device_type * ) ; extern void lu_device_fini(struct lu_device * ) ; extern void lu_object_header_fini(struct lu_object_header * ) ; extern int lu_object_init(struct lu_object * , struct lu_object_header * , struct lu_device * ) ; extern void lu_object_fini(struct lu_object * ) ; extern void lu_object_add_top(struct lu_object_header * , struct lu_object * ) ; extern void lu_object_add(struct lu_object * , struct lu_object * ) ; extern int lu_device_type_init(struct lu_device_type * ) ; extern void lu_device_type_fini(struct lu_device_type * ) ; __inline static void lu_object_ref_add(struct lu_object *o , char const *scope , void const *source ) { { lu_ref_add(& (o->lo_header)->loh_reference, scope, source); return; } } __inline static void lu_object_ref_del(struct lu_object *o , char const *scope , void const *source ) { { lu_ref_del(& (o->lo_header)->loh_reference, scope, source); return; } } __inline static __u64 fid_flatten(struct lu_fid const *fid ) { __u64 ino ; __u64 seq ; ino_t tmp ; int tmp___0 ; __u32 tmp___1 ; __u32 tmp___2 ; __u64 tmp___3 ; { tmp___0 = fid_is_igif(fid); if (tmp___0 != 0) { tmp = lu_igif_ino(fid); ino = (__u64 )tmp; return (ino); } else { } seq = fid_seq(fid); tmp___1 = fid_oid(fid); ino = ((seq << 24) + ((seq >> 24) & 1099511562240ULL)) + (unsigned long long )tmp___1; if (ino == 0ULL) { tmp___2 = fid_oid(fid); tmp___3 = (__u64 )tmp___2; } else { tmp___3 = ino; } return (tmp___3); } } __inline static __u32 fid_flatten32(struct lu_fid const *fid ) { __u32 ino ; __u64 seq ; ino_t tmp ; int tmp___0 ; __u64 tmp___1 ; __u32 tmp___2 ; __u32 tmp___3 ; __u32 tmp___4 ; __u32 tmp___5 ; { tmp___0 = fid_is_igif(fid); if (tmp___0 != 0) { tmp = lu_igif_ino(fid); ino = (__u32 )tmp; return (ino); } else { } tmp___1 = fid_seq(fid); seq = tmp___1 - 8589934592ULL; tmp___2 = fid_oid(fid); tmp___3 = fid_oid(fid); ino = (((((__u32 )seq << 12U) + ((__u32 )(seq >> 8) & 4294963200U)) + ((__u32 )(seq >> 32) & 4294967040U)) + (tmp___2 & 4278194175U)) + ((tmp___3 & 16773120U) << 8); if (ino == 0U) { tmp___4 = fid_oid(fid); tmp___5 = tmp___4; } else { tmp___5 = ino; } return (tmp___5); } } extern int cl_site_init(struct cl_site * , struct cl_device * ) ; extern void cl_site_fini(struct cl_site * ) ; __inline static struct cl_site *lu2cl_site(struct lu_site const *site ) { struct lu_site const *__mptr ; { __mptr = site; return ((struct cl_site *)__mptr); } } __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/lclient/../include/cl_object.h"; __msg_data.msg_fn = "lu2cl_dev"; __msg_data.msg_subsys = 128; __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 struct lu_device *cl2lu_dev(struct cl_device *d ) { { return (& d->cd_lu_dev); } } __inline static struct cl_object_conf const *lu2cl_conf(struct lu_object_conf const *conf ) { void *tmp ; { tmp = __container_of___0((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___0((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 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; } } extern void cl_lock_slice_add(struct cl_lock * , struct cl_lock_slice * , struct cl_object * , struct cl_lock_operations const * ) ; extern void cl_req_slice_add(struct cl_req * , struct cl_req_slice * , struct cl_device * , struct cl_req_operations const * ) ; extern struct cl_object *cl_object_find(struct lu_env const * , struct cl_device * , struct lu_fid const * , struct cl_object_conf const * ) ; extern int cl_object_header_init(struct cl_object_header * ) ; extern void cl_object_put(struct lu_env const * , struct cl_object * ) ; extern void cl_object_kill(struct lu_env const * , struct cl_object * ) ; __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 int cl_queue_match(struct list_head const * , struct cl_lock_descr const * ) ; extern int cl_io_lock_add(struct lu_env const * , struct cl_io * , struct cl_io_lock_link * ) ; extern struct lu_env *cl_env_alloc(int * , __u32 ) ; extern void *cl_env_reenter(void) ; extern void cl_env_reexit(void * ) ; extern void cl_env_implant(struct lu_env * , int * ) ; extern void cl_env_unplant(struct lu_env * , int * ) ; int cl_is_normalio(struct lu_env const *env , struct cl_io const *io ) ; __inline static struct ccc_thread_info *ccc_env_info___3(struct lu_env const *env ) { struct ccc_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 *)(& ccc_key)); info = (struct ccc_thread_info *)tmp; tmp___0 = ldv__builtin_expect((unsigned long )info == (unsigned long )((struct ccc_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/lclient/../include/lclient.h"; __msg_data.msg_fn = "ccc_env_info"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 131; __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_attr *ccc_env_thread_attr___1(struct lu_env const *env ) { struct cl_attr *attr ; struct ccc_thread_info *tmp ; { tmp = ccc_env_info___3(env); attr = & tmp->cti_attr; memset((void *)attr, 0, 56UL); return (attr); } } __inline static struct cl_io *ccc_env_thread_io___3(struct lu_env const *env ) { struct cl_io *io ; struct ccc_thread_info *tmp ; { tmp = ccc_env_info___3(env); io = & tmp->cti_io; memset((void *)io, 0, 256UL); return (io); } } __inline static struct ccc_session *ccc_env_session___4(struct lu_env const *env ) { struct ccc_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 *)(& ccc_session_key)); ses = (struct ccc_session *)tmp; tmp___0 = ldv__builtin_expect((unsigned long )ses == (unsigned long )((struct ccc_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/lclient/../include/lclient.h"; __msg_data.msg_fn = "ccc_env_session"; __msg_data.msg_subsys = 128; __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 *)"ses != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } return (ses); } } __inline static struct ccc_io *ccc_env_io___4(struct lu_env const *env ) { struct ccc_session *tmp ; { tmp = ccc_env_session___4(env); return (& tmp->cs_ios); } } struct cl_page *ccc_vmpage_page_transient(struct page *vmpage ) ; void *ccc_key_init(struct lu_context const *ctx , struct lu_context_key *key ) ; void ccc_key_fini(struct lu_context const *ctx , struct lu_context_key *key , void *data ) ; void *ccc_session_key_init(struct lu_context const *ctx , struct lu_context_key *key ) ; void ccc_session_key_fini(struct lu_context const *ctx , struct lu_context_key *key , void *data ) ; int ccc_device_init(struct lu_env const *env , struct lu_device *d , char const *name , struct lu_device *next ) ; struct lu_device *ccc_device_fini(struct lu_env const *env , struct lu_device *d ) ; struct lu_device *ccc_device_alloc(struct lu_env const *env , struct lu_device_type *t , struct lustre_cfg *cfg , struct lu_device_operations const *luops , struct cl_device_operations const *clops ) ; struct lu_device *ccc_device_free(struct lu_env const *env , struct lu_device *d ) ; struct lu_object *ccc_object_alloc(struct lu_env const *env , struct lu_object_header const *unused , struct lu_device *dev , struct cl_object_operations const *clops , struct lu_object_operations const *luops ) ; int ccc_req_init(struct lu_env const *env , struct cl_device *dev , struct cl_req *req ) ; int ccc_global_init(struct lu_device_type *device_type ) ; void ccc_global_fini(struct lu_device_type *device_type ) ; int ccc_object_init0(struct lu_env const *env , struct ccc_object *vob , struct cl_object_conf const *conf ) ; int ccc_object_init(struct lu_env const *env , struct lu_object *obj , struct lu_object_conf const *conf ) ; void ccc_object_free(struct lu_env const *env , struct lu_object *obj ) ; int ccc_lock_init(struct lu_env const *env , struct cl_object *obj , struct cl_lock *lock , struct cl_io const *unused , struct cl_lock_operations const *lkops ) ; int ccc_attr_set(struct lu_env const *env , struct cl_object *obj , struct cl_attr const *attr , unsigned int valid ) ; int ccc_object_glimpse(struct lu_env const *env , struct cl_object const *obj , struct ost_lvb *lvb ) ; int ccc_conf_set(struct lu_env const *env , struct cl_object *obj , struct cl_object_conf const *conf ) ; struct page *ccc_page_vmpage(struct lu_env const *env , struct cl_page_slice const *slice ) ; int ccc_page_is_under_lock(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *io ) ; int ccc_fail(struct lu_env const *env , struct cl_page_slice const *slice ) ; void ccc_transient_page_verify(struct cl_page const *page ) ; int ccc_transient_page_own(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused , int nonblock ) ; void ccc_transient_page_assume(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) ; void ccc_transient_page_unassume(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) ; void ccc_transient_page_disown(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) ; void ccc_transient_page_discard(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) ; int ccc_transient_page_prep(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) ; void ccc_lock_delete(struct lu_env const *env , struct cl_lock_slice const *slice ) ; void ccc_lock_fini(struct lu_env const *env , struct cl_lock_slice *slice ) ; int ccc_lock_enqueue(struct lu_env const *env , struct cl_lock_slice const *slice , struct cl_io *unused , __u32 enqflags ) ; int ccc_lock_use(struct lu_env const *env , struct cl_lock_slice const *slice ) ; int ccc_lock_unuse(struct lu_env const *env , struct cl_lock_slice const *slice ) ; int ccc_lock_wait(struct lu_env const *env , struct cl_lock_slice const *slice ) ; int ccc_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 ) ; void ccc_lock_state(struct lu_env const *env , struct cl_lock_slice const *slice , enum cl_lock_state state ) ; void ccc_io_fini(struct lu_env const *env , struct cl_io_slice const *ios ) ; int ccc_io_one_lock_index(struct lu_env const *env , struct cl_io *io , __u32 enqflags , enum cl_lock_mode mode , unsigned long start , unsigned long end ) ; int ccc_io_one_lock(struct lu_env const *env , struct cl_io *io , __u32 enqflags , enum cl_lock_mode mode , loff_t start , loff_t end ) ; void ccc_io_end(struct lu_env const *env , struct cl_io_slice const *ios ) ; void ccc_io_advance(struct lu_env const *env , struct cl_io_slice const *ios , size_t nob ) ; void ccc_io_update_iov(struct lu_env const *env , struct ccc_io *cio , struct cl_io *io ) ; int ccc_prep_size(struct lu_env const *env , struct cl_object *obj , struct cl_io *io , loff_t start , size_t count , int *exceed ) ; void ccc_req_completion(struct lu_env const *env , struct cl_req_slice const *slice , int ioret ) ; void ccc_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 lu_device *ccc2lu_dev(struct ccc_device *vdv ) ; struct lu_object *ccc2lu(struct ccc_object *vob ) ; struct ccc_device *lu2ccc_dev(struct lu_device const *d ) ; struct ccc_device *cl2ccc_dev(struct cl_device const *d ) ; struct ccc_object *lu2ccc(struct lu_object const *obj ) ; struct ccc_lock *cl2ccc_lock(struct cl_lock_slice const *slice ) ; struct ccc_io *cl2ccc_io(struct lu_env const *env , struct cl_io_slice const *slice ) ; struct ccc_req *cl2ccc_req(struct cl_req_slice const *slice ) ; struct page *cl2vm_page(struct cl_page_slice const *slice ) ; int ccc_object_invariant(struct cl_object const *obj ) ; extern struct lov_stripe_md *lov_lsm_get(struct cl_object * ) ; __inline static struct ll_file_data *cl_iattr2fd(struct inode *inode , struct iattr const *attr ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect(((unsigned int )attr->ia_valid & 8192U) == 0U, 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/lclient/../llite/llite_internal.h"; __msg_data.msg_fn = "cl_iattr2fd"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1310; __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 *)"attr->ia_valid & (1 << 13)"); lbug_with_loc(& __msg_data); } else { } return ((struct ll_file_data *)(attr->ia_file)->private_data); } } __inline static void cl_isize_lock(struct inode *inode ) { { ll_inode_size_lock(inode); return; } } __inline static void cl_isize_unlock(struct inode *inode ) { { ll_inode_size_unlock(inode); return; } } __inline static void cl_isize_write_nolock___0(struct inode *inode , loff_t kms ) { struct libcfs_debug_msg_data __msg_data ; struct ll_inode_info *tmp ; int tmp___0 ; long tmp___1 ; { tmp = ll_i2info(inode); tmp___0 = mutex_is_locked(& tmp->u.f.f_size_mutex); 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/lclient/../llite/llite_internal.h"; __msg_data.msg_fn = "cl_isize_write_nolock"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1326; __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 *)"mutex_is_locked(&ll_i2info(inode)->u.f.f_size_mutex)"); lbug_with_loc(& __msg_data); } else { } i_size_write(inode, kms); return; } } __inline static void cl_stats_tally(struct cl_device *dev , enum cl_req_type crt , int rc ) { int opc ; struct ccc_device *tmp ; { opc = (unsigned int )crt == 0U ? 6 : 7; tmp = cl2ccc_dev((struct cl_device const *)dev); ll_stats_ops_tally(((struct lustre_sb_info *)(tmp->cdv_sb)->s_fs_info)->lsi_llsbi, opc, rc); return; } } static struct cl_req_operations const ccc_req_ops ; static struct kmem_cache *ccc_lock_kmem ; static struct kmem_cache *ccc_object_kmem ; static struct kmem_cache *ccc_thread_kmem ; static struct kmem_cache *ccc_session_kmem ; static struct kmem_cache *ccc_req_kmem ; static struct lu_kmem_descr ccc_caches[6U] = { {& ccc_lock_kmem, "ccc_lock_kmem", 40UL}, {& ccc_object_kmem, "ccc_object_kmem", 448UL}, {& ccc_thread_kmem, "ccc_thread_kmem", 352UL}, {& ccc_session_kmem, "ccc_session_kmem", 160UL}, {& ccc_req_kmem, "ccc_req_kmem", 40UL}, {(struct kmem_cache **)0, 0, 0UL}}; void *ccc_key_init(struct lu_context const *ctx , struct lu_context_key *key ) { struct ccc_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "ccc_key_init"; __msg_data.msg_subsys = 128; __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 *)"(!((((( 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_757(ccc_thread_kmem, 32848U); info = (struct ccc_thread_info *)tmp___1; if ((unsigned long )info != (unsigned long )((struct ccc_thread_info *)0)) { tmp___3 = cfs_fail_check_set___6(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-", 352UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c", 119); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(ccc_thread_kmem, (void *)info); info = (struct ccc_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, 352L); tmp___2 = cfs_cdebug_show(16U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; msgdata.msg_fn = "ccc_key_init"; msgdata.msg_line = 119; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'info\': %d at %p.\n", 352, info); } else { } } else { } if ((unsigned long )info == (unsigned long )((struct ccc_thread_info *)0)) { tmp___7 = ERR_PTR(-12L); info = (struct ccc_thread_info *)tmp___7; } else { } return ((void *)info); } } void ccc_key_fini(struct lu_context const *ctx , struct lu_context_key *key , void *data ) { struct ccc_thread_info *info ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { info = (struct ccc_thread_info *)data; tmp = ldv__builtin_expect((unsigned long )info == (unsigned long )((struct ccc_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "ccc_key_fini"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 130; __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, 352L); tmp___0 = cfs_cdebug_show(16U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; msgdata.msg_fn = "ccc_key_fini"; msgdata.msg_line = 130; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(info)\': %d at %p.\n", 352, info); } else { } memset((void *)info, 90, 352UL); kmem_cache_free(ccc_thread_kmem, (void *)info); info = (struct ccc_thread_info *)3735928559L; return; } } void *ccc_session_key_init(struct lu_context const *ctx , struct lu_context_key *key ) { struct ccc_session *session ; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "ccc_session_key_init"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 138; __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_758(ccc_session_kmem, 32848U); session = (struct ccc_session *)tmp___1; if ((unsigned long )session != (unsigned long )((struct ccc_session *)0)) { tmp___3 = cfs_fail_check_set___6(3072U, 0U, 0, 0); if (tmp___3 == 0 || obd_alloc_fail_rate == 0U) { tmp___5 = 1; } else { tmp___4 = obd_alloc_fail((void const *)session, "session", "slab-", 160UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c", 138); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(ccc_session_kmem, (void *)session); session = (struct ccc_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, 160L); tmp___2 = cfs_cdebug_show(16U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; msgdata.msg_fn = "ccc_session_key_init"; msgdata.msg_line = 138; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'session\': %d at %p.\n", 160, session); } else { } } else { } if ((unsigned long )session == (unsigned long )((struct ccc_session *)0)) { tmp___7 = ERR_PTR(-12L); session = (struct ccc_session *)tmp___7; } else { } return ((void *)session); } } void ccc_session_key_fini(struct lu_context const *ctx , struct lu_context_key *key , void *data ) { struct ccc_session *session ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { session = (struct ccc_session *)data; tmp = ldv__builtin_expect((unsigned long )session == (unsigned long )((struct ccc_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "ccc_session_key_fini"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 149; __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 *)"(session)"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 160L); tmp___0 = cfs_cdebug_show(16U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; msgdata.msg_fn = "ccc_session_key_fini"; msgdata.msg_line = 149; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(session)\': %d at %p.\n", 160, session); } else { } memset((void *)session, 90, 160UL); kmem_cache_free(ccc_session_kmem, (void *)session); session = (struct ccc_session *)3735928559L; return; } } struct lu_context_key ccc_key = {8U, & ccc_key_init, & ccc_key_fini, 0, 0, {0}, 0, {}}; struct lu_context_key ccc_session_key = {16U, & ccc_session_key_init, & ccc_session_key_fini, 0, 0, {0}, 0, {}}; int ccc_device_init(struct lu_env const *env , struct lu_device *d , char const *name , struct lu_device *next ) { struct ccc_device *vdv ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; { vdv = lu2ccc_dev((struct lu_device const *)d); vdv->cdv_next = lu2cl_dev((struct lu_device const *)next); tmp = ldv__builtin_expect((long )((unsigned long )d->ld_site == (unsigned long )((struct lu_site *)0) || (unsigned long )next->ld_type == (unsigned long )((struct lu_device_type *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "ccc_device_init"; __msg_data.msg_subsys = 128; __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 *)"d->ld_site != ((void *)0) && next->ld_type != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } next->ld_site = d->ld_site; rc = (*(((next->ld_type)->ldt_ops)->ldto_device_init))(env, next, (char const *)(next->ld_type)->ldt_name, (struct lu_device *)0); if (rc == 0) { lu_device_get(next); lu_ref_add(& next->ld_reference, "lu-stack", (void const *)(& lu_site_init)); } else { } return (rc); } } struct lu_device *ccc_device_fini(struct lu_env const *env , struct lu_device *d ) { struct ccc_device *tmp ; struct lu_device *tmp___0 ; { tmp = lu2ccc_dev((struct lu_device const *)d); tmp___0 = cl2lu_dev(tmp->cdv_next); return (tmp___0); } } struct lu_device *ccc_device_alloc(struct lu_env const *env , struct lu_device_type *t , struct lustre_cfg *cfg , struct lu_device_operations const *luops , struct cl_device_operations const *clops ) { struct ccc_device *vdv ; struct lu_device *lud ; struct cl_site *site ; int rc ; void *tmp ; void *tmp___0 ; struct lu_device *tmp___1 ; void *tmp___2 ; struct libcfs_debug_msg_data __msg_data ; long tmp___3 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___4 ; void *tmp___5 ; { tmp = kzalloc(80UL, 80U); vdv = (struct ccc_device *)tmp; if ((unsigned long )vdv == (unsigned long )((struct ccc_device *)0)) { tmp___0 = ERR_PTR(-12L); return ((struct lu_device *)tmp___0); } else { } lud = & vdv->cdv_cl.cd_lu_dev; cl_device_init(& vdv->cdv_cl, t); tmp___1 = ccc2lu_dev(vdv); tmp___1->ld_ops = luops; vdv->cdv_cl.cd_ops = clops; tmp___2 = kzalloc(264UL, 80U); site = (struct cl_site *)tmp___2; if ((unsigned long )site != (unsigned long )((struct cl_site *)0)) { rc = cl_site_init(site, & vdv->cdv_cl); if (rc == 0) { rc = lu_site_init_finish(& site->cs_lu); } else { tmp___3 = ldv__builtin_expect((unsigned long )lud->ld_site != (unsigned long )((struct lu_site *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "ccc_device_alloc"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 220; __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 *)"lud->ld_site == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___4 = cfs_cdebug_show(131072U, 128U); if (tmp___4 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; msgdata.msg_fn = "ccc_device_alloc"; msgdata.msg_line = 221; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Cannot init lu_site, rc %d.\n", rc); } else { } kfree((void const *)site); } } else { rc = -12; } if (rc != 0) { ccc_device_free(env, lud); tmp___5 = ERR_PTR((long )rc); lud = (struct lu_device *)tmp___5; } else { } return (lud); } } struct lu_device *ccc_device_free(struct lu_env const *env , struct lu_device *d ) { struct ccc_device *vdv ; struct ccc_device *tmp ; struct cl_site *site ; struct cl_site *tmp___0 ; struct lu_device *next ; struct lu_device *tmp___1 ; struct cl_device *tmp___2 ; { tmp = lu2ccc_dev((struct lu_device const *)d); vdv = tmp; tmp___0 = lu2cl_site((struct lu_site const *)d->ld_site); site = tmp___0; tmp___1 = cl2lu_dev(vdv->cdv_next); next = tmp___1; if ((unsigned long )d->ld_site != (unsigned long )((struct lu_site *)0)) { cl_site_fini(site); kfree((void const *)site); } else { } tmp___2 = lu2cl_dev((struct lu_device const *)d); cl_device_fini(tmp___2); kfree((void const *)vdv); return (next); } } int ccc_req_init(struct lu_env const *env , struct cl_device *dev , struct cl_req *req ) { struct ccc_req *vrq ; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "ccc_req_init"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 255; __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_759(ccc_req_kmem, 32848U); vrq = (struct ccc_req *)tmp___1; if ((unsigned long )vrq != (unsigned long )((struct ccc_req *)0)) { tmp___3 = cfs_fail_check_set___6(3072U, 0U, 0, 0); if (tmp___3 == 0 || obd_alloc_fail_rate == 0U) { tmp___5 = 1; } else { tmp___4 = obd_alloc_fail((void const *)vrq, "vrq", "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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c", 255); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(ccc_req_kmem, (void *)vrq); vrq = (struct ccc_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, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; msgdata.msg_fn = "ccc_req_init"; msgdata.msg_line = 255; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'vrq\': %d at %p.\n", 40, vrq); } else { } } else { } if ((unsigned long )vrq != (unsigned long )((struct ccc_req *)0)) { cl_req_slice_add(req, & vrq->crq_cl, dev, & ccc_req_ops); result = 0; } else { result = -12; } return (result); } } static struct lu_env *ccc_inode_fini_env ; static struct mutex ccc_inode_fini_guard = {{1}, {{{{{0}}, 3735899821U, 4294967295U, (void *)-1, {0, {0, 0}, "ccc_inode_fini_guard.wait_lock", 0, 0UL}}}}, {& ccc_inode_fini_guard.wait_list, & ccc_inode_fini_guard.wait_list}, 0, (void *)(& ccc_inode_fini_guard), {0, {0, 0}, "ccc_inode_fini_guard", 0, 0UL}}; static int dummy_refcheck ; int ccc_global_init(struct lu_device_type *device_type ) { int result ; long tmp ; bool tmp___0 ; { result = lu_kmem_init((struct lu_kmem_descr *)(& ccc_caches)); if (result != 0) { return (result); } else { } result = lu_device_type_init(device_type); if (result != 0) { goto out_kmem; } else { } ccc_inode_fini_env = cl_env_alloc(& dummy_refcheck, 2684354560U); tmp___0 = IS_ERR((void const *)ccc_inode_fini_env); if ((int )tmp___0) { tmp = PTR_ERR((void const *)ccc_inode_fini_env); result = (int )tmp; goto out_device; } else { } ccc_inode_fini_env->le_ctx.lc_cookie = 4U; return (0); out_device: lu_device_type_fini(device_type); out_kmem: lu_kmem_fini((struct lu_kmem_descr *)(& ccc_caches)); return (result); } } void ccc_global_fini(struct lu_device_type *device_type ) { { if ((unsigned long )ccc_inode_fini_env != (unsigned long )((struct lu_env *)0)) { cl_env_put(ccc_inode_fini_env, & dummy_refcheck); ccc_inode_fini_env = (struct lu_env *)0; } else { } lu_device_type_fini(device_type); lu_kmem_fini((struct lu_kmem_descr *)(& ccc_caches)); return; } } struct lu_object *ccc_object_alloc(struct lu_env const *env , struct lu_object_header const *unused , struct lu_device *dev , struct cl_object_operations const *clops , struct lu_object_operations const *luops ) { struct ccc_object *vob ; 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 ; struct cl_object_header *hdr ; { 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "ccc_object_alloc"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 331; __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_760(ccc_object_kmem, 32848U); vob = (struct ccc_object *)tmp___1; if ((unsigned long )vob != (unsigned long )((struct ccc_object *)0)) { tmp___3 = cfs_fail_check_set___6(3072U, 0U, 0, 0); if (tmp___3 == 0 || obd_alloc_fail_rate == 0U) { tmp___5 = 1; } else { tmp___4 = obd_alloc_fail((void const *)vob, "vob", "slab-", 448UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c", 331); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(ccc_object_kmem, (void *)vob); vob = (struct ccc_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, 448L); tmp___2 = cfs_cdebug_show(16U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; msgdata.msg_fn = "ccc_object_alloc"; msgdata.msg_line = 331; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'vob\': %d at %p.\n", 448, vob); } else { } } else { } if ((unsigned long )vob != (unsigned long )((struct ccc_object *)0)) { obj = ccc2lu(vob); hdr = & vob->cob_header; cl_object_header_init(hdr); lu_object_init(obj, & hdr->coh_lu, dev); lu_object_add_top(& hdr->coh_lu, obj); vob->cob_cl.co_ops = clops; obj->lo_ops = luops; } else { obj = (struct lu_object *)0; } return (obj); } } int ccc_object_init0(struct lu_env const *env , struct ccc_object *vob , struct cl_object_conf const *conf ) { { vob->cob_inode = conf->coc_inode; vob->cob_transient_pages = 0; cl_object_page_init(& vob->cob_cl, 80); return (0); } } int ccc_object_init(struct lu_env const *env , struct lu_object *obj , struct lu_object_conf const *conf ) { struct ccc_device *dev ; struct ccc_device *tmp ; struct ccc_object *vob ; struct ccc_object *tmp___0 ; struct lu_object *below ; struct lu_device *under ; int result ; struct cl_object_conf const *cconf ; { tmp = lu2ccc_dev((struct lu_device const *)obj->lo_dev); dev = tmp; tmp___0 = lu2ccc((struct lu_object const *)obj); vob = tmp___0; under = & (dev->cdv_next)->cd_lu_dev; below = (*((under->ld_ops)->ldo_object_alloc))(env, (struct lu_object_header const *)obj->lo_header, under); if ((unsigned long )below != (unsigned long )((struct lu_object *)0)) { cconf = lu2cl_conf(conf); INIT_LIST_HEAD(& vob->cob_pending_list); lu_object_add(obj, below); result = ccc_object_init0(env, vob, cconf); } else { result = -12; } return (result); } } void ccc_object_free(struct lu_env const *env , struct lu_object *obj ) { struct ccc_object *vob ; struct ccc_object *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; { tmp = lu2ccc((struct lu_object const *)obj); vob = tmp; lu_object_fini(obj); lu_object_header_fini(obj->lo_header); tmp___0 = ldv__builtin_expect((unsigned long )vob == (unsigned long )((struct ccc_object *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "ccc_object_free"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 387; __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 *)"(vob)"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 448L); tmp___1 = cfs_cdebug_show(16U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; msgdata.msg_fn = "ccc_object_free"; msgdata.msg_line = 387; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(vob)\': %d at %p.\n", 448, vob); } else { } memset((void *)vob, 90, 448UL); kmem_cache_free(ccc_object_kmem, (void *)vob); vob = (struct ccc_object *)3735928559L; return; } } int ccc_lock_init(struct lu_env const *env , struct cl_object *obj , struct cl_lock *lock , struct cl_io const *unused , struct cl_lock_operations const *lkops ) { struct ccc_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 ; { 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "ccc_lock_init"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 400; __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_761(ccc_lock_kmem, 32848U); clk = (struct ccc_lock *)tmp___1; if ((unsigned long )clk != (unsigned long )((struct ccc_lock *)0)) { tmp___3 = cfs_fail_check_set___6(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-", 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c", 400); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(ccc_lock_kmem, (void *)clk); clk = (struct ccc_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, 40L); tmp___2 = cfs_cdebug_show(16U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; msgdata.msg_fn = "ccc_lock_init"; msgdata.msg_line = 400; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'clk\': %d at %p.\n", 40, clk); } else { } } else { } if ((unsigned long )clk != (unsigned long )((struct ccc_lock *)0)) { cl_lock_slice_add(lock, & clk->clk_cl, obj, lkops); result = 0; } else { result = -12; } return (result); } } int ccc_attr_set(struct lu_env const *env , struct cl_object *obj , struct cl_attr const *attr , unsigned int valid ) { { return (0); } } int ccc_object_glimpse(struct lu_env const *env , struct cl_object const *obj , struct ost_lvb *lvb ) { struct inode *inode ; struct inode *tmp ; blkcnt_t tmp___0 ; { tmp = ccc_object_inode(obj); inode = tmp; lvb->lvb_mtime = (__s64 )inode->i_mtime.tv_sec; lvb->lvb_atime = (__s64 )inode->i_atime.tv_sec; lvb->lvb_ctime = (__s64 )inode->i_ctime.tv_sec; if (lvb->lvb_size != 0ULL && lvb->lvb_blocks == 0ULL) { tmp___0 = dirty_cnt(inode); lvb->lvb_blocks = (__u64 )tmp___0; } else { } return (0); } } int ccc_conf_set(struct lu_env const *env , struct cl_object *obj , struct cl_object_conf const *conf ) { { return (0); } } static void ccc_object_size_lock(struct cl_object *obj ) { struct inode *inode ; struct inode *tmp ; { tmp = ccc_object_inode((struct cl_object const *)obj); inode = tmp; cl_isize_lock(inode); cl_object_attr_lock(obj); return; } } static void ccc_object_size_unlock(struct cl_object *obj ) { struct inode *inode ; struct inode *tmp ; { tmp = ccc_object_inode((struct cl_object const *)obj); inode = tmp; cl_object_attr_unlock(obj); cl_isize_unlock(inode); return; } } struct page *ccc_page_vmpage(struct lu_env const *env , struct cl_page_slice const *slice ) { struct page *tmp ; { tmp = cl2vm_page(slice); return (tmp); } } int ccc_page_is_under_lock(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *io ) { struct ccc_io *cio ; struct ccc_io *tmp ; struct cl_lock_descr *desc ; struct ccc_thread_info *tmp___0 ; struct cl_page *page ; int result ; int tmp___1 ; { tmp = ccc_env_io___4(env); cio = tmp; tmp___0 = ccc_env_info___3(env); desc = & tmp___0->cti_descr; page = slice->cpl_page; if (((unsigned int )io->ci_type == 0U || (unsigned int )io->ci_type == 1U) || (unsigned int )io->ci_type == 3U) { if (((cio->cui_fd)->fd_flags & 2U) != 0U) { result = -16; } else { desc->cld_start = page->cp_index; desc->cld_end = page->cp_index; desc->cld_obj = page->cp_obj; desc->cld_mode = 1; tmp___1 = cl_queue_match((struct list_head const *)(& io->ci_lockset.cls_done), (struct cl_lock_descr const *)desc); result = tmp___1 != 0 ? -16 : 0; } } else { result = 0; } return (result); } } int ccc_fail(struct lu_env const *env , struct cl_page_slice const *slice ) { 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; msgdata.msg_fn = "ccc_fail"; msgdata.msg_subsys = 128; msgdata.msg_line = 502; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; lbug_with_loc(& msgdata); return (0); } } void ccc_transient_page_verify(struct cl_page const *page ) { { return; } } int ccc_transient_page_own(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused , int nonblock ) { { ccc_transient_page_verify((struct cl_page const *)slice->cpl_page); return (0); } } void ccc_transient_page_assume(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { { ccc_transient_page_verify((struct cl_page const *)slice->cpl_page); return; } } void ccc_transient_page_unassume(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { { ccc_transient_page_verify((struct cl_page const *)slice->cpl_page); return; } } void ccc_transient_page_disown(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { { ccc_transient_page_verify((struct cl_page const *)slice->cpl_page); return; } } void ccc_transient_page_discard(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { struct cl_page *page ; { page = slice->cpl_page; ccc_transient_page_verify((struct cl_page const *)slice->cpl_page); cl_page_delete(env, page); return; } } int ccc_transient_page_prep(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { { return (0); } } void ccc_lock_delete(struct lu_env const *env , struct cl_lock_slice const *slice ) { { return; } } void ccc_lock_fini(struct lu_env const *env , struct cl_lock_slice *slice ) { struct ccc_lock *clk ; struct ccc_lock *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; { tmp = cl2ccc_lock((struct cl_lock_slice const *)slice); clk = tmp; tmp___0 = ldv__builtin_expect((unsigned long )clk == (unsigned long )((struct ccc_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "ccc_lock_fini"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 578; __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 *)"(clk)"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 40L); tmp___1 = cfs_cdebug_show(16U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; msgdata.msg_fn = "ccc_lock_fini"; msgdata.msg_line = 578; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(clk)\': %d at %p.\n", 40, clk); } else { } memset((void *)clk, 90, 40UL); kmem_cache_free(ccc_lock_kmem, (void *)clk); clk = (struct ccc_lock *)3735928559L; return; } } int ccc_lock_enqueue(struct lu_env const *env , struct cl_lock_slice const *slice , struct cl_io *unused , __u32 enqflags ) { { return (0); } } int ccc_lock_use(struct lu_env const *env , struct cl_lock_slice const *slice ) { { return (0); } } int ccc_lock_unuse(struct lu_env const *env , struct cl_lock_slice const *slice ) { { return (0); } } int ccc_lock_wait(struct lu_env const *env , struct cl_lock_slice const *slice ) { { return (0); } } int ccc_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 cl_lock const *lock ; struct cl_lock_descr const *descr ; struct ccc_io const *cio ; struct ccc_io *tmp ; int result ; { lock = (struct cl_lock const *)slice->cls_lock; descr = & lock->cll_descr; tmp = ccc_env_io___4(env); cio = (struct ccc_io const *)tmp; if ((int )cio->cui_glimpse != 0) { result = (unsigned int )descr->cld_mode != 2U; } else if ((unsigned int )need->cld_mode != (unsigned int )descr->cld_mode) { result = (unsigned int )lock->cll_state > 1U; } else { result = 1; } return (result); } } void ccc_lock_state(struct lu_env const *env , struct cl_lock_slice const *slice , enum cl_lock_state state ) { struct cl_lock *lock ; struct cl_object *obj ; struct inode *inode ; { lock = slice->cls_lock; if ((unsigned int )state == 3U && (unsigned int )lock->cll_state <= 2U) { obj = slice->cls_obj; inode = ccc_object_inode((struct cl_object const *)obj); if (lock->cll_descr.cld_start == 0UL && lock->cll_descr.cld_end == 0xffffffffffffffffUL) { cl_merge_lvb(env, inode); } else { } } else { } return; } } void ccc_io_fini(struct lu_env const *env , struct cl_io_slice const *ios ) { struct cl_io *io ; { io = ios->cis_io; return; } } int ccc_io_one_lock_index(struct lu_env const *env , struct cl_io *io , __u32 enqflags , enum cl_lock_mode mode , unsigned long start , unsigned long end ) { struct ccc_io *cio ; struct ccc_io *tmp ; struct cl_lock_descr *descr ; struct cl_object *obj ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { tmp = ccc_env_io___4(env); cio = tmp; descr = & cio->cui_link.cill_descr; obj = io->ci_obj; tmp___0 = cfs_cdebug_show(2097152U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; msgdata.msg_fn = "ccc_io_one_lock_index"; msgdata.msg_line = 710; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "lock: %d [%lu, %lu]\n", (unsigned int )mode, start, end); } else { } memset((void *)(& cio->cui_link), 0, 72UL); if ((unsigned long )cio->cui_fd != (unsigned long )((struct ll_file_data *)0) && ((cio->cui_fd)->fd_flags & 2U) != 0U) { descr->cld_mode = 3; descr->cld_gid = (__u64 )(cio->cui_fd)->fd_grouplock.cg_gid; } else { descr->cld_mode = mode; } descr->cld_obj = obj; descr->cld_start = start; descr->cld_end = end; descr->cld_enq_flags = enqflags; cl_io_lock_add(env, io, & cio->cui_link); return (0); } } void ccc_io_update_iov(struct lu_env const *env , struct ccc_io *cio , struct cl_io *io ) { size_t size ; int tmp ; { size = io->u.ci_rw.crw_count; tmp = cl_is_normalio(env, (struct cl_io const *)io); if (tmp == 0 || (unsigned long )cio->cui_iter == (unsigned long )((struct iov_iter *)0)) { return; } else { } iov_iter_truncate(cio->cui_iter, (u64 )size); return; } } int ccc_io_one_lock(struct lu_env const *env , struct cl_io *io , __u32 enqflags , enum cl_lock_mode mode , loff_t start , loff_t end ) { struct cl_object *obj ; unsigned long tmp ; unsigned long tmp___0 ; int tmp___1 ; { obj = io->ci_obj; tmp = cl_index((struct cl_object const *)obj, end); tmp___0 = cl_index((struct cl_object const *)obj, start); tmp___1 = ccc_io_one_lock_index(env, io, enqflags, mode, tmp___0, tmp); return (tmp___1); } } void ccc_io_end(struct lu_env const *env , struct cl_io_slice const *ios ) { { return; } } void ccc_io_advance(struct lu_env const *env , struct cl_io_slice const *ios , size_t nob ) { struct ccc_io *cio ; struct ccc_io *tmp ; struct cl_io *io ; struct cl_object *obj ; int tmp___0 ; size_t tmp___1 ; { tmp = cl2ccc_io(env, ios); cio = tmp; io = ios->cis_io; obj = (ios->cis_io)->ci_obj; tmp___0 = cl_is_normalio(env, (struct cl_io const *)io); if (tmp___0 == 0) { return; } else { } tmp___1 = cio->cui_tot_count - nob; cio->cui_tot_count = tmp___1; iov_iter_reexpand(cio->cui_iter, tmp___1); return; } } int ccc_prep_size(struct lu_env const *env , struct cl_object *obj , struct cl_io *io , loff_t start , size_t count , int *exceed ) { struct cl_attr *attr ; struct cl_attr *tmp ; struct inode *inode ; struct inode *tmp___0 ; loff_t pos ; loff_t kms ; int result ; loff_t size ; loff_t tmp___1 ; loff_t cur_index ; loff_t size_index ; struct libcfs_debug_msg_data msgdata ; loff_t tmp___2 ; struct lu_fid const *tmp___3 ; struct lu_fid const *tmp___4 ; struct lu_fid const *tmp___5 ; int tmp___6 ; loff_t tmp___7 ; { tmp = ccc_env_thread_attr___1(env); attr = tmp; tmp___0 = ccc_object_inode((struct cl_object const *)obj); inode = tmp___0; pos = (loff_t )(((unsigned long long )start + (unsigned long long )count) - 1ULL); ccc_object_size_lock(obj); result = cl_object_attr_get(env, obj, attr); if (result == 0) { kms = attr->cat_kms; if (pos > kms) { ccc_object_size_unlock(obj); result = cl_glimpse_lock(env, io, inode, obj, 0); if (result == 0 && (unsigned long )exceed != (unsigned long )((int *)0)) { tmp___1 = i_size_read((struct inode const *)inode); size = tmp___1; cur_index = start >> 12; size_index = (size + -1LL) >> 12; if ((size == 0LL && cur_index != 0LL) || size_index < cur_index) { *exceed = 1; } else { } } else { } return (result); } else { } tmp___7 = i_size_read((struct inode const *)inode); if (tmp___7 < kms) { cl_isize_write_nolock___0(inode, kms); tmp___6 = cfs_cdebug_show(2097152U, 128U); if (tmp___6 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; msgdata.msg_fn = "ccc_prep_size"; msgdata.msg_line = 855; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; tmp___2 = i_size_read((struct inode const *)inode); tmp___3 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); tmp___4 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); tmp___5 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); libcfs_debug_msg(& msgdata, "[%#llx:0x%x:0x%x] updating i_size %llu\n", tmp___5->f_seq, tmp___4->f_oid, tmp___3->f_ver, (unsigned long long )tmp___2); } else { } } else { } } else { } ccc_object_size_unlock(obj); return (result); } } void ccc_req_completion(struct lu_env const *env , struct cl_req_slice const *slice , int ioret ) { struct ccc_req *vrq ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { if (ioret > 0) { cl_stats_tally(slice->crs_dev, (slice->crs_req)->crq_type, ioret); } else { } vrq = cl2ccc_req(slice); tmp = ldv__builtin_expect((unsigned long )vrq == (unsigned long )((struct ccc_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "ccc_req_completion"; __msg_data.msg_subsys = 128; __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 *)"(vrq)"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 40L); tmp___0 = cfs_cdebug_show(16U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; msgdata.msg_fn = "ccc_req_completion"; msgdata.msg_line = 878; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(vrq)\': %d at %p.\n", 40, vrq); } else { } memset((void *)vrq, 90, 40UL); kmem_cache_free(ccc_req_kmem, (void *)vrq); vrq = (struct ccc_req *)3735928559L; return; } } void ccc_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 inode *inode ; struct obdo *oa ; u32 valid_flags ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct ll_inode_info *tmp___0 ; struct ll_inode_info *tmp___1 ; struct ll_inode_info *tmp___2 ; { oa = attr->cra_oa; inode = ccc_object_inode(obj); valid_flags = 256U; if ((flags & 4398046511104ULL) != 0ULL) { tmp = ldv__builtin_expect((unsigned long )attr->cra_capa != (unsigned long )((struct obd_capa *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "ccc_req_attr_set"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 915; __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 *)"attr->cra_capa == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } attr->cra_capa = cl_capa_lookup(inode, (slice->crs_req)->crq_type); } else { } if ((unsigned int )(slice->crs_req)->crq_type == 1U) { if ((flags & 67108864ULL) != 0ULL) { oa->o_valid = oa->o_valid | 67108864ULL; tmp___0 = ll_i2info(inode); oa->o_ioepoch = tmp___0->lli_ioepoch; valid_flags = valid_flags | 1548U; } else { } } else { } obdo_from_inode(oa, inode, (u32 )flags & valid_flags); tmp___1 = ll_i2info(inode); obdo_set_parent_fid(oa, (struct lu_fid const *)(& tmp___1->lli_fid)); tmp___2 = ll_i2info(inode); memcpy((void *)(& attr->cra_jobid), (void const *)(& tmp___2->u.f.f_jobid), 32UL); return; } } static struct cl_req_operations const ccc_req_ops = {0, & ccc_req_attr_set, & ccc_req_completion}; int cl_setattr_ost(struct inode *inode , struct iattr const *attr , struct obd_capa *capa ) { struct lu_env *env ; struct cl_io *io ; int result ; int refcheck ; long tmp ; bool tmp___0 ; struct ll_inode_info *tmp___1 ; struct ccc_io *cio ; struct ccc_io *tmp___2 ; int tmp___3 ; long tmp___4 ; { env = cl_env_get(& refcheck); tmp___0 = IS_ERR((void const *)env); if ((int )tmp___0) { tmp = PTR_ERR((void const *)env); return ((int )tmp); } else { } io = ccc_env_thread_io___3((struct lu_env const *)env); tmp___1 = ll_i2info(inode); io->ci_obj = tmp___1->lli_clob; io->u.ci_setattr.sa_attr.lvb_atime = (__s64 )attr->ia_atime.tv_sec; io->u.ci_setattr.sa_attr.lvb_mtime = (__s64 )attr->ia_mtime.tv_sec; io->u.ci_setattr.sa_attr.lvb_ctime = (__s64 )attr->ia_ctime.tv_sec; io->u.ci_setattr.sa_attr.lvb_size = (__u64 )attr->ia_size; io->u.ci_setattr.sa_valid = attr->ia_valid; io->u.ci_setattr.sa_capa = capa; again: tmp___3 = cl_io_init((struct lu_env const *)env, io, 2, io->ci_obj); if (tmp___3 == 0) { tmp___2 = ccc_env_io___4((struct lu_env const *)env); cio = tmp___2; if (((unsigned int )attr->ia_valid & 8192U) != 0U) { cio->cui_fd = cl_iattr2fd(inode, attr); } else { } result = cl_io_loop((struct lu_env const *)env, io); } else { result = io->ci_result; } cl_io_fini((struct lu_env const *)env, io); tmp___4 = ldv__builtin_expect((unsigned int )*((unsigned char *)io + 244UL) != 0U, 0L); if (tmp___4 != 0L) { goto again; } else { } if ((result == -61 && (unsigned int )*((unsigned char *)io + 244UL) != 0U) && io->ci_result != -61) { result = 0; } else { } cl_env_put(env, & refcheck); return (result); } } struct lu_device *ccc2lu_dev(struct ccc_device *vdv ) { { return (& vdv->cdv_cl.cd_lu_dev); } } struct ccc_device *lu2ccc_dev(struct lu_device const *d ) { void *tmp ; { tmp = __container_of___0((void *)d, 0UL); return ((struct ccc_device *)tmp); } } struct ccc_device *cl2ccc_dev(struct cl_device const *d ) { void *tmp ; { tmp = __container_of___0((void *)d, 0UL); return ((struct ccc_device *)tmp); } } struct lu_object *ccc2lu(struct ccc_object *vob ) { { return (& vob->cob_cl.co_lu); } } struct ccc_object *lu2ccc(struct lu_object const *obj ) { void *tmp ; { tmp = __container_of___0((void *)obj, 352UL); return ((struct ccc_object *)tmp); } } struct ccc_object *cl2ccc(struct cl_object const *obj ) { void *tmp ; { tmp = __container_of___0((void *)obj, 352UL); return ((struct ccc_object *)tmp); } } struct ccc_lock *cl2ccc_lock(struct cl_lock_slice const *slice ) { struct cl_lock_slice const *__mptr ; { __mptr = slice; return ((struct ccc_lock *)__mptr); } } struct ccc_io *cl2ccc_io(struct lu_env const *env , struct cl_io_slice const *slice ) { struct ccc_io *cio ; struct cl_io_slice const *__mptr ; struct libcfs_debug_msg_data __msg_data ; struct ccc_io *tmp ; long tmp___0 ; { __mptr = slice; cio = (struct ccc_io *)__mptr; tmp = ccc_env_io___4(env); tmp___0 = ldv__builtin_expect((unsigned long )tmp != (unsigned long )cio, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "cl2ccc_io"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1034; __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 *)"cio == ccc_env_io(env)"); lbug_with_loc(& __msg_data); } else { } return (cio); } } struct ccc_req *cl2ccc_req(struct cl_req_slice const *slice ) { void *tmp ; { tmp = __container_of___0((void *)slice, 0UL); return ((struct ccc_req *)tmp); } } struct page *cl2vm_page(struct cl_page_slice const *slice ) { struct ccc_page *tmp ; { tmp = cl2ccc_page(slice); return (tmp->cpg_page); } } int ccc_object_invariant(struct cl_object const *obj ) { struct inode *inode ; struct inode *tmp ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___0 ; { tmp = ccc_object_inode(obj); inode = tmp; tmp___0 = ll_i2info(inode); lli = tmp___0; return ((((int )inode->i_mode & 61440) == 32768 || (unsigned int )inode->i_mode == 0U) && (unsigned long )((struct cl_object const *)lli->lli_clob) == (unsigned long )obj); } } struct inode *ccc_object_inode(struct cl_object const *obj ) { struct ccc_object *tmp ; { tmp = cl2ccc(obj); return (tmp->cob_inode); } } struct cl_page *ccc_vmpage_page_transient(struct page *vmpage ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; { tmp = PageLocked((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "ccc_vmpage_page_transient"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1075; __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 *)"PageLocked(vmpage)"); lbug_with_loc(& __msg_data); } else { } return ((struct cl_page *)vmpage->__annonCompField46.private); } } int cl_file_inode_init(struct inode *inode , struct lustre_md *md ) { struct lu_env *env ; struct ll_inode_info *lli ; struct cl_object *clob ; struct lu_site *site ; struct lu_fid *fid ; struct cl_object_conf conf ; int result ; int refcheck ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; long tmp___1 ; bool tmp___2 ; struct ll_sb_info *tmp___3 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___4 ; long tmp___5 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___6 ; struct cl_device *tmp___7 ; long tmp___8 ; bool tmp___9 ; int tmp___10 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___11 ; { conf.coc_lu.loc_flags = 0; conf.u.coc_md = md; conf.coc_inode = inode; conf.coc_lock = 0; conf.coc_opc = 0; result = 0; tmp = ldv__builtin_expect(((md->body)->valid & 1ULL) == 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "cl_file_inode_init"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1104; __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 *)"md->body->valid & (0x00000001ULL)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect(((int )inode->i_mode & 61440) != 32768, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data___0.msg_fn = "cl_file_inode_init"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 1105; __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 *)"(((((inode)->i_mode)) & 00170000) == 0100000)"); lbug_with_loc(& __msg_data___0); } else { } env = cl_env_get(& refcheck); tmp___2 = IS_ERR((void const *)env); if ((int )tmp___2) { tmp___1 = PTR_ERR((void const *)env); return ((int )tmp___1); } else { } tmp___3 = ll_i2sbi(inode); site = tmp___3->ll_site; lli = ll_i2info(inode); fid = & lli->lli_fid; tmp___4 = fid_is_sane((struct lu_fid const *)fid); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data___1.msg_fn = "cl_file_inode_init"; __msg_data___1.msg_subsys = 128; __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: \n", (char *)"fid_is_sane(fid)"); lbug_with_loc(& __msg_data___1); } else { } if ((unsigned long )lli->lli_clob == (unsigned long )((struct cl_object *)0)) { tmp___6 = ldv__builtin_expect((inode->i_state & 8UL) == 0UL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data___2.msg_fn = "cl_file_inode_init"; __msg_data___2.msg_subsys = 128; __msg_data___2.msg_line = 1121; __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 *)"inode->i_state & (1 << 3)"); lbug_with_loc(& __msg_data___2); } else { } conf.coc_lu.loc_flags = 1; tmp___7 = lu2cl_dev((struct lu_device const *)site->ls_top_dev); clob = cl_object_find((struct lu_env const *)env, tmp___7, (struct lu_fid const *)fid, (struct cl_object_conf const *)(& conf)); tmp___9 = IS_ERR((void const *)clob); if (tmp___9) { tmp___10 = 0; } else { tmp___10 = 1; } if (tmp___10) { lli->lli_clob = clob; lli->lli_has_smd = lsm_has_objects(md->lsm); lu_object_ref_add(& clob->co_lu, "inode", (void const *)inode); } else { tmp___8 = PTR_ERR((void const *)clob); result = (int )tmp___8; } } else { result = cl_conf_set((struct lu_env const *)env, lli->lli_clob, (struct cl_object_conf const *)(& conf)); } cl_env_put(env, & refcheck); if (result != 0) { tmp___11 = cfs_cdebug_show(131072U, 128U); if (tmp___11 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; msgdata.msg_fn = "cl_file_inode_init"; msgdata.msg_line = 1143; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Failure to initialize cl object [%#llx:0x%x:0x%x]: %d\n", fid->f_seq, fid->f_oid, fid->f_ver, result); } else { } } else { } return (result); } } static void cl_object_put_last(struct lu_env *env , struct cl_object *obj ) { struct lu_object_header *header ; wait_queue_t waiter ; struct lu_site *site ; struct lu_site_bkt_data *bkt ; struct task_struct *tmp ; struct task_struct *tmp___0 ; long volatile __ret ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; struct task_struct *tmp___3 ; struct task_struct *tmp___4 ; int tmp___5 ; struct task_struct *tmp___6 ; long volatile __ret___0 ; struct task_struct *tmp___7 ; struct task_struct *tmp___8 ; struct task_struct *tmp___9 ; struct task_struct *tmp___10 ; int tmp___11 ; long tmp___12 ; { header = obj->co_lu.lo_header; tmp___11 = atomic_read((atomic_t const *)(& header->loh_ref)); tmp___12 = ldv__builtin_expect(tmp___11 != 1, 0L); if (tmp___12 != 0L) { site = (obj->co_lu.lo_dev)->ld_site; bkt = lu_site_bkt_from_fid(site, & header->loh_fid); tmp = get_current(); init_waitqueue_entry(& waiter, tmp); add_wait_queue(& bkt->lsb_marche_funebre, & waiter); ldv_68891: tmp___0 = get_current(); tmp___0->task_state_change = 0UL; __ret = 2L; switch (8UL) { case 1UL: tmp___1 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret), "+m" (tmp___1->state): : "memory", "cc"); goto ldv_68884; case 2UL: tmp___2 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret), "+m" (tmp___2->state): : "memory", "cc"); goto ldv_68884; case 4UL: tmp___3 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret), "+m" (tmp___3->state): : "memory", "cc"); goto ldv_68884; case 8UL: tmp___4 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret), "+m" (tmp___4->state): : "memory", "cc"); goto ldv_68884; default: __xchg_wrong_size(); } ldv_68884: tmp___5 = atomic_read((atomic_t const *)(& header->loh_ref)); if (tmp___5 == 1) { goto ldv_68890; } else { } schedule(); goto ldv_68891; ldv_68890: tmp___6 = get_current(); tmp___6->task_state_change = 0UL; __ret___0 = 0L; switch (8UL) { case 1UL: tmp___7 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___0), "+m" (tmp___7->state): : "memory", "cc"); goto ldv_68894; case 2UL: tmp___8 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___0), "+m" (tmp___8->state): : "memory", "cc"); goto ldv_68894; case 4UL: tmp___9 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___0), "+m" (tmp___9->state): : "memory", "cc"); goto ldv_68894; case 8UL: tmp___10 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___0), "+m" (tmp___10->state): : "memory", "cc"); goto ldv_68894; default: __xchg_wrong_size(); } ldv_68894: remove_wait_queue(& bkt->lsb_marche_funebre, & waiter); } else { } cl_object_put((struct lu_env const *)env, obj); return; } } void cl_inode_fini(struct inode *inode ) { struct lu_env *env ; struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct cl_object *clob ; int refcheck ; int emergency ; void *cookie ; bool tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; { tmp = ll_i2info(inode); lli = tmp; clob = lli->lli_clob; if ((unsigned long )clob != (unsigned long )((struct cl_object *)0)) { cookie = cl_env_reenter(); env = cl_env_get(& refcheck); tmp___0 = IS_ERR((void const *)env); emergency = (int )tmp___0; if (emergency != 0) { mutex_lock_nested(& ccc_inode_fini_guard, 0U); tmp___1 = ldv__builtin_expect((unsigned long )ccc_inode_fini_env == (unsigned long )((struct lu_env *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c"; __msg_data.msg_fn = "cl_inode_fini"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 1200; __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 *)"ccc_inode_fini_env != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } cl_env_implant(ccc_inode_fini_env, & refcheck); env = ccc_inode_fini_env; } else { } cl_object_kill((struct lu_env const *)env, clob); lu_object_ref_del(& clob->co_lu, "inode", (void const *)inode); cl_object_put_last(env, clob); lli->lli_clob = (struct cl_object *)0; if (emergency != 0) { cl_env_unplant(ccc_inode_fini_env, & refcheck); mutex_unlock(& ccc_inode_fini_guard); } else { cl_env_put(env, & refcheck); } cl_env_reexit(cookie); } else { } return; } } __u16 ll_dirent_type_get(struct lu_dirent *ent ) { __u16 type ; struct luda_type *lt ; int len ; unsigned int align ; { type = 0U; len = 0; if ((ent->lde_attrs & 2U) != 0U) { align = 1U; len = (int )ent->lde_namelen; len = (int )(((unsigned int )len + align) & ~ align); lt = (struct luda_type *)(& ent->lde_name) + (unsigned long )len; type = (int )lt->lt_type >> 12; } else { } return (type); } } __u64 cl_fid_build_ino(struct lu_fid const *fid , int api32 ) { __u32 tmp ; __u64 tmp___0 ; { if (api32 != 0) { tmp = fid_flatten32(fid); return ((__u64 )tmp); } else { tmp___0 = fid_flatten(fid); return (tmp___0); } } } __u32 cl_fid_build_gen(struct lu_fid const *fid ) { __u32 gen ; int tmp ; __u64 tmp___0 ; { tmp = fid_is_igif(fid); if (tmp != 0) { gen = lu_igif_gen(fid); return (gen); } else { } tmp___0 = fid_flatten(fid); gen = (__u32 )(tmp___0 >> 32); return (gen); } } struct lov_stripe_md *ccc_inode_lsm_get(struct inode *inode ) { struct ll_inode_info *tmp ; struct lov_stripe_md *tmp___0 ; { tmp = ll_i2info(inode); tmp___0 = lov_lsm_get(tmp->lli_clob); return (tmp___0); } } void ldv_initialize_lu_context_key_46(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(48UL); ccc_session_key_group0 = (struct lu_context const *)tmp; tmp___0 = ldv_init_zalloc(48UL); ccc_session_key_group1 = (struct lu_context_key *)tmp___0; return; } } void ldv_initialize_cl_req_operations_45(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(56UL); ccc_req_ops_group0 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(40UL); ccc_req_ops_group1 = (struct cl_req_slice const *)tmp___0; return; } } void ldv_initialize_lu_context_key_47(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(48UL); ccc_key_group0 = (struct lu_context const *)tmp; tmp___0 = ldv_init_zalloc(48UL); ccc_key_group1 = (struct lu_context_key *)tmp___0; return; } } void ldv_main_exported_46(void) { void *ldvarg196 ; void *tmp ; int tmp___0 ; { tmp = ldv_init_zalloc(1UL); ldvarg196 = tmp; tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_46 == 1) { ccc_session_key_fini(ccc_session_key_group0, ccc_session_key_group1, ldvarg196); ldv_state_variable_46 = 1; } else { } goto ldv_68947; case 1: ; if (ldv_state_variable_46 == 1) { ccc_session_key_init(ccc_session_key_group0, ccc_session_key_group1); ldv_state_variable_46 = 1; } else { } goto ldv_68947; default: ldv_stop(); } ldv_68947: ; return; } } void ldv_main_exported_45(void) { struct cl_req_attr *ldvarg332 ; void *tmp ; struct cl_object *ldvarg333 ; void *tmp___0 ; u64 ldvarg334 ; int ldvarg331 ; int tmp___1 ; { tmp = ldv_init_zalloc(48UL); ldvarg332 = (struct cl_req_attr *)tmp; tmp___0 = ldv_init_zalloc(56UL); ldvarg333 = (struct cl_object *)tmp___0; ldv_memset((void *)(& ldvarg334), 0, 8UL); ldv_memset((void *)(& ldvarg331), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_45 == 1) { ccc_req_attr_set(ccc_req_ops_group0, ccc_req_ops_group1, (struct cl_object const *)ldvarg333, ldvarg332, ldvarg334); ldv_state_variable_45 = 1; } else { } goto ldv_68958; case 1: ; if (ldv_state_variable_45 == 1) { ccc_req_completion(ccc_req_ops_group0, ccc_req_ops_group1, ldvarg331); ldv_state_variable_45 = 1; } else { } goto ldv_68958; default: ldv_stop(); } ldv_68958: ; return; } } void ldv_main_exported_47(void) { void *ldvarg265 ; void *tmp ; int tmp___0 ; { tmp = ldv_init_zalloc(1UL); ldvarg265 = tmp; tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_47 == 1) { ccc_key_fini(ccc_key_group0, ccc_key_group1, ldvarg265); ldv_state_variable_47 = 1; } else { } goto ldv_68966; case 1: ; if (ldv_state_variable_47 == 1) { ccc_key_init(ccc_key_group0, ccc_key_group1); ldv_state_variable_47 = 1; } else { } goto ldv_68966; default: ldv_stop(); } ldv_68966: ; return; } } int ldv_pskb_expand_head_745(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_747(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_749(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_750(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_751(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_752(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_753(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_754(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_755(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_757(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 ccc_thread_kmem return (tmp); } } void *ldv_kmem_cache_alloc_758(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 ccc_session_kmem return (tmp); } } void *ldv_kmem_cache_alloc_759(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 ccc_req_kmem return (tmp); } } void *ldv_kmem_cache_alloc_760(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 ccc_object_kmem return (tmp); } } void *ldv_kmem_cache_alloc_761(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 ccc_lock_kmem return (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 ) ; struct sk_buff *ldv_skb_clone_789(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_797(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_791(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_787(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_795(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_796(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_792(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_793(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_794(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static int obd_get_info___2(struct lu_env const *env , struct obd_export *exp , __u32 keylen , void *key , __u32 *vallen , void *val , struct lov_stripe_md *lsm ) { 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, 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/lclient/../include/obd_class.h"; msgdata.msg_fn = "obd_get_info"; msgdata.msg_line = 480; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_get_info: 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, 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/lclient/../include/obd_class.h"; msgdata___0.msg_fn = "obd_get_info"; msgdata___0.msg_line = 480; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_get_info: 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_get_info == (unsigned long )((int (*)(struct lu_env const * , struct obd_export * , __u32 , void * , __u32 * , void * , struct lov_stripe_md * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 1U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 1; 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/lclient/../include/obd_class.h"; msgdata___1.msg_fn = "obd_get_info"; msgdata___1.msg_line = 480; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_get_info: 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 + 1U; 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/lclient/../include/obd_class.h"; __msg_data.msg_fn = "obd_get_info"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 481; __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_get_info))(env, exp, keylen, key, vallen, val, lsm); return (rc); } } __inline static int obd_packmd___1(struct obd_export *exp , struct lov_mds_md_v1 **disk_tgt , struct lov_stripe_md *mem_src ) { 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, 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/lclient/../include/obd_class.h"; msgdata.msg_fn = "obd_packmd"; msgdata.msg_line = 683; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_packmd: 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, 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/lclient/../include/obd_class.h"; msgdata___0.msg_fn = "obd_packmd"; msgdata___0.msg_line = 683; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_packmd: 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_packmd == (unsigned long )((int (*)(struct obd_export * , struct lov_mds_md_v1 ** , struct lov_stripe_md * ))0)) { tmp___1 = cfs_cdebug_show(131072U, 1U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 1; 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/lclient/../include/obd_class.h"; msgdata___1.msg_fn = "obd_packmd"; msgdata___1.msg_line = 683; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_packmd: 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 + 20U; 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/lclient/../include/obd_class.h"; __msg_data.msg_fn = "obd_packmd"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 684; __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_packmd))(exp, disk_tgt, mem_src); return (rc); } } __inline static int obd_size_diskmd___0(struct obd_export *exp , struct lov_stripe_md *mem_src ) { int tmp ; { tmp = obd_packmd___1(exp, (struct lov_mds_md_v1 **)0, mem_src); return (tmp); } } __inline static int md_init_ea_size(struct obd_export *exp , int easize , int def_asize , int cookiesize , int def_cookiesize ) { 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 ; int tmp___3 ; { if ((unsigned long )exp == (unsigned long )((struct obd_export *)0)) { tmp = cfs_cdebug_show(131072U, 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/lclient/../include/obd_class.h"; msgdata.msg_fn = "md_init_ea_size"; msgdata.msg_line = 1758; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "obd_init_ea_size: 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, 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/lclient/../include/obd_class.h"; msgdata___0.msg_fn = "md_init_ea_size"; msgdata___0.msg_line = 1758; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "obd_init_ea_size: 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_md_ops)->m_init_ea_size == (unsigned long )((int (*)(struct obd_export * , int , int , int , int ))0)) { tmp___1 = cfs_cdebug_show(131072U, 1U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 1; 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/lclient/../include/obd_class.h"; msgdata___1.msg_fn = "md_init_ea_size"; msgdata___1.msg_line = 1758; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "obd_init_ea_size: dev %s/%d no operation\n", (char *)(& (exp->exp_obd)->obd_name), (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)->md_cntr_base + 19U; tmp___2 = ldv__builtin_expect((unsigned int )((exp->exp_obd)->md_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/lclient/../include/obd_class.h"; __msg_data.msg_fn = "md_init_ea_size"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 1759; __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->md_stats->ls_num"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_add((exp->exp_obd)->md_stats, (int )coffset, 1L); if ((unsigned long )exp->exp_md_stats != (unsigned long )((struct lprocfs_stats *)0)) { lprocfs_counter_add(exp->exp_md_stats, (int )coffset, 1L); } else { } } else { } tmp___3 = (*((((exp->exp_obd)->obd_type)->typ_md_ops)->m_init_ea_size))(exp, easize, def_asize, cookiesize, def_cookiesize); return (tmp___3); } } int cl_init_ea_size(struct obd_export *md_exp , struct obd_export *dt_exp ) ; int cl_init_ea_size(struct obd_export *md_exp , struct obd_export *dt_exp ) { struct lov_stripe_md lsm ; __u32 valsize ; int rc ; int easize ; int def_easize ; int cookiesize ; struct lov_desc desc ; __u16 stripes ; __u16 def_stripes ; __u32 __min1 ; __u32 __min2 ; __u32 __min1___0 ; __u32 __min2___0 ; struct libcfs_debug_msg_data msgdata ; int tmp ; { lsm.lsm_refc.counter = 0; lsm.lsm_lock.__annonCompField18.rlock.raw_lock.val.counter = 0; lsm.lsm_lock.__annonCompField18.rlock.magic = 0U; lsm.lsm_lock.__annonCompField18.rlock.owner_cpu = 0U; lsm.lsm_lock.__annonCompField18.rlock.owner = 0; lsm.lsm_lock.__annonCompField18.rlock.dep_map.key = 0; lsm.lsm_lock.__annonCompField18.rlock.dep_map.class_cache[0] = 0; lsm.lsm_lock.__annonCompField18.rlock.dep_map.class_cache[1] = 0; lsm.lsm_lock.__annonCompField18.rlock.dep_map.name = 0; lsm.lsm_lock.__annonCompField18.rlock.dep_map.cpu = 0; lsm.lsm_lock.__annonCompField18.rlock.dep_map.ip = 0UL; lsm.lsm_lock_owner = 0; lsm.lsm_maxbytes = 0ULL; lsm.lsm_wire.lw_object_oi.__annonCompField108.oi.oi_id = 0ULL; lsm.lsm_wire.lw_object_oi.__annonCompField108.oi.oi_seq = 0ULL; lsm.lsm_wire.lw_magic = 198380496U; lsm.lsm_wire.lw_stripe_size = 0U; lsm.lsm_wire.lw_pattern = 0U; lsm.lsm_wire.lw_stripe_count = (unsigned short)0; lsm.lsm_wire.lw_layout_gen = (unsigned short)0; lsm.lsm_wire.lw_pool_name[0] = (char)0; lsm.lsm_wire.lw_pool_name[1] = (char)0; lsm.lsm_wire.lw_pool_name[2] = (char)0; lsm.lsm_wire.lw_pool_name[3] = (char)0; lsm.lsm_wire.lw_pool_name[4] = (char)0; lsm.lsm_wire.lw_pool_name[5] = (char)0; lsm.lsm_wire.lw_pool_name[6] = (char)0; lsm.lsm_wire.lw_pool_name[7] = (char)0; lsm.lsm_wire.lw_pool_name[8] = (char)0; lsm.lsm_wire.lw_pool_name[9] = (char)0; lsm.lsm_wire.lw_pool_name[10] = (char)0; lsm.lsm_wire.lw_pool_name[11] = (char)0; lsm.lsm_wire.lw_pool_name[12] = (char)0; lsm.lsm_wire.lw_pool_name[13] = (char)0; lsm.lsm_wire.lw_pool_name[14] = (char)0; lsm.lsm_wire.lw_pool_name[15] = (char)0; valsize = 88U; rc = obd_get_info___2((struct lu_env const *)0, dt_exp, 8U, (void *)"lovdesc", & valsize, (void *)(& desc), (struct lov_stripe_md *)0); if (rc != 0) { return (rc); } else { } __min1 = desc.ld_tgt_count; __min2 = 2000U; stripes = (__u16 )(__min1 < __min2 ? __min1 : __min2); lsm.lsm_wire.lw_stripe_count = stripes; easize = obd_size_diskmd___0(dt_exp, & lsm); __min1___0 = desc.ld_default_stripe_count; __min2___0 = 2000U; def_stripes = (__u16 )(__min1___0 < __min2___0 ? __min1___0 : __min2___0); lsm.lsm_wire.lw_stripe_count = def_stripes; def_easize = obd_size_diskmd___0(dt_exp, & lsm); cookiesize = (int )((unsigned int )stripes * 32U); tmp = cfs_cdebug_show(524288U, 1U); if (tmp != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_misc.c"; msgdata.msg_fn = "cl_init_ea_size"; msgdata.msg_line = 81; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 524288; libcfs_debug_msg(& msgdata, "updating def/max_easize: %d/%d def/max_cookiesize: 0/%d\n", def_easize, easize, cookiesize); } else { } rc = md_init_ea_size(md_exp, easize, def_easize, cookiesize, 0); return (rc); } } int cl_ocd_update(struct obd_device *host , struct obd_device *watched , enum obd_notify_event ev , void *owner , void *data ) { struct lustre_client_ocd *lco ; struct client_obd *cli ; __u64 flags ; int result ; 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 ; { tmp___1 = strcmp((char const *)(watched->obd_type)->typ_name, "osc"); if (tmp___1 == 0) { cli = & watched->u.cli; lco = (struct lustre_client_ocd *)owner; flags = (cli->cl_import)->imp_connect_data.ocd_connect_flags; tmp = cfs_cdebug_show(4U, 1U); if (tmp != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_misc.c"; msgdata.msg_fn = "cl_ocd_update"; msgdata.msg_line = 107; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4; libcfs_debug_msg(& msgdata, "Changing connect_flags: %#llx -> %#llx\n", lco->lco_flags, flags); } else { } mutex_lock_nested(& lco->lco_lock, 0U); lco->lco_flags = lco->lco_flags & flags; if ((unsigned long )lco->lco_dt_exp != (unsigned long )((struct obd_export *)0)) { cl_init_ea_size(lco->lco_md_exp, lco->lco_dt_exp); } else { } mutex_unlock(& lco->lco_lock); result = 0; } else { tmp___0 = cfs_cdebug_show(131072U, 1U); if (tmp___0 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_misc.c"; msgdata___0.msg_fn = "cl_ocd_update"; msgdata___0.msg_line = 119; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "unexpected notification from %s %s!\n", (watched->obd_type)->typ_name, (char *)(& watched->obd_name)); } else { } result = -22; } return (result); } } int cl_get_grouplock(struct cl_object *obj , unsigned long gid , int nonblock , struct ccc_grouplock *cg ) { struct lu_env *env ; struct cl_io *io ; struct cl_lock *lock ; struct cl_lock_descr *descr ; __u32 enqflags ; int refcheck ; int rc ; long tmp ; bool tmp___0 ; struct ccc_thread_info *tmp___1 ; struct task_struct *tmp___2 ; long tmp___3 ; bool tmp___4 ; struct libcfs_debug_msg_data __msg_data ; long tmp___5 ; { env = cl_env_get(& refcheck); tmp___0 = IS_ERR((void const *)env); if ((int )tmp___0) { tmp = PTR_ERR((void const *)env); return ((int )tmp); } else { } io = ccc_env_thread_io___2((struct lu_env const *)env); io->ci_obj = obj; io->ci_ignore_layout = 1U; rc = cl_io_init((struct lu_env const *)env, io, 5, io->ci_obj); if (rc != 0) { if (rc > 0) { rc = -524; } else { } cl_env_put(env, & refcheck); return (rc); } else { } tmp___1 = ccc_env_info___2((struct lu_env const *)env); descr = & tmp___1->cti_descr; descr->cld_obj = obj; descr->cld_start = 0UL; descr->cld_end = 0xffffffffffffffffUL; descr->cld_gid = (__u64 )gid; descr->cld_mode = 3; enqflags = nonblock != 0 ? 9U : 8U; descr->cld_enq_flags = enqflags; tmp___2 = get_current(); lock = cl_lock_request((struct lu_env const *)env, io, (struct cl_lock_descr const *)descr, "grouplock", (void const *)tmp___2); tmp___4 = IS_ERR((void const *)lock); if ((int )tmp___4) { cl_io_fini((struct lu_env const *)env, io); cl_env_put(env, & refcheck); tmp___3 = PTR_ERR((void const *)lock); return ((int )tmp___3); } else { } cg->cg_env = cl_env_get(& refcheck); cg->cg_io = io; cg->cg_lock = lock; cg->cg_gid = gid; tmp___5 = ldv__builtin_expect((unsigned long )cg->cg_env != (unsigned long )env, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_misc.c"; __msg_data.msg_fn = "cl_get_grouplock"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 176; __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 *)"cg->cg_env == env"); lbug_with_loc(& __msg_data); } else { } cl_env_unplant(env, & refcheck); return (0); } } void cl_put_grouplock(struct ccc_grouplock *cg ) { struct lu_env *env ; struct cl_io *io ; struct cl_lock *lock ; int refcheck ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; struct task_struct *tmp___1 ; { env = cg->cg_env; io = cg->cg_io; lock = cg->cg_lock; tmp = ldv__builtin_expect((unsigned long )cg->cg_env == (unsigned long )((struct lu_env *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_misc.c"; __msg_data.msg_fn = "cl_put_grouplock"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 189; __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 *)"cg->cg_env"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect(cg->cg_gid == 0UL, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/lclient/lcommon_misc.c"; __msg_data___0.msg_fn = "cl_put_grouplock"; __msg_data___0.msg_subsys = 1; __msg_data___0.msg_line = 190; __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 *)"cg->cg_gid"); lbug_with_loc(& __msg_data___0); } else { } cl_env_implant(env, & refcheck); cl_env_put(env, & refcheck); cl_unuse((struct lu_env const *)env, lock); tmp___1 = get_current(); cl_lock_release((struct lu_env const *)env, lock, "grouplock", (void const *)tmp___1); cl_io_fini((struct lu_env const *)env, io); cl_env_put(env, (int *)0); return; } } int ldv_pskb_expand_head_787(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_789(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_791(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_792(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_793(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_794(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_795(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_796(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_797(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__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 * ) ; __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 spin_lock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; void *ldv_kmem_cache_alloc_836(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; void *ldv_kmem_cache_alloc_837(struct kmem_cache *ldv_func_arg1 , gfp_t flags ) ; void ldv_seq_operations_39(void) ; extern int seq_open(struct file * , struct seq_operations const * ) ; int ldv_seq_open_838(struct file *ldv_func_arg1 , struct seq_operations const *ldv_func_arg2 ) ; 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_release(struct inode * , struct file * ) ; int ldv_seq_release_839(struct inode *ldv_func_arg1 , struct file *ldv_func_arg2 ) ; extern int seq_printf(struct seq_file * , char const * , ...) ; struct sk_buff *ldv_skb_clone_826(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_834(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_828(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_824(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_832(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_833(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_829(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_830(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_831(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static void *cfs_hash_object(struct cfs_hash *hs , struct hlist_node *hnode ) { void *tmp ; { tmp = (*((hs->hs_ops)->hs_object))(hnode); return (tmp); } } __inline static void cfs_hash_get(struct cfs_hash *hs , struct hlist_node *hnode ) { { return; } } extern void cfs_hash_hlist_for_each(struct cfs_hash * , unsigned int , int (*)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ) , void * ) ; __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 void lu_types_stop(void) ; __inline static int lu_object_is_dying(struct lu_object_header const *h ) { int tmp ; { tmp = constant_test_bit(0L, (unsigned long const volatile *)(& h->loh_flags)); return (tmp); } } extern void lu_object_put(struct lu_env const * , struct lu_object * ) ; __inline static struct lu_object *lu_object_top(struct lu_object_header *h ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; { tmp = list_empty((struct list_head const *)(& h->loh_layers)); 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/llite/../include/lu_object.h"; __msg_data.msg_fn = "lu_object_top"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 742; __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(&h->loh_layers)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = __container_of___1((void *)h->loh_layers.next, 24UL); return ((struct lu_object *)tmp___1); } } extern struct lu_object *lu_object_locate(struct lu_object_header * , struct lu_device_type const * ) ; 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 * , ...) ; extern void cl_stack_fini(struct lu_env const * , struct cl_device * ) ; __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/llite/../include/cl_object.h"; __msg_data.msg_fn = "lu2cl"; __msg_data.msg_subsys = 128; __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_header *luh2coh___0(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___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 struct cl_page *cl_page_lookup(struct cl_object_header * , unsigned long ) ; extern struct cl_device *cl_type_setup(struct lu_env const * , struct lu_site * , struct lu_device_type * , struct lu_device * ) ; struct lu_context_key vvp_key ; struct lu_context_key vvp_session_key ; struct lu_object *vvp_object_alloc(struct lu_env const *env , struct lu_object_header const *hdr , struct lu_device *dev ) ; struct file_operations const vvp_dump_pgcache_file_ops ; static struct kmem_cache *vvp_thread_kmem ; static struct kmem_cache *vvp_session_kmem ; static struct lu_kmem_descr vvp_caches[3U] = { {& vvp_thread_kmem, "vvp_thread_kmem", 104UL}, {& vvp_session_kmem, "vvp_session_kmem", 96UL}, {(struct kmem_cache **)0, 0, 0UL}}; static void *vvp_key_init(struct lu_context const *ctx , struct lu_context_key *key ) { struct vvp_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_dev.c"; __msg_data.msg_fn = "vvp_key_init"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 83; __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_836(vvp_thread_kmem, 32848U); info = (struct vvp_thread_info *)tmp___1; if ((unsigned long )info != (unsigned long )((struct vvp_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-", 104UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_dev.c", 83); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(vvp_thread_kmem, (void *)info); info = (struct vvp_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, 104L); tmp___2 = cfs_cdebug_show(16U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_dev.c"; msgdata.msg_fn = "vvp_key_init"; msgdata.msg_line = 83; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'info\': %d at %p.\n", 104, info); } else { } } else { } if ((unsigned long )info == (unsigned long )((struct vvp_thread_info *)0)) { tmp___7 = ERR_PTR(-12L); info = (struct vvp_thread_info *)tmp___7; } else { } return ((void *)info); } } static void vvp_key_fini(struct lu_context const *ctx , struct lu_context_key *key , void *data ) { struct vvp_thread_info *info ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { info = (struct vvp_thread_info *)data; tmp = ldv__builtin_expect((unsigned long )info == (unsigned long )((struct vvp_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_dev.c"; __msg_data.msg_fn = "vvp_key_fini"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 94; __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, 104L); tmp___0 = cfs_cdebug_show(16U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_dev.c"; msgdata.msg_fn = "vvp_key_fini"; msgdata.msg_line = 94; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(info)\': %d at %p.\n", 104, info); } else { } memset((void *)info, 90, 104UL); kmem_cache_free(vvp_thread_kmem, (void *)info); info = (struct vvp_thread_info *)3735928559L; return; } } static void *vvp_session_key_init(struct lu_context const *ctx , struct lu_context_key *key ) { struct vvp_session *session ; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_dev.c"; __msg_data.msg_fn = "vvp_session_key_init"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 102; __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_837(vvp_session_kmem, 32848U); session = (struct vvp_session *)tmp___1; if ((unsigned long )session != (unsigned long )((struct vvp_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 *)session, "session", "slab-", 96UL, "/home/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--43_2a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_dev.c", 102); if (tmp___4 == 0) { tmp___5 = 1; } else { kmem_cache_free(vvp_session_kmem, (void *)session); session = (struct vvp_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, 96L); tmp___2 = cfs_cdebug_show(16U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_dev.c"; msgdata.msg_fn = "vvp_session_key_init"; msgdata.msg_line = 102; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-alloced \'session\': %d at %p.\n", 96, session); } else { } } else { } if ((unsigned long )session == (unsigned long )((struct vvp_session *)0)) { tmp___7 = ERR_PTR(-12L); session = (struct vvp_session *)tmp___7; } else { } return ((void *)session); } } static void vvp_session_key_fini(struct lu_context const *ctx , struct lu_context_key *key , void *data ) { struct vvp_session *session ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { session = (struct vvp_session *)data; tmp = ldv__builtin_expect((unsigned long )session == (unsigned long )((struct vvp_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_dev.c"; __msg_data.msg_fn = "vvp_session_key_fini"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 113; __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 *)"(session)"); lbug_with_loc(& __msg_data); } else { } lprocfs_counter_sub(obd_memory, 0, 96L); tmp___0 = cfs_cdebug_show(16U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_dev.c"; msgdata.msg_fn = "vvp_session_key_fini"; msgdata.msg_line = 113; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; libcfs_debug_msg(& msgdata, "slab-freed \'(session)\': %d at %p.\n", 96, session); } else { } memset((void *)session, 90, 96UL); kmem_cache_free(vvp_session_kmem, (void *)session); session = (struct vvp_session *)3735928559L; return; } } struct lu_context_key vvp_key = {8U, & vvp_key_init, & vvp_key_fini, 0, 0, {0}, 0, {}}; struct lu_context_key vvp_session_key = {16U, & vvp_session_key_init, & vvp_session_key_fini, 0, 0, {0}, 0, {}}; static void vvp_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_68240: 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_68240; } else { } ldv__builtin_va_end((va_list *)(& args)); return; } } static int vvp_type_init(struct lu_device_type *t ) { int tmp ; { vvp_key_init_generic(& ccc_key, & ccc_session_key, & vvp_key, & vvp_session_key, (void *)0); tmp = lu_context_key_register_many(& ccc_key, & ccc_session_key, & vvp_key, & vvp_session_key, (void *)0); return (tmp); } } static void vvp_type_fini(struct lu_device_type *t ) { { lu_context_key_degister_many(& ccc_key, & ccc_session_key, & vvp_key, & vvp_session_key, (void *)0); return; } } static void vvp_type_start(struct lu_device_type *t ) { { lu_context_key_revive_many(& ccc_key, & ccc_session_key, & vvp_key, & vvp_session_key, (void *)0); return; } } static void vvp_type_stop(struct lu_device_type *t ) { { lu_context_key_quiesce_many(& ccc_key, & ccc_session_key, & vvp_key, & vvp_session_key, (void *)0); return; } } static struct lu_device_operations const vvp_lu_ops = {& vvp_object_alloc, 0, 0, 0}; static struct cl_device_operations const vvp_cl_ops = {& ccc_req_init}; static struct lu_device *vvp_device_alloc(struct lu_env const *env , struct lu_device_type *t , struct lustre_cfg *cfg ) { struct lu_device *tmp ; { tmp = ccc_device_alloc(env, t, cfg, & vvp_lu_ops, & vvp_cl_ops); return (tmp); } } static struct lu_device_type_operations const vvp_device_type_ops = {& vvp_device_alloc, & ccc_device_free, & ccc_device_init, & ccc_device_fini, & vvp_type_init, & vvp_type_fini, & vvp_type_start, & vvp_type_stop}; struct lu_device_type vvp_device_type = {4U, (char *)"vvp", & vvp_device_type_ops, 0, 8U, 0U, {0, 0}}; int vvp_global_init(void) { int result ; { result = lu_kmem_init((struct lu_kmem_descr *)(& vvp_caches)); if (result == 0) { result = ccc_global_init(& vvp_device_type); if (result != 0) { lu_kmem_fini((struct lu_kmem_descr *)(& vvp_caches)); } else { } } else { } return (result); } } void vvp_global_fini(void) { { ccc_global_fini(& vvp_device_type); lu_kmem_fini((struct lu_kmem_descr *)(& vvp_caches)); return; } } int cl_sb_init(struct super_block *sb ) { struct ll_sb_info *sbi ; struct cl_device *cl ; struct lu_env *env ; int rc ; int refcheck ; struct ccc_device *tmp ; struct lu_device *tmp___0 ; bool tmp___1 ; int tmp___2 ; long tmp___3 ; bool tmp___4 ; int tmp___5 ; { rc = 0; sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; env = cl_env_get(& refcheck); tmp___4 = IS_ERR((void const *)env); if (tmp___4) { tmp___5 = 0; } else { tmp___5 = 1; } if (tmp___5) { cl = cl_type_setup((struct lu_env const *)env, (struct lu_site *)0, & vvp_device_type, ((sbi->ll_dt_exp)->exp_obd)->obd_lu_dev); tmp___1 = IS_ERR((void const *)cl); if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { tmp = cl2ccc_dev((struct cl_device const *)cl); tmp->cdv_sb = sb; sbi->ll_cl = cl; tmp___0 = cl2lu_dev(cl); sbi->ll_site = tmp___0->ld_site; } else { } cl_env_put(env, & refcheck); } else { tmp___3 = PTR_ERR((void const *)env); rc = (int )tmp___3; } return (rc); } } int cl_sb_fini(struct super_block *sb ) { struct ll_sb_info *sbi ; struct lu_env *env ; struct cl_device *cld ; int refcheck ; int result ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; long tmp___0 ; bool tmp___1 ; int tmp___2 ; { sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; 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) { cld = sbi->ll_cl; if ((unsigned long )cld != (unsigned long )((struct cl_device *)0)) { cl_stack_fini((struct lu_env const *)env, cld); sbi->ll_cl = (struct cl_device *)0; sbi->ll_site = (struct lu_site *)0; } else { } cl_env_put(env, & refcheck); result = 0; } else { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_dev.c"; msgdata.msg_fn = "cl_sb_fini"; msgdata.msg_line = 242; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Cannot cleanup cl-stack due to memory shortage.\n"); } else { } tmp___0 = PTR_ERR((void const *)env); result = (int )tmp___0; } lu_types_stop(); return (result); } } static void vvp_pgcache_id_unpack(loff_t pos , struct vvp_pgcache_id *id ) { { switch (42) { case 1: ; case 0: ; goto ldv_68305; } ldv_68305: id->vpi_index = (uint32_t )pos; id->vpi_depth = (unsigned int )(pos >> 32) & 15U; id->vpi_bucket = (unsigned int )((unsigned long long )pos >> 36); return; } } static loff_t vvp_pgcache_id_pack(struct vvp_pgcache_id *id ) { { return ((loff_t )(((unsigned long long )id->vpi_index | ((unsigned long long )id->vpi_depth << 32)) | ((unsigned long long )id->vpi_bucket << 36))); } } static int vvp_pgcache_obj_get(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnode , void *data ) { struct vvp_pgcache_id *id ; struct lu_object_header *hdr ; void *tmp ; unsigned int tmp___0 ; int tmp___1 ; { id = (struct vvp_pgcache_id *)data; tmp = cfs_hash_object(hs, hnode); hdr = (struct lu_object_header *)tmp; tmp___0 = id->vpi_curdep; id->vpi_curdep = id->vpi_curdep - 1U; if (tmp___0 != 0U) { return (0); } else { } tmp___1 = lu_object_is_dying((struct lu_object_header const *)hdr); if (tmp___1 != 0) { return (1); } else { } cfs_hash_get(hs, hnode); id->vpi_obj = hdr; return (1); } } static struct cl_object *vvp_pgcache_obj(struct lu_env const *env , struct lu_device *dev , struct vvp_pgcache_id *id ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct lu_object *lu_obj ; struct task_struct *tmp___1 ; struct cl_object *tmp___2 ; struct lu_object *tmp___3 ; { tmp = lu_device_is_cl((struct lu_device const *)dev); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_dev.c"; __msg_data.msg_fn = "vvp_pgcache_obj"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 323; __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 *)"lu_device_is_cl(dev)"); lbug_with_loc(& __msg_data); } else { } id->vpi_depth = id->vpi_depth & 15U; id->vpi_obj = (struct lu_object_header *)0; id->vpi_curdep = id->vpi_depth; cfs_hash_hlist_for_each((dev->ld_site)->ls_obj_hash, id->vpi_bucket, & vvp_pgcache_obj_get, (void *)id); if ((unsigned long )id->vpi_obj != (unsigned long )((struct lu_object_header *)0)) { lu_obj = lu_object_locate(id->vpi_obj, (struct lu_device_type const *)dev->ld_type); if ((unsigned long )lu_obj != (unsigned long )((struct lu_object *)0)) { tmp___1 = get_current(); lu_object_ref_add(lu_obj, "dump", (void const *)tmp___1); tmp___2 = lu2cl((struct lu_object const *)lu_obj); return (tmp___2); } else { } tmp___3 = lu_object_top(id->vpi_obj); lu_object_put(env, tmp___3); } else if (id->vpi_curdep != 0U) { id->vpi_depth = 15U; } else { } return ((struct cl_object *)0); } } static loff_t vvp_pgcache_find(struct lu_env const *env , struct lu_device *dev , loff_t pos ) { struct cl_object *clob ; struct lu_site *site ; struct vvp_pgcache_id id ; struct cl_object_header *hdr ; int nr ; struct cl_page *pg ; unsigned int tmp ; struct task_struct *tmp___0 ; loff_t tmp___1 ; { site = dev->ld_site; vvp_pgcache_id_unpack(pos, & id); ldv_68336: ; if (id.vpi_bucket >> (int )(site->ls_obj_hash)->hs_cur_bits != 0U) { return (-1LL); } else { } clob = vvp_pgcache_obj(env, dev, & id); if ((unsigned long )clob != (unsigned long )((struct cl_object *)0)) { hdr = cl_object_header___0((struct cl_object const *)clob); spin_lock(& hdr->coh_page_guard); tmp = radix_tree_gang_lookup(& hdr->coh_tree, (void **)(& pg), (unsigned long )id.vpi_index, 1U); nr = (int )tmp; if (nr > 0) { id.vpi_index = (uint32_t )pg->cp_index; nr = pg->cp_index <= 4294967295UL; } else { } spin_unlock(& hdr->coh_page_guard); tmp___0 = get_current(); lu_object_ref_del(& clob->co_lu, "dump", (void const *)tmp___0); cl_object_put(env, clob); if (nr > 0) { tmp___1 = vvp_pgcache_id_pack(& id); return (tmp___1); } else { } } else { } id.vpi_depth = id.vpi_depth + 1U; id.vpi_depth = id.vpi_depth & 15U; if (id.vpi_depth == 0U) { id.vpi_bucket = id.vpi_bucket + 1U; if (id.vpi_bucket == 0U) { return (-1LL); } else { } } else { } id.vpi_index = 0U; goto ldv_68336; } } static void vvp_pgcache_page_show(struct lu_env const *env , struct seq_file *seq , struct cl_page *page ) { struct ccc_page *cpg ; struct page *vmpage ; int has_flags ; struct cl_page_slice const *tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; int tmp___6 ; int tmp___7 ; { tmp = cl_page_at((struct cl_page const *)page, (struct lu_device_type const *)(& vvp_device_type)); cpg = cl2ccc_page(tmp); vmpage = cpg->cpg_page; tmp___0 = page_count(vmpage); tmp___1 = PageWriteback((struct page const *)vmpage); seq_printf(seq, " %5i | %p %p %s %s %s %s | %p %lu/%u(%p) %lu %u [", 0, cpg, page, (char *)"none", cpg->cpg_write_queued != 0 ? (char *)"wq" : (char *)"- ", cpg->cpg_defer_uptodate != 0 ? (char *)"du" : (char *)"- ", tmp___1 != 0 ? (char *)"wb" : (char *)"-", vmpage, ((vmpage->__annonCompField36.mapping)->host)->i_ino, ((vmpage->__annonCompField36.mapping)->host)->i_generation, (vmpage->__annonCompField36.mapping)->host, vmpage->__annonCompField42.__annonCompField37.index, tmp___0); has_flags = 0; tmp___2 = constant_test_bit(0L, (unsigned long const volatile *)(& vmpage->flags)); if (tmp___2 != 0) { seq_printf(seq, "%slocked", has_flags != 0 ? (char *)"|" : (char *)""); has_flags = 1; } else { } tmp___3 = constant_test_bit(1L, (unsigned long const volatile *)(& vmpage->flags)); if (tmp___3 != 0) { seq_printf(seq, "%serror", has_flags != 0 ? (char *)"|" : (char *)""); has_flags = 1; } else { } tmp___4 = constant_test_bit(2L, (unsigned long const volatile *)(& vmpage->flags)); if (tmp___4 != 0) { seq_printf(seq, "%sreferenced", has_flags != 0 ? (char *)"|" : (char *)""); has_flags = 1; } else { } tmp___5 = constant_test_bit(3L, (unsigned long const volatile *)(& vmpage->flags)); if (tmp___5 != 0) { seq_printf(seq, "%suptodate", has_flags != 0 ? (char *)"|" : (char *)""); has_flags = 1; } else { } tmp___6 = constant_test_bit(4L, (unsigned long const volatile *)(& vmpage->flags)); if (tmp___6 != 0) { seq_printf(seq, "%sdirty", has_flags != 0 ? (char *)"|" : (char *)""); has_flags = 1; } else { } tmp___7 = constant_test_bit(13L, (unsigned long const volatile *)(& vmpage->flags)); if (tmp___7 != 0) { seq_printf(seq, "%swriteback", has_flags != 0 ? (char *)"|" : (char *)""); has_flags = 1; } else { } seq_printf(seq, "%s]\n", has_flags != 0 ? (char *)"" : (char *)"-"); return; } } static int vvp_pgcache_show(struct seq_file *f , void *v ) { loff_t pos ; struct ll_sb_info *sbi ; struct cl_object *clob ; struct lu_env *env ; struct cl_page *page ; struct cl_object_header *hdr ; struct vvp_pgcache_id id ; int refcheck ; int result ; struct task_struct *tmp ; long tmp___0 ; bool tmp___1 ; int tmp___2 ; { 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) { pos = *((loff_t *)v); vvp_pgcache_id_unpack(pos, & id); sbi = (struct ll_sb_info *)f->private; clob = vvp_pgcache_obj((struct lu_env const *)env, & (sbi->ll_cl)->cd_lu_dev, & id); if ((unsigned long )clob != (unsigned long )((struct cl_object *)0)) { hdr = cl_object_header___0((struct cl_object const *)clob); spin_lock(& hdr->coh_page_guard); page = cl_page_lookup(hdr, (unsigned long )id.vpi_index); spin_unlock(& hdr->coh_page_guard); seq_printf(f, "%8x@[%#llx:0x%x:0x%x]: ", id.vpi_index, hdr->coh_lu.loh_fid.f_seq, hdr->coh_lu.loh_fid.f_oid, hdr->coh_lu.loh_fid.f_ver); if ((unsigned long )page != (unsigned long )((struct cl_page *)0)) { vvp_pgcache_page_show((struct lu_env const *)env, f, page); cl_page_put((struct lu_env const *)env, page); } else { seq_puts(f, "missing\n"); } tmp = get_current(); lu_object_ref_del(& clob->co_lu, "dump", (void const *)tmp); cl_object_put((struct lu_env const *)env, clob); } else { seq_printf(f, "%llx missing\n", pos); } cl_env_put(env, & refcheck); result = 0; } else { tmp___0 = PTR_ERR((void const *)env); result = (int )tmp___0; } return (result); } } static void *vvp_pgcache_start(struct seq_file *f , loff_t *pos ) { struct ll_sb_info *sbi ; struct lu_env *env ; int refcheck ; void *tmp ; bool tmp___0 ; int tmp___1 ; { sbi = (struct ll_sb_info *)f->private; env = cl_env_get(& refcheck); tmp___0 = IS_ERR((void const *)env); if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { sbi = (struct ll_sb_info *)f->private; if ((unsigned int )((sbi->ll_site)->ls_obj_hash)->hs_cur_bits > 28U) { tmp = ERR_PTR(-27L); pos = (loff_t *)tmp; } else { *pos = vvp_pgcache_find((struct lu_env const *)env, & (sbi->ll_cl)->cd_lu_dev, *pos); if (*pos == -1LL) { pos = (loff_t *)0LL; } else { } } cl_env_put(env, & refcheck); } else { } return ((void *)pos); } } static void *vvp_pgcache_next(struct seq_file *f , void *v , loff_t *pos ) { struct ll_sb_info *sbi ; struct lu_env *env ; int refcheck ; bool tmp ; int tmp___0 ; { env = cl_env_get(& refcheck); tmp = IS_ERR((void const *)env); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { sbi = (struct ll_sb_info *)f->private; *pos = vvp_pgcache_find((struct lu_env const *)env, & (sbi->ll_cl)->cd_lu_dev, *pos + 1LL); if (*pos == -1LL) { pos = (loff_t *)0LL; } else { } cl_env_put(env, & refcheck); } else { } return ((void *)pos); } } static void vvp_pgcache_stop(struct seq_file *f , void *v ) { { return; } } static struct seq_operations const vvp_pgcache_ops = {& vvp_pgcache_start, & vvp_pgcache_stop, & vvp_pgcache_next, & vvp_pgcache_show}; static int vvp_dump_pgcache_seq_open(struct inode *inode , struct file *filp ) { struct seq_file *seq ; int rc ; { rc = ldv_seq_open_838(filp, & vvp_pgcache_ops); if (rc != 0) { return (rc); } else { } seq = (struct seq_file *)filp->private_data; seq->private = inode->i_private; return (0); } } struct file_operations const vvp_dump_pgcache_file_ops = {& __this_module, & seq_lseek, & seq_read, 0, 0, 0, 0, 0, 0, 0, 0, 0, & vvp_dump_pgcache_seq_open, 0, & seq_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; int ldv_retval_12 ; void *ldv_retval_8 ; void *ldv_retval_9 ; void ldv_file_operations_38(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); vvp_dump_pgcache_file_ops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); vvp_dump_pgcache_file_ops_group2 = (struct file *)tmp___0; return; } } void ldv_initialize_lu_context_key_43(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(48UL); vvp_session_key_group0 = (struct lu_context const *)tmp; tmp___0 = ldv_init_zalloc(48UL); vvp_session_key_group1 = (struct lu_context_key *)tmp___0; return; } } void ldv_initialize_lu_device_type_operations_40(void) { void *tmp ; void *tmp___0 ; void *tmp___1 ; { tmp = ldv_init_zalloc(56UL); vvp_device_type_ops_group2 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(56UL); vvp_device_type_ops_group0 = (struct lu_device_type *)tmp___0; tmp___1 = ldv_init_zalloc(56UL); vvp_device_type_ops_group1 = (struct lu_device *)tmp___1; return; } } void ldv_initialize_lu_context_key_44(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(48UL); vvp_key_group0 = (struct lu_context const *)tmp; tmp___0 = ldv_init_zalloc(48UL); vvp_key_group1 = (struct lu_context_key *)tmp___0; return; } } void ldv_seq_operations_39(void) { void *tmp ; { tmp = ldv_init_zalloc(256UL); vvp_pgcache_ops_group1 = (struct seq_file *)tmp; return; } } void ldv_main_exported_42(void) { struct lu_env *ldvarg188 ; void *tmp ; struct lu_device *ldvarg189 ; void *tmp___0 ; struct lu_object_header *ldvarg190 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(56UL); ldvarg188 = (struct lu_env *)tmp; tmp___0 = ldv_init_zalloc(56UL); ldvarg189 = (struct lu_device *)tmp___0; tmp___1 = ldv_init_zalloc(80UL); ldvarg190 = (struct lu_object_header *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_42 == 1) { vvp_object_alloc((struct lu_env const *)ldvarg188, (struct lu_object_header const *)ldvarg190, ldvarg189); ldv_state_variable_42 = 1; } else { } goto ldv_68410; default: ldv_stop(); } ldv_68410: ; return; } } void ldv_main_exported_38(void) { loff_t *ldvarg286 ; void *tmp ; size_t ldvarg287 ; char *ldvarg288 ; void *tmp___0 ; int ldvarg284 ; loff_t ldvarg285 ; int tmp___1 ; { tmp = ldv_init_zalloc(8UL); ldvarg286 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg288 = (char *)tmp___0; ldv_memset((void *)(& ldvarg287), 0, 8UL); ldv_memset((void *)(& ldvarg284), 0, 4UL); ldv_memset((void *)(& ldvarg285), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_38 == 1) { ldv_retval_12 = vvp_dump_pgcache_seq_open(vvp_dump_pgcache_file_ops_group1, vvp_dump_pgcache_file_ops_group2); if (ldv_retval_12 == 0) { ldv_state_variable_38 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_68421; case 1: ; if (ldv_state_variable_38 == 2) { ldv_seq_release_839(vvp_dump_pgcache_file_ops_group1, vvp_dump_pgcache_file_ops_group2); ldv_state_variable_38 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_68421; case 2: ; if (ldv_state_variable_38 == 2) { seq_read(vvp_dump_pgcache_file_ops_group2, ldvarg288, ldvarg287, ldvarg286); ldv_state_variable_38 = 2; } else { } goto ldv_68421; case 3: ; if (ldv_state_variable_38 == 2) { seq_lseek(vvp_dump_pgcache_file_ops_group2, ldvarg285, ldvarg284); ldv_state_variable_38 = 2; } else { } goto ldv_68421; default: ldv_stop(); } ldv_68421: ; return; } } void ldv_main_exported_39(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_state_variable_39 == 1) { ldv_retval_9 = vvp_pgcache_start(vvp_pgcache_ops_group1, vvp_pgcache_ops_group3); if ((unsigned long )ldv_retval_9 != (unsigned long )((void *)0)) { ldv_state_variable_39 = 3; ref_cnt = ref_cnt + 1; } else { } if ((unsigned long )ldv_retval_9 == (unsigned long )((void *)0)) { ldv_state_variable_39 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_68430; case 1: ; if (ldv_state_variable_39 == 3) { vvp_pgcache_stop(vvp_pgcache_ops_group1, vvp_pgcache_ops_group2); ldv_state_variable_39 = 1; ref_cnt = ref_cnt - 1; } else { } if (ldv_state_variable_39 == 2) { vvp_pgcache_stop(vvp_pgcache_ops_group1, vvp_pgcache_ops_group2); ldv_state_variable_39 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_68430; case 2: ; if (ldv_state_variable_39 == 2) { vvp_pgcache_show(vvp_pgcache_ops_group1, (void *)vvp_pgcache_ops_group3); ldv_state_variable_39 = 2; } else { } goto ldv_68430; case 3: ; if (ldv_state_variable_39 == 2) { ldv_retval_8 = vvp_pgcache_next(vvp_pgcache_ops_group1, vvp_pgcache_ops_group2, vvp_pgcache_ops_group3); if ((unsigned long )ldv_retval_8 != (unsigned long )((void *)0)) { ldv_state_variable_39 = 3; ref_cnt = ref_cnt + 1; } else { } if ((unsigned long )ldv_retval_8 == (unsigned long )((void *)0)) { ldv_state_variable_39 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_68430; default: ldv_stop(); } ldv_68430: ; return; } } void ldv_main_exported_40(void) { struct lustre_cfg *ldvarg100 ; void *tmp ; struct lu_device *ldvarg101 ; void *tmp___0 ; char *ldvarg102 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(32UL); ldvarg100 = (struct lustre_cfg *)tmp; tmp___0 = ldv_init_zalloc(56UL); ldvarg101 = (struct lu_device *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg102 = (char *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_40 == 1) { ccc_device_init(vvp_device_type_ops_group2, vvp_device_type_ops_group1, (char const *)ldvarg102, ldvarg101); ldv_state_variable_40 = 1; } else { } goto ldv_68442; case 1: ; if (ldv_state_variable_40 == 1) { vvp_type_stop(vvp_device_type_ops_group0); ldv_state_variable_40 = 1; } else { } goto ldv_68442; case 2: ; if (ldv_state_variable_40 == 1) { vvp_type_fini(vvp_device_type_ops_group0); ldv_state_variable_40 = 1; } else { } goto ldv_68442; case 3: ; if (ldv_state_variable_40 == 1) { vvp_type_init(vvp_device_type_ops_group0); ldv_state_variable_40 = 1; } else { } goto ldv_68442; case 4: ; if (ldv_state_variable_40 == 1) { ccc_device_free(vvp_device_type_ops_group2, vvp_device_type_ops_group1); ldv_state_variable_40 = 1; } else { } goto ldv_68442; case 5: ; if (ldv_state_variable_40 == 1) { ccc_device_fini(vvp_device_type_ops_group2, vvp_device_type_ops_group1); ldv_state_variable_40 = 1; } else { } goto ldv_68442; case 6: ; if (ldv_state_variable_40 == 1) { vvp_type_start(vvp_device_type_ops_group0); ldv_state_variable_40 = 1; } else { } goto ldv_68442; case 7: ; if (ldv_state_variable_40 == 1) { vvp_device_alloc(vvp_device_type_ops_group2, vvp_device_type_ops_group0, ldvarg100); ldv_state_variable_40 = 1; } else { } goto ldv_68442; default: ldv_stop(); } ldv_68442: ; return; } } void ldv_main_exported_43(void) { void *ldvarg340 ; void *tmp ; int tmp___0 ; { tmp = ldv_init_zalloc(1UL); ldvarg340 = tmp; tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_43 == 1) { vvp_session_key_fini(vvp_session_key_group0, vvp_session_key_group1, ldvarg340); ldv_state_variable_43 = 1; } else { } goto ldv_68456; case 1: ; if (ldv_state_variable_43 == 1) { vvp_session_key_init(vvp_session_key_group0, vvp_session_key_group1); ldv_state_variable_43 = 1; } else { } goto ldv_68456; default: ldv_stop(); } ldv_68456: ; return; } } void ldv_main_exported_44(void) { void *ldvarg51 ; void *tmp ; int tmp___0 ; { tmp = ldv_init_zalloc(1UL); ldvarg51 = tmp; tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_44 == 1) { vvp_key_fini(vvp_key_group0, vvp_key_group1, ldvarg51); ldv_state_variable_44 = 1; } else { } goto ldv_68464; case 1: ; if (ldv_state_variable_44 == 1) { vvp_key_init(vvp_key_group0, vvp_key_group1); ldv_state_variable_44 = 1; } else { } goto ldv_68464; default: ldv_stop(); } ldv_68464: ; return; } } void ldv_main_exported_41(void) { struct cl_req *ldvarg260 ; void *tmp ; struct cl_device *ldvarg261 ; void *tmp___0 ; struct lu_env *ldvarg259 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(64UL); ldvarg260 = (struct cl_req *)tmp; tmp___0 = ldv_init_zalloc(64UL); ldvarg261 = (struct cl_device *)tmp___0; tmp___1 = ldv_init_zalloc(56UL); ldvarg259 = (struct lu_env *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_41 == 1) { ccc_req_init((struct lu_env const *)ldvarg259, ldvarg261, ldvarg260); ldv_state_variable_41 = 1; } else { } goto ldv_68474; default: ldv_stop(); } ldv_68474: ; return; } } int ldv_pskb_expand_head_824(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_826(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_828(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_829(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_830(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_831(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_832(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_833(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_834(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_836(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 vvp_thread_kmem return (tmp); } } void *ldv_kmem_cache_alloc_837(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 vvp_session_kmem return (tmp); } } int ldv_seq_open_838(struct file *ldv_func_arg1 , struct seq_operations const *ldv_func_arg2 ) { ldv_func_ret_type___2 ldv_func_res ; int tmp ; { tmp = seq_open(ldv_func_arg1, ldv_func_arg2); ldv_func_res = tmp; if (ldv_func_res == 0) { ldv_state_variable_39 = 1; ldv_seq_operations_39(); } else { } return (ldv_func_res); } } int ldv_seq_release_839(struct inode *ldv_func_arg1 , struct file *ldv_func_arg2 ) { ldv_func_ret_type___3 ldv_func_res ; int tmp ; { tmp = seq_release(ldv_func_arg1, ldv_func_arg2); ldv_func_res = tmp; ldv_state_variable_39 = 0; return (ldv_func_res); } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static void ClearPageError(struct page *page ) { { clear_bit(1L, (unsigned long volatile *)(& page->flags)); return; } } __inline static int PageSlab(struct page const *page ) { int tmp ; { tmp = constant_test_bit(7L, (unsigned long const volatile *)(& page->flags)); return (tmp); } } __inline static void SetPagePrivate(struct page *page ) { { set_bit(11L, (unsigned long volatile *)(& page->flags)); return; } } __inline static void ClearPagePrivate(struct page *page ) { { clear_bit(11L, (unsigned long volatile *)(& page->flags)); return; } } __inline static void ClearPageUptodate(struct page *page ) { { clear_bit(3L, (unsigned long volatile *)(& page->flags)); return; } } extern int __test_set_page_writeback(struct page * , bool ) ; __inline static void set_page_writeback(struct page *page ) { { __test_set_page_writeback(page, 0); return; } } __inline static int page_mapcount(struct page *page ) { int tmp ; long tmp___0 ; int tmp___1 ; { tmp = PageSlab((struct page const *)page); tmp___0 = ldv__builtin_expect(tmp != 0, 0L); if (tmp___0 != 0L) { dump_page(page, "VM_BUG_ON_PAGE(PageSlab(page))"); __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 *)"include/linux/mm.h"), "i" (492), "i" (12UL)); ldv_25549: ; goto ldv_25549; } else { } tmp___1 = atomic_read((atomic_t const *)(& page->__annonCompField42.__annonCompField41.__annonCompField40.__annonCompField39._mapcount)); return (tmp___1 + 1); } } __inline static void get_page___0(struct page *page ) { bool tmp ; long tmp___0 ; int tmp___1 ; long tmp___2 ; int tmp___3 ; long tmp___4 ; { tmp___1 = PageTail((struct page const *)page); tmp___2 = ldv__builtin_expect(tmp___1 != 0, 0L); if (tmp___2 != 0L) { tmp = __get_page_tail(page); tmp___0 = ldv__builtin_expect((long )tmp, 1L); if (tmp___0 != 0L) { return; } else { } } else { } tmp___3 = atomic_read((atomic_t const *)(& page->__annonCompField42.__annonCompField41.__annonCompField40._count)); tmp___4 = ldv__builtin_expect(tmp___3 <= 0, 0L); if (tmp___4 != 0L) { dump_page(page, "VM_BUG_ON_PAGE(atomic_read(&page->_count) <= 0)"); __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 *)"include/linux/mm.h"), "i" (543), "i" (12UL)); ldv_25571: ; goto ldv_25571; } else { } atomic_inc(& page->__annonCompField42.__annonCompField41.__annonCompField40._count); return; } } extern int clear_page_dirty_for_io(struct page * ) ; struct sk_buff *ldv_skb_clone_869(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_877(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_871(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_867(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_875(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_876(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_872(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_873(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_874(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static void wait_on_page_writeback(struct page *page ) { int tmp ; { tmp = PageWriteback((struct page const *)page); if (tmp != 0) { wait_on_page_bit(page, 13); } else { } return; } } extern void end_page_writeback(struct page * ) ; extern int lu_cdebug_printer(struct lu_env const * , void * , char const * , ...) ; 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_print(struct lu_env const * , void * , int (*)(struct lu_env const * , void * , char const * , ...) , struct cl_page const * ) ; extern void cl_page_header_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 void cl_page_export(struct lu_env const * , struct cl_page * , int ) ; int vvp_page_init(struct lu_env const *env , struct cl_object *obj , struct cl_page *page , struct page *vmpage ) ; static void vvp_page_fini_common(struct ccc_page *cp ) { struct page *vmpage ; struct libcfs_debug_msg_data __msg_data ; long tmp ; { vmpage = cp->cpg_page; tmp = ldv__builtin_expect((unsigned long )vmpage == (unsigned long )((struct 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_page_fini_common"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 60; __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 *)"vmpage != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } put_page(vmpage); return; } } static void vvp_page_fini(struct lu_env const *env , struct cl_page_slice *slice ) { struct ccc_page *cp ; struct ccc_page *tmp ; struct page *vmpage ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; { tmp = cl2ccc_page((struct cl_page_slice const *)slice); cp = tmp; vmpage = cp->cpg_page; tmp___0 = ldv__builtin_expect((unsigned long )((struct cl_page *)vmpage->__annonCompField46.private) == (unsigned long )slice->cpl_page, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_page_fini"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 74; __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 *)"(struct cl_page *)vmpage->private != slice->cpl_page"); lbug_with_loc(& __msg_data); } else { } vvp_page_fini_common(cp); return; } } static int vvp_page_own(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *io , int nonblock ) { struct ccc_page *vpg ; struct ccc_page *tmp ; struct page *vmpage ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; int tmp___1 ; int tmp___2 ; long tmp___3 ; { tmp = cl2ccc_page(slice); vpg = tmp; vmpage = vpg->cpg_page; tmp___0 = ldv__builtin_expect((unsigned long )vmpage == (unsigned long )((struct page *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_page_own"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 85; __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 *)"vmpage != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } if (nonblock != 0) { tmp___1 = trylock_page(vmpage); if (tmp___1 == 0) { return (-11); } else { } tmp___2 = PageWriteback((struct page const *)vmpage); tmp___3 = ldv__builtin_expect(tmp___2 != 0, 0L); if (tmp___3 != 0L) { unlock_page(vmpage); return (-11); } else { } return (0); } else { } lock_page(vmpage); wait_on_page_writeback(vmpage); return (0); } } static void vvp_page_assume(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { struct page *vmpage ; struct page *tmp ; 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 = cl2vm_page(slice); vmpage = tmp; tmp___0 = ldv__builtin_expect((unsigned long )vmpage == (unsigned long )((struct page *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_page_assume"; __msg_data.msg_subsys = 128; __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 *)"vmpage != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = PageLocked((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data___0.msg_fn = "vvp_page_assume"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 110; __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 *)"PageLocked(vmpage)"); lbug_with_loc(& __msg_data___0); } else { } wait_on_page_writeback(vmpage); return; } } static void vvp_page_unassume(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { struct page *vmpage ; struct page *tmp ; 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 = cl2vm_page(slice); vmpage = tmp; tmp___0 = ldv__builtin_expect((unsigned long )vmpage == (unsigned long )((struct page *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_page_unassume"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 120; __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 *)"vmpage != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = PageLocked((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data___0.msg_fn = "vvp_page_unassume"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 121; __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 *)"PageLocked(vmpage)"); lbug_with_loc(& __msg_data___0); } else { } return; } } static void vvp_page_disown(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *io ) { struct page *vmpage ; struct page *tmp ; 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 page *tmp___3 ; { tmp = cl2vm_page(slice); vmpage = tmp; tmp___0 = ldv__builtin_expect((unsigned long )vmpage == (unsigned long )((struct page *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_page_disown"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 129; __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 *)"vmpage != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = PageLocked((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data___0.msg_fn = "vvp_page_disown"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 130; __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 *)"PageLocked(vmpage)"); lbug_with_loc(& __msg_data___0); } else { } tmp___3 = cl2vm_page(slice); unlock_page(tmp___3); return; } } static void vvp_page_discard(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { struct page *vmpage ; struct page *tmp ; struct address_space *mapping ; struct ccc_page *cpg ; struct ccc_page *tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___2 ; long tmp___3 ; { tmp = cl2vm_page(slice); vmpage = tmp; tmp___0 = cl2ccc_page(slice); cpg = tmp___0; tmp___1 = ldv__builtin_expect((unsigned long )vmpage == (unsigned long )((struct page *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_page_discard"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 143; __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 *)"vmpage != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = PageLocked((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data___0.msg_fn = "vvp_page_discard"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 144; __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 *)"PageLocked(vmpage)"); lbug_with_loc(& __msg_data___0); } else { } mapping = vmpage->__annonCompField36.mapping; if (cpg->cpg_defer_uptodate != 0 && cpg->cpg_ra_used == 0) { ll_ra_stats_inc(mapping, 6); } else { } truncate_complete_page(mapping, vmpage); return; } } static int vvp_page_unmap(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { struct page *vmpage ; struct page *tmp ; __u64 offset ; 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 = cl2vm_page(slice); vmpage = tmp; tmp___0 = ldv__builtin_expect((unsigned long )vmpage == (unsigned long )((struct page *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_page_unmap"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 165; __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 *)"vmpage != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = PageLocked((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data___0.msg_fn = "vvp_page_unmap"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 166; __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 *)"PageLocked(vmpage)"); lbug_with_loc(& __msg_data___0); } else { } offset = (__u64 )(vmpage->__annonCompField42.__annonCompField37.index << 12); ll_teardown_mmaps(vmpage->__annonCompField36.mapping, offset, offset + 4096ULL); return (0); } } static void vvp_page_delete(struct lu_env const *env , struct cl_page_slice const *slice ) { struct page *vmpage ; struct page *tmp ; struct inode *inode ; struct cl_object *obj ; 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 ; struct inode *tmp___3 ; long tmp___4 ; struct ccc_page *tmp___5 ; struct ccc_object *tmp___6 ; { tmp = cl2vm_page(slice); vmpage = tmp; inode = (vmpage->__annonCompField36.mapping)->host; obj = slice->cpl_obj; tmp___0 = PageLocked((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_page_delete"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 184; __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 *)"PageLocked(vmpage)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = ldv__builtin_expect((unsigned long )((struct cl_page *)vmpage->__annonCompField46.private) != (unsigned long )((struct cl_page *)slice->cpl_page), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data___0.msg_fn = "vvp_page_delete"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 185; __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 *)"(struct cl_page *)vmpage->private == slice->cpl_page"); lbug_with_loc(& __msg_data___0); } else { } tmp___3 = ccc_object_inode((struct cl_object const *)obj); tmp___4 = ldv__builtin_expect((unsigned long )tmp___3 != (unsigned long )inode, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data___1.msg_fn = "vvp_page_delete"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 186; __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 *)"inode == ccc_object_inode(obj)"); lbug_with_loc(& __msg_data___1); } else { } tmp___5 = cl2ccc_page(slice); tmp___6 = cl2ccc((struct cl_object const *)obj); vvp_write_complete(tmp___6, tmp___5); ClearPagePrivate(vmpage); vmpage->__annonCompField46.private = 0UL; return; } } static void vvp_page_export(struct lu_env const *env , struct cl_page_slice const *slice , int uptodate ) { struct page *vmpage ; struct page *tmp ; 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 = cl2vm_page(slice); vmpage = tmp; tmp___0 = ldv__builtin_expect((unsigned long )vmpage == (unsigned long )((struct page *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_page_export"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 203; __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 *)"vmpage != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = PageLocked((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data___0.msg_fn = "vvp_page_export"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 204; __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 *)"PageLocked(vmpage)"); lbug_with_loc(& __msg_data___0); } else { } if (uptodate != 0) { SetPageUptodate(vmpage); } else { ClearPageUptodate(vmpage); } return; } } static int vvp_page_is_vmlocked(struct lu_env const *env , struct cl_page_slice const *slice ) { struct page *tmp ; int tmp___0 ; { tmp = cl2vm_page(slice); tmp___0 = PageLocked((struct page const *)tmp); return (tmp___0 != 0 ? -16 : -61); } } static int vvp_page_prep_read(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { struct page *tmp ; int tmp___0 ; { tmp = cl2vm_page(slice); tmp___0 = PageUptodate(tmp); return (tmp___0 != 0 ? -114 : 0); } } static int vvp_page_prep_write(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { struct page *vmpage ; struct page *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 ccc_page *tmp___4 ; struct ccc_object *tmp___5 ; { tmp = cl2vm_page(slice); vmpage = tmp; tmp___0 = PageLocked((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_page_prep_write"; __msg_data.msg_subsys = 128; __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 *)"PageLocked(vmpage)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = PageDirty((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data___0.msg_fn = "vvp_page_prep_write"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 232; __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 *)"!PageDirty(vmpage)"); lbug_with_loc(& __msg_data___0); } else { } set_page_writeback(vmpage); tmp___4 = cl2ccc_page(slice); tmp___5 = cl2ccc((struct cl_object const *)slice->cpl_obj); vvp_write_pending(tmp___5, tmp___4); return (0); } } static void vvp_vmpage_error(struct inode *inode , struct page *vmpage , int ioret ) { struct ccc_object *obj ; struct ccc_object *tmp ; { tmp = cl_inode2ccc(inode); obj = tmp; if (ioret == 0) { ClearPageError(vmpage); obj->cob_discard_page_warned = 0U; } else { SetPageError(vmpage); if (ioret == -28) { set_bit(26L, (unsigned long volatile *)(& (inode->i_mapping)->flags)); } else { set_bit(25L, (unsigned long volatile *)(& (inode->i_mapping)->flags)); } if ((ioret == -108 || ioret == -4) && (unsigned int )*((unsigned char *)obj + 440UL) == 0U) { obj->cob_discard_page_warned = 1U; ll_dirty_page_discard_warn(vmpage, ioret); } else { } } return; } } static void vvp_page_completion_read(struct lu_env const *env , struct cl_page_slice const *slice , int ioret ) { struct ccc_page *cp ; struct ccc_page *tmp ; struct page *vmpage ; struct cl_page *page ; struct cl_page *tmp___0 ; struct inode *inode ; struct inode *tmp___1 ; struct libcfs_debug_msg_data __msg_data ; int tmp___2 ; long tmp___3 ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___4 ; int tmp___5 ; struct ll_sb_info *tmp___6 ; { tmp = cl2ccc_page(slice); cp = tmp; vmpage = cp->cpg_page; tmp___0 = cl_page_top(slice->cpl_page); page = tmp___0; tmp___1 = ccc_object_inode((struct cl_object const *)page->cp_obj); inode = tmp___1; tmp___2 = PageLocked((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_page_completion_read"; __msg_data.msg_subsys = 128; __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 *)"PageLocked(vmpage)"); lbug_with_loc(& __msg_data); } 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; msgdata.msg_fn = "vvp_page_completion_read"; msgdata.msg_subsys = 128; msgdata.msg_line = 278; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32768; tmp___5 = cfs_cdebug_show(32768U, 128U); if (tmp___5 != 0) { cl_page_header_print(env, (void *)(& msgdata), & lu_cdebug_printer, (struct cl_page const *)page); tmp___4 = cfs_cdebug_show(32768U, 128U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; msgdata___0.msg_fn = "vvp_page_completion_read"; msgdata___0.msg_line = 278; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32768; libcfs_debug_msg(& msgdata___0, "completing READ with %d\n", ioret); } else { } } else { } if (cp->cpg_defer_uptodate != 0) { tmp___6 = ll_i2sbi(inode); ll_ra_count_put(tmp___6, 1UL); } else { } if (ioret == 0) { if (cp->cpg_defer_uptodate == 0) { cl_page_export(env, page, 1); } else { } } else { cp->cpg_defer_uptodate = 0; } if ((unsigned long )page->cp_sync_io == (unsigned long )((struct cl_sync_io *)0)) { unlock_page(vmpage); } else { } return; } } static void vvp_page_completion_write(struct lu_env const *env , struct cl_page_slice const *slice , int ioret ) { struct ccc_page *cp ; struct ccc_page *tmp ; struct cl_page *pg ; struct page *vmpage ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; int tmp___1 ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___3 ; long tmp___4 ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___5 ; int tmp___6 ; struct ccc_object *tmp___7 ; struct inode *tmp___8 ; { tmp = cl2ccc_page(slice); cp = tmp; pg = slice->cpl_page; vmpage = cp->cpg_page; if ((unsigned long )pg->cp_sync_io != (unsigned long )((struct cl_sync_io *)0)) { tmp___0 = PageLocked((struct page const *)vmpage); if (tmp___0 == 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) { __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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_page_completion_write"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 301; __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->cp_sync_io != ((void *)0)) || (PageLocked(vmpage)))"); lbug_with_loc(& __msg_data); } else { } tmp___3 = PageWriteback((struct page const *)vmpage); tmp___4 = ldv__builtin_expect(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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data___0.msg_fn = "vvp_page_completion_write"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 302; __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 *)"PageWriteback(vmpage)"); lbug_with_loc(& __msg_data___0); } 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; msgdata.msg_fn = "vvp_page_completion_write"; msgdata.msg_subsys = 128; msgdata.msg_line = 304; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32768; tmp___6 = cfs_cdebug_show(32768U, 128U); if (tmp___6 != 0) { cl_page_header_print(env, (void *)(& msgdata), & lu_cdebug_printer, (struct cl_page const *)pg); tmp___5 = cfs_cdebug_show(32768U, 128U); if (tmp___5 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; msgdata___0.msg_fn = "vvp_page_completion_write"; msgdata___0.msg_line = 304; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32768; libcfs_debug_msg(& msgdata___0, "completing WRITE with %d\n", ioret); } else { } } else { } cp->cpg_write_queued = 0; tmp___7 = cl2ccc((struct cl_object const *)slice->cpl_obj); vvp_write_complete(tmp___7, cp); if ((unsigned long )pg->cp_sync_io == (unsigned long )((struct cl_sync_io *)0)) { tmp___8 = ccc_object_inode((struct cl_object const *)pg->cp_obj); vvp_vmpage_error(tmp___8, vmpage, ioret); } else { } end_page_writeback(vmpage); return; } } static int vvp_page_make_ready(struct lu_env const *env , struct cl_page_slice const *slice ) { struct page *vmpage ; struct page *tmp ; struct cl_page *pg ; int result ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct ccc_page *tmp___1 ; struct ccc_object *tmp___2 ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; int tmp___4 ; struct libcfs_debug_msg_data msgdata___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___5 ; int tmp___6 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___7 ; { tmp = cl2vm_page(slice); vmpage = tmp; pg = slice->cpl_page; result = 0; lock_page(vmpage); tmp___7 = clear_page_dirty_for_io(vmpage); if (tmp___7 != 0) { tmp___0 = ldv__builtin_expect((unsigned int )pg->cp_state != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_page_make_ready"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 352; __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->cp_state == CPS_CACHED"); lbug_with_loc(& __msg_data); } else { } set_page_writeback(vmpage); tmp___1 = cl2ccc_page(slice); tmp___2 = cl2ccc((struct cl_object const *)slice->cpl_obj); vvp_write_pending(tmp___2, tmp___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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; msgdata.msg_fn = "vvp_page_make_ready"; msgdata.msg_subsys = 128; msgdata.msg_line = 358; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32768; tmp___4 = cfs_cdebug_show(32768U, 128U); if (tmp___4 != 0) { cl_page_header_print(env, (void *)(& msgdata), & lu_cdebug_printer, (struct cl_page const *)pg); tmp___3 = cfs_cdebug_show(32768U, 128U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; msgdata___0.msg_fn = "vvp_page_make_ready"; msgdata___0.msg_line = 358; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32768; libcfs_debug_msg(& msgdata___0, "readied\n"); } else { } } else { } } else if ((unsigned int )pg->cp_state == 2U) { result = -114; } 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; msgdata___1.msg_fn = "vvp_page_make_ready"; msgdata___1.msg_subsys = 128; msgdata___1.msg_line = 365; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 131072; tmp___6 = cfs_cdebug_show(131072U, 128U); if (tmp___6 != 0) { cl_page_print(env, (void *)(& msgdata___1), & lu_cdebug_printer, (struct cl_page const *)pg); tmp___5 = cfs_cdebug_show(131072U, 128U); if (tmp___5 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; msgdata___2.msg_fn = "vvp_page_make_ready"; msgdata___2.msg_line = 365; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "Unexpecting page state %d.\n", (unsigned int )pg->cp_state); } else { } } else { } 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; msgdata___3.msg_fn = "vvp_page_make_ready"; msgdata___3.msg_subsys = 128; msgdata___3.msg_line = 366; 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); } unlock_page(vmpage); return (result); } } static int vvp_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 ccc_page *vp ; struct ccc_page *tmp ; struct page *vmpage ; int tmp___0 ; int tmp___1 ; int tmp___2 ; { tmp = cl2ccc_page(slice); vp = tmp; vmpage = vp->cpg_page; (*printer)(env, cookie, "vvp-page@%p(%d:%d:%d) vm@%p ", vp, vp->cpg_defer_uptodate, vp->cpg_ra_used, vp->cpg_write_queued, vmpage); if ((unsigned long )vmpage != (unsigned long )((struct page *)0)) { tmp___0 = list_empty((struct list_head const *)(& vmpage->__annonCompField45.lru)); tmp___1 = page_mapcount(vmpage); tmp___2 = page_count(vmpage); (*printer)(env, cookie, "%lx %d:%d %lx %lu %slru", (long )vmpage->flags, tmp___2, tmp___1, vmpage->__annonCompField46.private, vmpage->__annonCompField42.__annonCompField37.index, tmp___0 != 0 ? (char *)"not-" : (char *)""); } else { } (*printer)(env, cookie, "\n"); return (0); } } static struct cl_page_operations const vvp_page_ops = {& ccc_page_vmpage, & vvp_page_own, & vvp_page_disown, & vvp_page_assume, & vvp_page_unassume, & vvp_page_export, & vvp_page_unmap, & vvp_page_is_vmlocked, & vvp_page_discard, & vvp_page_delete, & vvp_page_fini, & ccc_page_is_under_lock, & vvp_page_print, {{& vvp_page_prep_read, & vvp_page_completion_read, & ccc_fail, 0}, {& vvp_page_prep_write, & vvp_page_completion_write, & vvp_page_make_ready, 0}}, 0, 0, 0}; static void vvp_transient_page_verify(struct cl_page const *page ) { struct inode *inode ; struct inode *tmp ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; { tmp = ccc_object_inode((struct cl_object const *)page->cp_obj); inode = tmp; tmp___0 = mutex_trylock(& inode->i_mutex); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_transient_page_verify"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 425; __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 *)"!mutex_trylock(&inode->i_mutex)"); lbug_with_loc(& __msg_data); } else { } return; } } static int vvp_transient_page_own(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused , int nonblock ) { { vvp_transient_page_verify((struct cl_page const *)slice->cpl_page); return (0); } } static void vvp_transient_page_assume(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { { vvp_transient_page_verify((struct cl_page const *)slice->cpl_page); return; } } static void vvp_transient_page_unassume(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { { vvp_transient_page_verify((struct cl_page const *)slice->cpl_page); return; } } static void vvp_transient_page_disown(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { { vvp_transient_page_verify((struct cl_page const *)slice->cpl_page); return; } } static void vvp_transient_page_discard(struct lu_env const *env , struct cl_page_slice const *slice , struct cl_io *unused ) { struct cl_page *page ; { page = slice->cpl_page; vvp_transient_page_verify((struct cl_page const *)slice->cpl_page); cl_page_delete(env, page); return; } } static int vvp_transient_page_is_vmlocked(struct lu_env const *env , struct cl_page_slice const *slice ) { struct inode *inode ; struct inode *tmp ; int locked ; int tmp___0 ; { tmp = ccc_object_inode((struct cl_object const *)slice->cpl_obj); inode = tmp; tmp___0 = mutex_trylock(& inode->i_mutex); locked = tmp___0 == 0; if (locked == 0) { mutex_unlock(& inode->i_mutex); } else { } return (locked != 0 ? -16 : -61); } } static void vvp_transient_page_completion(struct lu_env const *env , struct cl_page_slice const *slice , int ioret ) { { vvp_transient_page_verify((struct cl_page const *)slice->cpl_page); return; } } static void vvp_transient_page_fini(struct lu_env const *env , struct cl_page_slice *slice ) { struct ccc_page *cp ; struct ccc_page *tmp ; struct cl_page *clp ; struct ccc_object *clobj ; struct ccc_object *tmp___0 ; struct libcfs_debug_msg_data __msg_data ; int tmp___1 ; long tmp___2 ; { tmp = cl2ccc_page((struct cl_page_slice const *)slice); cp = tmp; clp = slice->cpl_page; tmp___0 = cl2ccc((struct cl_object const *)clp->cp_obj); clobj = tmp___0; vvp_page_fini_common(cp); tmp___1 = mutex_trylock(& (clobj->cob_inode)->i_mutex); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_transient_page_fini"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 499; __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 *)"!mutex_trylock(&clobj->cob_inode->i_mutex)"); lbug_with_loc(& __msg_data); } else { } clobj->cob_transient_pages = clobj->cob_transient_pages - 1; return; } } static struct cl_page_operations const vvp_transient_page_ops = {& ccc_page_vmpage, & vvp_transient_page_own, & vvp_transient_page_disown, & vvp_transient_page_assume, & vvp_transient_page_unassume, 0, 0, & vvp_transient_page_is_vmlocked, & vvp_transient_page_discard, 0, & vvp_transient_page_fini, & ccc_page_is_under_lock, & vvp_page_print, {{& ccc_transient_page_prep, & vvp_transient_page_completion, 0, 0}, {& ccc_transient_page_prep, & vvp_transient_page_completion, 0, 0}}, 0, 0, 0}; int vvp_page_init(struct lu_env const *env , struct cl_object *obj , struct cl_page *page , struct page *vmpage ) { struct ccc_page *cpg ; void *tmp ; struct ccc_object *clobj ; struct ccc_object *tmp___0 ; struct libcfs_debug_msg_data __msg_data ; int tmp___1 ; long tmp___2 ; { tmp = cl_object_page_slice(obj, page); cpg = (struct ccc_page *)tmp; cpg->cpg_page = vmpage; get_page___0(vmpage); INIT_LIST_HEAD(& cpg->cpg_pending_linkage); if ((unsigned int )page->cp_type == 1U) { SetPagePrivate(vmpage); vmpage->__annonCompField46.private = (unsigned long )page; cl_page_slice_add(page, & cpg->cpg_cl, obj, & vvp_page_ops); } else { tmp___0 = cl2ccc((struct cl_object const *)obj); clobj = tmp___0; tmp___1 = mutex_trylock(& (clobj->cob_inode)->i_mutex); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_page.c"; __msg_data.msg_fn = "vvp_page_init"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 545; __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 *)"!mutex_trylock(&clobj->cob_inode->i_mutex)"); lbug_with_loc(& __msg_data); } else { } cl_page_slice_add(page, & cpg->cpg_cl, obj, & vvp_transient_page_ops); clobj->cob_transient_pages = clobj->cob_transient_pages + 1; } return (0); } } void ldv_initialize_cl_page_operations_36(void) { void *tmp ; void *tmp___0 ; void *tmp___1 ; { tmp = ldv_init_zalloc(56UL); vvp_transient_page_ops_group0 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(256UL); vvp_transient_page_ops_group1 = (struct cl_io *)tmp___0; tmp___1 = ldv_init_zalloc(40UL); vvp_transient_page_ops_group2 = (struct cl_page_slice const *)tmp___1; return; } } void ldv_initialize_cl_page_operations_37(void) { void *tmp ; void *tmp___0 ; void *tmp___1 ; { tmp = ldv_init_zalloc(56UL); vvp_page_ops_group0 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(256UL); vvp_page_ops_group1 = (struct cl_io *)tmp___0; tmp___1 = ldv_init_zalloc(40UL); vvp_page_ops_group2 = (struct cl_page_slice const *)tmp___1; return; } } void ldv_main_exported_36(void) { void *ldvarg210 ; void *tmp ; struct cl_page_slice *ldvarg212 ; void *tmp___0 ; int ldvarg211 ; int (*ldvarg209)(struct lu_env * , void * , char const * , ...) ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg210 = tmp; tmp___0 = ldv_init_zalloc(40UL); ldvarg212 = (struct cl_page_slice *)tmp___0; ldv_memset((void *)(& ldvarg211), 0, 4UL); ldv_memset((void *)(& ldvarg209), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_36 == 1) { ccc_page_is_under_lock(vvp_transient_page_ops_group0, vvp_transient_page_ops_group2, vvp_transient_page_ops_group1); ldv_state_variable_36 = 1; } else { } goto ldv_68419; case 1: ; if (ldv_state_variable_36 == 1) { vvp_transient_page_disown(vvp_transient_page_ops_group0, vvp_transient_page_ops_group2, vvp_transient_page_ops_group1); ldv_state_variable_36 = 1; } else { } goto ldv_68419; case 2: ; if (ldv_state_variable_36 == 1) { vvp_transient_page_assume(vvp_transient_page_ops_group0, vvp_transient_page_ops_group2, vvp_transient_page_ops_group1); ldv_state_variable_36 = 1; } else { } goto ldv_68419; case 3: ; if (ldv_state_variable_36 == 1) { vvp_transient_page_unassume(vvp_transient_page_ops_group0, vvp_transient_page_ops_group2, vvp_transient_page_ops_group1); ldv_state_variable_36 = 1; } else { } goto ldv_68419; case 4: ; if (ldv_state_variable_36 == 1) { vvp_transient_page_discard(vvp_transient_page_ops_group0, vvp_transient_page_ops_group2, vvp_transient_page_ops_group1); ldv_state_variable_36 = 1; } else { } goto ldv_68419; case 5: ; if (ldv_state_variable_36 == 1) { ccc_page_vmpage(vvp_transient_page_ops_group0, vvp_transient_page_ops_group2); ldv_state_variable_36 = 1; } else { } goto ldv_68419; case 6: ; if (ldv_state_variable_36 == 1) { vvp_transient_page_fini(vvp_transient_page_ops_group0, ldvarg212); ldv_state_variable_36 = 1; } else { } goto ldv_68419; case 7: ; if (ldv_state_variable_36 == 1) { vvp_transient_page_own(vvp_transient_page_ops_group0, vvp_transient_page_ops_group2, vvp_transient_page_ops_group1, ldvarg211); ldv_state_variable_36 = 1; } else { } goto ldv_68419; case 8: ; if (ldv_state_variable_36 == 1) { vvp_transient_page_is_vmlocked(vvp_transient_page_ops_group0, vvp_transient_page_ops_group2); ldv_state_variable_36 = 1; } else { } goto ldv_68419; case 9: ; if (ldv_state_variable_36 == 1) { vvp_page_print(vvp_transient_page_ops_group0, vvp_transient_page_ops_group2, ldvarg210, (int (*)(struct lu_env const * , void * , char const * , ...))ldvarg209); ldv_state_variable_36 = 1; } else { } goto ldv_68419; default: ldv_stop(); } ldv_68419: ; return; } } void ldv_main_exported_37(void) { int (*ldvarg335)(struct lu_env * , void * , char const * , ...) ; void *ldvarg336 ; void *tmp ; int ldvarg339 ; int ldvarg337 ; struct cl_page_slice *ldvarg338 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg336 = tmp; tmp___0 = ldv_init_zalloc(40UL); ldvarg338 = (struct cl_page_slice *)tmp___0; ldv_memset((void *)(& ldvarg335), 0, 8UL); ldv_memset((void *)(& ldvarg339), 0, 4UL); ldv_memset((void *)(& ldvarg337), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_37 == 1) { ccc_page_is_under_lock(vvp_page_ops_group0, vvp_page_ops_group2, vvp_page_ops_group1); ldv_state_variable_37 = 1; } else { } goto ldv_68445; case 1: ; if (ldv_state_variable_37 == 1) { vvp_page_export(vvp_page_ops_group0, vvp_page_ops_group2, ldvarg339); ldv_state_variable_37 = 1; } else { } goto ldv_68445; case 2: ; if (ldv_state_variable_37 == 1) { vvp_page_unmap(vvp_page_ops_group0, vvp_page_ops_group2, vvp_page_ops_group1); ldv_state_variable_37 = 1; } else { } goto ldv_68445; case 3: ; if (ldv_state_variable_37 == 1) { vvp_page_disown(vvp_page_ops_group0, vvp_page_ops_group2, vvp_page_ops_group1); ldv_state_variable_37 = 1; } else { } goto ldv_68445; case 4: ; if (ldv_state_variable_37 == 1) { vvp_page_assume(vvp_page_ops_group0, vvp_page_ops_group2, vvp_page_ops_group1); ldv_state_variable_37 = 1; } else { } goto ldv_68445; case 5: ; if (ldv_state_variable_37 == 1) { vvp_page_unassume(vvp_page_ops_group0, vvp_page_ops_group2, vvp_page_ops_group1); ldv_state_variable_37 = 1; } else { } goto ldv_68445; case 6: ; if (ldv_state_variable_37 == 1) { vvp_page_discard(vvp_page_ops_group0, vvp_page_ops_group2, vvp_page_ops_group1); ldv_state_variable_37 = 1; } else { } goto ldv_68445; case 7: ; if (ldv_state_variable_37 == 1) { vvp_page_fini(vvp_page_ops_group0, ldvarg338); ldv_state_variable_37 = 1; } else { } goto ldv_68445; case 8: ; if (ldv_state_variable_37 == 1) { ccc_page_vmpage(vvp_page_ops_group0, vvp_page_ops_group2); ldv_state_variable_37 = 1; } else { } goto ldv_68445; case 9: ; if (ldv_state_variable_37 == 1) { vvp_page_delete(vvp_page_ops_group0, vvp_page_ops_group2); ldv_state_variable_37 = 1; } else { } goto ldv_68445; case 10: ; if (ldv_state_variable_37 == 1) { vvp_page_own(vvp_page_ops_group0, vvp_page_ops_group2, vvp_page_ops_group1, ldvarg337); ldv_state_variable_37 = 1; } else { } goto ldv_68445; case 11: ; if (ldv_state_variable_37 == 1) { vvp_page_is_vmlocked(vvp_page_ops_group0, vvp_page_ops_group2); ldv_state_variable_37 = 1; } else { } goto ldv_68445; case 12: ; if (ldv_state_variable_37 == 1) { vvp_page_print(vvp_page_ops_group0, vvp_page_ops_group2, ldvarg336, (int (*)(struct lu_env const * , void * , char const * , ...))ldvarg335); ldv_state_variable_37 = 1; } else { } goto ldv_68445; default: ldv_stop(); } ldv_68445: ; return; } } int ldv_pskb_expand_head_867(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_869(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_871(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_872(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_873(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_874(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_875(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_876(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_877(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_clone_906(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_914(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_908(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_904(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_912(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_913(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_909(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_910(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_911(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; int vvp_lock_init(struct lu_env const *env , struct cl_object *obj , struct cl_lock *lock , struct cl_io const *io ) ; static unsigned long vvp_lock_weigh(struct lu_env const *env , struct cl_lock_slice const *slice ) { struct ccc_object *cob ; struct ccc_object *tmp ; int tmp___0 ; { tmp = cl2ccc((struct cl_object const *)slice->cls_obj); cob = tmp; tmp___0 = atomic_read((atomic_t const *)(& cob->cob_mmap_cnt)); return (tmp___0 > 0 ? 4611686018427387903UL : 0UL); } } static struct cl_lock_operations const vvp_lock_ops = {& ccc_lock_enqueue, & ccc_lock_wait, & ccc_lock_unuse, & ccc_lock_use, & ccc_lock_state, & ccc_lock_fits_into, 0, & vvp_lock_weigh, 0, 0, & ccc_lock_delete, & ccc_lock_fini, 0}; int vvp_lock_init(struct lu_env const *env , struct cl_object *obj , struct cl_lock *lock , struct cl_io const *io ) { int tmp ; { tmp = ccc_lock_init(env, obj, lock, io, & vvp_lock_ops); return (tmp); } } void ldv_initialize_cl_lock_operations_35(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(56UL); vvp_lock_ops_group1 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(40UL); vvp_lock_ops_group0 = (struct cl_lock_slice const *)tmp___0; return; } } void ldv_main_exported_35(void) { struct cl_io *ldvarg148 ; void *tmp ; enum cl_lock_state ldvarg149 ; struct cl_lock_slice *ldvarg146 ; void *tmp___0 ; struct cl_lock_descr *ldvarg151 ; void *tmp___1 ; struct cl_io *ldvarg150 ; void *tmp___2 ; __u32 ldvarg147 ; int tmp___3 ; { tmp = ldv_init_zalloc(256UL); ldvarg148 = (struct cl_io *)tmp; tmp___0 = ldv_init_zalloc(40UL); ldvarg146 = (struct cl_lock_slice *)tmp___0; tmp___1 = ldv_init_zalloc(40UL); ldvarg151 = (struct cl_lock_descr *)tmp___1; tmp___2 = ldv_init_zalloc(256UL); ldvarg150 = (struct cl_io *)tmp___2; ldv_memset((void *)(& ldvarg149), 0, 4UL); ldv_memset((void *)(& ldvarg147), 0, 4UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_35 == 1) { ccc_lock_use(vvp_lock_ops_group1, vvp_lock_ops_group0); ldv_state_variable_35 = 1; } else { } goto ldv_68195; case 1: ; if (ldv_state_variable_35 == 1) { ccc_lock_wait(vvp_lock_ops_group1, vvp_lock_ops_group0); ldv_state_variable_35 = 1; } else { } goto ldv_68195; case 2: ; if (ldv_state_variable_35 == 1) { ccc_lock_fits_into(vvp_lock_ops_group1, vvp_lock_ops_group0, (struct cl_lock_descr const *)ldvarg151, (struct cl_io const *)ldvarg150); ldv_state_variable_35 = 1; } else { } goto ldv_68195; case 3: ; if (ldv_state_variable_35 == 1) { vvp_lock_weigh(vvp_lock_ops_group1, vvp_lock_ops_group0); ldv_state_variable_35 = 1; } else { } goto ldv_68195; case 4: ; if (ldv_state_variable_35 == 1) { ccc_lock_state(vvp_lock_ops_group1, vvp_lock_ops_group0, ldvarg149); ldv_state_variable_35 = 1; } else { } goto ldv_68195; case 5: ; if (ldv_state_variable_35 == 1) { ccc_lock_unuse(vvp_lock_ops_group1, vvp_lock_ops_group0); ldv_state_variable_35 = 1; } else { } goto ldv_68195; case 6: ; if (ldv_state_variable_35 == 1) { ccc_lock_enqueue(vvp_lock_ops_group1, vvp_lock_ops_group0, ldvarg148, ldvarg147); ldv_state_variable_35 = 1; } else { } goto ldv_68195; case 7: ; if (ldv_state_variable_35 == 1) { ccc_lock_fini(vvp_lock_ops_group1, ldvarg146); ldv_state_variable_35 = 1; } else { } goto ldv_68195; case 8: ; if (ldv_state_variable_35 == 1) { ccc_lock_delete(vvp_lock_ops_group1, vvp_lock_ops_group0); ldv_state_variable_35 = 1; } else { } goto ldv_68195; default: ldv_stop(); } ldv_68195: ; return; } } int ldv_pskb_expand_head_904(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_906(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_908(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_909(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_910(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_911(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_912(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_913(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_914(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 spin_lock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; extern void touch_atime(struct path const * ) ; __inline static void file_accessed(struct file *file ) { { if ((file->f_flags & 262144U) == 0U) { touch_atime((struct path const *)(& file->f_path)); } else { } return; } } extern ssize_t generic_file_read_iter(struct kiocb * , struct iov_iter * ) ; extern ssize_t generic_file_write_iter(struct kiocb * , struct iov_iter * ) ; extern ssize_t generic_file_splice_read(struct file * , loff_t * , struct pipe_inode_info * , size_t , unsigned int ) ; extern void truncate_setsize(struct inode * , loff_t ) ; extern int filemap_fault(struct vm_area_struct * , struct vm_fault * ) ; __inline static struct iovec iov_iter_iovec(struct iov_iter const *iter ) { struct iovec __constr_expr_0 ; unsigned long _min1 ; unsigned long _min2 ; { _min1 = iter->count; _min2 = (unsigned long )(iter->__annonCompField76.iov)->iov_len - (unsigned long )iter->iov_offset; __constr_expr_0.iov_base = (iter->__annonCompField76.iov)->iov_base + iter->iov_offset; __constr_expr_0.iov_len = _min1 < (unsigned long )((unsigned long const )_min2) ? _min1 : (unsigned long const )_min2; return (__constr_expr_0); } } struct sk_buff *ldv_skb_clone_943(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_951(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_945(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_941(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_949(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_950(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_946(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_947(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_948(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static loff_t page_offset(struct page *page ) { { return ((long long )page->__annonCompField42.__annonCompField37.index << 12); } } extern void lu_object_header_print(struct lu_env const * , void * , int (*)(struct lu_env const * , void * , char const * , ...) , struct lu_object_header const * ) ; extern int lustre_get_jobid(char * ) ; extern void cl_io_slice_add(struct cl_io * , struct cl_io_slice * , struct cl_object * , struct cl_io_operations const * ) ; extern int cl_object_attr_set(struct lu_env const * , struct cl_object * , struct cl_attr const * , unsigned int ) ; extern int cl_page_cache_add(struct lu_env const * , struct cl_io * , struct cl_page * , enum cl_req_type ) ; 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 int cl_page_is_vmlocked(struct lu_env const * , struct cl_page const * ) ; extern int cl_io_lock_alloc_add(struct lu_env const * , struct cl_io * , struct cl_lock_descr * ) ; __inline static int cl_io_is_append(struct cl_io const *io ) { { return ((unsigned int )io->ci_type == 1U && (int )io->u.ci_wr.wr_append != 0); } } __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); } } extern void cl_page_list_disown(struct lu_env const * , struct cl_io * , struct cl_page_list * ) ; extern void cl_2queue_init_page(struct cl_2queue * , struct cl_page * ) ; __inline static __u32 ll_layout_version_get___0(struct ll_inode_info *lli ) { __u32 gen ; { spin_lock(& lli->lli_layout_lock); gen = lli->lli_layout_gen; spin_unlock(& lli->lli_layout_lock); return (gen); } } void ll_rw_stats_tally(struct ll_sb_info *sbi , pid_t pid , struct ll_file_data *file , loff_t pos , size_t count , int rw ) ; __inline static void ll_invalidate_page(struct page *vmpage ) { struct address_space *mapping ; loff_t offset ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; { mapping = vmpage->__annonCompField36.mapping; offset = (loff_t )(vmpage->__annonCompField42.__annonCompField37.index << 12); tmp = PageLocked((struct page const *)vmpage); 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/llite/llite_internal.h"; __msg_data.msg_fn = "ll_invalidate_page"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 979; __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 *)"PageLocked(vmpage)"); lbug_with_loc(& __msg_data); } else { } if ((unsigned long )mapping == (unsigned long )((struct address_space *)0)) { return; } else { } ll_teardown_mmaps(mapping, (__u64 )offset, (unsigned long long )offset + 4096ULL); truncate_complete_page(mapping, vmpage); return; } } int vvp_io_init(struct lu_env const *env , struct cl_object *obj , struct cl_io *io ) ; static struct vvp_io *cl2vvp_io(struct lu_env const *env , struct cl_io_slice const *slice ) ; int cl_is_normalio(struct lu_env const *env , struct cl_io const *io ) { struct vvp_io *vio ; struct vvp_io *tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; { tmp = vvp_env_io(env); vio = tmp; tmp___0 = ldv__builtin_expect((long )((unsigned int )io->ci_type != 0U && (unsigned int )io->ci_type != 1U), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data.msg_fn = "cl_is_normalio"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 60; __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 *)"io->ci_type == CIT_READ || io->ci_type == CIT_WRITE"); lbug_with_loc(& __msg_data); } else { } return ((unsigned int )vio->cui_io_subtype == 0U); } } static bool can_populate_pages(struct lu_env const *env , struct cl_io *io , struct inode *inode ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct ccc_io *cio ; struct ccc_io *tmp___0 ; bool rc ; __u32 tmp___1 ; { tmp = ll_i2info(inode); lli = tmp; tmp___0 = ccc_env_io(env); cio = tmp___0; rc = 1; switch ((unsigned int )io->ci_type) { case 0U: ; case 1U: tmp___1 = ll_layout_version_get___0(lli); if (tmp___1 != cio->cui_layout_gen) { io->ci_need_restart = 1U; io->ci_continue = 0U; rc = 0; } else { } case 3U: ; default: ; goto ldv_68192; } ldv_68192: ; return (rc); } } static int vvp_io_fault_iter_init(struct lu_env const *env , struct cl_io_slice const *ios ) { struct vvp_io *vio ; struct vvp_io *tmp ; struct inode *inode ; struct inode *tmp___0 ; struct libcfs_debug_msg_data __msg_data ; struct ccc_io *tmp___1 ; struct inode *tmp___2 ; long tmp___3 ; { tmp = cl2vvp_io(env, ios); vio = tmp; tmp___0 = ccc_object_inode((struct cl_object const *)ios->cis_obj); inode = tmp___0; tmp___1 = cl2ccc_io(env, ios); tmp___2 = file_inode((struct file const *)(tmp___1->cui_fd)->fd_file); tmp___3 = ldv__builtin_expect((unsigned long )tmp___2 != (unsigned long )inode, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data.msg_fn = "vvp_io_fault_iter_init"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 111; __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 *)"inode == file_inode(cl2ccc_io(env, ios)->cui_fd->fd_file)"); lbug_with_loc(& __msg_data); } else { } vio->u.fault.ft_mtime = inode->i_mtime.tv_sec; return (0); } } static void vvp_io_fini(struct lu_env const *env , struct cl_io_slice const *ios ) { struct cl_io *io ; struct cl_object *obj ; struct ccc_io *cio ; struct ccc_io *tmp ; struct libcfs_debug_msg_data msgdata ; struct lu_fid const *tmp___0 ; struct lu_fid const *tmp___1 ; struct lu_fid const *tmp___2 ; int tmp___3 ; int rc ; struct inode *tmp___4 ; __u32 gen ; struct inode *tmp___5 ; struct libcfs_debug_msg_data msgdata___0 ; struct lu_fid const *tmp___6 ; struct lu_fid const *tmp___7 ; struct lu_fid const *tmp___8 ; int tmp___9 ; struct inode *tmp___10 ; struct ll_inode_info *tmp___11 ; { io = ios->cis_io; obj = io->ci_obj; tmp = cl2ccc_io(env, ios); cio = tmp; tmp___3 = cfs_cdebug_show(2097152U, 128U); if (tmp___3 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata.msg_fn = "vvp_io_fini"; msgdata.msg_line = 128; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; tmp___0 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); tmp___1 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); tmp___2 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); libcfs_debug_msg(& msgdata, "[%#llx:0x%x:0x%x] ignore/verify layout %d/%d, layout version %d restore needed %d\n", tmp___2->f_seq, tmp___1->f_oid, tmp___0->f_ver, (int )io->ci_ignore_layout, (int )io->ci_verify_layout, cio->cui_layout_gen, (int )io->ci_restore_needed); } else { } if ((unsigned int )*((unsigned char *)io + 244UL) != 0U) { tmp___4 = ccc_object_inode((struct cl_object const *)obj); rc = ll_layout_restore(tmp___4); if (rc == 0) { io->ci_restore_needed = 0U; io->ci_need_restart = 1U; io->ci_verify_layout = 1U; } else { io->ci_restore_needed = 1U; io->ci_need_restart = 0U; io->ci_verify_layout = 0U; io->ci_result = rc; } } else { } if ((unsigned int )*((unsigned char *)io + 244UL) == 0U && (unsigned int )*((unsigned char *)io + 244UL) != 0U) { gen = 0U; tmp___5 = ccc_object_inode((struct cl_object const *)obj); ll_layout_refresh(tmp___5, & gen); io->ci_need_restart = cio->cui_layout_gen != gen; if ((unsigned int )*((unsigned char *)io + 244UL) != 0U) { tmp___9 = cfs_cdebug_show(2097152U, 128U); if (tmp___9 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___0.msg_fn = "vvp_io_fini"; msgdata___0.msg_line = 167; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 2097152; tmp___6 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); tmp___7 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); tmp___8 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); libcfs_debug_msg(& msgdata___0, "[%#llx:0x%x:0x%x] layout changed from %d to %d.\n", tmp___8->f_seq, tmp___7->f_oid, tmp___6->f_ver, cio->cui_layout_gen, gen); } else { } tmp___10 = ccc_object_inode((struct cl_object const *)obj); tmp___11 = ll_i2info(tmp___10); tmp___11->lli_flags = tmp___11->lli_flags & 4294967263U; } else { } } else { } return; } } static void vvp_io_fault_fini(struct lu_env const *env , struct cl_io_slice const *ios ) { struct cl_io *io ; struct cl_page *page ; { io = ios->cis_io; page = io->u.ci_fault.ft_page; if ((unsigned long )page != (unsigned long )((struct cl_page *)0)) { lu_ref_del(& page->cp_reference, "fault", (void const *)io); cl_page_put(env, page); io->u.ci_fault.ft_page = (struct cl_page *)0; } else { } vvp_io_fini(env, ios); return; } } static enum cl_lock_mode vvp_mode_from_vma(struct vm_area_struct *vma ) { { if ((vma->vm_flags & 8UL) != 0UL && (vma->vm_flags & 2UL) != 0UL) { return (2); } else { } return (1); } } static int vvp_mmap_locks(struct lu_env const *env , struct ccc_io *vio , struct cl_io *io ) { struct ccc_thread_info *cti ; struct ccc_thread_info *tmp ; struct mm_struct *mm ; struct task_struct *tmp___0 ; struct vm_area_struct *vma ; struct cl_lock_descr *descr ; ldlm_policy_data_t policy ; unsigned long addr ; ssize_t count ; int result ; struct iov_iter i ; struct iovec iov ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; int tmp___2 ; struct inode *inode ; struct inode *tmp___3 ; int flags ; int tmp___4 ; struct ll_inode_info *tmp___5 ; struct libcfs_debug_msg_data msgdata ; int tmp___6 ; { tmp = ccc_env_info(env); cti = tmp; tmp___0 = get_current(); mm = tmp___0->mm; descr = & cti->cti_descr; tmp___1 = ldv__builtin_expect((long )((unsigned int )io->ci_type != 0U && (unsigned int )io->ci_type != 1U), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data.msg_fn = "vvp_mmap_locks"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 219; __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 *)"io->ci_type == CIT_READ || io->ci_type == CIT_WRITE"); lbug_with_loc(& __msg_data); } else { } tmp___2 = cl_is_normalio(env, (struct cl_io const *)io); if (tmp___2 == 0) { return (0); } else { } if ((unsigned long )vio->cui_iter == (unsigned long )((struct iov_iter *)0)) { return (0); } else { } if ((unsigned long )mm == (unsigned long )((struct mm_struct *)0)) { return (0); } else { } if (((vio->cui_iter)->type & 4) == 0) { i = *(vio->cui_iter); goto ldv_68247; ldv_68246: addr = (unsigned long )iov.iov_base; count = (ssize_t )iov.iov_len; if (count == 0L) { goto ldv_68239; } else { } count = (ssize_t )(((unsigned long long )addr & 4095ULL) + (unsigned long long )count); addr = addr & 0xfffffffffffff000UL; down_read(& mm->mmap_sem); goto ldv_68245; ldv_68244: tmp___3 = file_inode((struct file const *)vma->vm_file); inode = tmp___3; flags = 8; tmp___4 = ll_file_nolock((struct file const *)vma->vm_file); if (tmp___4 != 0) { flags = 16; } else { } policy_from_vma(& policy, vma, addr, (size_t )count); descr->cld_mode = vvp_mode_from_vma(vma); tmp___5 = ll_i2info(inode); descr->cld_obj = tmp___5->lli_clob; descr->cld_start = cl_index((struct cl_object const *)descr->cld_obj, (loff_t )policy.l_extent.start); descr->cld_end = cl_index((struct cl_object const *)descr->cld_obj, (loff_t )policy.l_extent.end); descr->cld_enq_flags = (__u32 )flags; result = cl_io_lock_alloc_add(env, io, descr); tmp___6 = cfs_cdebug_show(2097152U, 128U); if (tmp___6 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata.msg_fn = "vvp_mmap_locks"; msgdata.msg_line = 270; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "lock: %d: [%lu, %lu]\n", (unsigned int )descr->cld_mode, descr->cld_start, descr->cld_end); } else { } if (result < 0) { up_read(& mm->mmap_sem); return (result); } else { } if (vma->vm_end - addr >= (unsigned long )count) { goto ldv_68243; } else { } count = (ssize_t )((addr - vma->vm_end) + (unsigned long )count); addr = vma->vm_end; ldv_68245: vma = our_vma(mm, addr, (size_t )count); if ((unsigned long )vma != (unsigned long )((struct vm_area_struct *)0)) { goto ldv_68244; } else { } ldv_68243: up_read(& mm->mmap_sem); ldv_68239: iov_iter_advance(& i, iov.iov_len); ldv_68247: ; if (i.count != 0UL) { iov = iov_iter_iovec((struct iov_iter const *)(& i)); goto ldv_68246; } else { } } else { } return (0); } } static int vvp_io_rw_lock(struct lu_env const *env , struct cl_io *io , enum cl_lock_mode mode , loff_t start , loff_t end ) { struct ccc_io *cio ; struct ccc_io *tmp ; int result ; int ast_flags ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; { tmp = ccc_env_io(env); cio = tmp; ast_flags = 0; tmp___0 = ldv__builtin_expect((long )((unsigned int )io->ci_type != 0U && (unsigned int )io->ci_type != 1U), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data.msg_fn = "vvp_io_rw_lock"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 295; __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 *)"io->ci_type == CIT_READ || io->ci_type == CIT_WRITE"); lbug_with_loc(& __msg_data); } else { } ccc_io_update_iov(env, cio, io); if (io->u.ci_rw.crw_nonblock != 0) { ast_flags = ast_flags | 1; } else { } result = vvp_mmap_locks(env, cio, io); if (result == 0) { result = ccc_io_one_lock(env, io, (__u32 )ast_flags, mode, start, end); } else { } return (result); } } static int vvp_io_read_lock(struct lu_env const *env , struct cl_io_slice const *ios ) { struct cl_io *io ; struct cl_io_rw_common *rd ; int result ; { io = ios->cis_io; rd = & io->u.ci_rd.rd; result = vvp_io_rw_lock(env, io, 1, rd->crw_pos, (loff_t )(((unsigned long long )rd->crw_pos + (unsigned long long )rd->crw_count) - 1ULL)); return (result); } } static int vvp_io_fault_lock(struct lu_env const *env , struct cl_io_slice const *ios ) { struct cl_io *io ; struct vvp_io *vio ; struct vvp_io *tmp ; enum cl_lock_mode tmp___0 ; int tmp___1 ; { io = ios->cis_io; tmp = cl2vvp_io(env, ios); vio = tmp; tmp___0 = vvp_mode_from_vma(vio->u.fault.ft_vma); tmp___1 = ccc_io_one_lock_index(env, io, 0U, tmp___0, io->u.ci_fault.ft_index, io->u.ci_fault.ft_index); return (tmp___1); } } static int vvp_io_write_lock(struct lu_env const *env , struct cl_io_slice const *ios ) { struct cl_io *io ; loff_t start ; loff_t end ; int tmp ; { io = ios->cis_io; if (io->u.ci_wr.wr_append != 0) { start = 0LL; end = -1LL; } else { start = io->u.ci_wr.wr.crw_pos; end = (loff_t )(((unsigned long long )io->u.ci_wr.wr.crw_count + (unsigned long long )start) - 1ULL); } tmp = vvp_io_rw_lock(env, io, 2, start, end); return (tmp); } } static int vvp_io_setattr_iter_init(struct lu_env const *env , struct cl_io_slice const *ios ) { { return (0); } } static int vvp_io_setattr_lock(struct lu_env const *env , struct cl_io_slice const *ios ) { struct ccc_io *cio ; struct ccc_io *tmp ; struct cl_io *io ; __u64 new_size ; __u32 enqflags ; int tmp___0 ; int tmp___1 ; { tmp = ccc_env_io(env); cio = tmp; io = ios->cis_io; enqflags = 0U; tmp___0 = cl_io_is_trunc((struct cl_io const *)io); if (tmp___0 != 0) { new_size = io->u.ci_setattr.sa_attr.lvb_size; if (new_size == 0ULL) { enqflags = 4U; } else { } } else { if (io->u.ci_setattr.sa_attr.lvb_mtime >= io->u.ci_setattr.sa_attr.lvb_ctime || io->u.ci_setattr.sa_attr.lvb_atime >= io->u.ci_setattr.sa_attr.lvb_ctime) { return (0); } else { } new_size = 0ULL; } cio->u.setattr.cui_local_lock = 1; tmp___1 = ccc_io_one_lock(env, io, enqflags, 2, (loff_t )new_size, -1LL); return (tmp___1); } } static int vvp_do_vmtruncate(struct inode *inode , size_t size ) { int result ; { ll_inode_size_lock(inode); result = inode_newsize_ok((struct inode const *)inode, (loff_t )size); if (result < 0) { ll_inode_size_unlock(inode); return (result); } else { } truncate_setsize(inode, (loff_t )size); ll_inode_size_unlock(inode); return (result); } } static int vvp_io_setattr_trunc(struct lu_env const *env , struct cl_io_slice const *ios , struct inode *inode , loff_t size ) { { inode_dio_wait(inode); return (0); } } static int vvp_io_setattr_time(struct lu_env const *env , struct cl_io_slice const *ios ) { struct cl_io *io ; struct cl_object *obj ; struct cl_attr *attr ; struct cl_attr *tmp ; int result ; unsigned int valid ; { io = ios->cis_io; obj = io->ci_obj; tmp = ccc_env_thread_attr(env); attr = tmp; valid = 32U; cl_object_attr_lock(obj); attr->cat_ctime = (time_t )io->u.ci_setattr.sa_attr.lvb_ctime; if ((io->u.ci_setattr.sa_valid & 128U) != 0U) { attr->cat_atime = (time_t )io->u.ci_setattr.sa_attr.lvb_atime; valid = valid | 16U; } else { } if ((io->u.ci_setattr.sa_valid & 256U) != 0U) { attr->cat_mtime = (time_t )io->u.ci_setattr.sa_attr.lvb_mtime; valid = valid | 8U; } else { } result = cl_object_attr_set(env, obj, (struct cl_attr const *)attr, valid); cl_object_attr_unlock(obj); return (result); } } static int vvp_io_setattr_start(struct lu_env const *env , struct cl_io_slice const *ios ) { struct cl_io *io ; struct inode *inode ; struct inode *tmp ; int result ; int tmp___0 ; { io = ios->cis_io; tmp = ccc_object_inode((struct cl_object const *)io->ci_obj); inode = tmp; result = 0; mutex_lock_nested(& inode->i_mutex, 0U); tmp___0 = cl_io_is_trunc((struct cl_io const *)io); if (tmp___0 != 0) { result = vvp_io_setattr_trunc(env, ios, inode, (loff_t )io->u.ci_setattr.sa_attr.lvb_size); } else { } if (result == 0) { result = vvp_io_setattr_time(env, ios); } else { } return (result); } } static void vvp_io_setattr_end(struct lu_env const *env , struct cl_io_slice const *ios ) { struct cl_io *io ; struct inode *inode ; struct inode *tmp ; int tmp___0 ; { io = ios->cis_io; tmp = ccc_object_inode((struct cl_object const *)io->ci_obj); inode = tmp; tmp___0 = cl_io_is_trunc((struct cl_io const *)io); if (tmp___0 != 0) { vvp_do_vmtruncate(inode, (size_t )io->u.ci_setattr.sa_attr.lvb_size); } else { } mutex_unlock(& inode->i_mutex); return; } } static void vvp_io_setattr_fini(struct lu_env const *env , struct cl_io_slice const *ios ) { { vvp_io_fini(env, ios); return; } } static int vvp_io_read_start(struct lu_env const *env , struct cl_io_slice const *ios ) { struct vvp_io *vio ; struct vvp_io *tmp ; struct ccc_io *cio ; struct ccc_io *tmp___0 ; struct cl_io *io ; struct cl_object *obj ; struct inode *inode ; struct inode *tmp___1 ; struct ll_ra_read *bead ; struct file *file ; int result ; loff_t pos ; long cnt ; long tot ; int exceed ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; bool tmp___3 ; int tmp___4 ; struct libcfs_debug_msg_data msgdata___0 ; struct libcfs_debug_msg_data msgdata___1 ; loff_t tmp___5 ; int tmp___6 ; int tmp___7 ; struct libcfs_debug_msg_data __msg_data ; long tmp___8 ; ssize_t tmp___9 ; ssize_t tmp___10 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___11 ; struct libcfs_debug_msg_data msgdata___3 ; struct task_struct *tmp___12 ; struct ll_sb_info *tmp___13 ; { tmp = cl2vvp_io(env, ios); vio = tmp; tmp___0 = cl2ccc_io(env, ios); cio = tmp___0; io = ios->cis_io; obj = io->ci_obj; tmp___1 = ccc_object_inode((struct cl_object const *)obj); inode = tmp___1; bead = & vio->cui_bead; file = (cio->cui_fd)->fd_file; pos = io->u.ci_rd.rd.crw_pos; cnt = (long )io->u.ci_rd.rd.crw_count; tot = (long )cio->cui_tot_count; exceed = 0; tmp___2 = cfs_cdebug_show(2097152U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata.msg_fn = "vvp_io_read_start"; msgdata.msg_line = 492; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "read: -> [%lli, %lli)\n", pos, pos + (long long )cnt); } else { } tmp___3 = can_populate_pages(env, io, inode); if (tmp___3) { tmp___4 = 0; } else { tmp___4 = 1; } if (tmp___4) { return (0); } else { } result = ccc_prep_size(env, obj, io, pos, (size_t )tot, & exceed); if (result != 0) { return (result); } else if (exceed != 0) { goto out; } 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___0.msg_fn = "vvp_io_read_start"; msgdata___0.msg_subsys = 128; msgdata___0.msg_line = 505; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 2; tmp___7 = cfs_cdebug_show(2U, 128U); if (tmp___7 != 0) { lu_object_header_print(env, (void *)(& msgdata___0), & lu_cdebug_printer, (struct lu_object_header const *)obj->co_lu.lo_header); lu_cdebug_printer(env, (void *)(& msgdata___0), "\n"); tmp___6 = cfs_cdebug_show(2U, 128U); if (tmp___6 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___1.msg_fn = "vvp_io_read_start"; msgdata___1.msg_line = 505; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 2; tmp___5 = i_size_read((struct inode const *)inode); libcfs_debug_msg(& msgdata___1, "Read ino %lu, %lu bytes, offset %lld, size %llu\n", inode->i_ino, cnt, pos, tmp___5); } else { } } else { } ((cio->cui_fd)->fd_file)->f_ra.ra_pages = 0U; if (vio->cui_ra_window_set == 0) { vio->cui_ra_window_set = 1; bead->lrr_start = cl_index((struct cl_object const *)obj, pos); bead->lrr_count = cl_index((struct cl_object const *)obj, (loff_t )((unsigned long )tot + 4095UL)); ll_ra_read_in(file, bead); } else { } file_accessed(file); switch ((unsigned int )vio->cui_io_subtype) { case 0U: tmp___8 = ldv__builtin_expect((cio->cui_iocb)->ki_pos != pos, 0L); if (tmp___8 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data.msg_fn = "vvp_io_read_start"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 525; __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 *)"cio->cui_iocb->ki_pos == pos"); lbug_with_loc(& __msg_data); } else { } tmp___9 = generic_file_read_iter(cio->cui_iocb, cio->cui_iter); result = (int )tmp___9; goto ldv_68353; case 1U: tmp___10 = generic_file_splice_read(file, & pos, vio->u.splice.cui_pipe, (size_t )cnt, vio->u.splice.cui_flags); result = (int )tmp___10; io->ci_continue = 0U; goto ldv_68353; default: tmp___11 = cfs_cdebug_show(131072U, 128U); if (tmp___11 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___2.msg_fn = "vvp_io_read_start"; msgdata___2.msg_line = 538; msgdata___2.msg_cdls = & cdls; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "Wrong IO type %u\n", (unsigned int )vio->cui_io_subtype); } else { } 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___3.msg_fn = "vvp_io_read_start"; msgdata___3.msg_subsys = 128; msgdata___3.msg_line = 539; 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); } ldv_68353: ; out: ; if (result >= 0) { if ((long )result < cnt) { io->ci_continue = 0U; } else { } io->ci_nob = io->ci_nob + (size_t )result; tmp___12 = get_current(); tmp___13 = ll_i2sbi(inode); ll_rw_stats_tally(tmp___13, tmp___12->pid, cio->cui_fd, pos, (size_t )result, 0); result = 0; } else { } return (result); } } static void vvp_io_read_fini(struct lu_env const *env , struct cl_io_slice const *ios ) { struct vvp_io *vio ; struct vvp_io *tmp ; struct ccc_io *cio ; struct ccc_io *tmp___0 ; { tmp = cl2vvp_io(env, ios); vio = tmp; tmp___0 = cl2ccc_io(env, ios); cio = tmp___0; if (vio->cui_ra_window_set != 0) { ll_ra_read_ex((cio->cui_fd)->fd_file, & vio->cui_bead); } else { } vvp_io_fini(env, ios); return; } } static int vvp_io_write_start(struct lu_env const *env , struct cl_io_slice const *ios ) { struct ccc_io *cio ; struct ccc_io *tmp ; struct cl_io *io ; struct cl_object *obj ; struct inode *inode ; struct inode *tmp___0 ; ssize_t result ; loff_t pos ; size_t cnt ; bool tmp___1 ; int tmp___2 ; loff_t tmp___3 ; struct libcfs_debug_msg_data __msg_data ; long tmp___4 ; int tmp___5 ; struct libcfs_debug_msg_data msgdata ; int tmp___6 ; struct task_struct *tmp___7 ; struct ll_sb_info *tmp___8 ; { tmp = cl2ccc_io(env, ios); cio = tmp; io = ios->cis_io; obj = io->ci_obj; tmp___0 = ccc_object_inode((struct cl_object const *)obj); inode = tmp___0; result = 0L; pos = io->u.ci_wr.wr.crw_pos; cnt = io->u.ci_wr.wr.crw_count; tmp___1 = can_populate_pages(env, io, inode); if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { return (0); } else { } tmp___5 = cl_io_is_append((struct cl_io const *)io); if (tmp___5 != 0) { tmp___3 = i_size_read((struct inode const *)inode); io->u.ci_wr.wr.crw_pos = tmp___3; pos = tmp___3; (cio->cui_iocb)->ki_pos = pos; } else { tmp___4 = ldv__builtin_expect((cio->cui_iocb)->ki_pos != pos, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data.msg_fn = "vvp_io_write_start"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 587; __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 *)"cio->cui_iocb->ki_pos == pos"); lbug_with_loc(& __msg_data); } else { } } tmp___6 = cfs_cdebug_show(2097152U, 128U); if (tmp___6 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata.msg_fn = "vvp_io_write_start"; msgdata.msg_line = 590; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "write: [%lli, %lli)\n", pos, pos + (long long )cnt); } else { } if ((unsigned long )cio->cui_iter == (unsigned long )((struct iov_iter *)0)) { result = 0L; } else { result = generic_file_write_iter(cio->cui_iocb, cio->cui_iter); } if (result > 0L) { if ((unsigned long )result < cnt) { io->ci_continue = 0U; } else { } io->ci_nob = io->ci_nob + (unsigned long )result; tmp___7 = get_current(); tmp___8 = ll_i2sbi(inode); ll_rw_stats_tally(tmp___8, tmp___7->pid, cio->cui_fd, pos, (size_t )result, 1); result = 0L; } else { } return ((int )result); } } static int vvp_io_kernel_fault(struct vvp_fault_io *cfio ) { struct vm_fault *vmf ; int tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; int tmp___1 ; long tmp___2 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___4 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___5 ; { vmf = cfio->fault.ft_vmf; tmp = filemap_fault(cfio->ft_vma, vmf); cfio->fault.ft_flags = (unsigned int )tmp; cfio->fault.ft_flags_valid = 1; if ((unsigned long )vmf->page != (unsigned long )((struct page *)0)) { tmp___1 = cfs_cdebug_show(32768U, 128U); if (tmp___1 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata.msg_fn = "vvp_io_kernel_fault"; msgdata.msg_line = 620; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32768; tmp___0 = page_count(vmf->page); libcfs_debug_msg(& msgdata, "page %p map %p index %lu flags %lx count %u priv %0lx: got addr %p type NOPAGE\n", vmf->page, (vmf->page)->__annonCompField36.mapping, (vmf->page)->__annonCompField42.__annonCompField37.index, (long )(vmf->page)->flags, tmp___0, (vmf->page)->__annonCompField46.private, vmf->virtual_address); } else { } tmp___2 = ldv__builtin_expect((cfio->fault.ft_flags & 512U) == 0U, 0L); if (tmp___2 != 0L) { lock_page(vmf->page); cfio->fault.ft_flags = cfio->fault.ft_flags | 512U; } else { } cfio->ft_vmpage = vmf->page; return (0); } else { } if ((cfio->fault.ft_flags & 66U) != 0U) { tmp___3 = cfs_cdebug_show(32768U, 128U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___0.msg_fn = "vvp_io_kernel_fault"; msgdata___0.msg_line = 631; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32768; libcfs_debug_msg(& msgdata___0, "got addr %p - SIGBUS\n", vmf->virtual_address); } else { } return (-14); } else { } if ((int )cfio->fault.ft_flags & 1) { tmp___4 = cfs_cdebug_show(32768U, 128U); if (tmp___4 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___1.msg_fn = "vvp_io_kernel_fault"; msgdata___1.msg_line = 636; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 32768; libcfs_debug_msg(& msgdata___1, "got addr %p - OOM\n", vmf->virtual_address); } else { } return (-12); } else { } if ((cfio->fault.ft_flags & 1024U) != 0U) { return (-11); } else { } tmp___5 = cfs_cdebug_show(131072U, 128U); if (tmp___5 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___2.msg_fn = "vvp_io_kernel_fault"; msgdata___2.msg_line = 643; msgdata___2.msg_cdls = & cdls; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "Unknown error in page fault %d!\n", cfio->fault.ft_flags); } else { } return (-22); } } static int vvp_io_fault_start(struct lu_env const *env , struct cl_io_slice const *ios ) { struct vvp_io *vio ; struct vvp_io *tmp ; struct cl_io *io ; struct cl_object *obj ; struct inode *inode ; struct inode *tmp___0 ; struct cl_fault_io *fio ; struct vvp_fault_io *cfio ; loff_t offset ; int result ; struct page *vmpage ; struct cl_page *page ; loff_t size ; unsigned long last ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; struct lu_fid const *tmp___1 ; struct lu_fid const *tmp___2 ; struct lu_fid const *tmp___3 ; int tmp___4 ; loff_t tmp___5 ; struct libcfs_debug_msg_data __msg_data ; unsigned long tmp___6 ; long 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 ; int tmp___11 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___12 ; loff_t tmp___13 ; int tmp___14 ; long tmp___15 ; unsigned long last_index ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___16 ; long tmp___17 ; bool tmp___18 ; struct ccc_page *cp ; struct cl_page_slice const *tmp___19 ; struct ccc_object *tmp___20 ; struct libcfs_debug_msg_data __msg_data___2 ; int tmp___21 ; long tmp___22 ; int tmp___23 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___24 ; loff_t tmp___25 ; { tmp = cl2vvp_io(env, ios); vio = tmp; io = ios->cis_io; obj = io->ci_obj; tmp___0 = ccc_object_inode((struct cl_object const *)obj); inode = tmp___0; fio = & io->u.ci_fault; cfio = & vio->u.fault; result = 0; vmpage = (struct page *)0; if (fio->ft_executable != 0 && inode->i_mtime.tv_sec != vio->u.fault.ft_mtime) { tmp___4 = cfs_cdebug_show(1024U, 128U); if (tmp___4 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata.msg_fn = "vvp_io_fault_start"; msgdata.msg_line = 668; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; tmp___1 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); tmp___2 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); tmp___3 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); libcfs_debug_msg(& msgdata, "binary [%#llx:0x%x:0x%x] changed while waiting for the page fault lock\n", tmp___3->f_seq, tmp___2->f_oid, tmp___1->f_ver); } else { } } else { } tmp___5 = cl_offset((struct cl_object const *)obj, fio->ft_index + 1UL); offset = tmp___5 + -1LL; tmp___6 = cl_index((struct cl_object const *)obj, offset); tmp___7 = ldv__builtin_expect(tmp___6 != fio->ft_index, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data.msg_fn = "vvp_io_fault_start"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 672; __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_index(obj, offset) == fio->ft_index"); lbug_with_loc(& __msg_data); } else { } result = ccc_prep_size(env, obj, io, 0LL, (size_t )(offset + 1LL), (int *)0); if (result != 0) { return (result); } else { } if (fio->ft_mkwrite != 0) { tmp___8 = ldv__builtin_expect((unsigned long )cfio->ft_vmpage == (unsigned long )((struct page *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data___0.msg_fn = "vvp_io_fault_start"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 679; __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 *)"cfio->ft_vmpage != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } lock_page(cfio->ft_vmpage); } else { result = vvp_io_kernel_fault(cfio); if (result != 0) { return (result); } else { } } vmpage = cfio->ft_vmpage; tmp___9 = PageLocked((struct page const *)vmpage); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data___1.msg_fn = "vvp_io_fault_start"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 688; __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 *)"PageLocked(vmpage)"); lbug_with_loc(& __msg_data___1); } else { } tmp___11 = cfs_fail_check_set___0(5121U, 0U, 0, 0); if (tmp___11 != 0) { ll_invalidate_page(vmpage); } else { } size = i_size_read((struct inode const *)inode); if ((unsigned long )vmpage->__annonCompField36.mapping != (unsigned long )inode->i_mapping) { tmp___14 = 1; } else { tmp___13 = page_offset(vmpage); if (tmp___13 > size) { tmp___14 = 1; } else { tmp___14 = 0; } } tmp___15 = ldv__builtin_expect((long )tmp___14, 0L); if (tmp___15 != 0L) { tmp___12 = cfs_cdebug_show(32768U, 128U); if (tmp___12 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___0.msg_fn = "vvp_io_fault_start"; msgdata___0.msg_line = 698; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32768; libcfs_debug_msg(& msgdata___0, "llite: fault and truncate race happened!\n"); } else { } result = 1; goto out; } else { } if (fio->ft_mkwrite != 0) { last_index = cl_index((struct cl_object const *)obj, size + -1LL); if (fio->ft_index > last_index) { tmp___16 = cfs_cdebug_show(32768U, 128U); if (tmp___16 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___1.msg_fn = "vvp_io_fault_start"; msgdata___1.msg_line = 719; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 32768; libcfs_debug_msg(& msgdata___1, "llite: mkwrite and truncate race happened: %p: 0x%lx 0x%lx\n", vmpage->__annonCompField36.mapping, fio->ft_index, last_index); } else { } result = -61; goto out; } else { } } else { } page = cl_page_find(env, obj, fio->ft_index, vmpage, 1); tmp___18 = IS_ERR((void const *)page); if ((int )tmp___18) { tmp___17 = PTR_ERR((void const *)page); result = (int )tmp___17; goto out; } else { } if (fio->ft_mkwrite != 0) { wait_on_page_writeback(vmpage); tmp___23 = set_page_dirty(vmpage); if (tmp___23 != 0) { cl_page_assume(env, io, page); tmp___19 = cl_page_at((struct cl_page const *)page, (struct lu_device_type const *)(& vvp_device_type)); cp = cl2ccc_page(tmp___19); tmp___20 = cl2ccc((struct cl_object const *)obj); vvp_write_pending(tmp___20, cp); result = cl_page_cache_add(env, io, page, 1); tmp___21 = cl_page_is_owned((struct cl_page const *)page, (struct cl_io const *)io); tmp___22 = ldv__builtin_expect(tmp___21 == 0, 0L); if (tmp___22 != 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data___2.msg_fn = "vvp_io_fault_start"; __msg_data___2.msg_subsys = 128; __msg_data___2.msg_line = 759; __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 *)"cl_page_is_owned(page, io)"); lbug_with_loc(& __msg_data___2); } else { } vmpage = (struct page *)0; if (result < 0) { cl_page_unmap(env, io, page); cl_page_discard(env, io, page); cl_page_disown(env, io, page); cl_page_put(env, page); if (result == -122) { result = -28; } else { } goto out; } else { cl_page_disown(env, io, page); } } else { } } else { } last = cl_index((struct cl_object const *)obj, size + -1LL); tmp___24 = ldv__builtin_expect((long )(fio->ft_mkwrite != 0 && fio->ft_index > last), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data___3.msg_fn = "vvp_io_fault_start"; __msg_data___3.msg_subsys = 128; __msg_data___3.msg_line = 785; __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 *)"!fio->ft_mkwrite || fio->ft_index <= last"); lbug_with_loc(& __msg_data___3); } else { } if (fio->ft_index == last) { tmp___25 = cl_offset((struct cl_object const *)obj, fio->ft_index); fio->ft_nob = (int )((unsigned int )size - (unsigned int )tmp___25); } else { fio->ft_nob = cl_page_size((struct cl_object const *)obj); } lu_ref_add(& page->cp_reference, "fault", (void const *)io); fio->ft_page = page; out: ; if ((unsigned long )vmpage != (unsigned long )((struct page *)0)) { unlock_page(vmpage); } else { } cfio->fault.ft_flags = cfio->fault.ft_flags & 4294966783U; return (result); } } static int vvp_io_fsync_start(struct lu_env const *env , struct cl_io_slice const *ios ) { { return (0); } } static int vvp_io_read_page(struct lu_env const *env , struct cl_io_slice const *ios , struct cl_page_slice const *slice ) { struct cl_io *io ; struct cl_object *obj ; struct ccc_page *cp ; struct ccc_page *tmp ; struct cl_page *page ; struct inode *inode ; struct inode *tmp___0 ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___1 ; struct ll_file_data *fd ; struct ccc_io *tmp___2 ; struct ll_readahead_state *ras ; struct page *vmpage ; struct cl_2queue *queue ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp___3 ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___4 ; int tmp___5 ; { io = ios->cis_io; obj = slice->cpl_obj; tmp = cl2ccc_page(slice); cp = tmp; page = slice->cpl_page; tmp___0 = ccc_object_inode((struct cl_object const *)obj); inode = tmp___0; tmp___1 = ll_i2sbi(inode); sbi = tmp___1; tmp___2 = cl2ccc_io(env, ios); fd = tmp___2->cui_fd; ras = & fd->fd_ras; vmpage = cp->cpg_page; queue = & io->ci_queue; tmp___3 = ldv__builtin_expect((unsigned long )((struct cl_object *)slice->cpl_obj) != (unsigned long )obj, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data.msg_fn = "vvp_io_read_page"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 831; __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->cpl_obj == obj"); lbug_with_loc(& __msg_data); } else { } if (sbi->ll_ra_info.ra_max_pages_per_file != 0UL && sbi->ll_ra_info.ra_max_pages != 0UL) { ras_update(sbi, inode, ras, page->cp_index, (unsigned int )cp->cpg_defer_uptodate); } else { } rc = cl_page_is_under_lock(env, io, page); if (rc != -16) { 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata.msg_fn = "vvp_io_read_page"; msgdata.msg_subsys = 128; msgdata.msg_line = 843; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 1024; tmp___5 = cfs_cdebug_show(1024U, 128U); if (tmp___5 != 0) { cl_page_header_print(env, (void *)(& msgdata), & lu_cdebug_printer, (struct cl_page const *)page); tmp___4 = cfs_cdebug_show(1024U, 128U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___0.msg_fn = "vvp_io_read_page"; msgdata___0.msg_line = 843; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 1024; libcfs_debug_msg(& msgdata___0, "%s: %d\n", rc == -61 ? (char *)"without a lock" : (char *)"match failed", rc); } else { } } else { } if (rc != -61) { return (rc); } else { } } else { } if (cp->cpg_defer_uptodate != 0) { cp->cpg_ra_used = 1; cl_page_export(env, page, 1); } else { } cl_2queue_add(queue, page); if (sbi->ll_ra_info.ra_max_pages_per_file != 0UL && sbi->ll_ra_info.ra_max_pages != 0UL) { ll_readahead(env, io, ras, vmpage->__annonCompField36.mapping, & queue->c2_qin, (int )fd->fd_flags); } else { } return (0); } } static int vvp_page_sync_io(struct lu_env const *env , struct cl_io *io , struct cl_page *page , struct ccc_page *cp , enum cl_req_type crt ) { struct cl_2queue *queue ; int result ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___0 ; long tmp___1 ; { tmp = ldv__builtin_expect((long )((unsigned int )io->ci_type != 0U && (unsigned int )io->ci_type != 1U), 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data.msg_fn = "vvp_page_sync_io"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 872; __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 *)"io->ci_type == CIT_READ || io->ci_type == CIT_WRITE"); lbug_with_loc(& __msg_data); } else { } queue = & io->ci_queue; cl_2queue_init_page(queue, page); result = cl_io_submit_sync(env, io, crt, queue, 0L); tmp___0 = cl_page_is_owned((struct cl_page const *)page, (struct cl_io const *)io); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data___0.msg_fn = "vvp_page_sync_io"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 878; __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 *)"cl_page_is_owned(page, io)"); lbug_with_loc(& __msg_data___0); } else { } if ((unsigned int )crt == 0U) { cl_page_list_disown(env, io, & queue->c2_qin); } else { } cl_2queue_fini(env, queue); return (result); } } static int vvp_io_prepare_partial(struct lu_env const *env , struct cl_io *io , struct cl_object *obj , struct cl_page *pg , struct ccc_page *cp , unsigned int from , unsigned int to ) { struct cl_attr *attr ; struct cl_attr *tmp ; loff_t offset ; loff_t tmp___0 ; int result ; char *kaddr ; void *tmp___1 ; int tmp___2 ; { tmp = ccc_env_thread_attr(env); attr = tmp; tmp___0 = cl_offset((struct cl_object const *)obj, pg->cp_index); offset = tmp___0; cl_object_attr_lock(obj); result = cl_object_attr_get(env, obj, attr); cl_object_attr_unlock(obj); if (result == 0) { if (attr->cat_kms <= offset) { tmp___1 = kmap_atomic(cp->cpg_page); kaddr = (char *)tmp___1; tmp___2 = cl_page_size((struct cl_object const *)obj); memset((void *)kaddr, 0, (size_t )tmp___2); __kunmap_atomic((void *)kaddr); } else if (cp->cpg_defer_uptodate != 0) { cp->cpg_ra_used = 1; } else { result = vvp_page_sync_io(env, io, pg, cp, 0); } if (result == 0) { cl_page_export(env, pg, 1); } else { } } else { } return (result); } } static int vvp_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 cl_object *obj ; struct ccc_page *cp ; struct ccc_page *tmp ; struct cl_page *pg ; struct page *vmpage ; int result ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; struct inode *tmp___2 ; long tmp___3 ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___4 ; int tmp___5 ; 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 msgdata___4 ; int tmp___8 ; int tmp___9 ; int tmp___10 ; { obj = slice->cpl_obj; tmp = cl2ccc_page(slice); cp = tmp; pg = slice->cpl_page; vmpage = cp->cpg_page; tmp___0 = cl_page_is_vmlocked(env, (struct cl_page const *)pg); 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data.msg_fn = "vvp_io_prepare_write"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 947; __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_page_is_vmlocked(env, pg)"); lbug_with_loc(& __msg_data); } else { } tmp___2 = ccc_object_inode((struct cl_object const *)obj); tmp___3 = ldv__builtin_expect((unsigned long )(vmpage->__annonCompField36.mapping)->host != (unsigned long )tmp___2, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data___0.msg_fn = "vvp_io_prepare_write"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 948; __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 *)"vmpage->mapping->host == ccc_object_inode(obj)"); lbug_with_loc(& __msg_data___0); } else { } 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata.msg_fn = "vvp_io_prepare_write"; msgdata.msg_subsys = 128; msgdata.msg_line = 952; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 32768; tmp___5 = cfs_cdebug_show(32768U, 128U); if (tmp___5 != 0) { cl_page_header_print(env, (void *)(& msgdata), & lu_cdebug_printer, (struct cl_page const *)pg); tmp___4 = cfs_cdebug_show(32768U, 128U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___0.msg_fn = "vvp_io_prepare_write"; msgdata___0.msg_line = 952; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 32768; libcfs_debug_msg(& msgdata___0, "preparing: [%d, %d]\n", from, to); } else { } } else { } tmp___10 = PageUptodate(vmpage); if (tmp___10 == 0) { if (from == 0U && to == 4096U) { 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___1.msg_fn = "vvp_io_prepare_write"; msgdata___1.msg_subsys = 128; msgdata___1.msg_line = 959; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 32768; tmp___7 = cfs_cdebug_show(32768U, 128U); if (tmp___7 != 0) { cl_page_header_print(env, (void *)(& msgdata___1), & lu_cdebug_printer, (struct cl_page const *)pg); tmp___6 = cfs_cdebug_show(32768U, 128U); if (tmp___6 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___2.msg_fn = "vvp_io_prepare_write"; msgdata___2.msg_line = 959; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 32768; libcfs_debug_msg(& msgdata___2, "full page write\n"); } else { } } else { } } else { result = vvp_io_prepare_partial(env, ios->cis_io, obj, pg, cp, from, to); } } else { 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___3.msg_fn = "vvp_io_prepare_write"; msgdata___3.msg_subsys = 128; msgdata___3.msg_line = 965; msgdata___3.msg_mask = 0; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 32768; tmp___9 = cfs_cdebug_show(32768U, 128U); if (tmp___9 != 0) { cl_page_header_print(env, (void *)(& msgdata___3), & lu_cdebug_printer, (struct cl_page const *)pg); tmp___8 = cfs_cdebug_show(32768U, 128U); if (tmp___8 != 0) { msgdata___4.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___4.msg_fn = "vvp_io_prepare_write"; msgdata___4.msg_line = 965; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 32768; libcfs_debug_msg(& msgdata___4, "uptodate\n"); } else { } } else { } } return (result); } } static int vvp_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 cl_object *obj ; struct cl_io *io ; struct ccc_page *cp ; struct ccc_page *tmp ; struct cl_page *pg ; struct inode *inode ; struct inode *tmp___0 ; struct ll_sb_info *sbi ; struct ll_sb_info *tmp___1 ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___2 ; struct page *vmpage ; int result ; int tallyop ; loff_t size ; struct libcfs_debug_msg_data __msg_data ; int tmp___3 ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___5 ; struct libcfs_debug_msg_data msgdata ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___6 ; int tmp___7 ; struct libcfs_debug_msg_data msgdata___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___8 ; int tmp___9 ; struct ccc_object *tmp___10 ; unsigned long last_index ; loff_t tmp___11 ; bool need_clip ; int size_to ; loff_t tmp___12 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___13 ; int tmp___14 ; loff_t tmp___15 ; struct libcfs_debug_msg_data msgdata___4 ; struct lu_fid const *tmp___16 ; struct lu_fid const *tmp___17 ; struct lu_fid const *tmp___18 ; int tmp___19 ; loff_t tmp___20 ; loff_t tmp___21 ; { obj = slice->cpl_obj; io = ios->cis_io; tmp = cl2ccc_page(slice); cp = tmp; pg = slice->cpl_page; tmp___0 = ccc_object_inode((struct cl_object const *)obj); inode = tmp___0; tmp___1 = ll_i2sbi(inode); sbi = tmp___1; tmp___2 = ll_i2info(inode); lli = tmp___2; vmpage = cp->cpg_page; tmp___3 = cl_page_is_vmlocked(env, (struct cl_page const *)pg); tmp___4 = ldv__builtin_expect(tmp___3 == 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data.msg_fn = "vvp_io_commit_write"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 987; __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_page_is_vmlocked(env, pg)"); lbug_with_loc(& __msg_data); } else { } tmp___5 = ldv__builtin_expect((unsigned long )(vmpage->__annonCompField36.mapping)->host != (unsigned long )inode, 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; __msg_data___0.msg_fn = "vvp_io_commit_write"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 988; __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 *)"vmpage->mapping->host == inode"); lbug_with_loc(& __msg_data___0); } 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata.msg_fn = "vvp_io_commit_write"; msgdata.msg_subsys = 128; msgdata.msg_line = 990; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2; tmp___7 = cfs_cdebug_show(2U, 128U); if (tmp___7 != 0) { lu_object_header_print(env, (void *)(& msgdata), & lu_cdebug_printer, (struct lu_object_header const *)obj->co_lu.lo_header); lu_cdebug_printer(env, (void *)(& msgdata), "\n"); tmp___6 = cfs_cdebug_show(2U, 128U); if (tmp___6 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___0.msg_fn = "vvp_io_commit_write"; msgdata___0.msg_line = 990; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 2; libcfs_debug_msg(& msgdata___0, "committing page write\n"); } else { } } 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___1.msg_fn = "vvp_io_commit_write"; msgdata___1.msg_subsys = 128; msgdata___1.msg_line = 991; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 32768; tmp___9 = cfs_cdebug_show(32768U, 128U); if (tmp___9 != 0) { cl_page_header_print(env, (void *)(& msgdata___1), & lu_cdebug_printer, (struct cl_page const *)pg); tmp___8 = cfs_cdebug_show(32768U, 128U); if (tmp___8 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___2.msg_fn = "vvp_io_commit_write"; msgdata___2.msg_line = 991; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 32768; libcfs_debug_msg(& msgdata___2, "committing: [%d, %d]\n", from, to); } else { } } else { } tmp___14 = PageDirty((struct page const *)vmpage); if (tmp___14 == 0) { tallyop = 1; result = cl_page_cache_add(env, io, pg, 1); if (result == 0) { set_page_dirty(vmpage); tmp___10 = cl2ccc((struct cl_object const *)obj); vvp_write_pending(tmp___10, cp); } else if (result == -122) { tmp___11 = i_size_read((struct inode const *)inode); last_index = (unsigned long )(tmp___11 >> 12); need_clip = 1; if (pg->cp_index < last_index) { to = 4096U; need_clip = 0; } else if (pg->cp_index == last_index) { tmp___12 = i_size_read((struct inode const *)inode); size_to = (int )tmp___12 & 4095; if ((unsigned int )size_to > to) { to = (unsigned int )size_to; } else { } } else { } if ((int )need_clip) { cl_page_clip(env, pg, 0, (int )to); } else { } result = vvp_page_sync_io(env, io, pg, cp, 1); if (result != 0) { tmp___13 = cfs_cdebug_show(131072U, 128U); if (tmp___13 != 0) { msgdata___3.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___3.msg_fn = "vvp_io_commit_write"; msgdata___3.msg_line = 1051; msgdata___3.msg_cdls = & cdls; msgdata___3.msg_mask = 131072; libcfs_debug_msg(& msgdata___3, "Write page %lu of inode %p failed %d\n", pg->cp_index, inode, result); } else { } } else { } } else { } } else { tallyop = 0; result = 0; } ll_stats_ops_tally(sbi, tallyop, 1); if (result == 0) { spin_lock(& lli->lli_lock); lli->lli_flags = lli->lli_flags | 16U; spin_unlock(& lli->lli_lock); } else { } tmp___15 = cl_offset((struct cl_object const *)obj, pg->cp_index); size = tmp___15 + (loff_t )to; ll_inode_size_lock(inode); if (result == 0) { tmp___20 = i_size_read((struct inode const *)inode); if (tmp___20 < size) { cl_isize_write_nolock(inode, size); tmp___19 = cfs_cdebug_show(2097152U, 128U); if (tmp___19 != 0) { msgdata___4.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___4.msg_fn = "vvp_io_commit_write"; msgdata___4.msg_line = 1081; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 2097152; tmp___16 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); tmp___17 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); tmp___18 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); libcfs_debug_msg(& msgdata___4, "[%#llx:0x%x:0x%x] updating i_size %lu\n", tmp___18->f_seq, tmp___17->f_oid, tmp___16->f_ver, (unsigned long )size); } else { } } else { } cl_page_export(env, pg, 1); } else { tmp___21 = i_size_read((struct inode const *)inode); if (tmp___21 < size) { cl_page_discard(env, io, pg); } else { } } ll_inode_size_unlock(inode); return (result); } } static struct cl_io_operations const vvp_io_ops = {{{0, 0, & vvp_io_read_lock, 0, & vvp_io_read_start, 0, & ccc_io_advance, & vvp_io_read_fini}, {0, 0, & vvp_io_write_lock, 0, & vvp_io_write_start, 0, & ccc_io_advance, & vvp_io_fini}, {& vvp_io_setattr_iter_init, 0, & vvp_io_setattr_lock, 0, & vvp_io_setattr_start, & vvp_io_setattr_end, 0, & vvp_io_setattr_fini}, {& vvp_io_fault_iter_init, 0, & vvp_io_fault_lock, 0, & vvp_io_fault_start, & ccc_io_end, 0, & vvp_io_fault_fini}, {0, 0, 0, 0, & vvp_io_fsync_start, 0, 0, & vvp_io_fini}, {0, 0, 0, 0, 0, 0, 0, & vvp_io_fini}}, {{0}, {0}}, & vvp_io_read_page, & vvp_io_prepare_write, & vvp_io_commit_write, 0}; int vvp_io_init(struct lu_env const *env , struct cl_object *obj , struct cl_io *io ) { struct vvp_io *vio ; struct vvp_io *tmp ; struct ccc_io *cio ; struct ccc_io *tmp___0 ; struct inode *inode ; struct inode *tmp___1 ; int result ; struct libcfs_debug_msg_data msgdata ; struct lu_fid const *tmp___2 ; struct lu_fid const *tmp___3 ; struct lu_fid const *tmp___4 ; int tmp___5 ; struct ccc_io *__foo_io ; size_t count ; struct ll_inode_info *lli ; struct ll_inode_info *tmp___6 ; int tmp___7 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; struct lu_fid const *tmp___8 ; struct lu_fid const *tmp___9 ; struct lu_fid const *tmp___10 ; char *tmp___11 ; int tmp___12 ; { tmp = vvp_env_io(env); vio = tmp; tmp___0 = ccc_env_io(env); cio = tmp___0; tmp___1 = ccc_object_inode((struct cl_object const *)obj); inode = tmp___1; tmp___5 = cfs_cdebug_show(2097152U, 128U); if (tmp___5 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata.msg_fn = "vvp_io_init"; msgdata.msg_line = 1147; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; tmp___2 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); tmp___3 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); tmp___4 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); libcfs_debug_msg(& msgdata, "[%#llx:0x%x:0x%x] ignore/verify layout %d/%d, layout version %d restore needed %d\n", tmp___4->f_seq, tmp___3->f_oid, tmp___2->f_ver, (int )io->ci_ignore_layout, (int )io->ci_verify_layout, cio->cui_layout_gen, (int )io->ci_restore_needed); } else { } __foo_io = cio; switch (42) { case 1: ; case 0: ; goto ldv_68534; } ldv_68534: memset((void *)(& __foo_io->cui_cl) + 1U, 0, 120UL); cl_io_slice_add(io, & cio->cui_cl, obj, & vvp_io_ops); vio->cui_ra_window_set = 0; result = 0; if ((unsigned int )io->ci_type == 0U || (unsigned int )io->ci_type == 1U) { tmp___6 = ll_i2info(inode); lli = tmp___6; count = io->u.ci_rw.crw_count; if (count == 0UL) { result = 1; } else { cio->cui_tot_count = count; } lustre_get_jobid((char *)(& lli->u.f.f_jobid)); } else if ((unsigned int )io->ci_type == 2U) { tmp___7 = cl_io_is_trunc((struct cl_io const *)io); if (tmp___7 == 0) { io->ci_lockreq = 0; } else { } } else { } if ((unsigned int )io->ci_type == 5U && (unsigned int )*((unsigned char *)io + 244UL) == 0U) { io->ci_ignore_layout = 1U; } else { } if (result == 0 && (unsigned int )*((unsigned char *)io + 244UL) == 0U) { result = ll_layout_refresh(inode, & cio->cui_layout_gen); if (result == -2) { result = 0; } else { } if (result < 0) { tmp___12 = cfs_cdebug_show(131072U, 128U); if (tmp___12 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_io.c"; msgdata___0.msg_fn = "vvp_io_init"; msgdata___0.msg_line = 1197; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; tmp___8 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); tmp___9 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); tmp___10 = lu_object_fid((struct lu_object const *)(& obj->co_lu)); tmp___11 = ll_get_fsname(inode->i_sb, (char *)0, 0); libcfs_debug_msg(& msgdata___0, "%s: refresh file layout [%#llx:0x%x:0x%x] error %d.\n", tmp___11, tmp___10->f_seq, tmp___9->f_oid, tmp___8->f_ver, result); } else { } } else { } } else { } return (result); } } static struct vvp_io *cl2vvp_io(struct lu_env const *env , struct cl_io_slice const *slice ) { struct vvp_io *tmp ; { cl2ccc_io(env, slice); tmp = vvp_env_io(env); return (tmp); } } extern int ldv_release_34(void) ; extern int ldv_probe_34(void) ; void ldv_initialize_cl_io_operations_34(void) { void *tmp ; void *tmp___0 ; void *tmp___1 ; { tmp = ldv_init_zalloc(56UL); vvp_io_ops_group0 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(40UL); vvp_io_ops_group1 = (struct cl_io_slice const *)tmp___0; tmp___1 = ldv_init_zalloc(40UL); vvp_io_ops_group2 = (struct cl_page_slice const *)tmp___1; return; } } void ldv_main_exported_34(void) { unsigned int ldvarg306 ; unsigned int ldvarg309 ; unsigned int ldvarg308 ; unsigned int ldvarg307 ; int tmp ; { ldv_memset((void *)(& ldvarg306), 0, 4UL); ldv_memset((void *)(& ldvarg309), 0, 4UL); ldv_memset((void *)(& ldvarg308), 0, 4UL); ldv_memset((void *)(& ldvarg307), 0, 4UL); tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_state_variable_34 == 2) { vvp_io_prepare_write(vvp_io_ops_group0, vvp_io_ops_group1, vvp_io_ops_group2, ldvarg308, ldvarg309); ldv_state_variable_34 = 2; } else { } goto ldv_68558; case 1: ; if (ldv_state_variable_34 == 2) { vvp_io_read_page(vvp_io_ops_group0, vvp_io_ops_group1, vvp_io_ops_group2); ldv_state_variable_34 = 2; } else { } goto ldv_68558; case 2: ; if (ldv_state_variable_34 == 1) { vvp_io_commit_write(vvp_io_ops_group0, vvp_io_ops_group1, vvp_io_ops_group2, ldvarg306, ldvarg307); ldv_state_variable_34 = 1; } else { } if (ldv_state_variable_34 == 2) { vvp_io_commit_write(vvp_io_ops_group0, vvp_io_ops_group1, vvp_io_ops_group2, ldvarg306, ldvarg307); ldv_state_variable_34 = 2; } else { } goto ldv_68558; case 3: ; if (ldv_state_variable_34 == 2) { ldv_release_34(); ldv_state_variable_34 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_68558; case 4: ; if (ldv_state_variable_34 == 1) { ldv_probe_34(); ldv_state_variable_34 = 2; ref_cnt = ref_cnt + 1; } else { } goto ldv_68558; default: ldv_stop(); } ldv_68558: ; return; } } int ldv_pskb_expand_head_941(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_943(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_945(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_946(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_947(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_948(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_949(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_950(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_951(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 void spin_lock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; struct sk_buff *ldv_skb_clone_980(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_988(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_982(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_978(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_986(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_987(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_983(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_984(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_985(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; __inline static void ll_layout_version_set___0(struct ll_inode_info *lli , __u32 gen ) { { spin_lock(& lli->lli_layout_lock); lli->lli_layout_gen = gen; spin_unlock(& lli->lli_layout_lock); return; } } static int vvp_object_print(struct lu_env const *env , void *cookie , int (*p)(struct lu_env const * , void * , char const * , ...) , struct lu_object const *o ) { struct ccc_object *obj ; struct ccc_object *tmp ; struct inode *inode ; struct ll_inode_info *lli ; int tmp___0 ; int tmp___1 ; int tmp___2 ; { tmp = lu2ccc(o); obj = tmp; inode = obj->cob_inode; tmp___0 = atomic_read((atomic_t const *)(& obj->cob_mmap_cnt)); tmp___1 = list_empty((struct list_head const *)(& obj->cob_pending_list)); (*p)(env, cookie, "(%s %d %d) inode: %p ", tmp___1 != 0 ? (char *)"-" : (char *)"+", obj->cob_transient_pages, tmp___0, inode); if ((unsigned long )inode != (unsigned long )((struct inode *)0)) { lli = ll_i2info(inode); tmp___2 = atomic_read((atomic_t const *)(& inode->i_count)); (*p)(env, cookie, "%lu/%u %o %u %d %p [%#llx:0x%x:0x%x]", inode->i_ino, inode->i_generation, (int )inode->i_mode, inode->__annonCompField66.i_nlink, tmp___2, lli->lli_clob, lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver); } else { } return (0); } } static int vvp_attr_get(struct lu_env const *env , struct cl_object *obj , struct cl_attr *attr ) { struct inode *inode ; struct inode *tmp ; { tmp = ccc_object_inode((struct cl_object const *)obj); inode = tmp; attr->cat_size = i_size_read((struct inode const *)inode); attr->cat_mtime = inode->i_mtime.tv_sec; attr->cat_atime = inode->i_atime.tv_sec; attr->cat_ctime = inode->i_ctime.tv_sec; attr->cat_blocks = (__u64 )inode->i_blocks; attr->cat_uid = from_kuid(& init_user_ns, inode->i_uid); attr->cat_gid = from_kgid(& init_user_ns, inode->i_gid); return (0); } } static int vvp_attr_set(struct lu_env const *env , struct cl_object *obj , struct cl_attr const *attr , unsigned int valid ) { struct inode *inode ; struct inode *tmp ; { tmp = ccc_object_inode((struct cl_object const *)obj); inode = tmp; if ((valid & 128U) != 0U) { inode->i_uid = make_kuid(& init_user_ns, attr->cat_uid); } else { } if ((valid & 256U) != 0U) { inode->i_gid = make_kgid(& init_user_ns, attr->cat_gid); } else { } if ((valid & 16U) != 0U) { inode->i_atime.tv_sec = attr->cat_atime; } else { } if ((valid & 8U) != 0U) { inode->i_mtime.tv_sec = attr->cat_mtime; } else { } if ((valid & 32U) != 0U) { inode->i_ctime.tv_sec = attr->cat_ctime; } else { } return (0); } } static int vvp_conf_set(struct lu_env const *env , struct cl_object *obj , struct cl_object_conf const *conf ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___2 ; { tmp = ll_i2info(conf->coc_inode); lli = tmp; if ((int )conf->coc_opc == 1) { tmp___0 = cfs_cdebug_show(2097152U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_object.c"; msgdata.msg_fn = "vvp_conf_set"; msgdata.msg_line = 130; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 2097152; libcfs_debug_msg(& msgdata, "[%#llx:0x%x:0x%x]: losing layout lock\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver); } else { } ll_layout_version_set___0(lli, 4294967294U); unmap_mapping_range((conf->coc_inode)->i_mapping, 0LL, -1LL, 0); return (0); } else { } if ((int )conf->coc_opc != 0) { return (0); } else { } if ((unsigned long )conf->u.coc_md != (unsigned long )((struct lustre_md */* const */)0) && (unsigned long )(conf->u.coc_md)->lsm != (unsigned long )((struct lov_stripe_md *)0)) { tmp___1 = cfs_cdebug_show(2097152U, 128U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_object.c"; msgdata___0.msg_fn = "vvp_conf_set"; msgdata___0.msg_line = 154; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 2097152; libcfs_debug_msg(& msgdata___0, "[%#llx:0x%x:0x%x]: layout version change: %u -> %u\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, lli->lli_layout_gen, (int )((conf->u.coc_md)->lsm)->lsm_wire.lw_layout_gen); } else { } lli->lli_has_smd = lsm_has_objects((conf->u.coc_md)->lsm); ll_layout_version_set___0(lli, (__u32 )((conf->u.coc_md)->lsm)->lsm_wire.lw_layout_gen); } else { tmp___2 = cfs_cdebug_show(2097152U, 128U); if (tmp___2 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_object.c"; msgdata___1.msg_fn = "vvp_conf_set"; msgdata___1.msg_line = 160; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 2097152; libcfs_debug_msg(& msgdata___1, "[%#llx:0x%x:0x%x]: layout nuked: %u.\n", lli->lli_fid.f_seq, lli->lli_fid.f_oid, lli->lli_fid.f_ver, lli->lli_layout_gen); } else { } lli->lli_has_smd = 0; ll_layout_version_set___0(lli, 4294967295U); } return (0); } } static struct cl_object_operations const vvp_ops = {& vvp_page_init, & vvp_lock_init, & vvp_io_init, & vvp_attr_get, & vvp_attr_set, & vvp_conf_set, & ccc_object_glimpse}; static struct lu_object_operations const vvp_lu_obj_ops = {& ccc_object_init, 0, 0, & ccc_object_free, 0, & vvp_object_print, 0}; struct ccc_object *cl_inode2ccc(struct inode *inode ) { struct ll_inode_info *lli ; struct ll_inode_info *tmp ; struct cl_object *obj ; struct lu_object *lu ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; struct ccc_object *tmp___2 ; { tmp = ll_i2info(inode); lli = tmp; obj = lli->lli_clob; tmp___0 = ldv__builtin_expect((unsigned long )obj == (unsigned long )((struct cl_object *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_object.c"; __msg_data.msg_fn = "cl_inode2ccc"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 190; __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 *)"obj != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } lu = lu_object_locate(obj->co_lu.lo_header, (struct lu_device_type const *)(& vvp_device_type)); tmp___1 = ldv__builtin_expect((unsigned long )lu == (unsigned long )((struct lu_object *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/vvp_object.c"; __msg_data___0.msg_fn = "cl_inode2ccc"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 192; __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 *)"lu != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } tmp___2 = lu2ccc((struct lu_object const *)lu); return (tmp___2); } } struct lu_object *vvp_object_alloc(struct lu_env const *env , struct lu_object_header const *hdr , struct lu_device *dev ) { struct lu_object *tmp ; { tmp = ccc_object_alloc(env, hdr, dev, & vvp_ops, & vvp_lu_obj_ops); return (tmp); } } void ldv_initialize_lu_object_operations_32(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(56UL); vvp_lu_obj_ops_group0 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(40UL); vvp_lu_obj_ops_group1 = (struct lu_object *)tmp___0; return; } } void ldv_initialize_cl_object_operations_33(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(56UL); vvp_ops_group1 = (struct lu_env const *)tmp; tmp___0 = ldv_init_zalloc(56UL); vvp_ops_group0 = (struct cl_object *)tmp___0; return; } } void ldv_main_exported_33(void) { struct page *ldvarg2 ; void *tmp ; struct cl_attr *ldvarg9 ; void *tmp___0 ; struct cl_object_conf *ldvarg10 ; void *tmp___1 ; struct ost_lvb *ldvarg4 ; void *tmp___2 ; struct cl_lock *ldvarg1 ; void *tmp___3 ; struct cl_io *ldvarg8 ; void *tmp___4 ; unsigned int ldvarg6 ; struct cl_object *ldvarg5 ; void *tmp___5 ; struct cl_io *ldvarg0 ; void *tmp___6 ; struct cl_page *ldvarg3 ; void *tmp___7 ; struct cl_attr *ldvarg7 ; void *tmp___8 ; int tmp___9 ; { tmp = ldv_init_zalloc(64UL); ldvarg2 = (struct page *)tmp; tmp___0 = ldv_init_zalloc(56UL); ldvarg9 = (struct cl_attr *)tmp___0; tmp___1 = ldv_init_zalloc(40UL); ldvarg10 = (struct cl_object_conf *)tmp___1; tmp___2 = ldv_init_zalloc(56UL); ldvarg4 = (struct ost_lvb *)tmp___2; tmp___3 = ldv_init_zalloc(456UL); ldvarg1 = (struct cl_lock *)tmp___3; tmp___4 = ldv_init_zalloc(256UL); ldvarg8 = (struct cl_io *)tmp___4; tmp___5 = ldv_init_zalloc(56UL); ldvarg5 = (struct cl_object *)tmp___5; tmp___6 = ldv_init_zalloc(256UL); ldvarg0 = (struct cl_io *)tmp___6; tmp___7 = ldv_init_zalloc(304UL); ldvarg3 = (struct cl_page *)tmp___7; tmp___8 = ldv_init_zalloc(56UL); ldvarg7 = (struct cl_attr *)tmp___8; ldv_memset((void *)(& ldvarg6), 0, 4UL); tmp___9 = __VERIFIER_nondet_int(); switch (tmp___9) { case 0: ; if (ldv_state_variable_33 == 1) { vvp_conf_set(vvp_ops_group1, vvp_ops_group0, (struct cl_object_conf const *)ldvarg10); ldv_state_variable_33 = 1; } else { } goto ldv_68239; case 1: ; if (ldv_state_variable_33 == 1) { vvp_attr_get(vvp_ops_group1, vvp_ops_group0, ldvarg9); ldv_state_variable_33 = 1; } else { } goto ldv_68239; case 2: ; if (ldv_state_variable_33 == 1) { vvp_io_init(vvp_ops_group1, vvp_ops_group0, ldvarg8); ldv_state_variable_33 = 1; } else { } goto ldv_68239; case 3: ; if (ldv_state_variable_33 == 1) { vvp_attr_set(vvp_ops_group1, vvp_ops_group0, (struct cl_attr const *)ldvarg7, ldvarg6); ldv_state_variable_33 = 1; } else { } goto ldv_68239; case 4: ; if (ldv_state_variable_33 == 1) { ccc_object_glimpse(vvp_ops_group1, (struct cl_object const *)ldvarg5, ldvarg4); ldv_state_variable_33 = 1; } else { } goto ldv_68239; case 5: ; if (ldv_state_variable_33 == 1) { vvp_page_init(vvp_ops_group1, vvp_ops_group0, ldvarg3, ldvarg2); ldv_state_variable_33 = 1; } else { } goto ldv_68239; case 6: ; if (ldv_state_variable_33 == 1) { vvp_lock_init(vvp_ops_group1, vvp_ops_group0, ldvarg1, (struct cl_io const *)ldvarg0); ldv_state_variable_33 = 1; } else { } goto ldv_68239; default: ldv_stop(); } ldv_68239: ; return; } } void ldv_main_exported_32(void) { int (*ldvarg12)(struct lu_env * , void * , char const * , ...) ; void *ldvarg13 ; void *tmp ; struct lu_object_conf *ldvarg14 ; void *tmp___0 ; struct lu_object *ldvarg11 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(1UL); ldvarg13 = tmp; tmp___0 = ldv_init_zalloc(4UL); ldvarg14 = (struct lu_object_conf *)tmp___0; tmp___1 = ldv_init_zalloc(40UL); ldvarg11 = (struct lu_object *)tmp___1; ldv_memset((void *)(& ldvarg12), 0, 8UL); tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_32 == 1) { ccc_object_init(vvp_lu_obj_ops_group0, vvp_lu_obj_ops_group1, (struct lu_object_conf const *)ldvarg14); ldv_state_variable_32 = 1; } else { } goto ldv_68261; case 1: ; if (ldv_state_variable_32 == 1) { vvp_object_print(vvp_lu_obj_ops_group0, ldvarg13, (int (*)(struct lu_env const * , void * , char const * , ...))ldvarg12, (struct lu_object const *)ldvarg11); ldv_state_variable_32 = 1; } else { } goto ldv_68261; case 2: ; if (ldv_state_variable_32 == 1) { ccc_object_free(vvp_lu_obj_ops_group0, vvp_lu_obj_ops_group1); ldv_state_variable_32 = 1; } else { } goto ldv_68261; default: ldv_stop(); } ldv_68261: ; return; } } int ldv_pskb_expand_head_978(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_980(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_982(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_983(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_984(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_985(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_986(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_987(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_988(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 ) ; extern int snprintf(char * , size_t , char const * , ...) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR_OR_NULL(void const *ptr ) ; extern void __cmpxchg_wrong_size(void) ; __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 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 void spin_lock(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) ; extern int sysfs_create_link(struct kobject * , struct kobject * , char const * ) ; extern int kobject_init_and_add(struct kobject * , struct kobj_type * , struct kobject * , char const * , ...) ; extern void kobject_put(struct kobject * ) ; extern unsigned long totalram_pages ; extern int single_open(struct file * , int (*)(struct seq_file * , void * ) , void * ) ; struct sk_buff *ldv_skb_clone_1017(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_clone_1025(struct sk_buff *ldv_func_arg1 , gfp_t flags ) ; struct sk_buff *ldv_skb_copy_1019(struct sk_buff const *ldv_func_arg1 , gfp_t flags ) ; int ldv_pskb_expand_head_1015(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_1023(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; int ldv_pskb_expand_head_1024(struct sk_buff *ldv_func_arg1 , int ldv_func_arg2 , int ldv_func_arg3 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_1020(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_1021(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; struct sk_buff *ldv___netdev_alloc_skb_1022(struct net_device *ldv_func_arg1 , unsigned int ldv_func_arg2 , gfp_t flags ) ; extern int lprocfs_write_frac_helper(char const * , unsigned long , int * , int ) ; extern int lprocfs_read_frac_helper(char * , unsigned long , long , int ) ; extern struct lprocfs_stats *lprocfs_alloc_stats(unsigned int , enum lprocfs_stats_flags ) ; extern void lprocfs_clear_stats(struct lprocfs_stats * ) ; extern void lprocfs_free_stats(struct lprocfs_stats ** ) ; extern void lprocfs_counter_init(struct lprocfs_stats * , int , unsigned int , char const * , char const * ) ; extern int ldebugfs_register_stats(struct dentry * , char const * , struct lprocfs_stats * ) ; extern int ldebugfs_add_vars(struct dentry * , struct lprocfs_vars * , void * ) ; extern struct dentry *ldebugfs_register(char const * , struct dentry * , struct lprocfs_vars * , void * ) ; extern void ldebugfs_remove(struct dentry ** ) ; extern int ldebugfs_seq_create(struct dentry * , char const * , umode_t , struct file_operations const * , void * ) ; 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 int lprocfs_single_release(struct inode * , struct file * ) ; extern struct sysfs_ops const lustre_sysfs_ops ; extern int cl_site_stats_print(struct cl_site const * , struct seq_file * ) ; static struct file_operations ll_rw_extents_stats_fops ; static struct file_operations ll_rw_extents_stats_pp_fops ; static struct file_operations ll_rw_offset_stats_fops ; static ssize_t blocksize_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; struct obd_statfs osfs ; int rc ; __u64 tmp ; int tmp___0 ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; tmp = cfs_time_shift_64(-1); rc = ll_statfs_internal(sbi->ll_sb, & osfs, tmp, 1U); if (rc == 0) { tmp___0 = sprintf(buf, "%u\n", osfs.os_bsize); return ((ssize_t )tmp___0); } else { } return ((ssize_t )rc); } } static struct lustre_attr lustre_attr_blocksize = {{"blocksize", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & blocksize_show, (ssize_t (*)(struct kobject * , struct attribute * , char const * , size_t ))0}; static ssize_t kbytestotal_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; struct obd_statfs osfs ; int rc ; __u64 tmp ; __u32 blk_size ; __u64 result ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; tmp = cfs_time_shift_64(-1); rc = ll_statfs_internal(sbi->ll_sb, & osfs, tmp, 1U); if (rc == 0) { blk_size = osfs.os_bsize >> 10; result = osfs.os_blocks; goto ldv_68209; ldv_68208: result = result << 1; ldv_68209: blk_size = blk_size >> 1; if (blk_size != 0U) { goto ldv_68208; } else { } rc = sprintf(buf, "%llu\n", result); } else { } return ((ssize_t )rc); } } static struct lustre_attr lustre_attr_kbytestotal = {{"kbytestotal", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & kbytestotal_show, (ssize_t (*)(struct kobject * , struct attribute * , char const * , size_t ))0}; static ssize_t kbytesfree_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; struct obd_statfs osfs ; int rc ; __u64 tmp ; __u32 blk_size ; __u64 result ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; tmp = cfs_time_shift_64(-1); rc = ll_statfs_internal(sbi->ll_sb, & osfs, tmp, 1U); if (rc == 0) { blk_size = osfs.os_bsize >> 10; result = osfs.os_bfree; goto ldv_68237; ldv_68236: result = result << 1; ldv_68237: blk_size = blk_size >> 1; if (blk_size != 0U) { goto ldv_68236; } else { } rc = sprintf(buf, "%llu\n", result); } else { } return ((ssize_t )rc); } } static struct lustre_attr lustre_attr_kbytesfree = {{"kbytesfree", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & kbytesfree_show, (ssize_t (*)(struct kobject * , struct attribute * , char const * , size_t ))0}; static ssize_t kbytesavail_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; struct obd_statfs osfs ; int rc ; __u64 tmp ; __u32 blk_size ; __u64 result ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; tmp = cfs_time_shift_64(-1); rc = ll_statfs_internal(sbi->ll_sb, & osfs, tmp, 1U); if (rc == 0) { blk_size = osfs.os_bsize >> 10; result = osfs.os_bavail; goto ldv_68265; ldv_68264: result = result << 1; ldv_68265: blk_size = blk_size >> 1; if (blk_size != 0U) { goto ldv_68264; } else { } rc = sprintf(buf, "%llu\n", result); } else { } return ((ssize_t )rc); } } static struct lustre_attr lustre_attr_kbytesavail = {{"kbytesavail", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & kbytesavail_show, (ssize_t (*)(struct kobject * , struct attribute * , char const * , size_t ))0}; static ssize_t filestotal_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; struct obd_statfs osfs ; int rc ; __u64 tmp ; int tmp___0 ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; tmp = cfs_time_shift_64(-1); rc = ll_statfs_internal(sbi->ll_sb, & osfs, tmp, 1U); if (rc == 0) { tmp___0 = sprintf(buf, "%llu\n", osfs.os_files); return ((ssize_t )tmp___0); } else { } return ((ssize_t )rc); } } static struct lustre_attr lustre_attr_filestotal = {{"filestotal", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & filestotal_show, (ssize_t (*)(struct kobject * , struct attribute * , char const * , size_t ))0}; static ssize_t filesfree_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; struct obd_statfs osfs ; int rc ; __u64 tmp ; int tmp___0 ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; tmp = cfs_time_shift_64(-1); rc = ll_statfs_internal(sbi->ll_sb, & osfs, tmp, 1U); if (rc == 0) { tmp___0 = sprintf(buf, "%llu\n", osfs.os_ffree); return ((ssize_t )tmp___0); } else { } return ((ssize_t )rc); } } static struct lustre_attr lustre_attr_filesfree = {{"filesfree", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & filesfree_show, (ssize_t (*)(struct kobject * , struct attribute * , char const * , size_t ))0}; static ssize_t client_type_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; tmp = sprintf(buf, "%s client\n", (sbi->ll_flags & 64) != 0 ? (char *)"remote" : (char *)"local"); return ((ssize_t )tmp); } } static struct lustre_attr lustre_attr_client_type = {{"client_type", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & client_type_show, (ssize_t (*)(struct kobject * , struct attribute * , char const * , size_t ))0}; static ssize_t fstype_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; tmp = sprintf(buf, "%s\n", ((sbi->ll_sb)->s_type)->name); return ((ssize_t )tmp); } } static struct lustre_attr lustre_attr_fstype = {{"fstype", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & fstype_show, (ssize_t (*)(struct kobject * , struct attribute * , char const * , size_t ))0}; static ssize_t uuid_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; tmp = sprintf(buf, "%s\n", (char *)(& sbi->ll_sb_uuid.uuid)); return ((ssize_t )tmp); } } static struct lustre_attr lustre_attr_uuid = {{"uuid", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & uuid_show, (ssize_t (*)(struct kobject * , struct attribute * , char const * , size_t ))0}; static int ll_site_stats_seq_show(struct seq_file *m , void *v ) { struct super_block *sb ; struct cl_site *tmp ; int tmp___0 ; { sb = (struct super_block *)m->private; tmp = lu2cl_site((struct lu_site const *)(((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi)->ll_site); tmp___0 = cl_site_stats_print((struct cl_site const *)tmp, m); return (tmp___0); } } static int ll_site_stats_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & ll_site_stats_seq_show, inode->i_private); return (tmp); } } static struct file_operations ll_site_stats_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, & ll_site_stats_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static ssize_t max_read_ahead_mb_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; long pages_number ; int mult ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; spin_lock(& sbi->ll_lock); pages_number = (long )sbi->ll_ra_info.ra_max_pages; spin_unlock(& sbi->ll_lock); mult = 256; tmp = lprocfs_read_frac_helper(buf, 4096UL, pages_number, mult); return ((ssize_t )tmp); } } static ssize_t max_read_ahead_mb_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int rc ; unsigned long pages_number ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; rc = kstrtoul(buffer, 10U, & pages_number); if (rc != 0) { return ((ssize_t )rc); } else { } pages_number = pages_number * 256UL; if (totalram_pages / 2UL < pages_number) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/lproc_llite.c"; msgdata.msg_fn = "max_read_ahead_mb_store"; msgdata.msg_line = 258; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "can\'t set file readahead more than %lu MB\n", totalram_pages >> 9); } else { } return (-34L); } else { } spin_lock(& sbi->ll_lock); sbi->ll_ra_info.ra_max_pages = pages_number; spin_unlock(& sbi->ll_lock); return ((ssize_t )count); } } static struct lustre_attr lustre_attr_max_read_ahead_mb = {{"max_read_ahead_mb", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & max_read_ahead_mb_show, & max_read_ahead_mb_store}; static ssize_t max_read_ahead_per_file_mb_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; long pages_number ; int mult ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; spin_lock(& sbi->ll_lock); pages_number = (long )sbi->ll_ra_info.ra_max_pages_per_file; spin_unlock(& sbi->ll_lock); mult = 256; tmp = lprocfs_read_frac_helper(buf, 4096UL, pages_number, mult); return ((ssize_t )tmp); } } static ssize_t max_read_ahead_per_file_mb_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int rc ; unsigned long pages_number ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; rc = kstrtoul(buffer, 10U, & pages_number); if (rc != 0) { return ((ssize_t )rc); } else { } if (sbi->ll_ra_info.ra_max_pages < pages_number) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/lproc_llite.c"; msgdata.msg_fn = "max_read_ahead_per_file_mb_store"; msgdata.msg_line = 303; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "can\'t set file readahead more than max_read_ahead_mb %lu MB\n", sbi->ll_ra_info.ra_max_pages); } else { } return (-34L); } else { } spin_lock(& sbi->ll_lock); sbi->ll_ra_info.ra_max_pages_per_file = pages_number; spin_unlock(& sbi->ll_lock); return ((ssize_t )count); } } static struct lustre_attr lustre_attr_max_read_ahead_per_file_mb = {{"max_read_ahead_per_file_mb", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & max_read_ahead_per_file_mb_show, & max_read_ahead_per_file_mb_store}; static ssize_t max_read_ahead_whole_mb_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; long pages_number ; int mult ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; spin_lock(& sbi->ll_lock); pages_number = (long )sbi->ll_ra_info.ra_max_read_ahead_whole_pages; spin_unlock(& sbi->ll_lock); mult = 256; tmp = lprocfs_read_frac_helper(buf, 4096UL, pages_number, mult); return ((ssize_t )tmp); } } static ssize_t max_read_ahead_whole_mb_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int rc ; unsigned long pages_number ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; rc = kstrtoul(buffer, 10U, & pages_number); if (rc != 0) { return ((ssize_t )rc); } else { } if (sbi->ll_ra_info.ra_max_pages_per_file < pages_number) { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/lproc_llite.c"; msgdata.msg_fn = "max_read_ahead_whole_mb_store"; msgdata.msg_line = 350; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "can\'t set max_read_ahead_whole_mb more than max_read_ahead_per_file_mb: %lu\n", sbi->ll_ra_info.ra_max_pages_per_file >> 8); } else { } return (-34L); } else { } spin_lock(& sbi->ll_lock); sbi->ll_ra_info.ra_max_read_ahead_whole_pages = pages_number; spin_unlock(& sbi->ll_lock); return ((ssize_t )count); } } static struct lustre_attr lustre_attr_max_read_ahead_whole_mb = {{"max_read_ahead_whole_mb", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & max_read_ahead_whole_mb_show, & max_read_ahead_whole_mb_store}; static int ll_max_cached_mb_seq_show(struct seq_file *m , void *v ) { struct super_block *sb ; struct ll_sb_info *sbi ; struct cl_client_cache *cache ; int shift ; int max_cached_mb ; int unused_mb ; int tmp ; int tmp___0 ; { sb = (struct super_block *)m->private; sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; cache = & sbi->ll_cache; shift = 8; max_cached_mb = (int )(cache->ccc_lru_max >> shift); tmp = atomic_read((atomic_t const *)(& cache->ccc_lru_left)); unused_mb = tmp >> shift; tmp___0 = atomic_read((atomic_t const *)(& cache->ccc_users)); seq_printf(m, "users: %d\nmax_cached_mb: %d\nused_mb: %d\nunused_mb: %d\nreclaim_count: %u\n", tmp___0, max_cached_mb, max_cached_mb - unused_mb, unused_mb, cache->ccc_lru_shrinkers); return (0); } } static ssize_t ll_max_cached_mb_seq_write(struct file *file , char const *buffer , size_t count , loff_t *off ) { struct super_block *sb ; struct ll_sb_info *sbi ; struct cl_client_cache *cache ; int mult ; int rc ; int pages_number ; int diff ; int nrpages ; char kernbuf[128U] ; unsigned long tmp ; char *tmp___0 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; char *tmp___1 ; int tmp___2 ; int tmp___3 ; int ov ; int nv ; long tmp___4 ; { sb = (struct super_block *)((struct seq_file *)file->private_data)->private; sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; cache = & sbi->ll_cache; diff = 0; nrpages = 0; 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), "max_cached_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 || (unsigned long )pages_number > totalram_pages) { tmp___2 = cfs_cdebug_show(131072U, 128U); if (tmp___2 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/lproc_llite.c"; msgdata.msg_fn = "ll_max_cached_mb_seq_write"; msgdata.msg_line = 416; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; tmp___1 = ll_get_fsname(sb, (char *)0, 0); libcfs_debug_msg(& msgdata, "%s: can\'t set max cache more than %lu MB\n", tmp___1, totalram_pages >> 8); } else { } return (-34L); } else { } spin_lock(& sbi->ll_lock); diff = (int )((unsigned int )pages_number - (unsigned int )cache->ccc_lru_max); spin_unlock(& sbi->ll_lock); if (diff >= 0) { atomic_add(diff, & cache->ccc_lru_left); rc = 0; goto out; } else { } diff = - diff; goto ldv_68546; ldv_68545: ; ldv_68543: ov = atomic_read((atomic_t const *)(& cache->ccc_lru_left)); if (ov == 0) { goto ldv_68542; } else { } nv = ov > diff ? ov - diff : 0; rc = atomic_cmpxchg(& cache->ccc_lru_left, ov, nv); tmp___4 = ldv__builtin_expect(ov == rc, 1L); if (tmp___4 != 0L) { diff = (nv - ov) + diff; nrpages = (ov - nv) + nrpages; goto ldv_68542; } else { } goto ldv_68543; ldv_68542: ; if (diff <= 0) { goto ldv_68544; } else { } if ((unsigned long )sbi->ll_dt_exp == (unsigned long )((struct obd_export *)0)) { rc = -19; goto ldv_68544; } else { } tmp___3 = diff << 1; rc = obd_set_info_async___0((struct lu_env const *)0, sbi->ll_dt_exp, 17U, (void *)"cache_lru_shrink", 4U, (void *)(& tmp___3), (struct ptlrpc_request_set *)0); if (rc < 0) { goto ldv_68544; } else { } ldv_68546: ; if (diff > 0) { goto ldv_68545; } else { } ldv_68544: ; out: ; if (rc >= 0) { spin_lock(& sbi->ll_lock); cache->ccc_lru_max = (unsigned long )pages_number; spin_unlock(& sbi->ll_lock); rc = (int )count; } else { atomic_add(nrpages, & cache->ccc_lru_left); } return ((ssize_t )rc); } } static int ll_max_cached_mb_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & ll_max_cached_mb_seq_show, inode->i_private); return (tmp); } } static struct file_operations ll_max_cached_mb_fops = {& __this_module, & seq_lseek, & seq_read, & ll_max_cached_mb_seq_write, 0, 0, 0, 0, 0, 0, 0, 0, & ll_max_cached_mb_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static ssize_t checksum_pages_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; tmp = sprintf(buf, "%u\n", (sbi->ll_flags & 2) != 0); return ((ssize_t )tmp); } } static ssize_t checksum_pages_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int rc ; unsigned long val ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; if ((unsigned long )sbi->ll_dt_exp == (unsigned long )((struct obd_export *)0)) { return (-11L); } else { } rc = kstrtoul(buffer, 10U, & val); if (rc != 0) { return ((ssize_t )rc); } else { } if (val != 0UL) { sbi->ll_flags = sbi->ll_flags | 2; } else { sbi->ll_flags = sbi->ll_flags & -3; } rc = obd_set_info_async___0((struct lu_env const *)0, sbi->ll_dt_exp, 9U, (void *)"checksum", 8U, (void *)(& val), (struct ptlrpc_request_set *)0); if (rc != 0) { tmp = cfs_cdebug_show(1024U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/lproc_llite.c"; msgdata.msg_fn = "checksum_pages_store"; msgdata.msg_line = 517; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "Failed to set OSC checksum flags: %d\n", rc); } else { } } else { } return ((ssize_t )count); } } static struct lustre_attr lustre_attr_checksum_pages = {{"checksum_pages", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & checksum_pages_show, & checksum_pages_store}; static ssize_t ll_rd_track_id(struct kobject *kobj , char *buf , enum stats_track_type type ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int tmp ; int tmp___0 ; int tmp___1 ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; if ((unsigned int )sbi->ll_stats_track_type == (unsigned int )type) { tmp = sprintf(buf, "%d\n", sbi->ll_stats_track_id); return ((ssize_t )tmp); } else if ((unsigned int )sbi->ll_stats_track_type == 0U) { tmp___0 = sprintf(buf, "0 (all)\n"); return ((ssize_t )tmp___0); } else { tmp___1 = sprintf(buf, "untracked\n"); return ((ssize_t )tmp___1); } } } static ssize_t ll_wr_track_id(struct kobject *kobj , char const *buffer , size_t count , enum stats_track_type type ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int rc ; unsigned long pid ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; rc = kstrtoul(buffer, 10U, & pid); if (rc != 0) { return ((ssize_t )rc); } else { } sbi->ll_stats_track_id = (int )pid; if (pid == 0UL) { sbi->ll_stats_track_type = 0; } else { sbi->ll_stats_track_type = type; } lprocfs_clear_stats(sbi->ll_stats); return ((ssize_t )count); } } static ssize_t stats_track_pid_show(struct kobject *kobj , struct attribute *attr , char *buf ) { ssize_t tmp ; { tmp = ll_rd_track_id(kobj, buf, 1); return (tmp); } } static ssize_t stats_track_pid_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { ssize_t tmp ; { tmp = ll_wr_track_id(kobj, buffer, count, 1); return (tmp); } } static struct lustre_attr lustre_attr_stats_track_pid = {{"stats_track_pid", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & stats_track_pid_show, & stats_track_pid_store}; static ssize_t stats_track_ppid_show(struct kobject *kobj , struct attribute *attr , char *buf ) { ssize_t tmp ; { tmp = ll_rd_track_id(kobj, buf, 2); return (tmp); } } static ssize_t stats_track_ppid_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { ssize_t tmp ; { tmp = ll_wr_track_id(kobj, buffer, count, 2); return (tmp); } } static struct lustre_attr lustre_attr_stats_track_ppid = {{"stats_track_ppid", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & stats_track_ppid_show, & stats_track_ppid_store}; static ssize_t stats_track_gid_show(struct kobject *kobj , struct attribute *attr , char *buf ) { ssize_t tmp ; { tmp = ll_rd_track_id(kobj, buf, 3); return (tmp); } } static ssize_t stats_track_gid_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { ssize_t tmp ; { tmp = ll_wr_track_id(kobj, buffer, count, 3); return (tmp); } } static struct lustre_attr lustre_attr_stats_track_gid = {{"stats_track_gid", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & stats_track_gid_show, & stats_track_gid_store}; static ssize_t statahead_max_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; tmp = sprintf(buf, "%u\n", sbi->ll_sa_max); return ((ssize_t )tmp); } } static ssize_t statahead_max_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int rc ; unsigned long val ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; rc = kstrtoul(buffer, 10U, & val); if (rc != 0) { return ((ssize_t )rc); } else { } if (val <= 8192UL) { sbi->ll_sa_max = (unsigned int )val; } else { tmp = cfs_cdebug_show(131072U, 128U); if (tmp != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/lproc_llite.c"; msgdata.msg_fn = "statahead_max_store"; msgdata.msg_line = 634; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Bad statahead_max value %lu. Valid values are in the range [0, %d]\n", val, 8192); } else { } } return ((ssize_t )count); } } static struct lustre_attr lustre_attr_statahead_max = {{"statahead_max", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & statahead_max_show, & statahead_max_store}; static ssize_t statahead_agl_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; tmp = sprintf(buf, "%u\n", (sbi->ll_flags & 32768) != 0); return ((ssize_t )tmp); } } static ssize_t statahead_agl_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int rc ; unsigned long val ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; rc = kstrtoul(buffer, 10U, & val); if (rc != 0) { return ((ssize_t )rc); } else { } if (val != 0UL) { sbi->ll_flags = sbi->ll_flags | 32768; } else { sbi->ll_flags = sbi->ll_flags & -32769; } return ((ssize_t )count); } } static struct lustre_attr lustre_attr_statahead_agl = {{"statahead_agl", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & statahead_agl_show, & statahead_agl_store}; static int ll_statahead_stats_seq_show(struct seq_file *m , void *v ) { struct super_block *sb ; struct ll_sb_info *sbi ; int tmp ; int tmp___0 ; int tmp___1 ; { sb = (struct super_block *)m->private; sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; tmp = atomic_read((atomic_t const *)(& sbi->ll_agl_total)); tmp___0 = atomic_read((atomic_t const *)(& sbi->ll_sa_wrong)); tmp___1 = atomic_read((atomic_t const *)(& sbi->ll_sa_total)); seq_printf(m, "statahead total: %u\nstatahead wrong: %u\nagl total: %u\n", tmp___1, tmp___0, tmp); return (0); } } static int ll_statahead_stats_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & ll_statahead_stats_seq_show, inode->i_private); return (tmp); } } static struct file_operations ll_statahead_stats_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, & ll_statahead_stats_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static ssize_t lazystatfs_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; tmp = sprintf(buf, "%u\n", (sbi->ll_flags & 2048) != 0); return ((ssize_t )tmp); } } static ssize_t lazystatfs_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int rc ; unsigned long val ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; rc = kstrtoul(buffer, 10U, & val); if (rc != 0) { return ((ssize_t )rc); } else { } if (val != 0UL) { sbi->ll_flags = sbi->ll_flags | 2048; } else { sbi->ll_flags = sbi->ll_flags & -2049; } return ((ssize_t )count); } } static struct lustre_attr lustre_attr_lazystatfs = {{"lazystatfs", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & lazystatfs_show, & lazystatfs_store}; static ssize_t max_easize_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; unsigned int ealen ; int rc ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; rc = ll_get_max_mdsize(sbi, (int *)(& ealen)); if (rc != 0) { return ((ssize_t )rc); } else { } tmp = sprintf(buf, "%u\n", ealen); return ((ssize_t )tmp); } } static struct lustre_attr lustre_attr_max_easize = {{"max_easize", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & max_easize_show, (ssize_t (*)(struct kobject * , struct attribute * , char const * , size_t ))0}; static ssize_t default_easize_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; unsigned int ealen ; int rc ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; rc = ll_get_default_mdsize(sbi, (int *)(& ealen)); if (rc != 0) { return ((ssize_t )rc); } else { } tmp = sprintf(buf, "%u\n", ealen); return ((ssize_t )tmp); } } static struct lustre_attr lustre_attr_default_easize = {{"default_easize", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & default_easize_show, (ssize_t (*)(struct kobject * , struct attribute * , char const * , size_t ))0}; static int ll_sbi_flags_seq_show(struct seq_file *m , void *v ) { char const *str[20U] ; struct super_block *sb ; int flags ; int i ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; char *tmp ; int tmp___0 ; { str[0] = "nolck"; str[1] = "checksum"; str[2] = "flock"; str[3] = "xattr"; str[4] = "acl"; str[5] = "???"; str[6] = "rmt_client"; str[7] = "mds_capa"; str[8] = "oss_capa"; str[9] = "flock"; str[10] = "lru_resize"; str[11] = "lazy_statfs"; str[12] = "som"; str[13] = "32bit_api"; str[14] = "64bit_hash"; str[15] = "agl"; str[16] = "verbose"; str[17] = "layout"; str[18] = "user_fid2path"; str[19] = "xattr"; sb = (struct super_block *)m->private; flags = (((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi)->ll_flags; i = 0; goto ldv_68848; ldv_68847: ; if ((unsigned int )i > 19U) { tmp___0 = cfs_cdebug_show(131072U, 128U); if (tmp___0 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/lproc_llite.c"; msgdata.msg_fn = "ll_sbi_flags_seq_show"; msgdata.msg_line = 766; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; tmp = ll_get_fsname(sb, (char *)0, 0); libcfs_debug_msg(& msgdata, "%s: Revise array LL_SBI_FLAGS to match sbi flags please.\n", tmp); } else { } return (-22); } else { } if (flags & 1) { seq_printf(m, "%s ", str[i]); } else { } flags = flags >> 1; i = i + 1; ldv_68848: ; if (flags != 0) { goto ldv_68847; } else { } seq_printf(m, "\b\n"); return (0); } } static int ll_sbi_flags_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & ll_sbi_flags_seq_show, inode->i_private); return (tmp); } } static struct file_operations ll_sbi_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, & ll_sbi_flags_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static ssize_t xattr_cache_show(struct kobject *kobj , struct attribute *attr , char *buf ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int tmp ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; tmp = sprintf(buf, "%u\n", (int )sbi->ll_xattr_cache_enabled); return ((ssize_t )tmp); } } static ssize_t xattr_cache_store(struct kobject *kobj , struct attribute *attr , char const *buffer , size_t count ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; int rc ; unsigned long val ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; rc = kstrtoul(buffer, 10U, & val); if (rc != 0) { return ((ssize_t )rc); } else { } if (val != 0UL && val != 1UL) { return (-34L); } else { } if (val == 1UL && (sbi->ll_flags & 524288) == 0) { return (-524L); } else { } sbi->ll_xattr_cache_enabled = (unsigned char )val; return ((ssize_t )count); } } static struct lustre_attr lustre_attr_xattr_cache = {{"xattr_cache", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & xattr_cache_show, & xattr_cache_store}; static struct lprocfs_vars lprocfs_llite_obd_vars[5U] = { {"site", & ll_site_stats_fops, (void *)0, 0U}, {"max_cached_mb", & ll_max_cached_mb_fops, (void *)0, (unsigned short)0}, {"statahead_stats", & ll_statahead_stats_fops, (void *)0, 0U}, {"sbi_flags", & ll_sbi_flags_fops, (void *)0, 0U}, {(char const *)0, 0, 0, (unsigned short)0}}; static struct attribute *llite_attrs[23U] = { & lustre_attr_blocksize.attr, & lustre_attr_kbytestotal.attr, & lustre_attr_kbytesfree.attr, & lustre_attr_kbytesavail.attr, & lustre_attr_filestotal.attr, & lustre_attr_filesfree.attr, & lustre_attr_client_type.attr, & lustre_attr_fstype.attr, & lustre_attr_uuid.attr, & lustre_attr_max_read_ahead_mb.attr, & lustre_attr_max_read_ahead_per_file_mb.attr, & lustre_attr_max_read_ahead_whole_mb.attr, & lustre_attr_checksum_pages.attr, & lustre_attr_stats_track_pid.attr, & lustre_attr_stats_track_ppid.attr, & lustre_attr_stats_track_gid.attr, & lustre_attr_statahead_max.attr, & lustre_attr_statahead_agl.attr, & lustre_attr_lazystatfs.attr, & lustre_attr_max_easize.attr, & lustre_attr_default_easize.attr, & lustre_attr_xattr_cache.attr, (struct attribute *)0}; static void llite_sb_release(struct kobject *kobj ) { struct ll_sb_info *sbi ; struct kobject const *__mptr ; { __mptr = (struct kobject const *)kobj; sbi = (struct ll_sb_info *)__mptr + 0xffffffffffffc038UL; complete(& sbi->ll_kobj_unregister); return; } } static struct kobj_type llite_ktype = {& llite_sb_release, & lustre_sysfs_ops, (struct attribute **)(& llite_attrs), 0, 0}; static struct llite_file_opcode const llite_opcode_table[35U] = { {0U, 256U, "dirty_pages_hits"}, {1U, 256U, "dirty_pages_misses"}, {2U, 514U, "read_bytes"}, {3U, 514U, "write_bytes"}, {4U, 1026U, "brw_read"}, {5U, 1026U, "brw_write"}, {6U, 514U, "osc_read"}, {7U, 514U, "osc_write"}, {8U, 256U, "ioctl"}, {9U, 256U, "open"}, {10U, 256U, "close"}, {11U, 256U, "mmap"}, {12U, 256U, "seek"}, {13U, 256U, "fsync"}, {14U, 256U, "readdir"}, {15U, 256U, "setattr"}, {16U, 256U, "truncate"}, {17U, 256U, "flock"}, {18U, 256U, "getattr"}, {19U, 256U, "create"}, {20U, 256U, "link"}, {21U, 256U, "unlink"}, {22U, 256U, "symlink"}, {23U, 256U, "mkdir"}, {24U, 256U, "rmdir"}, {25U, 256U, "mknod"}, {26U, 256U, "rename"}, {27U, 256U, "statfs"}, {28U, 256U, "alloc_inode"}, {29U, 256U, "setxattr"}, {30U, 256U, "getxattr"}, {31U, 256U, "getxattr_hits"}, {32U, 256U, "listxattr"}, {33U, 256U, "removexattr"}, {34U, 256U, "inode_permission"}}; void ll_stats_ops_tally(struct ll_sb_info *sbi , int op , int count ) { int tmp ; struct task_struct *tmp___0 ; gid_t tmp___1 ; struct task_struct *tmp___2 ; struct task_struct *tmp___3 ; { if ((unsigned long )sbi->ll_stats == (unsigned long )((struct lprocfs_stats *)0)) { return; } else { } if ((unsigned int )sbi->ll_stats_track_type == 0U) { lprocfs_counter_add(sbi->ll_stats, op, (long )count); } else if ((unsigned int )sbi->ll_stats_track_type == 1U) { tmp___3 = get_current(); if (sbi->ll_stats_track_id == tmp___3->pid) { lprocfs_counter_add(sbi->ll_stats, op, (long )count); } else { goto _L___0; } } else _L___0: /* CIL Label */ if ((unsigned int )sbi->ll_stats_track_type == 2U) { tmp___2 = get_current(); if (sbi->ll_stats_track_id == (tmp___2->real_parent)->pid) { lprocfs_counter_add(sbi->ll_stats, op, (long )count); } else { goto _L; } } else _L: /* CIL Label */ if ((unsigned int )sbi->ll_stats_track_type == 3U) { tmp = debug_lockdep_rcu_enabled(); tmp___0 = get_current(); tmp___1 = from_kgid(& init_user_ns, (tmp___0->cred)->gid); if ((gid_t )sbi->ll_stats_track_id == tmp___1) { lprocfs_counter_add(sbi->ll_stats, op, (long )count); } else { } } else { } return; } } static char const __kstrtab_ll_stats_ops_tally[19U] = { 'l', 'l', '_', 's', 't', 'a', 't', 's', '_', 'o', 'p', 's', '_', 't', 'a', 'l', 'l', 'y', '\000'}; struct kernel_symbol const __ksymtab_ll_stats_ops_tally ; struct kernel_symbol const __ksymtab_ll_stats_ops_tally = {(unsigned long )(& ll_stats_ops_tally), (char const *)(& __kstrtab_ll_stats_ops_tally)}; static char const *ra_stat_string[12U] = { "hits", "misses", "readpage not consecutive", "miss inside window", "failed grab_cache_page", "failed lock match", "read but discarded", "zero length file", "zero size window", "read-ahead to EOF", "hit max r-a issue", "wrong page from grab_cache_page"}; int ldebugfs_register_mountpoint(struct dentry *parent , struct super_block *sb , char *osc , char *mdc ) { struct lustre_sb_info *lsi ; struct ll_sb_info *sbi ; struct obd_device *obd ; struct dentry *dir ; char name[129U] ; char *ptr ; int err ; int id ; int len ; 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 ; size_t tmp___2 ; int tmp___3 ; long tmp___4 ; bool tmp___5 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___6 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___7 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___8 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___9 ; __u32 type ; void *ptr___0 ; { lsi = (struct lustre_sb_info *)sb->s_fs_info; sbi = ((struct lustre_sb_info *)sb->s_fs_info)->lsi_llsbi; name[128] = 0; tmp = ldv__builtin_expect((unsigned long )sbi == (unsigned long )((struct ll_sb_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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/lproc_llite.c"; __msg_data.msg_fn = "ldebugfs_register_mountpoint"; __msg_data.msg_subsys = 128; __msg_data.msg_line = 966; __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 *)"sbi != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect((unsigned long )mdc == (unsigned long )((char *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/lproc_llite.c"; __msg_data___0.msg_fn = "ldebugfs_register_mountpoint"; __msg_data___0.msg_subsys = 128; __msg_data___0.msg_line = 967; __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 *)"mdc != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } tmp___1 = ldv__builtin_expect((unsigned long )osc == (unsigned long )((char *)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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/lproc_llite.c"; __msg_data___1.msg_fn = "ldebugfs_register_mountpoint"; __msg_data___1.msg_subsys = 128; __msg_data___1.msg_line = 968; __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 != ((void *)0)"); lbug_with_loc(& __msg_data___1); } else { } tmp___2 = strlen((char const *)(lsi->lsi_lmd)->lmd_profile); len = (int )tmp___2; ptr = strrchr((char const *)(lsi->lsi_lmd)->lmd_profile, 45); if ((unsigned long )ptr != (unsigned long )((char *)0)) { tmp___3 = strcmp((char const *)ptr, "-client"); if (tmp___3 == 0) { len = len + -7; } else { } } else { } snprintf((char *)(& name), 128UL, "%.*s-%p", len, (lsi->lsi_lmd)->lmd_profile, sb); dir = ldebugfs_register((char const *)(& name), parent, (struct lprocfs_vars *)0, (void *)0); tmp___5 = IS_ERR_OR_NULL((void const *)dir); if ((int )tmp___5) { if ((unsigned long )dir != (unsigned long )((struct dentry *)0)) { tmp___4 = PTR_ERR((void const *)dir); err = (int )tmp___4; } else { err = -12; } sbi->ll_debugfs_entry = (struct dentry *)0; return (err); } else { } sbi->ll_debugfs_entry = dir; rc = ldebugfs_seq_create(sbi->ll_debugfs_entry, "dump_page_cache", 292, & vvp_dump_pgcache_file_ops, (void *)sbi); if (rc != 0) { tmp___6 = cfs_cdebug_show(1024U, 128U); if (tmp___6 != 0) { msgdata.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/lproc_llite.c"; msgdata.msg_fn = "ldebugfs_register_mountpoint"; msgdata.msg_line = 991; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "Error adding the dump_page_cache file\n"); } else { } } else { } rc = ldebugfs_seq_create(sbi->ll_debugfs_entry, "extents_stats", 420, (struct file_operations const *)(& ll_rw_extents_stats_fops), (void *)sbi); if (rc != 0) { tmp___7 = cfs_cdebug_show(1024U, 128U); if (tmp___7 != 0) { msgdata___0.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/lproc_llite.c"; msgdata___0.msg_fn = "ldebugfs_register_mountpoint"; msgdata___0.msg_line = 996; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 1024; libcfs_debug_msg(& msgdata___0, "Error adding the extent_stats file\n"); } else { } } else { } rc = ldebugfs_seq_create(sbi->ll_debugfs_entry, "extents_stats_per_process", 420, (struct file_operations const *)(& ll_rw_extents_stats_pp_fops), (void *)sbi); if (rc != 0) { tmp___8 = cfs_cdebug_show(1024U, 128U); if (tmp___8 != 0) { msgdata___1.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/lproc_llite.c"; msgdata___1.msg_fn = "ldebugfs_register_mountpoint"; msgdata___1.msg_line = 1002; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 1024; libcfs_debug_msg(& msgdata___1, "Error adding the extents_stats_per_process file\n"); } else { } } else { } rc = ldebugfs_seq_create(sbi->ll_debugfs_entry, "offset_stats", 420, (struct file_operations const *)(& ll_rw_offset_stats_fops), (void *)sbi); if (rc != 0) { tmp___9 = cfs_cdebug_show(1024U, 128U); if (tmp___9 != 0) { msgdata___2.msg_subsys = 128; 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/1903/dscv_tempdir/dscv/ri/43_2a/drivers/staging/lustre/lustre/llite/lproc_llite.c"; msgdata___2.msg_fn = "ldebugfs_register_mountpoint"; msgdata___2.msg_line = 1007; msgdata___2.msg_cdls = & cdls___2; msgdata___2.msg_mask = 1024; libcfs_debug_msg(& msgdata___2, "Error adding the offset_stats file\n"); } else { } } else { } sbi->ll_stats = lprocfs_alloc_stats(35U, 0); if ((unsigned long )sbi->ll_stats == (unsigned long )((struct lprocfs_stats *)0)) { err = -12; goto out; } else { } id = 0; goto ldv_68950; ldv_68949: type = llite_opcode_table[id].type; ptr___0 = (void *)0; if ((type & 256U) != 0U) { ptr___0 = (void *)"regs"; } else if ((type & 512U) != 0U) { ptr___0 = (void *)"bytes"; } else if ((type & 1024U) != 0U) { ptr___0 = (void *)"pages"; } else { } lprocfs_counter_init(sbi->ll_stats, (int )llite_opcode_table[id].opcode, type & 2U, llite_opcode_table[id].opname, (char const *)ptr___0); id = id + 1; ldv_68950: ; if (id <= 34) { goto ldv_68949; } else { } err = ldebugfs_register_stats(sbi->ll_debugfs_entry, "stats", sbi->ll_stats); if (err != 0) { goto out; } else { } sbi->ll_ra_stats = lprocfs_alloc_stats(12U, 0); if ((unsigned long )sbi->ll_ra_stats == (unsigned long )((struct lprocfs_stats *)0)) { err = -12; goto out; } else { } id = 0; goto ldv_68957; ldv_68956: lprocfs_counter_init(sbi->ll_ra_stats, id, 0U, ra_stat_string[id], "pages"); id = id + 1; ldv_68957: ; if ((unsigned int )id <= 11U) { goto ldv_68956; } else { } err = ldebugfs_register_stats(sbi->ll_debugfs_entry, "read_ahead_stats", sbi->ll_ra_stats); if (err != 0) { goto out; } else { } err = ldebugfs_add_vars(sbi->ll_debugfs_entry, (struct lprocfs_vars *)(& lprocfs_llite_obd_vars), (void *)sb); if (err != 0) { goto out; } else { } sbi->ll_kobj.kset = llite_kset; init_completion(& sbi->ll_kobj_unregister); err = kobject_init_and_add(& sbi->ll_kobj, & llite_ktype, (struct kobject *)0, "%s", (char *)(& name)); if (err != 0) { goto out; } else { } obd = class_name2obd((char const *)mdc); err = sysfs_create_link(& sbi->ll_kobj, & obd->obd_kobj, (char const *)(obd->obd_type)->typ_name); if (err != 0) { goto out; } else { } obd = class_name2obd((char const *)osc); err = sysfs_create_link(& sbi->ll_kobj, & obd->obd_kobj, (char const *)(obd->obd_type)->typ_name); out: ; if (err != 0) { ldebugfs_remove(& sbi->ll_debugfs_entry); lprocfs_free_stats(& sbi->ll_ra_stats); lprocfs_free_stats(& sbi->ll_stats); } else { } return (err); } } void ldebugfs_unregister_mountpoint(struct ll_sb_info *sbi ) { { if ((unsigned long )sbi->ll_debugfs_entry != (unsigned long )((struct dentry *)0)) { ldebugfs_remove(& sbi->ll_debugfs_entry); kobject_put(& sbi->ll_kobj); wait_for_completion(& sbi->ll_kobj_unregister); lprocfs_free_stats(& sbi->ll_ra_stats); lprocfs_free_stats(& sbi->ll_stats); } else { } return; } } static void ll_display_extents_info(struct ll_rw_extents_info *io_extents , struct seq_file *seq , int which ) { unsigned long read_tot ; unsigned long write_tot ; unsigned long read_cum ; unsigned long write_cum ; unsigned long start ; unsigned long end ; unsigned long r ; unsigned long w ; char *unitp ; int i ; int units ; struct per_process_info *pp_info ; { read_tot = 0UL; write_tot = 0UL; unitp = (char *)"KMGTPEZY"; units = 10; pp_info = (struct per_process_info *)(& io_extents->pp_extents) + (unsigned long )which; read_cum = 0UL; write_cum = 0UL; start = 0UL; i = 0; goto ldv_68980; ldv_68979: read_tot = pp_info->pp_r_hist.oh_buckets[i] + read_tot; write_tot = pp_info->pp_w_hist.oh_buckets[i] + write_tot; i = i + 1; ldv_68980: ; if (i <= 27) { goto ldv_68979; } else { } i = 0; goto ldv_68984; ldv_68983: r = pp_info->pp_r_hist.oh_buckets[i]; w = pp_info->pp_w_hist.oh_buckets[i]; read_cum = read_cum + r; write_cum = write_cum + w; end = (unsigned long )(1 << ((i + 12) - units)); seq_printf(seq, "%4lu%c - %4lu%c%c: %14lu %4lu %4lu | %14lu %4lu %4lu\n", start, (int )*unitp, end, (int )*unitp, i == 27 ? 43 : 32, 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); start = end; if (start == 1024UL) { start = 1UL; units = units + 10; unitp = unitp + 1; } else { } if (read_cum == read_tot && write_cum == write_tot) { goto ldv_68982; } else { } i = i + 1; ldv_68984: ; if (i <= 27) { goto ldv_68983; } else { } ldv_68982: ; return; } } static int ll_rw_extents_stats_pp_seq_show(struct seq_file *seq , void *v ) { struct timeval now ; struct ll_sb_info *sbi ; struct ll_rw_extents_info *io_extents ; int k ; { sbi = (struct ll_sb_info *)seq->private; io_extents = & sbi->ll_rw_extents_info; do_gettimeofday(& now); if (sbi->ll_rw_stats_on == 0) { seq_printf(seq, "disabled\nwrite anything in this file to activate, then 0 or \"[D/d]isabled\" to deactivate\n"); return (0); } else { } seq_printf(seq, "snapshot_time:\t %lu.%lu (secs.usecs)\n", now.tv_sec, (unsigned long )now.tv_usec); seq_printf(seq, "%15s %19s | %20s\n", (char *)" ", (char *)"read", (char *)"write"); seq_printf(seq, "%13s %14s %4s %4s | %14s %4s %4s\n", (char *)"extents", (char *)"calls", (char *)"%", (char *)"cum%", (char *)"calls", (char *)"%", (char *)"cum%"); spin_lock(& sbi->ll_pp_extent_lock); k = 0; goto ldv_68994; ldv_68993: ; if (io_extents->pp_extents[k].pid != 0) { seq_printf(seq, "\nPID: %d\n", io_extents->pp_extents[k].pid); ll_display_extents_info(io_extents, seq, k); } else { } k = k + 1; ldv_68994: ; if (k <= 9) { goto ldv_68993; } else { } spin_unlock(& sbi->ll_pp_extent_lock); return (0); } } static ssize_t ll_rw_extents_stats_pp_seq_write(struct file *file , char const *buf , size_t len , loff_t *off ) { struct seq_file *seq ; struct ll_sb_info *sbi ; struct ll_rw_extents_info *io_extents ; int i ; int value ; int rc ; char kernbuf[16U] ; unsigned long tmp ; int tmp___0 ; int tmp___1 ; { seq = (struct seq_file *)file->private_data; sbi = (struct ll_sb_info *)seq->private; io_extents = & sbi->ll_rw_extents_info; value = 1; rc = 0; if (len == 0UL) { return (-22L); } else { } rc = lprocfs_write_helper(buf, len, & value); if (rc < 0 && len <= 15UL) { tmp = copy_from_user((void *)(& kernbuf), (void const *)buf, len); if (tmp != 0UL) { return (-14L); } else { } kernbuf[len] = 0; if ((int )((signed char )kernbuf[len - 1UL]) == 10) { kernbuf[len - 1UL] = 0; } else { } tmp___0 = strcmp((char const *)(& kernbuf), "disabled"); if (tmp___0 == 0) { value = 0; } else { tmp___1 = strcmp((char const *)(& kernbuf), "Disabled"); if (tmp___1 == 0) { value = 0; } else { } } } else { } if (value == 0) { sbi->ll_rw_stats_on = 0; } else { sbi->ll_rw_stats_on = 1; } spin_lock(& sbi->ll_pp_extent_lock); i = 0; goto ldv_69010; ldv_69009: io_extents->pp_extents[i].pid = 0; lprocfs_oh_clear(& io_extents->pp_extents[i].pp_r_hist); lprocfs_oh_clear(& io_extents->pp_extents[i].pp_w_hist); i = i + 1; ldv_69010: ; if (i <= 9) { goto ldv_69009; } else { } spin_unlock(& sbi->ll_pp_extent_lock); return ((ssize_t )len); } } static int ll_rw_extents_stats_pp_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & ll_rw_extents_stats_pp_seq_show, inode->i_private); return (tmp); } } static struct file_operations ll_rw_extents_stats_pp_fops = {& __this_module, & seq_lseek, & seq_read, & ll_rw_extents_stats_pp_seq_write, 0, 0, 0, 0, 0, 0, 0, 0, & ll_rw_extents_stats_pp_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static int ll_rw_extents_stats_seq_show(struct seq_file *seq , void *v ) { struct timeval now ; struct ll_sb_info *sbi ; struct ll_rw_extents_info *io_extents ; { sbi = (struct ll_sb_info *)seq->private; io_extents = & sbi->ll_rw_extents_info; do_gettimeofday(& now); if (sbi->ll_rw_stats_on == 0) { seq_printf(seq, "disabled\nwrite anything in this file to activate, then 0 or \"[D/d]isabled\" to deactivate\n"); return (0); } else { } seq_printf(seq, "snapshot_time:\t %lu.%lu (secs.usecs)\n", now.tv_sec, (unsigned long )now.tv_usec); seq_printf(seq, "%15s %19s | %20s\n", (char *)" ", (char *)"read", (char *)"write"); seq_printf(seq, "%13s %14s %4s %4s | %14s %4s %4s\n", (char *)"extents", (char *)"calls", (char *)"%", (char *)"cum%", (char *)"calls", (char *)"%", (char *)"cum%"); spin_lock(& sbi->ll_lock); ll_display_extents_info(io_extents, seq, 10); spin_unlock(& sbi->ll_lock); return (0); } } static ssize_t ll_rw_extents_stats_seq_write(struct file *file , char const *buf , size_t len , loff_t *off ) { struct seq_file *seq ; struct ll_sb_info *sbi ; struct ll_rw_extents_info *io_extents ; int i ; int value ; int rc ; char kernbuf[16U] ; unsigned long tmp ; int tmp___0 ; int tmp___1 ; { seq = (struct seq_file *)file->private_data; sbi = (struct ll_sb_info *)seq->private; io_extents = & sbi->ll_rw_extents_info; value = 1; rc = 0; if (len == 0UL) { return (-22L); } else { } rc = lprocfs_write_helper(buf, len, & value); if (rc < 0 && len <= 15UL) { tmp = copy_from_user((void *)(& kernbuf), (void const *)buf, len); if (tmp != 0UL) { return (-14L); } else { } kernbuf[len] = 0; if ((int )((signed char )kernbuf[len - 1UL]) == 10) { kernbuf[len - 1UL] = 0; } else { } tmp___0 = strcmp((char const *)(& kernbuf), "disabled"); if (tmp___0 == 0) { value = 0; } else { tmp___1 = strcmp((char const *)(& kernbuf), "Disabled"); if (tmp___1 == 0) { value = 0; } else { } } } else { } if (value == 0) { sbi->ll_rw_stats_on = 0; } else { sbi->ll_rw_stats_on = 1; } spin_lock(& sbi->ll_pp_extent_lock); i = 0; goto ldv_69038; ldv_69037: io_extents->pp_extents[i].pid = 0; lprocfs_oh_clear(& io_extents->pp_extents[i].pp_r_hist); lprocfs_oh_clear(& io_extents->pp_extents[i].pp_w_hist); i = i + 1; ldv_69038: ; if (i <= 10) { goto ldv_69037; } else { } spin_unlock(& sbi->ll_pp_extent_lock); return ((ssize_t )len); } } static int ll_rw_extents_stats_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & ll_rw_extents_stats_seq_show, inode->i_private); return (tmp); } } static struct file_operations ll_rw_extents_stats_fops = {& __this_module, & seq_lseek, & seq_read, & ll_rw_extents_stats_seq_write, 0, 0, 0, 0, 0, 0, 0, 0, & ll_rw_extents_stats_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; void ll_rw_stats_tally(struct ll_sb_info *sbi , pid_t pid , struct ll_file_data *file , loff_t pos , size_t count , int rw ) { int i ; int cur ; struct ll_rw_process_info *process ; struct ll_rw_process_info *offset ; int *off_count ; int *process_count ; struct ll_rw_extents_info *io_extents ; { cur = -1; off_count = (int *)(& sbi->ll_rw_offset_entry_count); process_count = (int *)(& sbi->ll_offset_process_count); io_extents = & sbi->ll_rw_extents_info; if (sbi->ll_rw_stats_on == 0) { return; } else { } process = (struct ll_rw_process_info *)(& sbi->ll_rw_process_info); offset = (struct ll_rw_process_info *)(& sbi->ll_rw_offset_info); spin_lock(& sbi->ll_pp_extent_lock); i = 0; goto ldv_69062; ldv_69061: ; if (io_extents->pp_extents[i].pid == pid) { cur = i; goto ldv_69060; } else { } i = i + 1; ldv_69062: ; if (i <= 9) { goto ldv_69061; } else { } ldv_69060: ; if (cur == -1) { sbi->ll_extent_process_count = (sbi->ll_extent_process_count + 1) % 10; cur = sbi->ll_extent_process_count; io_extents->pp_extents[cur].pid = pid; lprocfs_oh_clear(& io_extents->pp_extents[cur].pp_r_hist); lprocfs_oh_clear(& io_extents->pp_extents[cur].pp_w_hist); } else { } i = 0; goto ldv_69064; ldv_69063: i = i + 1; ldv_69064: ; if ((size_t )(4096 << i) <= count && i <= 26) { goto ldv_69063; } else { } if (rw == 0) { io_extents->pp_extents[cur].pp_r_hist.oh_buckets[i] = io_extents->pp_extents[cur].pp_r_hist.oh_buckets[i] + 1UL; io_extents->pp_extents[10].pp_r_hist.oh_buckets[i] = io_extents->pp_extents[10].pp_r_hist.oh_buckets[i] + 1UL; } else { io_extents->pp_extents[cur].pp_w_hist.oh_buckets[i] = io_extents->pp_extents[cur].pp_w_hist.oh_buckets[i] + 1UL; io_extents->pp_extents[10].pp_w_hist.oh_buckets[i] = io_extents->pp_extents[10].pp_w_hist.oh_buckets[i] + 1UL; } spin_unlock(& sbi->ll_pp_extent_lock); spin_lock(& sbi->ll_process_lock); i = 0; goto ldv_69067; ldv_69066: ; if ((process + (unsigned long )i)->rw_pid == pid) { if ((unsigned long )(process + (unsigned long )i)->rw_last_file != (unsigned long )file) { (process + (unsigned long )i)->rw_range_start = pos; (process + (unsigned long )i)->rw_last_file_pos = (loff_t )((unsigned long long )pos + (unsigned long long )count); (process + (unsigned long )i)->rw_smallest_extent = count; (process + (unsigned long )i)->rw_largest_extent = count; (process + (unsigned long )i)->rw_offset = 0LL; (process + (unsigned long )i)->rw_last_file = file; spin_unlock(& sbi->ll_process_lock); return; } else { } if ((process + (unsigned long )i)->rw_last_file_pos != pos) { *off_count = (*off_count + 1) % 100; (offset + (unsigned long )*off_count)->rw_op = (process + (unsigned long )i)->rw_op; (offset + (unsigned long )*off_count)->rw_pid = pid; (offset + (unsigned long )*off_count)->rw_range_start = (process + (unsigned long )i)->rw_range_start; (offset + (unsigned long )*off_count)->rw_range_end = (process + (unsigned long )i)->rw_last_file_pos; (offset + (unsigned long )*off_count)->rw_smallest_extent = (process + (unsigned long )i)->rw_smallest_extent; (offset + (unsigned long )*off_count)->rw_largest_extent = (process + (unsigned long )i)->rw_largest_extent; (offset + (unsigned long )*off_count)->rw_offset = (process + (unsigned long )i)->rw_offset; (process + (unsigned long )i)->rw_op = rw; (process + (unsigned long )i)->rw_range_start = pos; (process + (unsigned long )i)->rw_smallest_extent = count; (process + (unsigned long )i)->rw_largest_extent = count; (process + (unsigned long )i)->rw_offset = pos - (process + (unsigned long )i)->rw_last_file_pos; } else { } if ((process + (unsigned long )i)->rw_smallest_extent > count) { (process + (unsigned long )i)->rw_smallest_extent = count; } else { } if ((process + (unsigned long )i)->rw_largest_extent < count) { (process + (unsigned long )i)->rw_largest_extent = count; } else { } (process + (unsigned long )i)->rw_last_file_pos = (loff_t )((unsigned long long )pos + (unsigned long long )count); spin_unlock(& sbi->ll_process_lock); return; } else { } i = i + 1; ldv_69067: ; if (i <= 9) { goto ldv_69066; } else { } *process_count = (*process_count + 1) % 10; (process + (unsigned long )*process_count)->rw_pid = pid; (process + (unsigned long )*process_count)->rw_op = rw; (process + (unsigned long )*process_count)->rw_range_start = pos; (process + (unsigned long )*process_count)->rw_last_file_pos = (loff_t )((unsigned long long )pos + (unsigned long long )count); (process + (unsigned long )*process_count)->rw_smallest_extent = count; (process + (unsigned long )*process_count)->rw_largest_extent = count; (process + (unsigned long )*process_count)->rw_offset = 0LL; (process + (unsigned long )*process_count)->rw_last_file = file; spin_unlock(& sbi->ll_process_lock); return; } } static int ll_rw_offset_stats_seq_show(struct seq_file *seq , void *v ) { struct timeval now ; struct ll_sb_info *sbi ; struct ll_rw_process_info *offset ; struct ll_rw_process_info *process ; int i ; { sbi = (struct ll_sb_info *)seq->private; offset = (struct ll_rw_process_info *)(& sbi->ll_rw_offset_info); process = (struct ll_rw_process_info *)(& sbi->ll_rw_process_info); do_gettimeofday(& now); if (sbi->ll_rw_stats_on == 0) { seq_printf(seq, "disabled\nwrite anything in this file to activate, then 0 or \"[D/d]isabled\" to deactivate\n"); return (0); } else { } spin_lock(& sbi->ll_process_lock); seq_printf(seq, "snapshot_time:\t %lu.%lu (secs.usecs)\n", now.tv_sec, (unsigned long )now.tv_usec); seq_printf(seq, "%3s %10s %14s %14s %17s %17s %14s\n", (char *)"R/W", (char *)"PID", (char *)"RANGE START", (char *)"RANGE END", (char *)"SMALLEST EXTENT", (char *)"LARGEST EXTENT", (char *)"OFFSET"); i = 0; goto ldv_69079; ldv_69078: ; if ((offset + (unsigned long )i)->rw_pid != 0) { seq_printf(seq, "%3c %10d %14Lu %14Lu %17lu %17lu %14Lu", (offset + (unsigned long )i)->rw_op == 0 ? 82 : 87, (offset + (unsigned long )i)->rw_pid, (offset + (unsigned long )i)->rw_range_start, (offset + (unsigned long )i)->rw_range_end, (offset + (unsigned long )i)->rw_smallest_extent, (offset + (unsigned long )i)->rw_largest_extent, (offset + (unsigned long )i)->rw_offset); } else { } i = i + 1; ldv_69079: ; if (i <= 99) { goto ldv_69078; } else { } i = 0; goto ldv_69082; ldv_69081: ; if ((process + (unsigned long )i)->rw_pid != 0) { seq_printf(seq, "%3c %10d %14Lu %14Lu %17lu %17lu %14Lu", (process + (unsigned long )i)->rw_op == 0 ? 82 : 87, (process + (unsigned long )i)->rw_pid, (process + (unsigned long )i)->rw_range_start, (process + (unsigned long )i)->rw_last_file_pos, (process + (unsigned long )i)->rw_smallest_extent, (process + (unsigned long )i)->rw_largest_extent, (process + (unsigned long )i)->rw_offset); } else { } i = i + 1; ldv_69082: ; if (i <= 9) { goto ldv_69081; } else { } spin_unlock(& sbi->ll_process_lock); return (0); } } static ssize_t ll_rw_offset_stats_seq_write(struct file *file , char const *buf , size_t len , loff_t *off ) { struct seq_file *seq ; struct ll_sb_info *sbi ; struct ll_rw_process_info *process_info ; struct ll_rw_process_info *offset_info ; int value ; int rc ; char kernbuf[16U] ; unsigned long tmp ; int tmp___0 ; int tmp___1 ; { seq = (struct seq_file *)file->private_data; sbi = (struct ll_sb_info *)seq->private; process_info = (struct ll_rw_process_info *)(& sbi->ll_rw_process_info); offset_info = (struct ll_rw_process_info *)(& sbi->ll_rw_offset_info); value = 1; rc = 0; if (len == 0UL) { return (-22L); } else { } rc = lprocfs_write_helper(buf, len, & value); if (rc < 0 && len <= 15UL) { tmp = copy_from_user((void *)(& kernbuf), (void const *)buf, len); if (tmp != 0UL) { return (-14L); } else { } kernbuf[len] = 0; if ((int )((signed char )kernbuf[len - 1UL]) == 10) { kernbuf[len - 1UL] = 0; } else { } tmp___0 = strcmp((char const *)(& kernbuf), "disabled"); if (tmp___0 == 0) { value = 0; } else { tmp___1 = strcmp((char const *)(& kernbuf), "Disabled"); if (tmp___1 == 0) { value = 0; } else { } } } else { } if (value == 0) { sbi->ll_rw_stats_on = 0; } else { sbi->ll_rw_stats_on = 1; } spin_lock(& sbi->ll_process_lock); sbi->ll_offset_process_count = 0U; sbi->ll_rw_offset_entry_count = 0U; memset((void *)process_info, 0, 640UL); memset((void *)offset_info, 0, 6400UL); spin_unlock(& sbi->ll_process_lock); return ((ssize_t )len); } } static int ll_rw_offset_stats_single_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & ll_rw_offset_stats_seq_show, inode->i_private); return (tmp); } } static struct file_operations ll_rw_offset_stats_fops = {& __this_module, & seq_lseek, & seq_read, & ll_rw_offset_stats_seq_write, 0, 0, 0, 0, 0, 0, 0, 0, & ll_rw_offset_stats_single_open, 0, & lprocfs_single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; void lprocfs_llite_init_vars(struct lprocfs_static_vars *lvars ) { { lvars->obd_vars = (struct lprocfs_vars *)(& lprocfs_llite_obd_vars); return; } } int ldv_retval_13 ; extern int ldv_probe_5(void) ; int ldv_retval_10 ; int ldv_retval_2 ; int ldv_retval_0 ; int ldv_retval_5 ; int ldv_retval_1 ; int ldv_retval_6 ; void ldv_file_operations_7(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); ll_sbi_flags_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); ll_sbi_flags_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_checksum_pages_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_checksum_pages_group1 = (struct attribute *)tmp___0; return; } } void ldv_initialize_lustre_attr_10(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_lazystatfs_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_lazystatfs_group1 = (struct attribute *)tmp___0; return; } } void ldv_file_operations_2(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); ll_rw_offset_stats_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); ll_rw_offset_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_max_read_ahead_per_file_mb_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_max_read_ahead_per_file_mb_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_stats_track_gid_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_stats_track_gid_group1 = (struct attribute *)tmp___0; return; } } void ldv_initialize_lustre_attr_6(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_xattr_cache_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_xattr_cache_group1 = (struct attribute *)tmp___0; return; } } void ldv_initialize_lustre_attr_12(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_statahead_agl_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_statahead_agl_group1 = (struct attribute *)tmp___0; return; } } void ldv_file_operations_22(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); ll_site_stats_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); ll_site_stats_fops_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_4(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); ll_rw_extents_stats_pp_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); ll_rw_extents_stats_pp_fops_group2 = (struct file *)tmp___0; return; } } void ldv_initialize_lustre_attr_16(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_stats_track_pid_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_stats_track_pid_group1 = (struct attribute *)tmp___0; return; } } void ldv_initialize_lustre_attr_13(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_statahead_max_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_statahead_max_group1 = (struct attribute *)tmp___0; return; } } void ldv_initialize_lustre_attr_21(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_max_read_ahead_mb_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_max_read_ahead_mb_group1 = (struct attribute *)tmp___0; return; } } void ldv_file_operations_3(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); ll_rw_extents_stats_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); ll_rw_extents_stats_fops_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_18(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); ll_max_cached_mb_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); ll_max_cached_mb_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_stats_track_ppid_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_stats_track_ppid_group1 = (struct attribute *)tmp___0; return; } } void ldv_file_operations_11(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); ll_statahead_stats_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); ll_statahead_stats_fops_group2 = (struct file *)tmp___0; return; } } void ldv_initialize_lustre_attr_19(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(296UL); lustre_attr_max_read_ahead_whole_mb_group0 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); lustre_attr_max_read_ahead_whole_mb_group1 = (struct attribute *)tmp___0; return; } } void ldv_main_exported_11(void) { int ldvarg152 ; size_t ldvarg155 ; char *ldvarg156 ; void *tmp ; loff_t ldvarg153 ; loff_t *ldvarg154 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg156 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg154 = (loff_t *)tmp___0; ldv_memset((void *)(& ldvarg152), 0, 4UL); ldv_memset((void *)(& ldvarg155), 0, 8UL); ldv_memset((void *)(& ldvarg153), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_11 == 1) { ldv_retval_5 = ll_statahead_stats_single_open(ll_statahead_stats_fops_group1, ll_statahead_stats_fops_group2); if (ldv_retval_5 == 0) { ldv_state_variable_11 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_69177; case 1: ; if (ldv_state_variable_11 == 2) { lprocfs_single_release(ll_statahead_stats_fops_group1, ll_statahead_stats_fops_group2); ldv_state_variable_11 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_69177; case 2: ; if (ldv_state_variable_11 == 2) { seq_read(ll_statahead_stats_fops_group2, ldvarg156, ldvarg155, ldvarg154); ldv_state_variable_11 = 2; } else { } goto ldv_69177; case 3: ; if (ldv_state_variable_11 == 2) { seq_lseek(ll_statahead_stats_fops_group2, ldvarg153, ldvarg152); ldv_state_variable_11 = 2; } else { } goto ldv_69177; default: ldv_stop(); } ldv_69177: ; return; } } void ldv_main_exported_21(void) { char *ldvarg15 ; void *tmp ; size_t ldvarg16 ; char *ldvarg17 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg15 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg17 = (char *)tmp___0; ldv_memset((void *)(& ldvarg16), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_21 == 1) { max_read_ahead_mb_store(lustre_attr_max_read_ahead_mb_group0, lustre_attr_max_read_ahead_mb_group1, (char const *)ldvarg17, ldvarg16); ldv_state_variable_21 = 1; } else { } goto ldv_69189; case 1: ; if (ldv_state_variable_21 == 1) { max_read_ahead_mb_show(lustre_attr_max_read_ahead_mb_group0, lustre_attr_max_read_ahead_mb_group1, ldvarg15); ldv_state_variable_21 = 1; } else { } goto ldv_69189; default: ldv_stop(); } ldv_69189: ; return; } } void ldv_main_exported_7(void) { loff_t ldvarg19 ; char *ldvarg22 ; void *tmp ; loff_t *ldvarg20 ; void *tmp___0 ; int ldvarg18 ; size_t ldvarg21 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg22 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg20 = (loff_t *)tmp___0; ldv_memset((void *)(& ldvarg19), 0, 8UL); ldv_memset((void *)(& ldvarg18), 0, 4UL); ldv_memset((void *)(& ldvarg21), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_7 == 1) { ldv_retval_0 = ll_sbi_flags_single_open(ll_sbi_flags_fops_group1, ll_sbi_flags_fops_group2); if (ldv_retval_0 == 0) { ldv_state_variable_7 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_69201; case 1: ; if (ldv_state_variable_7 == 2) { lprocfs_single_release(ll_sbi_flags_fops_group1, ll_sbi_flags_fops_group2); ldv_state_variable_7 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_69201; case 2: ; if (ldv_state_variable_7 == 2) { seq_read(ll_sbi_flags_fops_group2, ldvarg22, ldvarg21, ldvarg20); ldv_state_variable_7 = 2; } else { } goto ldv_69201; case 3: ; if (ldv_state_variable_7 == 2) { seq_lseek(ll_sbi_flags_fops_group2, ldvarg19, ldvarg18); ldv_state_variable_7 = 2; } else { } goto ldv_69201; default: ldv_stop(); } ldv_69201: ; return; } } void ldv_main_exported_26(void) { struct kobject *ldvarg23 ; void *tmp ; struct attribute *ldvarg25 ; void *tmp___0 ; char *ldvarg24 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(296UL); ldvarg23 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); ldvarg25 = (struct attribute *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg24 = (char *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_26 == 1) { filesfree_show(ldvarg23, ldvarg25, ldvarg24); ldv_state_variable_26 = 1; } else { } goto ldv_69213; default: ldv_stop(); } ldv_69213: ; return; } } void ldv_main_exported_17(void) { char *ldvarg28 ; void *tmp ; char *ldvarg26 ; void *tmp___0 ; size_t ldvarg27 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg28 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg26 = (char *)tmp___0; ldv_memset((void *)(& ldvarg27), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_17 == 1) { checksum_pages_store(lustre_attr_checksum_pages_group0, lustre_attr_checksum_pages_group1, (char const *)ldvarg28, ldvarg27); ldv_state_variable_17 = 1; } else { } goto ldv_69222; case 1: ; if (ldv_state_variable_17 == 1) { checksum_pages_show(lustre_attr_checksum_pages_group0, lustre_attr_checksum_pages_group1, ldvarg26); ldv_state_variable_17 = 1; } else { } goto ldv_69222; default: ldv_stop(); } ldv_69222: ; return; } } void ldv_main_exported_2(void) { loff_t *ldvarg34 ; void *tmp ; char *ldvarg36 ; void *tmp___0 ; int ldvarg29 ; loff_t ldvarg30 ; char *ldvarg33 ; void *tmp___1 ; loff_t *ldvarg31 ; void *tmp___2 ; size_t ldvarg32 ; size_t ldvarg35 ; int tmp___3 ; { tmp = ldv_init_zalloc(8UL); ldvarg34 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg36 = (char *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg33 = (char *)tmp___1; tmp___2 = ldv_init_zalloc(8UL); ldvarg31 = (loff_t *)tmp___2; ldv_memset((void *)(& ldvarg29), 0, 4UL); ldv_memset((void *)(& ldvarg30), 0, 8UL); ldv_memset((void *)(& ldvarg32), 0, 8UL); ldv_memset((void *)(& ldvarg35), 0, 8UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_2 == 1) { ldv_retval_1 = ll_rw_offset_stats_single_open(ll_rw_offset_stats_fops_group1, ll_rw_offset_stats_fops_group2); if (ldv_retval_1 == 0) { ldv_state_variable_2 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_69237; case 1: ; if (ldv_state_variable_2 == 2) { lprocfs_single_release(ll_rw_offset_stats_fops_group1, ll_rw_offset_stats_fops_group2); ldv_state_variable_2 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_69237; case 2: ; if (ldv_state_variable_2 == 1) { ll_rw_offset_stats_seq_write(ll_rw_offset_stats_fops_group2, (char const *)ldvarg36, ldvarg35, ldvarg34); ldv_state_variable_2 = 1; } else { } if (ldv_state_variable_2 == 2) { ll_rw_offset_stats_seq_write(ll_rw_offset_stats_fops_group2, (char const *)ldvarg36, ldvarg35, ldvarg34); ldv_state_variable_2 = 2; } else { } goto ldv_69237; case 3: ; if (ldv_state_variable_2 == 2) { seq_read(ll_rw_offset_stats_fops_group2, ldvarg33, ldvarg32, ldvarg31); ldv_state_variable_2 = 2; } else { } goto ldv_69237; case 4: ; if (ldv_state_variable_2 == 2) { seq_lseek(ll_rw_offset_stats_fops_group2, ldvarg30, ldvarg29); ldv_state_variable_2 = 2; } else { } goto ldv_69237; default: ldv_stop(); } ldv_69237: ; return; } } void ldv_main_exported_22(void) { size_t ldvarg194 ; loff_t ldvarg192 ; loff_t *ldvarg193 ; void *tmp ; char *ldvarg195 ; void *tmp___0 ; int ldvarg191 ; int tmp___1 ; { tmp = ldv_init_zalloc(8UL); ldvarg193 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg195 = (char *)tmp___0; ldv_memset((void *)(& ldvarg194), 0, 8UL); ldv_memset((void *)(& ldvarg192), 0, 8UL); ldv_memset((void *)(& ldvarg191), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_22 == 1) { ldv_retval_6 = ll_site_stats_single_open(ll_site_stats_fops_group1, ll_site_stats_fops_group2); if (ldv_retval_6 == 0) { ldv_state_variable_22 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_69252; case 1: ; if (ldv_state_variable_22 == 2) { lprocfs_single_release(ll_site_stats_fops_group1, ll_site_stats_fops_group2); ldv_state_variable_22 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_69252; case 2: ; if (ldv_state_variable_22 == 2) { seq_read(ll_site_stats_fops_group2, ldvarg195, ldvarg194, ldvarg193); ldv_state_variable_22 = 2; } else { } goto ldv_69252; case 3: ; if (ldv_state_variable_22 == 2) { seq_lseek(ll_site_stats_fops_group2, ldvarg192, ldvarg191); ldv_state_variable_22 = 2; } else { } goto ldv_69252; default: ldv_stop(); } ldv_69252: ; return; } } void ldv_main_exported_18(void) { char *ldvarg44 ; void *tmp ; size_t ldvarg40 ; int ldvarg37 ; loff_t ldvarg38 ; loff_t *ldvarg42 ; void *tmp___0 ; size_t ldvarg43 ; char *ldvarg41 ; void *tmp___1 ; loff_t *ldvarg39 ; void *tmp___2 ; int tmp___3 ; { tmp = ldv_init_zalloc(1UL); ldvarg44 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg42 = (loff_t *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg41 = (char *)tmp___1; tmp___2 = ldv_init_zalloc(8UL); ldvarg39 = (loff_t *)tmp___2; ldv_memset((void *)(& ldvarg40), 0, 8UL); ldv_memset((void *)(& ldvarg37), 0, 4UL); ldv_memset((void *)(& ldvarg38), 0, 8UL); ldv_memset((void *)(& ldvarg43), 0, 8UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_18 == 1) { ldv_retval_2 = ll_max_cached_mb_single_open(ll_max_cached_mb_fops_group1, ll_max_cached_mb_fops_group2); if (ldv_retval_2 == 0) { ldv_state_variable_18 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_69269; case 1: ; if (ldv_state_variable_18 == 2) { lprocfs_single_release(ll_max_cached_mb_fops_group1, ll_max_cached_mb_fops_group2); ldv_state_variable_18 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_69269; case 2: ; if (ldv_state_variable_18 == 1) { ll_max_cached_mb_seq_write(ll_max_cached_mb_fops_group2, (char const *)ldvarg44, ldvarg43, ldvarg42); ldv_state_variable_18 = 1; } else { } if (ldv_state_variable_18 == 2) { ll_max_cached_mb_seq_write(ll_max_cached_mb_fops_group2, (char const *)ldvarg44, ldvarg43, ldvarg42); ldv_state_variable_18 = 2; } else { } goto ldv_69269; case 3: ; if (ldv_state_variable_18 == 2) { seq_read(ll_max_cached_mb_fops_group2, ldvarg41, ldvarg40, ldvarg39); ldv_state_variable_18 = 2; } else { } goto ldv_69269; case 4: ; if (ldv_state_variable_18 == 2) { seq_lseek(ll_max_cached_mb_fops_group2, ldvarg38, ldvarg37); ldv_state_variable_18 = 2; } else { } goto ldv_69269; default: ldv_stop(); } ldv_69269: ; return; } } void ldv_main_exported_30(void) { char *ldvarg46 ; void *tmp ; struct attribute *ldvarg47 ; void *tmp___0 ; struct kobject *ldvarg45 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(1UL); ldvarg46 = (char *)tmp; tmp___0 = ldv_init_zalloc(32UL); ldvarg47 = (struct attribute *)tmp___0; tmp___1 = ldv_init_zalloc(296UL); ldvarg45 = (struct kobject *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_30 == 1) { kbytestotal_show(ldvarg45, ldvarg47, ldvarg46); ldv_state_variable_30 = 1; } else { } goto ldv_69282; default: ldv_stop(); } ldv_69282: ; return; } } void ldv_main_exported_23(void) { struct attribute *ldvarg202 ; void *tmp ; char *ldvarg201 ; void *tmp___0 ; struct kobject *ldvarg200 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(32UL); ldvarg202 = (struct attribute *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg201 = (char *)tmp___0; tmp___1 = ldv_init_zalloc(296UL); ldvarg200 = (struct kobject *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_23 == 1) { uuid_show(ldvarg200, ldvarg202, ldvarg201); ldv_state_variable_23 = 1; } else { } goto ldv_69291; default: ldv_stop(); } ldv_69291: ; return; } } void ldv_main_exported_16(void) { char *ldvarg50 ; void *tmp ; size_t ldvarg49 ; char *ldvarg48 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg50 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg48 = (char *)tmp___0; ldv_memset((void *)(& ldvarg49), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_16 == 1) { stats_track_pid_store(lustre_attr_stats_track_pid_group0, lustre_attr_stats_track_pid_group1, (char const *)ldvarg50, ldvarg49); ldv_state_variable_16 = 1; } else { } goto ldv_69300; case 1: ; if (ldv_state_variable_16 == 1) { stats_track_pid_show(lustre_attr_stats_track_pid_group0, lustre_attr_stats_track_pid_group1, ldvarg48); ldv_state_variable_16 = 1; } else { } goto ldv_69300; default: ldv_stop(); } ldv_69300: ; return; } } void ldv_main_exported_13(void) { char *ldvarg199 ; void *tmp ; size_t ldvarg198 ; char *ldvarg197 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg199 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg197 = (char *)tmp___0; ldv_memset((void *)(& ldvarg198), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_13 == 1) { statahead_max_store(lustre_attr_statahead_max_group0, lustre_attr_statahead_max_group1, (char const *)ldvarg199, ldvarg198); ldv_state_variable_13 = 1; } else { } goto ldv_69310; case 1: ; if (ldv_state_variable_13 == 1) { statahead_max_show(lustre_attr_statahead_max_group0, lustre_attr_statahead_max_group1, ldvarg197); ldv_state_variable_13 = 1; } else { } goto ldv_69310; default: ldv_stop(); } ldv_69310: ; return; } } void ldv_main_exported_29(void) { struct attribute *ldvarg205 ; void *tmp ; struct kobject *ldvarg203 ; void *tmp___0 ; char *ldvarg204 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(32UL); ldvarg205 = (struct attribute *)tmp; tmp___0 = ldv_init_zalloc(296UL); ldvarg203 = (struct kobject *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg204 = (char *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_29 == 1) { kbytesfree_show(ldvarg203, ldvarg205, ldvarg204); ldv_state_variable_29 = 1; } else { } goto ldv_69320; default: ldv_stop(); } ldv_69320: ; return; } } void ldv_main_exported_27(void) { struct attribute *ldvarg72 ; void *tmp ; char *ldvarg71 ; void *tmp___0 ; struct kobject *ldvarg70 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(32UL); ldvarg72 = (struct attribute *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg71 = (char *)tmp___0; tmp___1 = ldv_init_zalloc(296UL); ldvarg70 = (struct kobject *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_27 == 1) { filestotal_show(ldvarg70, ldvarg72, ldvarg71); ldv_state_variable_27 = 1; } else { } goto ldv_69329; default: ldv_stop(); } ldv_69329: ; return; } } void ldv_main_exported_25(void) { struct attribute *ldvarg75 ; void *tmp ; char *ldvarg74 ; void *tmp___0 ; struct kobject *ldvarg73 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(32UL); ldvarg75 = (struct attribute *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg74 = (char *)tmp___0; tmp___1 = ldv_init_zalloc(296UL); ldvarg73 = (struct kobject *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_25 == 1) { client_type_show(ldvarg73, ldvarg75, ldvarg74); ldv_state_variable_25 = 1; } else { } goto ldv_69338; default: ldv_stop(); } ldv_69338: ; return; } } void ldv_main_exported_6(void) { char *ldvarg206 ; void *tmp ; size_t ldvarg207 ; char *ldvarg208 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg206 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg208 = (char *)tmp___0; ldv_memset((void *)(& ldvarg207), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_6 == 1) { xattr_cache_store(lustre_attr_xattr_cache_group0, lustre_attr_xattr_cache_group1, (char const *)ldvarg208, ldvarg207); ldv_state_variable_6 = 1; } else { } goto ldv_69347; case 1: ; if (ldv_state_variable_6 == 1) { xattr_cache_show(lustre_attr_xattr_cache_group0, lustre_attr_xattr_cache_group1, ldvarg206); ldv_state_variable_6 = 1; } else { } goto ldv_69347; default: ldv_stop(); } ldv_69347: ; return; } } void ldv_main_exported_28(void) { struct kobject *ldvarg76 ; void *tmp ; struct attribute *ldvarg78 ; void *tmp___0 ; char *ldvarg77 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(296UL); ldvarg76 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); ldvarg78 = (struct attribute *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg77 = (char *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_28 == 1) { kbytesavail_show(ldvarg76, ldvarg78, ldvarg77); ldv_state_variable_28 = 1; } else { } goto ldv_69357; default: ldv_stop(); } ldv_69357: ; return; } } void ldv_main_exported_3(void) { size_t ldvarg216 ; loff_t *ldvarg218 ; void *tmp ; loff_t *ldvarg215 ; void *tmp___0 ; char *ldvarg220 ; void *tmp___1 ; size_t ldvarg219 ; loff_t ldvarg214 ; char *ldvarg217 ; void *tmp___2 ; int ldvarg213 ; int tmp___3 ; { tmp = ldv_init_zalloc(8UL); ldvarg218 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg215 = (loff_t *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg220 = (char *)tmp___1; tmp___2 = ldv_init_zalloc(1UL); ldvarg217 = (char *)tmp___2; ldv_memset((void *)(& ldvarg216), 0, 8UL); ldv_memset((void *)(& ldvarg219), 0, 8UL); ldv_memset((void *)(& ldvarg214), 0, 8UL); ldv_memset((void *)(& ldvarg213), 0, 4UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_3 == 1) { ldv_retval_10 = ll_rw_extents_stats_single_open(ll_rw_extents_stats_fops_group1, ll_rw_extents_stats_fops_group2); if (ldv_retval_10 == 0) { ldv_state_variable_3 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_69371; case 1: ; if (ldv_state_variable_3 == 2) { lprocfs_single_release(ll_rw_extents_stats_fops_group1, ll_rw_extents_stats_fops_group2); ldv_state_variable_3 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_69371; case 2: ; if (ldv_state_variable_3 == 1) { ll_rw_extents_stats_seq_write(ll_rw_extents_stats_fops_group2, (char const *)ldvarg220, ldvarg219, ldvarg218); ldv_state_variable_3 = 1; } else { } if (ldv_state_variable_3 == 2) { ll_rw_extents_stats_seq_write(ll_rw_extents_stats_fops_group2, (char const *)ldvarg220, ldvarg219, ldvarg218); ldv_state_variable_3 = 2; } else { } goto ldv_69371; case 3: ; if (ldv_state_variable_3 == 2) { seq_read(ll_rw_extents_stats_fops_group2, ldvarg217, ldvarg216, ldvarg215); ldv_state_variable_3 = 2; } else { } goto ldv_69371; case 4: ; if (ldv_state_variable_3 == 2) { seq_lseek(ll_rw_extents_stats_fops_group2, ldvarg214, ldvarg213); ldv_state_variable_3 = 2; } else { } goto ldv_69371; default: ldv_stop(); } ldv_69371: ; return; } } void ldv_main_exported_9(void) { struct kobject *ldvarg239 ; void *tmp ; struct attribute *ldvarg241 ; void *tmp___0 ; char *ldvarg240 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(296UL); ldvarg239 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); ldvarg241 = (struct attribute *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg240 = (char *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_9 == 1) { max_easize_show(ldvarg239, ldvarg241, ldvarg240); ldv_state_variable_9 = 1; } else { } goto ldv_69384; default: ldv_stop(); } ldv_69384: ; return; } } void ldv_main_exported_12(void) { char *ldvarg262 ; void *tmp ; size_t ldvarg263 ; char *ldvarg264 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg262 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg264 = (char *)tmp___0; ldv_memset((void *)(& ldvarg263), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_12 == 1) { statahead_agl_store(lustre_attr_statahead_agl_group0, lustre_attr_statahead_agl_group1, (char const *)ldvarg264, ldvarg263); ldv_state_variable_12 = 1; } else { } goto ldv_69393; case 1: ; if (ldv_state_variable_12 == 1) { statahead_agl_show(lustre_attr_statahead_agl_group0, lustre_attr_statahead_agl_group1, ldvarg262); ldv_state_variable_12 = 1; } else { } goto ldv_69393; default: ldv_stop(); } ldv_69393: ; return; } } void ldv_main_exported_20(void) { char *ldvarg103 ; void *tmp ; char *ldvarg105 ; void *tmp___0 ; size_t ldvarg104 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg103 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg105 = (char *)tmp___0; ldv_memset((void *)(& ldvarg104), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_20 == 1) { max_read_ahead_per_file_mb_store(lustre_attr_max_read_ahead_per_file_mb_group0, lustre_attr_max_read_ahead_per_file_mb_group1, (char const *)ldvarg105, ldvarg104); ldv_state_variable_20 = 1; } else { } goto ldv_69403; case 1: ; if (ldv_state_variable_20 == 1) { max_read_ahead_per_file_mb_show(lustre_attr_max_read_ahead_per_file_mb_group0, lustre_attr_max_read_ahead_per_file_mb_group1, ldvarg103); ldv_state_variable_20 = 1; } else { } goto ldv_69403; default: ldv_stop(); } ldv_69403: ; return; } } void ldv_main_exported_14(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_14 == 1) { stats_track_gid_store(lustre_attr_stats_track_gid_group0, lustre_attr_stats_track_gid_group1, (char const *)ldvarg108, ldvarg107); ldv_state_variable_14 = 1; } else { } goto ldv_69413; case 1: ; if (ldv_state_variable_14 == 1) { stats_track_gid_show(lustre_attr_stats_track_gid_group0, lustre_attr_stats_track_gid_group1, ldvarg106); ldv_state_variable_14 = 1; } else { } goto ldv_69413; default: ldv_stop(); } ldv_69413: ; return; } } void ldv_main_exported_15(void) { char *ldvarg268 ; void *tmp ; size_t ldvarg267 ; char *ldvarg266 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg268 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg266 = (char *)tmp___0; ldv_memset((void *)(& ldvarg267), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_15 == 1) { stats_track_ppid_store(lustre_attr_stats_track_ppid_group0, lustre_attr_stats_track_ppid_group1, (char const *)ldvarg268, ldvarg267); ldv_state_variable_15 = 1; } else { } goto ldv_69423; case 1: ; if (ldv_state_variable_15 == 1) { stats_track_ppid_show(lustre_attr_stats_track_ppid_group0, lustre_attr_stats_track_ppid_group1, ldvarg266); ldv_state_variable_15 = 1; } else { } goto ldv_69423; default: ldv_stop(); } ldv_69423: ; return; } } void ldv_main_exported_8(void) { struct kobject *ldvarg289 ; void *tmp ; struct attribute *ldvarg291 ; void *tmp___0 ; char *ldvarg290 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(296UL); ldvarg289 = (struct kobject *)tmp; tmp___0 = ldv_init_zalloc(32UL); ldvarg291 = (struct attribute *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg290 = (char *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_8 == 1) { default_easize_show(ldvarg289, ldvarg291, ldvarg290); ldv_state_variable_8 = 1; } else { } goto ldv_69433; default: ldv_stop(); } ldv_69433: ; return; } } void ldv_main_exported_4(void) { size_t ldvarg304 ; int ldvarg298 ; loff_t *ldvarg303 ; void *tmp ; char *ldvarg302 ; void *tmp___0 ; loff_t ldvarg299 ; char *ldvarg305 ; void *tmp___1 ; size_t ldvarg301 ; loff_t *ldvarg300 ; void *tmp___2 ; int tmp___3 ; { tmp = ldv_init_zalloc(8UL); ldvarg303 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg302 = (char *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg305 = (char *)tmp___1; tmp___2 = ldv_init_zalloc(8UL); ldvarg300 = (loff_t *)tmp___2; ldv_memset((void *)(& ldvarg304), 0, 8UL); ldv_memset((void *)(& ldvarg298), 0, 4UL); ldv_memset((void *)(& ldvarg299), 0, 8UL); ldv_memset((void *)(& ldvarg301), 0, 8UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_4 == 1) { ldv_retval_13 = ll_rw_extents_stats_pp_single_open(ll_rw_extents_stats_pp_fops_group1, ll_rw_extents_stats_pp_fops_group2); if (ldv_retval_13 == 0) { ldv_state_variable_4 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_69447; case 1: ; if (ldv_state_variable_4 == 2) { lprocfs_single_release(ll_rw_extents_stats_pp_fops_group1, ll_rw_extents_stats_pp_fops_group2); ldv_state_variable_4 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_69447; case 2: ; if (ldv_state_variable_4 == 1) { ll_rw_extents_stats_pp_seq_write(ll_rw_extents_stats_pp_fops_group2, (char const *)ldvarg305, ldvarg304, ldvarg303); ldv_state_variable_4 = 1; } else { } if (ldv_state_variable_4 == 2) { ll_rw_extents_stats_pp_seq_write(ll_rw_extents_stats_pp_fops_group2, (char const *)ldvarg305, ldvarg304, ldvarg303); ldv_state_variable_4 = 2; } else { } goto ldv_69447; case 3: ; if (ldv_state_variable_4 == 2) { seq_read(ll_rw_extents_stats_pp_fops_group2, ldvarg302, ldvarg301, ldvarg300); ldv_state_variable_4 = 2; } else { } goto ldv_69447; case 4: ; if (ldv_state_variable_4 == 2) { seq_lseek(ll_rw_extents_stats_pp_fops_group2, ldvarg299, ldvarg298); ldv_state_variable_4 = 2; } else { } goto ldv_69447; default: ldv_stop(); } ldv_69447: ; return; } } void ldv_main_exported_24(void) { struct attribute *ldvarg139 ; void *tmp ; struct kobject *ldvarg137 ; void *tmp___0 ; char *ldvarg138 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(32UL); ldvarg139 = (struct attribute *)tmp; tmp___0 = ldv_init_zalloc(296UL); ldvarg137 = (struct kobject *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg138 = (char *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_24 == 1) { fstype_show(ldvarg137, ldvarg139, ldvarg138); ldv_state_variable_24 = 1; } else { } goto ldv_69460; default: ldv_stop(); } ldv_69460: ; return; } } void ldv_main_exported_19(void) { size_t ldvarg342 ; char *ldvarg343 ; void *tmp ; char *ldvarg341 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg343 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg341 = (char *)tmp___0; ldv_memset((void *)(& ldvarg342), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_19 == 1) { max_read_ahead_whole_mb_store(lustre_attr_max_read_ahead_whole_mb_group0, lustre_attr_max_read_ahead_whole_mb_group1, (char const *)ldvarg343, ldvarg342); ldv_state_variable_19 = 1; } else { } goto ldv_69469; case 1: ; if (ldv_state_variable_19 == 1) { max_read_ahead_whole_mb_show(lustre_attr_max_read_ahead_whole_mb_group0, lustre_attr_max_read_ahead_whole_mb_group1, ldvarg341); ldv_state_variable_19 = 1; } else { } goto ldv_69469; default: ldv_stop(); } ldv_69469: ; return; } } void ldv_main_exported_10(void) { size_t ldvarg141 ; char *ldvarg142 ; void *tmp ; char *ldvarg140 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg142 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg140 = (char *)tmp___0; ldv_memset((void *)(& ldvarg141), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_10 == 1) { lazystatfs_store(lustre_attr_lazystatfs_group0, lustre_attr_lazystatfs_group1, (char const *)ldvarg142, ldvarg141); ldv_state_variable_10 = 1; } else { } goto ldv_69479; case 1: ; if (ldv_state_variable_10 == 1) { lazystatfs_show(lustre_attr_lazystatfs_group0, lustre_attr_lazystatfs_group1, ldvarg140); ldv_state_variable_10 = 1; } else { } goto ldv_69479; default: ldv_stop(); } ldv_69479: ; return; } } void ldv_main_exported_31(void) { char *ldvarg144 ; void *tmp ; struct kobject *ldvarg143 ; void *tmp___0 ; struct attribute *ldvarg145 ; void *tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(1UL); ldvarg144 = (char *)tmp; tmp___0 = ldv_init_zalloc(296UL); ldvarg143 = (struct kobject *)tmp___0; tmp___1 = ldv_init_zalloc(32UL); ldvarg145 = (struct attribute *)tmp___1; tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_31 == 1) { blocksize_show(ldvarg143, ldvarg145, ldvarg144); ldv_state_variable_31 = 1; } else { } goto ldv_69489; default: ldv_stop(); } ldv_69489: ; return; } } void ldv_main_exported_5(void) { struct kobject *ldvarg354 ; void *tmp ; int tmp___0 ; { tmp = ldv_init_zalloc(296UL); ldvarg354 = (struct kobject *)tmp; tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_5 == 2) { llite_sb_release(ldvarg354); ldv_state_variable_5 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_69496; case 1: ; if (ldv_state_variable_5 == 1) { ldv_probe_5(); ldv_state_variable_5 = 2; ref_cnt = ref_cnt + 1; } else { } goto ldv_69496; default: ldv_stop(); } ldv_69496: ; return; } } int ldv_pskb_expand_head_1015(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_1017(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_1019(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_1020(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_1021(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_1022(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_1023(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_1024(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_1025(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--llite--lustre.ko-entry_point_true-unreach-call.cil.out.env.c" #include "model/common.env.c"