Lines Matching refs:stripe_head
37 #define NR_HASH (HASH_PAGES * PAGE_SIZE / sizeof(struct stripe_head *))
62 static inline void __release_stripe(raid5_conf_t *conf, struct stripe_head *sh) in __release_stripe()
89 static void release_stripe(struct stripe_head *sh) in release_stripe()
99 static void remove_hash(struct stripe_head *sh) in remove_hash()
111 static __inline__ void insert_hash(raid5_conf_t *conf, struct stripe_head *sh) in insert_hash()
113 struct stripe_head **shp = &stripe_hash(conf, sh->sector); in insert_hash()
126 static struct stripe_head *get_free_stripe(raid5_conf_t *conf) in get_free_stripe()
128 struct stripe_head *sh = NULL; in get_free_stripe()
135 sh = list_entry(first, struct stripe_head, lru); in get_free_stripe()
143 static void shrink_buffers(struct stripe_head *sh, int num) in shrink_buffers()
158 static int grow_buffers(struct stripe_head *sh, int num, int b_size, int priority) in grow_buffers()
184 static struct buffer_head *raid5_build_block (struct stripe_head *sh, int i);
186 static inline void init_stripe(struct stripe_head *sh, unsigned long sector) in init_stripe()
230 struct stripe_head *sh; in shrink_stripe_cache()
236 static struct stripe_head *__find_stripe(raid5_conf_t *conf, unsigned long sector) in __find_stripe()
238 struct stripe_head *sh; in __find_stripe()
249 static struct stripe_head *get_active_stripe(raid5_conf_t *conf, unsigned long sector, int size, in… in get_active_stripe()
251 struct stripe_head *sh; in get_active_stripe()
335 struct stripe_head *sh; in grow_stripes()
338 sh = kmalloc(sizeof(struct stripe_head), priority); in grow_stripes()
361 struct stripe_head *sh; in shrink_stripes()
380 struct stripe_head *sh = bh->b_private; in raid5_end_read_request()
438 struct stripe_head *sh = bh->b_private; in raid5_end_write_request()
464 static struct buffer_head *raid5_build_block (struct stripe_head *sh, int i) in raid5_build_block()
612 static unsigned long compute_blocknr(struct stripe_head *sh, int i)
660 static void compute_block(struct stripe_head *sh, int dd_idx) in compute_block()
688 static void compute_parity(struct stripe_head *sh, int method) in compute_parity()
774 static void add_stripe_bh (struct stripe_head *sh, struct buffer_head *bh, int dd_idx, int rw) in add_stripe_bh()
822 static void handle_stripe(struct stripe_head *sh) in handle_stripe()
1167 struct stripe_head *sh; in raid5_activate_delayed()
1168 sh = list_entry(l, struct stripe_head, lru); in raid5_activate_delayed()
1212 struct stripe_head *sh; in raid5_make_request()
1257 struct stripe_head *sh; in raid5_sync_request()
1295 struct stripe_head *sh; in raid5d()
1320 sh = list_entry(first, struct stripe_head, lru); in raid5d()
1391 …if ((conf->stripe_hashtbl = (struct stripe_head **) md__get_free_pages(GFP_ATOMIC, HASH_PAGES_ORDE… in raid5_run()
1542 memory = conf->max_nr_stripes * (sizeof(struct stripe_head) + in raid5_run()
1658 static void print_sh (struct stripe_head *sh) in print_sh()
1674 struct stripe_head *sh; in printall()