Lines Matching refs:sector
101 PRINTK("remove_hash(), stripe %lu\n", sh->sector); in remove_hash()
113 struct stripe_head **shp = &stripe_hash(conf, sh->sector); in insert_hash()
115 PRINTK("insert_hash(), stripe %lu\n",sh->sector); in insert_hash()
186 static inline void init_stripe(struct stripe_head *sh, unsigned long sector) in init_stripe() argument
197 PRINTK("init_stripe called, stripe %lu\n", sh->sector); in init_stripe()
201 sh->sector = sector; in init_stripe()
209 sh->sector, i, sh->bh_read[i], in init_stripe()
236 static struct stripe_head *__find_stripe(raid5_conf_t *conf, unsigned long sector) in __find_stripe() argument
241 PRINTK("__find_stripe, sector %lu\n", sector); in __find_stripe()
242 for (sh = stripe_hash(conf, sector); sh; sh = sh->hash_next) in __find_stripe()
243 if (sh->sector == sector) in __find_stripe()
245 PRINTK("__stripe %lu not in cache\n", sector); 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() argument
253 PRINTK("get_stripe, sector %lu\n", sector); in get_active_stripe()
269 …PRINTK("get_stripe %ld/%d buffer_size is %d, %d active\n", sector, size, conf->buffer_size, atomic… in get_active_stripe()
280 PRINTK("waited and now %ld/%d buffer_size is %d - %d active\n", sector, size, in get_active_stripe()
294 sector -= sector & ((conf->buffer_size>>9)-1); in get_active_stripe()
296 sh = __find_stripe(conf, sector); in get_active_stripe()
311 init_stripe(sh, sector); in get_active_stripe()
389 …PRINTK("end_read_request %lu/%d, count: %d, uptodate %d.\n", sh->sector, i, atomic_read(&sh->count… in raid5_end_read_request()
447 …PRINTK("end_write_request %lu/%d, count %d, uptodate: %d.\n", sh->sector, i, atomic_read(&sh->coun… in raid5_end_write_request()
468 unsigned long block = sh->sector / (sh->size >> 9); in raid5_build_block()
616 unsigned long new_sector = sh->sector, check;
644 if (check != sh->sector || dummy1 != dd_idx || dummy2 != sh->pd_idx) {
666 PRINTK("compute_block, stripe %lu, idx %d\n", sh->sector, dd_idx); in compute_block()
679 printk("compute_block() %d, stripe %lu, %d not present\n", dd_idx, sh->sector, i); in compute_block()
695 PRINTK("compute_parity, stripe %lu, method %d\n", sh->sector, method); in compute_parity()
779 PRINTK("adding bh b#%lu to stripe s#%lu\n", bh->b_blocknr, sh->sector); in add_stripe_bh()
790 printk(KERN_NOTICE "raid5: multiple %d requests for sector %ld\n", rw, sh->sector); in add_stripe_bh()
797 PRINTK("added bh b#%lu to stripe s#%lu, disk %d.\n", bh->b_blocknr, sh->sector, dd_idx); in add_stripe_bh()
834 …PRINTK("handling stripe %ld, cnt=%d, pd_idx=%d\n", sh->sector, atomic_read(&sh->count), sh->pd_idx… in handle_stripe()
1010 PRINTK("for sector %ld, rmw=%d rcw=%d\n", sh->sector, rmw, rcw); in handle_stripe()
1149 PRINTK("for %ld schedule op %d on disc %d\n", sh->sector, action[i]-1, i); in handle_stripe()
1155 PRINTK("skip op %d on disc %d for sector %ld\n", action[i]-1, i, sh->sector); in handle_stripe()
1270 redone = sector_nr - sh->sector; in raid5_sync_request()
1662 printk("sh %lu, size %d, pd_idx %d, state %ld.\n", sh->sector, sh->size, sh->pd_idx, sh->state); in print_sh()
1663 printk("sh %lu, count %d.\n", sh->sector, atomic_read(&sh->count)); in print_sh()
1664 printk("sh %lu, ", sh->sector); in print_sh()