• Home
  • Raw
  • Download

Lines Matching refs:lg

3017 		struct ext4_locality_group *lg;  in ext4_mb_init()  local
3018 lg = per_cpu_ptr(sbi->s_locality_groups, i); in ext4_mb_init()
3019 mutex_init(&lg->lg_mutex); in ext4_mb_init()
3021 INIT_LIST_HEAD(&lg->lg_prealloc_list[j]); in ext4_mb_init()
3022 spin_lock_init(&lg->lg_prealloc_lock); in ext4_mb_init()
3526 struct ext4_locality_group *lg = ac->ac_lg; in ext4_mb_normalize_group_request() local
3528 BUG_ON(lg == NULL); in ext4_mb_normalize_group_request()
3900 struct ext4_locality_group *lg; in ext4_mb_use_preallocated() local
3943 lg = ac->ac_lg; in ext4_mb_use_preallocated()
3944 if (lg == NULL) in ext4_mb_use_preallocated()
3958 list_for_each_entry_rcu(pa, &lg->lg_prealloc_list[i], in ext4_mb_use_preallocated()
4246 struct ext4_locality_group *lg; in ext4_mb_new_group_pa() local
4282 lg = ac->ac_lg; in ext4_mb_new_group_pa()
4283 BUG_ON(lg == NULL); in ext4_mb_new_group_pa()
4285 pa->pa_obj_lock = &lg->lg_prealloc_lock; in ext4_mb_new_group_pa()
4822 struct ext4_locality_group *lg, in ext4_mb_discard_lg_preallocations() argument
4834 spin_lock(&lg->lg_prealloc_lock); in ext4_mb_discard_lg_preallocations()
4835 list_for_each_entry_rcu(pa, &lg->lg_prealloc_list[order], in ext4_mb_discard_lg_preallocations()
4837 lockdep_is_held(&lg->lg_prealloc_lock)) { in ext4_mb_discard_lg_preallocations()
4873 spin_unlock(&lg->lg_prealloc_lock); in ext4_mb_discard_lg_preallocations()
4910 struct ext4_locality_group *lg = ac->ac_lg; in ext4_mb_add_n_trim() local
4918 spin_lock(&lg->lg_prealloc_lock); in ext4_mb_add_n_trim()
4919 list_for_each_entry_rcu(tmp_pa, &lg->lg_prealloc_list[order], in ext4_mb_add_n_trim()
4921 lockdep_is_held(&lg->lg_prealloc_lock)) { in ext4_mb_add_n_trim()
4942 &lg->lg_prealloc_list[order]); in ext4_mb_add_n_trim()
4943 spin_unlock(&lg->lg_prealloc_lock); in ext4_mb_add_n_trim()
4947 ext4_mb_discard_lg_preallocations(sb, lg, in ext4_mb_add_n_trim()