Lines Matching defs:scrub_stripe

72 		 * sector csum inside scrub_stripe::csums.
102 * We have multiple bitmaps for one scrub_stripe.
106 * So to reduce memory usage for each scrub_stripe, we pack those bitmaps
138 struct scrub_stripe {
195 struct scrub_stripe stripes[SCRUB_TOTAL_STRIPES];
196 struct scrub_stripe *raid56_data_stripes;
242 static inline void scrub_bitmap_set_##name(struct scrub_stripe *stripe, \
251 static inline void scrub_bitmap_clear_##name(struct scrub_stripe *stripe, \
260 static inline bool scrub_bitmap_test_bit_##name(struct scrub_stripe *stripe, \
268 static inline void scrub_bitmap_set_bit_##name(struct scrub_stripe *stripe, \
276 static inline void scrub_bitmap_clear_bit_##name(struct scrub_stripe *stripe, \
284 static inline unsigned long scrub_bitmap_read_##name(struct scrub_stripe *stripe) \
295 static inline bool scrub_bitmap_empty_##name(struct scrub_stripe *stripe) \
301 static inline unsigned int scrub_bitmap_weight_##name(struct scrub_stripe *stripe) \
337 static void release_scrub_stripe(struct scrub_stripe *stripe)
356 struct scrub_stripe *stripe)
390 static void wait_scrub_stripe_io(struct scrub_stripe *stripe)
688 static void *scrub_stripe_get_kaddr(struct scrub_stripe *stripe, int sector_nr)
699 static void scrub_verify_one_metadata(struct scrub_stripe *stripe, int sector_nr)
786 static void scrub_verify_one_sector(struct scrub_stripe *stripe, int sector_nr)
847 static void scrub_verify_one_stripe(struct scrub_stripe *stripe, unsigned long bitmap)
860 static int calc_sector_number(struct scrub_stripe *stripe, struct bio_vec *first_bvec)
880 struct scrub_stripe *stripe = bbio->private;
912 static void scrub_bio_add_sector(struct btrfs_bio *bbio, struct scrub_stripe *stripe,
931 static void scrub_stripe_submit_repair_read(struct scrub_stripe *stripe,
973 struct scrub_stripe *stripe,
995 * Although our scrub_stripe infrastructure is mostly based on btrfs_submit_bio()
1116 static void scrub_write_sectors(struct scrub_ctx *sctx, struct scrub_stripe *stripe,
1134 struct scrub_stripe *stripe = container_of(work, struct scrub_stripe, work);
1225 struct scrub_stripe *stripe = bbio->private;
1253 struct scrub_stripe *stripe = bbio->private;
1281 struct scrub_stripe *stripe,
1322 static void scrub_write_sectors(struct scrub_ctx *sctx, struct scrub_stripe *stripe,
1605 struct scrub_stripe *stripe,
1626 static void scrub_stripe_reset_bitmaps(struct scrub_stripe *stripe)
1645 struct scrub_stripe *stripe)
1755 static void scrub_reset_stripe(struct scrub_stripe *stripe)
1769 static u32 stripe_length(const struct scrub_stripe *stripe)
1777 static void scrub_submit_extent_sector_read(struct scrub_stripe *stripe)
1858 struct scrub_stripe *stripe)
1899 static bool stripe_has_metadata_error(struct scrub_stripe *stripe)
1931 struct scrub_stripe *stripe = &sctx->stripes[first_slot + i];
1943 struct scrub_stripe *stripe;
2019 struct scrub_stripe *stripe;
2068 struct scrub_stripe *stripe;
2361 static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx,
2400 sizeof(struct scrub_stripe),
2558 ret = scrub_stripe(sctx, bg, map, scrub_dev, i);
3106 * is paused (done at specific points at scrub_stripe() or right above